body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #252850;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin: auto;
    position: relative;
    left: -20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


nav ul ul.submenu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgb(0, 0, 0);
    width: 200px; 
}


nav ul li:hover > ul.submenu {
    display: block;
}

nav ul ul.submenu li {
    width: 80%;
    text-align: left;
    padding: 0.5rem 1rem;
}

nav ul ul.submenu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
}

nav ul ul.submenu a:hover {
    background-color: #aca2a22c;
}

footer {
    background-color: #252850;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 100px;
}
.social-links {
    margin-top: 30px;
}
.social-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #FFC107;
}

.foot{
    color: white;
    margin: 0 0.5rem;
}

.cta-button {
    background-color: #FFC107;
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #FFA000;
}


@media (max-width: 768px) {
    header {
        height: auto;
    }
    header.menu-open {
        height: 100vh;
        overflow-y: auto;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
    }
    header.menu-open nav ul {
        display: flex;
    }
    nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    .toggle-btn {
        display: block;
    }
    .content-wrapper {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0));
        align-items: center;
        padding-bottom: 20%;
    }
    .content {
        max-width: 100%;
        text-align: center;
    }
    header.menu-open .logo {
        display: none;
    }
    header.menu-open nav ul {
        margin-top: 2rem;
    }
    
    .cta-button {
        background-color: #40E0D0;
        color: #000;
        display: inline-block;
        margin-top: 1rem;
    }

    .toggle-btn {
        display: block; 
        position: fixed;
        border-radius: 10px;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background-color: #ffffff;
        color: rgb(0, 0, 0);
        border: none;
        padding: 1.5rem 1.5rem;
        cursor: pointer;
        box-shadow: 3px 5px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease; 
    }
    
    .toggle-btn:active {
        transform: scale(0.95); 
        box-shadow: 5px 5px rgba(0, 0, 0, 0.3);
    }

    nav ul ul.submenu {
        display: none;
    }
    nav ul li:active > ul.submenu, 
    nav ul li:focus > ul.submenu {
        display: block; 
    }

    .logo{
        position: relative;
        left: -50px;
    }
    
    .logo img{
        position: relative;
        left: 0;
    }
}

/**************** Section nuestro_fundador***************/

/* Estilos generales */
.contenedor-principal {
    height: auto;
    padding: 50px;
    width: 100%;
    margin: 50px auto;
    box-sizing: border-box;
}

.contenedor-header {
    margin: 10px 0;
    padding: 20px;
    text-align: center;
    color: rgb(0, 0, 0);
    font-size: 24px;
}

.contenedor_body {
    font-family: "Poppins", Sans-serif;
    font-size: 23px;
    margin: 10px 0; 
    padding: 20px; 
    text-align: justify;
}

.resaltado {
    color: #252850;
    font-weight: bold; 
}

.contenedor_img {
    margin: auto;
    padding: auto;
    margin-top: 100px;
}

.img_alan {
    width: 50%;
    height: auto; 
    aspect-ratio: 1 / 1; 
    border-radius: 50%; 
    object-fit: cover; 
    display: block; 
    margin: 0 auto; 
    box-shadow:
    inset 0 -3em 3em rgba(0, 0, 0, 0.1),
    0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
}

.contenedor_info {
    margin: 0 auto;
    padding: auto;
    height: auto;
    width: 40%;
    padding: 20px;
    box-shadow:
    inset 0 -3em 3em rgba(0, 0, 0, 0.1),
    0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    background-color: #FFA000;
    border-top-left-radius: 25px; 
    border-bottom-right-radius: 25px; 
    margin-top: -40px;
    position: relative;
    z-index: 10;
    transition: transform 0.3s; 
}

.contenedor_info:hover {
    transform: scale(1.2); 
}

.contenedor_info_body {
    padding: 10px; 
    width: 100%; 
    text-align: center; 
    color: #ffffff;
    font-weight: bold;
    font-size: 30px;
    margin: 0 auto;
}

.redes-sociales {
    margin: 40px;
    padding: 20px;
    margin-top: -20px;
}

.redes-sociales ul {
    padding: 0; 
    margin: 0; 
    list-style-type: none; 
}

.redes-sociales li {
    list-style: none; 
    margin-bottom: 20px; 
}

.redes-sociales a {
    text-decoration: none; 
}

.icono-social {
    width: 40px; 
    height: 40px;
    transition: transform 0.3s; 
}

.icono-social:hover {
    transform: scale(1.2); 
}

.texto-social {
    color: rgb(255, 255, 255);
    font-weight: bolder;
}

.contenedor_linea {
    margin: auto;
    padding: 50px;
    position: relative;
    margin-top: -60px;
}

.salto_linea2 {
    text-align: justify;
    position: relative;
    padding-left: 20px;
}

.salto_linea2::before {
    content: '•';
    position: absolute;
    left: 0;
    color: black; 
}

.integrantes{
    margin: 20px;
    text-align: center;
    font-family: "Poppins", Sans-serif;
    font-size: 23px;
    margin-top: 120px;
}
.integrantes_equipo{
    width: 50%;
    height: auto; 
    aspect-ratio: 1 / 1; 
    border-radius: 25%; 
    object-fit: cover; 
    display: block; 
    margin: 0 auto; 
    margin-top: 50px;
    margin-bottom: 100px;
    box-shadow:
    inset 0 -3em 3em rgba(0, 0, 0, 0.1),
    0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease-out;
}


/*Dispositivo Moviles*/
@media (max-width: 768px) {
    .contenedor-principal {
        padding: 30px;
        width: 90%;
    }

    .contenedor-header {
        font-size: 22px;
        padding: 15px;
    }

    .img_alan{
        width: 100%;
        height: auto; 
        aspect-ratio: 1 / 1; 
        border-radius: 50%; 
        object-fit: cover; 
        display: block; 
        margin: 0 auto; 
    }

    .contenedor_body{
        font-size: 17px;
    }

    .contenedor_info{
        margin: 0 auto;
        padding: auto;
        height: auto;
        width: 80%;
        padding: 20px;
    }

    .contenedor_info:hover {
        transform: scale(1.1); 
    }

    .contenedor_linea {
        margin: auto;
        padding: 10px;
    }

    .integrantes_equipo{
        width: 100%;
        height: auto; 
        aspect-ratio: 1 / 1; 
        border-radius: 20%; 
        object-fit: cover; 
        display: block; 
        margin: 0 auto; 
        margin-top: 50px;
        margin-bottom: 100px;
        transition: opacity 0.5s ease-out;
    }
    .toggle-btn {
        font-size: 25px;
    }

}

@media (max-width: 480px) {
    .contenedor-principal {
        padding: 20px;
        width: 100%;
    }

    .contenedor-header {
        font-size: 22px;
        padding: 10px;
        margin-top: 30px;
    }

    .img_alan{
        width: 100%;
        height: auto; 
        aspect-ratio: 1 / 1; 
        border-radius: 50%; 
        object-fit: cover; 
        display: block; 
        margin: 0 auto; 
    }

    .contenedor_body{
        font-size: 17px;
    }

    .contenedor_info{
        margin: 0 auto;
        padding: auto;
        height: auto;
        width: 80%;
        padding: 20px;
    }

    .contenedor_info:hover {
        transform: scale(1.1); 
    }

    .redes-sociales {
        margin: 20px;
        padding: 20px;
        margin-top: -20px;
    }

    .integrantes_equipo{
        width: 100%;
        height: auto; 
        aspect-ratio: 1 / 1; 
        border-radius: 25%; 
        object-fit: cover; 
        display: block; 
        margin: 0 auto; 
        margin-top: 50px;
        margin-bottom: 100px;
        transition: opacity 0.5s ease-out;
    }
    .toggle-btn {
        font-size: 25px;
    }
}

/*Fin Dispositivo Moviles*/
/* Estilos generales del carrusel */
.integrantes {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-wrapper {
    width: 80%;
    perspective: 1000px;
    position: relative;
}

.carousel {
    display: flex;
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

.carousel-img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

/* Estilos para DESKTOP (mayor a 1024px) */
@media (min-width: 1025px) {
    .carousel {
        height: 600px;
    }
    .carousel-img {
        width: auto;
        height: 100%;
        max-height: 600px;
        object-fit: contain;
    }
    
    .carousel-btn {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 0 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .carousel {
        height: 500px;
    }
    .carousel-img {
        width: auto;
        height: 100%;
        max-height: 500px;
        object-fit: contain;
    }
    
    .carousel-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 20px;
    }
}


@media (max-width: 768px) {
    .integrantes {
        padding: 10px 0;
        height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .carousel-wrapper {
        width: 100%;
        height: 80vh;
        padding: 0 5%;
        box-sizing: border-box;
    }
    
    .carousel {
        height: 100%;
    }
    
    .carousel-img {
        width: 90%;
        height: auto;
        max-height: 75vh;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }
    
    .carousel-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(37, 40, 80, 0.8);
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
}


@media (max-width: 480px) {
    .integrantes {
        height: calc(100vh - 100px);
    }
    
    .carousel-wrapper {
        height: 75vh;
    }
    
    .carousel-img {
        max-height: 70vh;
        width: 85%;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}


@keyframes rotateIn {
    0% {
        transform: rotateY(0deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: rotateY(360deg) scale(1);
        opacity: 1;
    }
}

.carousel-item.rotate-in {
    animation: rotateIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.carousel-btn {
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 40, 80, 0.8);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background-color: #FFA000;
    transform: scale(1.1) translateY(-50%);
}

.carousel-btn i {
    pointer-events: none;
}