

/* ----------------------------- ESTILOS GENERALES -----------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;700&display=swap');

@font-face
{
    font-family: "Aspira";
    src: url("../../fonts/Aspira\ Regular.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face
{
    font-family: "Leto";
    src: url("../../fonts/LetoSansCondensed-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}



body
{
    margin: 0;
    font-family: "Lexend", sans-serif;
    overflow-x: hidden;
    width: 100%;
    background-color: #0a0a0e;
    display: red;
     background-image: url('../..//media/bg1.png');
    background-repeat: no-repeat;      
    background-size: cover;             
    background-position: center center; 
    background-attachment: fixed;  
    
}


p
{
    color: white;
}


section a
{
    color: #09f;
    font-size: 1.5rem;
}

section a:visited
{
    color: #09f;
}

section a:hover
{
    color: #51abff;
}

/* Reset de CSS */
*,
*:after,
*:before
{
    box-sizing: border-box;
}

/* ----------------------------- ESTILOS GENERALES -----------------------------*/


/* ----------------------------- Navbar -----------------------------*/
.logo
{
    /* border: solid 1px red; */
    padding-left: 3.5rem;

    height: 100%;
    width: 60%;
    overflow: hidden;
    display: flex;



}

.logo img
{
    /* border:solid 2px #09f; */
    height: 100%;
    padding: 1.1em
}

.logo p
{
    margin: 22px;

    color: white;
    display: flex;
    padding: 1rem;
    margin: 0;

    height: 100%;
    width: 18rem;

    font-family: Lexend;
    align-items: center;
    font-size: 1.5rem;

}

.navbar
{
    position: sticky;
    top: 0;
    padding: 0px;
    background-color: #0a0a0e;

    z-index: 1000;
    height: 8dvh;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    align-items: center;
    padding-right: 1.5rem;
    overflow: visible;
}

.navbar nav
{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 100%;

}

.navbar a
{
    color: white;
    text-decoration: none;

    transition: color 0.3s;
    margin: 0;
}

.navbar a:hover
{
    color: #09f;
    transition: 1s;
}


ul
{

    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    align-items: center;

    display: flex;
    background-clip: content-box;
}

li
{
    /* border: solid 2px blue; */

    height: 100%;
    width: max-content;
    font-family: "Lexend";
    transition: 0.7s;
    padding: 0px;
    margin: 0;
    overflow: hidden;
    background-clip: content-box;
}

li a
{

    display: block;
    align-content: center;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-weight: bold;
    margin: 0;
    height: 100%;
    overflow: visible;

}

nav li:hover
{
    background-color: #28262c;
    background-clip: content-box;


}

/* Contenedor principal de la lista con el dropdown */


/* Estilo de los enlaces principales */
.dropdown>a
{
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
}

/* Contenido del dropdown (submenú) */
.dropdown-content
{
    opacity: 0;
    position: absolute;
    background-color: #0a0a0e;
    min-width: 160px;
    z-index: 1;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: opacity 0.3s ease-in-out;

}

/* Mostrar el submenú al hacer hover sobre el contenedor dropdown */
.dropdown:hover .dropdown-content
{
    opacity: 1;
}

/* Estilo de los enlaces dentro del submenú */
.dropdown-content a
{
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: background-color 0.3s ease;
}

/* Cambio de color al pasar el mouse sobre los enlaces del submenú */
.dropdown-content a:hover
{
    background-color: #28262c;
    /* Fondo al hacer hover */
}


#lastoption:hover
{

    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Mostrar el submenú cuando se pasa el ratón por encima del item */
.dropdown:hover .dropdown-content
{
    opacity: 1;
}


/* ----------------------------- Navbar -----------------------------*/

/* ----------------------------- Secciones -----------------------------*/

.section
{   
    min-height: fit-content;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    color: white;
    opacity: 0;
    
    transition: all 0.6s ease-out;
}

.section p, h1
{   
    color: black;
}

section h1{
    
    font-size: 4rem;
}

.section:nth-child(odd)
{
    background-color: transparent;
background-image: none;
background-repeat: initial;
background-size: initial;
background-position: initial;
background-attachment: initial;

    
         



}

.section:nth-child(even)
{
background-color: transparent;
background-image: none;
background-repeat: initial;
background-size: initial;
background-position: initial;
background-attachment: initial;


}

.textcontainer {

    transform: translateX(-15rem);
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #202124;
    max-width: 800px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;


}
.textcontainer:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-15rem) translateY(-1rem);
}

.section:nth-child(odd) .textcontainer {
    transform: translateX(15rem);
}

.section:nth-child(even) .textcontainer {
    transform: translateX(-15rem);
}

.section:nth-child(odd) .textcontainer:hover {
    transform: translateX(15rem) translateY(-1rem);
}

.section:nth-child(even) .textcontainer:hover {
    transform: translateX(-15rem) translateY(-1rem);
}

.section:nth-child(even) h1 {
    text-align: left;
    margin-left: 5rem;
}


.section:nth-child(odd) h1 {
    text-align: right;
    margin-right: 5rem;
}


/* ----------------------------- Seccuiones -----------------------------*/
/*----------------------------- FOOTER -------------------------- */
#piedePagina
{
    height: 14dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #070707;
    margin: 0;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.footer-content
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer p
{
    margin: 5px 0;
    font-size: 1rem;
    line-height: 1.6;
}

footer span
{
    color: #09f;
    font-weight: bold;
}

footer a
{
    color: #09f;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
}

footer a:hover
{
    text-decoration: underline;
}

.social-links
{
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a
{
    font-size: 16px;
    color: #09f;
    transition: color 0.3s ease;
}

.social-links a:hover
{
    color: rgb(62, 177, 253);
}






/*----------------------------- FOOTER -------------------------- */






/*----------------------------- ANIMACIONES -------------------------- */


@keyframes fade-away
{
    to
    {
        opacity: 0;
    }
}

@keyframes fade-in
{
    from
    {
        opacity: 0;
    }

    to
    {
        opacity: 1;
    }
}

@keyframes scale-up
{
    to
    {
        transform: scale(2.5);
    }
}

@keyframes slideInFromBottom
{
    from
    {
        transform: translateY(100%);
        /* Empuja desde la parte inferior */
        opacity: 0;
        /* Empieza con opacidad 0 */
    }

    to
    {
        transform: translateY(0);
        /* Finaliza en la posición original */
        opacity: 1;
        /* Termina con opacidad 1 */
    }
}


/*----------------------------- ANIMACIONES -------------------------- */


@keyframes fade-away
{
    to
    {
        opacity: 0;
    }
}

@keyframes fade-in
{
    from
    {
        opacity: 0;
    }

    to
    {
        opacity: 1;
    }
}

@keyframes scale-up
{
    to
    {
        transform: scale(2.5);
    }
}

@keyframes slideInFromBottom
{
    from
    {
        transform: translateY(100%);
        /* Empuja desde la parte inferior */
        opacity: 0;
        /* Empieza con opacidad 0 */
    }

    to
    {
        transform: translateY(0);
        /* Finaliza en la posición original */
        opacity: 1;
        /* Termina con opacidad 1 */
    }
}




/*----------------------------- ANIMACIONES -------------------------- */





#imgContainer{

    max-width: 2800px;
    max-height: 2100px;
}
#imgContainer {
            width: 900px; /* Ajusta según necesites */
            height: 500px; /* Ajusta según necesites */
            overflow: hidden; /* Oculta el exceso de imagen al hacer zoom */
            border-radius: 8px; /* Bordes redondeados estilo moderno */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
            transition: all 0.3s ease; /* Transición suave para el contenedor */
        }

        #imgContainer img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
            transition: transform 0.5s ease; /* Transición suave para el zoom */
            transform-origin: center center; /* Zoom desde el centro */
        }

        #imgContainer:hover img {
            transform: scale(1.1); /* Aumenta un 10% el tamaño */
        }

        /* Efecto adicional opcional al hacer hover en el contenedor */
        #imgContainer:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
        }

        .transition-image {
    view-transition-name: image01;
}
 @view-transition{
    navigation: auto;
 }

  @view-transition{
    navigation: auto;
    animation-duration:6s;
 }

 ::view-transition-old(image01),
::view-transition-new(image01) {
  animation-duration: 6s;
}



/* ----------------------------- RESPONSIVE MOBILE -----------------------------*/
@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .logo {
        padding: 0;
        justify-content: center;
        width: 100%;
    }

    .logo img {
        padding: 0.5rem;
        height: auto;
        max-height: 60px;
    }

    .logo p {
        font-size: 1.2rem;
        text-align: center;
        margin: 0.5rem 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    li a {
        padding: 10px;
        font-size: 1rem;
    }

    .section {
        height: auto;
        padding: 2rem 1rem;
        font-size: 1.5rem;
        text-align: center;
    }

    .textcontainer {
        transform: none !important;
        margin: 0 1rem;
    }

    .textcontainer:hover {
        transform: translateY(-1rem);
    }

    .section h1 {
        font-size: 2.5rem;
        text-align: center !important;
        margin: 1rem 0;
    }

    #imgContainer {
        width: 100%;
        height: auto;
        max-width: 100%;
        margin: 1rem auto;
    }

    #imgContainer img {
        height: auto;
    }

    #piedePagina {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .footer-content {
        gap: 5px;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .dropdown-content {
        position: relative;
    }
}
@media (max-width: 768px) {
  .section {
    opacity: 1 !important;
    transform: none !important;
  }
}


 @media (max-width: 768px) {
            body {
                font-size: 16px;
                background-attachment: scroll;
            }

            /* Navbar mobile styles */
            .navbar {
                height: auto;
                min-height: 60px;
                padding: 10px 1rem;
                position: relative;
            }

            .logo p {
                font-size: 1rem;
                max-width: 150px;
            }

            .mobile-menu-btn {
                display: block;
            }

            nav {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                height: 100vh;
                background-color: var(--dark);
                z-index: 1000;
                transition: right 0.3s ease-in-out;
                overflow-y: auto;
                padding-top: 60px;
                box-shadow: -5px 0 15px rgba(0,0,0,0.2);
            }

            nav.active {
                right: 0;
            }

            nav ul {
                flex-direction: column;
                height: auto;
                width: 100%;
                padding: 20px 0;
            }

            nav li {
                width: 100%;
                height: auto;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            nav li a {
                padding: 15px 20px;
                height: auto;
            }

            .dropdown-content {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                background-color: rgba(0,0,0,0.2);
                box-shadow: none;
                display: none;
                border-radius: 0;
            }

            .dropdown.active .dropdown-content {
                display: block;
            }

            .dropdown > a::after {
                content: "▼";
                font-size: 0.6rem;
                margin-left: 5px;
            }

            .dropdown.active > a::after {
                content: "▲";
            }

            /* Section styles */
            .section {
                height: auto;
                min-height: 50vh;
                padding: 2rem 1rem;
                flex-direction: column;
            }

            .textcontainer {
                width: 100%;
                margin: 1rem 0;
                transform: none !important;
            }

            .textcontainer:hover {
                transform: translateY(-5px) !important;
            }

            .section h1 {
                font-size: 2.2rem;
                text-align: center !important;
                margin: 0 0 1rem 0 !important;
            }

            #imgContainer {
                width: 100%;
                height: 250px;
                margin: 1rem 0;
            }
        }

        @media (max-width: 480px) {
            .logo p {
                display: none;
            }

            .section {
                padding: 1rem;
            }

            .textcontainer {
                padding: 1.5rem;
            }

            section h1 {
                font-size: 1.8rem;
            }
        }

         /* Mobile menu button */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 10px;
            z-index: 1001;
        }