/*COLORES*/
:root {
    --color-azul: #0056b3;
    --color-blanco: #ffffff;
    --color-purpura: #6a0dad;
    --color-gris-claro: #f2f2f2;
    --color-gris-oscuro: #333;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    padding-top: 20px;
}

#bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/img/pics/2.webp') no-repeat center center fixed;
    background-size: cover;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
    z-index: -1;
}

.hero {
    margin-top: 80px;
}

/*CONTENEDOR*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER*/
header {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 98%;
    max-width: 1400px;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 50px 50px 50px 50px;
    z-index: 1000;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

header nav {
    width: 100%;
}


header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 60px;
}

.logo img {
    height: 70px;
    width: 350px;
}


/*LOGO GEU*/
.logoGEU {
    position: absolute;
    top: 10px;  /* Flota por encima del header */
    left: 20px;  /* Puedes ajustar la posición horizontal */
    z-index: 1100; /* Más alto que el header */
}

.logoGEU img {
    max-width: 100px;
    width: 100%;
    height: 70px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logoGEU img:hover {
    transform: scale(1.01);
}

/*QR CODE*/

.qr-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 150px;
    height: 190px;
    background: linear-gradient(145deg, #e1cbfe, #6704b84b);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #9900ff;
    z-index: 1000;
    overflow: hidden;
    transform: scale(1);
    transform-origin: bottom right;
    /* punto de origen fijo */
    transition: transform 0.5s ease-in-out;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(3px);
    }

    70% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

.qr-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(1.2);
}

.qr-container.hide {
    transform: scale(0);
    /* Hace que el QR se oculte */
    transform-origin: bottom right;
    /* Asegura que el punto de escalado esté en la esquina inferior derecha */
}

.qr-toggle-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: #07223d;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.qr-toggle-btn:hover {
    background: #7a00cc;
}

@keyframes showQR {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-container.show {
    transform: scale(1);
    /* Muestra el QR */
    transform-origin: bottom right;
    /* Asegura que el punto de escalado esté en la esquina inferior derecha */
}


/*----------------------------------------INICIO MENÚ--------------------------------*/

#menuToggle {
    display: none
}

.menu-toggle-icon {
    font-size: 20px;
    background: rgb(7, 34, 61);
    -webkit-background-clip: text;
    color: transparent;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

#qrContainer {
    display: block;
}

nav ul {
    list-style: none;
    padding: 0 20px; /* Espaciado interior horizontal */
    margin: 0;
    background: rgb(7, 34, 61);
    border-radius: 10px;
    display: flex;
    justify-content: space-between; /* Distribuye uniformemente */
    align-items: center;
    flex-wrap: nowrap;              /* 🔑 No permite salto de línea */
    gap: 18px;
    width: 100%;                    /* 🔑 Que se ajuste al header */
}

/*ENLACES*/
nav ul li {
    position: relative;
    font-size: 1.2rem;
}

/* TEXTO MENU*/
nav ul li a {
    text-decoration: none;
    white-space: nowrap; /* 🔑 Evita que se rompan en varias líneas */
    font-size: 14px;      /* Puedes subirlo un poco si era demasiado pequeño */
    font-family: 'Shadows Into Light', cursive;
    color: #ffffff;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: rgb(7, 34, 61);
}

/*SUBMENUS*/

.submenu {
    position: absolute;
    margin-top: -1px;
    top: 100%;
    left: 0;
    background: rgb(7, 34, 61);  /* Conserva tu color original */
    border-radius: 10px;
    width: max-content;         /* 🔑 Se adapta al contenido más largo */
    opacity: 0;
    visibility: hidden;
    transition: none 0.5s ease;
    z-index: 1001;
}

.submenu li a {
    white-space: nowrap;      
    display: block;
    padding: 10px 20px;
    color: white;             
    text-decoration: none;
}

.submenu-nivel-2 {
    top: 0;
    left: 100%;
    margin-left: -1px;
    background: rgb(7, 34, 61);
}

nav ul li:hover>.submenu,
nav ul li .submenu:hover {
    opacity: 1;
    visibility: visible;
}

.submenu li:hover>.submenu-nivel-2,
.submenu-nivel-2:hover {
    opacity: 1;
    visibility: visible;
}

/*FLECHAS*/

.fa-angle-right {
    font-size: 18px; 
}

/* Estilo para los enlaces con flecha */
.submenu li > a {
    position: relative;
    display: block;
    padding: 10px 40px 10px 20px;  
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.submenu .dropdown > a {
    position: relative;
    display: block;
    padding: 10px 40px 10px 20px; /* Aumenta padding a la derecha */
    white-space: nowrap;
    color: white;
    text-decoration: none;
}

.submenu .dropdown > a > .fa-graduation-cap {
    margin-right: 8px;
}


.submenu .dropdown > a > .fa-angle-right {
    position: absolute;
    right: 15px;                  /* Puedes ajustar más o menos */
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;              /* Tamaño reducido si lo deseas */
    pointer-events: none;         /* Para evitar que bloquee clics */
}

/* Flecha posicionada al extremo derecho */
.dropdown > a > .fa-angle-right,
.submenu .dropdown > a > .fa-angle-right {
    position: absolute;
    right: 15px;                    
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

/* Rotación de la flecha al hacer hover */
.submenu .dropdown:hover > a > .fa-angle-right {
    transform: translateY(-50%) rotate(90deg);
}

.dropdown>a>.fa-angle-right {
    margin-left: auto;
    transition: transform 0.3s;
}

.dropdown:hover>a>.fa-angle-right {
    transform: rotate(90deg);
}

.submenu li {
    padding: 10px;
}

.submenu .submenu {
    top: 0;
    left: 100%;
    background-color: rgb(7, 34, 61);
    border-radius: 8px;
    margin-left: 0px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    z-index: 999;
}

.submenu li:hover>.submenu {
    opacity: 1;
    max-height: 500px;
    visibility: visible;
}

.dropdown:hover .submenu {
    max-height: 18.75rem;
    opacity: 1;
}

.submenu li {
    padding: 5px 0;
}


i {
    font-size: 20px;
    color: #ffffff;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

nav .dropdown {
    position: relative;
}

nav .dropdown:hover>.submenu {
    visibility: visible;
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
}

nav i {
    transition: transform 0.3s;
}

nav i:hover {
    transform: scale(1.2);
}

nav .submenu li {
    padding: 10px;
}

nav .submenu li a {
    color: white;
    padding: 10px 20px;
}

nav .submenu li a:hover {
    background-color: rgb(104, 17, 180);
    color: rgb(255, 255, 255);
}

nav ul li:hover .submenu {
    display: block;
}

/*--------------------------------FIN MENU------------------------------*/


/*SLIDER DE FOTOS*/
.slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    margin-top: 10px;
    padding-top: 0;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-transition {
    animation: slideFadeIn 1s ease-in-out;
}

.slide img {
    width: 80%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-blanco);
    background-color: rgba(174, 38, 205, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*BOTONES DE CAMBIO DE IMAGEN*/
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--color-blanco);
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
    z-index: 10;
}

.prev-btn,
.next-btn {
    background: #b4009e;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 55px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.slider-btn:hover {
    background: rgb(7, 34, 61);
}


.prev-btn {
    left: 4rem;
}

.next-btn {
    right: 4rem;
}

/*FOOTER*/
footer {
    background: rgb(7, 34, 61);
    max-width: 400px;
    width: 100%;
    height: 90px;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    color: var(--color-blanco);
    text-align: center;
    padding: 1rem 0;
    margin: 2rem auto 0;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.footer-content p,
.footer-content a,
.footer-content span {
    color: #ffffff;
    text-shadow: none;
    font-family: 'Poppins', sans-serif;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    flex-wrap: wrap;
    padding: 0 20px;
}


.footer-content p {
    font-size: 14px;
    font-family: 'Shadows Into Light', cursive;
}

.social-media {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-media a img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-media a img:hover {
    transform: scale(1.2);
}

/* DISEÑO RESPONSIVO */
@media (max-width: 1226px) {

    /* Cambia el layout del header a columna y centra el texto */
    header .container {
        flex-direction: column;
        text-align: center;
    }

    /* Oculta el menú de navegación y lo posiciona hacia la izquierda */
    nav ul {
        flex-direction: column;
        display: none;
        /* Oculta por defecto */
        position: relative;
        left: -100px;
        /* Mueve el menú hacia la izquierda */
        width: calc(100% + 20px);
        /* Aumenta el ancho para compensar el desplazamiento */
        padding-left: 20px;
        /* Agrega espacio a la izquierda para el texto */
        box-sizing: border-box;
    }

    /* Estilos cuando el menú está abierto (por ejemplo, con una clase "open") */
    nav ul.open {
        display: flex;
        /* Muestra el menú */
        flex-direction: column;
        opacity: 1;
        transform: translateY(0);
        /* Sin desplazamiento vertical */
        transition: opacity 0.5s ease, transform 0.5s ease;
        /* Transiciones suaves */
    }

    /* Espaciado entre elementos del menú y alinea texto a la izquierda */
    nav ul li {
        margin: 10px 0;
        text-align: left;
    }

    /* Ajustes para los submenús en vista móvil */
    nav ul ul {
        left: 0;
        margin-left: 10px;
        /* Desplaza ligeramente los submenús */
    }

    /* Muestra el botón para abrir/cerrar el menú en móviles */
    .menu-toggle {
        display: block;
        align-self: flex-start;
        /* Alinea a la izquierda */
        margin-top: -35px;
        margin-left: 10px;
    }

    /* Estilo del ícono del botón de menú */
    .menu-toggle-icon {
        font-size: 30px;
        background: rgb(7, 34, 61);
        /* Gradiente de color */
        -webkit-background-clip: text;
        /* Aplica el gradiente solo al texto */
    }

    /* Rota el ícono cuando el menú está abierto */
    .menu-toggle.open {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    /* Cambia el ícono (por ejemplo, a una X) cuando el menú está abierto */
    .menu-toggle.open i::before {
        content: "\f00d";
        /* Ícono "X" de Font Awesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
    }

    /* Estilo del footer en móviles */
    footer {
        width: 95%;
        border-radius: 80px;
        /* Bordes redondeados */
    }

    /* Cambia el layout del contenido del footer a columna */
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    /* Estilo base de los submenús */
    .submenu {
        position: absolute;
        margin-top: -1px;
        top: 100%;
        /* Aparece justo debajo del elemento padre */
        left: 0;
        background-color: #07223d;
        /* Fondo degradado */
        border-radius: 10px;
        width: max-content;
        opacity: 0;
        /* Oculto por defecto */
        visibility: hidden;
        /* No visible */
        transition: none 0.5s ease;
        /* Sin transición en este breakpoint */
        z-index: 1001;
    }

    /* Submenú de segundo nivel (submenu dentro de otro submenu) */
    .submenu-nivel-2 {
        top: 0;
        left: 100%;
        /* Se posiciona a la derecha del submenu padre */
        margin-left: -1px;
        background-color: #07223d;
        /* Otro degradado */
    }

    /* Estilo del texto de los ítems del menú */
    nav ul li a {
        text-decoration: none;
        font-size: 13px;
        font-family: 'Shadows Into Light', cursive;
        /* Fuente manuscrita */
        color: #ffffff;
        padding: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
        /* Transición suave al interactuar */
    }

    .logo {
        height: 50px;
    }

    .logo img {
        height: 60px;
        width: 250px;
        margin-left: 80px;
    }

    /*LOGO GEU*/
    .logoGEU {
        position: absolute;
        top: 495px;
        right: 300px;
        z-index: 999;
    }

    .logoGEU img {
        max-width: 100px;
        width: 80%;
        height: auto;
        transition: transform 0.3s ease;
    }

    .logoGEU {
        display: none;
    }

    nav ul li a {
        font-size: 14px;
        font-family: 'Roboto', sans-serif;
    }

    /*SLIDER RESPONSIVO*/
    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.3);
        color: var(--color-blanco);
        border: none;
        padding: 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        border-radius: 50%;
        transition: background-color 0.3s;
        z-index: 10;
    }

    .prev-btn,
    .next-btn {
        background-color: #b4009e;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 18px;
        border-radius: 55px;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out;
    }

    .prev-btn {
        left: .01rem;
    }

    .next-btn {
        right: .01rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .slider-container {
        position: relative;
        width: 100%;
        height: 70vh;
        overflow: hidden;
        margin-top: 10px;
        padding-top: 0;
    }

    footer {
        width: 95%;
        border-radius: 80px;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content p {
        font-size: 14px;
        font-family: 'Roboto', sans-serif;
    }
}

/* ===================== TIPOGRAFÍA GLOBAL ===================== */
h1, h2, h3 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

p, span, li, a {
    color: #07223d;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-family: 'Shadows Into Light', cursive;
    font-size: 20px;
    line-height: 1.7;
}

.texto-destacado { color: #07223d; font-size: 20px; font-weight: bold; text-shadow: 2px 2px 6px rgba(0,0,0,0.7); letter-spacing: 3px; }

/* ===================== CONTENEDOR GLASSMORPHISM COMPARTIDO ===================== */
.historia-container,
.mision-container,
.decalogo-container,
.directorio-section,
.plan-estudios-section {
    background: rgba(7, 34, 61, 0.67);
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.35);
    max-width: 1000px;
    width: 85%;
    margin: 120px auto 0;
    text-align: center;
}

.plan-estudios-section { max-width: 1200px; width: 90%; font-family: 'Poppins', sans-serif; }
.directorio-section { margin: 100px auto; }

/* CONTENIDO CON FONDO BLANCO */
.historia-content,
.mision-content,
.decalogo-content {
    position: relative;
    width: 100%;
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    color: #3e006f;
    font-size: 18px;
    line-height: 1.8;
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.historia-content::before,
.mision-content::before,
.decalogo-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #ffffff;
    filter: blur(3px);
    z-index: -1;
}

.historia-content:hover,
.mision-content:hover,
.decalogo-content:hover { transform: scale(1.02); }

.historia-content h1,
.mision-content h1,
.decalogo-content h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 38px;
    background-color: #07223d;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 3px solid #07223d;
    display: inline-block;
    padding-bottom: 10px;
}

/* ===================== DIRECTORIO ===================== */
.directorio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }

.directorio-card {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background-color: white;
    text-align: center;
    color: #3e006f;
    font-size: 16px;
    margin: 10px;
    line-height: 1.6;
    transition: transform 0.3s ease;
    word-wrap: break-word;
    overflow: hidden;
    z-index: 1;
}

.directorio-card::before { content: ""; position: absolute; top:0; left:0; width:100%; height:100%; background-color: #ffffff; filter: blur(1.5px); z-index: -1; }
.directorio-card h3 { font-size: 20px; margin-bottom: 15px; }
.directorio-card a { color: #4600a2; text-decoration: none; word-wrap: break-word; font-size: 16px; }
.directorio-card a:hover { text-decoration: underline; }

/* ===================== GALERÍA ===================== */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 9999;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-img { max-width: 90%; max-height: 80vh; opacity: 0; transform: scale(0.8); transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; border-radius: 10px; }
.lightbox.open .lightbox-img { opacity: 1; transform: scale(1); }

.lightbox .close { position: absolute; top: 20px; right: 20px; font-size: 30px; color: #fff; cursor: pointer; transition: color 0.3s ease; }
.lightbox .close:hover { color: #07223d; }

.lightbox .prev,
.lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2rem; color: white; cursor: pointer; background: rgba(7,34,61,0.5); border: none; padding: 10px 15px; border-radius: 50%; transition: background 0.3s; }
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .prev:hover,
.lightbox .next:hover { background: rgba(7,34,61,0.9); }

.dots-container { display: flex; gap: 8px; margin-top: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.3s; }
.dot.active { background: #ffffff; }

main.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
    background: rgba(7, 34, 61, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.25);
    max-width: 1200px;
    width: 90%;
    margin: 100px auto;
    position: relative;
    z-index: 1;
}

.card { background-color: rgba(7,34,61,0.3); border-radius: 16px; box-shadow: 0 6px 15px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.3s ease; text-align: center; }
.card img { width: 100%; height: auto; border-radius: 8px; transition: transform 0.3s ease-in-out; cursor: pointer; }
.card img:hover { transform: scale(1.05); }
.card p { padding: 15px; font-size: 1.3rem; font-weight: 500; color: #ffffff; }

/* ===================== PLAN DE ESTUDIOS ===================== */
.plan-estudios-section h2 { color: #07223d; font-size: 35px; transition: color 0.3s ease; }
.plan-estudios-section h2:hover { color: #b4009e; }

.plan-estudios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }

.plan-estudios-card {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background-color: rgba(7,34,61,0.8);
    color: #ffffff;
    font-size: 16px;
    text-align: left;
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.plan-estudios-card::before { content: ""; position: absolute; top:0; left:0; width:100%; height:100%; background-color: #ffffff; filter: blur(3.8px); z-index: -1; }
.plan-estudios-card ul li i { color: #07223d; margin-right: 8px; transition: color 0.3s ease, transform 0.3s ease; }
.plan-estudios-card ul li:hover i { color: #b4009e; transform: translateY(-3px) scale(1.1); }

.grado-titulo { font-size: 20px; margin-bottom: 10px; color: #07223d; text-align: center; }
.grado-numero { width: 80px; height: 80px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(7,34,61,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: bold; color: #07223d; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.categoria { margin-top: 1.5rem; }
.categoria h4 { background-color: #07223d; color: #fff; padding: 0.5rem 1rem; border-radius: 10px; font-size: 1rem; margin-bottom: 0.5rem; text-align: center; }
.categoria ul { list-style: none; padding: 0; margin: 0; }
.categoria li { background: rgba(7,34,61,0.1); margin: 0.25rem 0; padding: 0.5rem 1rem; border-radius: 8px; color: #07223d; font-weight: 500; }

/* ===================== SERVICIOS ===================== */
.servicios-section { padding: 40px 20px; max-width: 1200px; margin: 50px auto 0; text-align: center; }
.servicios-section h2 { font-size: 2.5em; font-weight: bold; color: #07223d; }
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; padding: 0 20px; }
.servicio-card { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.85); border-radius: 16px; padding: 15px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s ease; font-family: 'Poppins', sans-serif; }
.servicio-card:hover { transform: translateY(-4px); }
.servicio-card .icon { font-size: 24px; color: white; padding: 12px; border-radius: 50%; flex-shrink: 0; }

/* ===================== CLUBES ===================== */
.blur-title-container { display: inline-block; padding: 20px 40px; margin-bottom: -50px; background: rgba(7,34,61,0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); }
.clubes-section { padding: 40px 20px; text-align: center; max-width: 1200px; margin: 50px auto 0; }
.clubes-section h2 { font-size: 2.5em; font-weight: bold; color: #07223d; }
.clubes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding: 0 20px; }
.club-card { background: rgba(255,255,255,0.7); border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden; transition: transform 0.3s ease; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3); }
.club-card:hover { transform: translateY(-5px); }
.club-card img { width: 100%; height: 160px; object-fit: cover; }
.club-card h3 { font-size: 1.1em; font-weight: 600; padding: 15px; color: #07223d; display: flex; align-items: center; justify-content: center; gap: 8px; }
.club-card h3 i { color: #07223d; transition: transform 0.3s ease; }
.club-card:hover h3 i { transform: scale(1.2); color: #b4009e; }

/* ===================== ADMISIÓN ===================== */
.admision-container {
    background: rgba(7, 34, 61, 0.67);
    padding: 40px;
    max-width: 900px;
    margin: 120px auto;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    color: #fff;
}

.admision-container h1 { color: #ffffff; font-size: 38px; margin-bottom: 40px; background-color: #07223d; -webkit-background-clip: text; -webkit-text-fill-color: transparent; border-bottom: 3px solid #07223d; display: inline-block; padding-bottom: 10px; }

.tabs { display: flex; justify-content: center; margin-bottom: 30px; }
.tab { background: #333; border: none; padding: 15px 30px; cursor: pointer; color: #fff; font-size: 16px; transition: background 0.3s; border-radius: 10px 0px 10px 0px; margin: 0 5px; }
.tab.active { background: #07223d; }
.tab i { color: white; margin-right: 8px; }

.sistema-content { background: #fff; color: #07223d; padding: 30px; border-radius: 20px; animation: fadeIn 0.4s ease-in-out; border: 4px solid #07223d; }
.hidden { display: none; }
.titulo-sistema { text-align: center; font-size: 28px; font-weight: bold; color: #07223d; margin-bottom: 10px; }
.subtitulo-sistema { text-align: center; font-size: 18px; font-weight: 500; margin: 5px 0; }
.seccion-sistema { font-size: 20px; font-weight: bold; color: #333; margin-top: 25px; }

.lista-documentos, .lista-escolarizado { list-style: none; padding-left: 0; }
.lista-documentos li, .lista-escolarizado li { margin: 10px 0; font-size: 16px; display: flex; align-items: center; }
.lista-documentos li i, .lista-escolarizado li i { color: #07223d; margin-right: 10px; }

.admision-cards { display: flex; flex-direction: column; gap: 30px; }
.admision-card { background-color: #ffffff; border-radius: 15px; padding: 30px; box-shadow: 0px 6px 20px rgba(0,0,0,0.25); transition: transform 0.3s ease; color: #07223d; text-align: left; }
.admision-card:hover { transform: scale(1.02); }
.admision-card h2 { font-size: 28px; color: #07223d; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.admision-card ul { padding-left: 20px; list-style: none; }
.admision-card ul li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: #07223d; margin-right: 10px; }
.admision-card ul li { margin-bottom: 10px; font-size: 18px; font-family: 'Shadows Into Light', cursive; }

.mixto-imagen-container { text-align: center; margin-top: 30px; }
.mixto-imagen { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
.mixto-imagen:hover { transform: scale(1.03); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 768px) { .admision-cards { flex-direction: row; justify-content: space-between; } .admision-card { width: 48%; } }

/* ===================== CONTACTO ===================== */
.contact-section {
    background: rgba(7, 34, 61, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    max-width: 900px;
    width: 85%;
    margin: 100px auto;
    padding: 40px 30px;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

.form-group { position: relative; margin-top: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 12px; font-size: 16px; background-color: #ffffffc4; border: 2px solid #07223d; border-radius: 12px; transition: all 0.3s ease; }
.form-group label { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background-color: transparent; padding: 0 6px; color: #888; font-size: 16px; pointer-events: none; transition: all 0.4s ease; }
.form-group input:focus + label, .form-group input:not(:placeholder-shown) + label, .form-group textarea:focus + label, .form-group textarea:not(:placeholder-shown) + label { top: -8px; font-size: 14px; color: #07223d; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.legal-text { text-align: justify; color: #ffffff; }

.contact-section h2 { font-size: 32px; color: #ffffff; text-align: center; margin-bottom: 20px; }
.contact-section form { display: grid; gap: 20px; }
.contact-section input, .contact-section textarea { width: 100%; padding: 12px; border: 2px solid #07223d; border-radius: 12px; background-color: #ffffffc4; font-size: 16px; font-family: 'Poppins', sans-serif; transition: all 0.3s ease; }
.contact-section input:focus, .contact-section textarea:focus { outline: none; border-color: #07223d; box-shadow: 0 0 10px rgba(7,34,61,0.3); background-color: #fff; }
.contact-section button { background: #07223d; color: #fff; padding: 14px 25px; font-size: 16px; border: none; border-radius: 30px; cursor: pointer; font-weight: bold; align-self: center; width: fit-content; margin: auto; transition: background 0.3s ease, transform 0.3s ease; }
.contact-section button:hover { background: #b4009e; transform: scale(1.05); }

/* Colores compartidos */
.bg-cyan { background: #00acc1; }
.bg-purple { background: #07223d; }
.bg-pink { background: #b4009e; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 768px) {
    .historia-container, .mision-container, .decalogo-container { padding: 20px; width: 95%; margin-top: 120px; }
    .historia-content, .mision-content, .decalogo-content { padding: 20px 25px; font-size: 16px; }
    .historia-content h1, .mision-content h1, .decalogo-content h1 { font-size: 28px; }
    .plan-estudios-section { padding: 20px; margin: 100px auto; width: 95%; }
    .plan-estudios-grid { grid-template-columns: 1fr; gap: 16px; }
    .clubes-grid { grid-template-columns: 1fr; padding: 0 10px; gap: 15px; }
    .club-card img { height: 140px; }
    main.galeria { padding: 20px; gap: 15px; }
    p, span, li, a { font-family: 'Roboto', sans-serif; font-size: 18px; line-height: 1.5; }
}

/* ===================== CONTACTO - MAPA Y LAYOUT ===================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-container iframe {
    display: block;
    width: 100%;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}
