/* Fuente personalizada */
@font-face {
    font-family: 'Bahnschrift';
    src: url('../fonts/Bahnschrift.ttf') format('truetype');
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Bahnschrift', sans-serif;
}

/* Encabezado */
.encabezado {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

header img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    border: none;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
}

.titulo-banner {
    color: #000 !important;
    background-color: transparent;
    text-shadow: 1px 1px 5px #ffffff;
}


/* Título sobre el banner */
.titulo-superpuesto {
    position: absolute;
    top: 20%;
    left: 5%;
    transform: none;
    text-align: left;
    color: #000 !important;
    font-family: 'Bahnschrift', sans-serif;
    font-size: 2rem;
    line-height: 1.3;
    text-shadow: none;
    max-width: 40%;
    z-index: 10;
}

/* Menú de navegación */
nav {
    background-color: #1bcab1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem;
}

nav a {
    color: #000;
    text-decoration: none;
    margin: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #fff;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Contenedor principal */
main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
}

h1 {
    font-size: 2rem;
    color: #1bcab1;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Imágenes distribuidas */
.imagen-float {
    max-width: 280px;
    height: auto;
    margin: 1rem;
    border: 3px solid #1bcab1;
    border-radius: 10px;
}

.imagen-float.izquierda {
    float: left;
    margin-right: 1.5rem;
}

.imagen-float.derecha {
    float: right;
    margin-left: 1.5rem;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive */
@media (max-width: 991px) {
    nav {
        flex-wrap: wrap;
    }

    nav a {
        flex: 0 0 45%;
        text-align: center;
    }

    .imagen-float.izquierda,
    .imagen-float.derecha {
        float: none;
        display: block;
        margin: 1rem auto;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 0.3rem 0;
        font-size: 1rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .titulo-superpuesto {
        font-size: 1.3rem;
        max-width: 80%;
        left: 10%;
        top: 15%;
    }
}




