/*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/1.webp') no-repeat center center fixed;
    background-size: cover;
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
    z-index: -1;
}

/*FONDO DINAMICO*/
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    z-index: -1;
    opacity: 1;
}

body.fade::before {
    opacity: 0;
}

.hero {
    margin-top: 80px;
}

/*CONTENEDOR*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER*/
header {
    background: linear-gradient(145deg, #ea87f986, #6704b84b);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 88%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 20px 25px 20px 25px;
    z-index: 1000;
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
}

.logo img {
    height: 60px;
    width: 298px;
}


/*LOGO GEU*/
.logoGEU {
    position: absolute;
    top: 10px;
    right: 30px;
    z-index: 999;
}

.logoGEU img {
    max-width: 100px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.logoGEU img:hover {
    transform: scale(1.1);
}

/*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: #9900ff;
    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 */
}


/*MENÚ*/

#menuToggle {
    display: none
}

.menu-toggle-icon {
    font-size: 20px;
    background: linear-gradient(45deg, #6108de, #ff4ec4);
    -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;
    background: linear-gradient(100deg, #6a0dad, #8600b3);
    border-radius: 10px;
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 1000;
}

/*ENLACES*/
nav ul li {
    position: relative;
    font-size: 1.2rem;
}

/* TEXTO MENU*/
nav ul li a {
    text-decoration: none;
    font-size: 14px;
    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: linear-gradient(60deg, #f265ff, #370061);
}

/*SUBMENUS*/

.submenu {
    position: absolute;
    margin-top: -1px;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, #6a0dad, #f265ff);
    border-radius: 10px;
    width: 165px;
    opacity: 0;
    visibility: hidden;
    transition: none 0.5s ease;
    z-index: 1001;
}

.submenu-nivel-2 {
    top: 0;
    left: 100%;
    margin-left: -1px;
    background: linear-gradient(180deg, #5a0a9d, #b4009e);
}

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*/
.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: #5a0a9d;
    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;
}

.submenu li a {
    color: rgb(255, 255, 255);
}

.submenu li a:hover {
    background-color: #1800b3;
}


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;
}


/*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;
}

.slider-btn:hover {
    background: linear-gradient(180deg, #3f076c, #6c0a9d);
}

.prev-btn,
.next-btn {
    background: linear-gradient(180deg, #5a0a9d, #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: 4rem;
}

.next-btn {
    right: 4rem;
}

/*FOOTER*/
footer {
    background: linear-gradient(80deg, #5a0a9d, #b4009e);
    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;
}

.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);
    filter: brightness(1.5);
}



/* 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: linear-gradient(45deg, #6800a3, #90afff);
        /* 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: linear-gradient(180deg, #6a0dad, #f265ff);
        /* Fondo degradado */
        border-radius: 10px;
        width: 170px;
        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: linear-gradient(180deg, #5a0a9d, #b4009e);
        /* 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;
    }

    .slider-btn:hover {
        background-color: rgba(252, 71, 234, 0.878);
    }

    .prev-btn,
    .next-btn {
        background-color: #1800b3;
        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;
    }
}

/* ===================== CONTENEDOR GLASSMORPHISM COMPARTIDO ===================== */
.historia-container,
.mision-container,
.decalogo-container,
.directorio-section,
.plan-estudios-section {
    background: linear-gradient(135deg, #4600a248 0%, #b760fe3d 50%, #ffb3f93e 100%);
    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;
}

/* CONTENIDO CON FONDO PAPEL */
.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,
.plan-estudios-card::before,
.directorio-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../img/img/vector-diseno-papel-blanco-blanco_53876-161340.avif');
    background-size: cover;
    background-position: center;
    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: linear-gradient(90deg, #5f00a3, #4c006a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 3px solid #eabaff;
    display: inline-block;
    padding-bottom: 10px;
}

.decalogo-content strong { color: #0056b3; font-size: 1.2em; font-weight: bold; }

/* ===================== DIRECTORIO ===================== */
.directorio-section { margin: 100px auto; }

.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 { filter: blur(1.5px); }
.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.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

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

.lightbox-img {
    max-width: 90%; max-height: 90%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.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: rgb(132, 24, 255); }

main.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
    background: linear-gradient(135deg, #4600a248 0%, #b760fe3d 50%, #ffb3f93e 100%);
    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: #ff94d83b;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card img {
    width: 100%; height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, opacity 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: #333333; }

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

.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: rgb(179, 47, 236);
    color: #6410a5;
    font-size: 16px;
    text-align: left;
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.plan-estudios-card::before { filter: blur(3.8px); }
.plan-estudios-card ul li i { color: #a931e0; margin-right: 8px; transition: color 0.3s ease, transform 0.3s ease; }
.plan-estudios-card ul li:hover i { color: #470b6c; transform: translateY(-3px) scale(1.1); }

.grado-titulo { font-size: 20px; margin-bottom: 10px; color: #78188e; text-align: center; }

.grado-numero {
    width: 80px; height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f1b0ffc0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #240040;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.categoria { margin-top: 1.5rem; }
.categoria h4 { background-color: #6a0dad; 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: #f7c9ff4a; margin: 0.25rem 0; padding: 0.5rem 1rem; border-radius: 8px; color: #4d008b; 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;
    background: linear-gradient(to left, #e91e63, #6a1b9a, #0000df);
    -webkit-background-clip: text;
    color: transparent;
    animation: colorChange 2s linear infinite;
}

.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, 215, 254, 0.947);
    border-radius: 16px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.servicio-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.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(255, 255, 255, 0.484);
    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;
    background: linear-gradient(to left, #e91e63, #6a1b9a, #0000df);
    -webkit-background-clip: text;
    color: transparent;
    animation: colorChange 2s linear infinite;
}

@keyframes colorChange { 0% { background-position: 100%; } 100% { background-position: 0%; } }

.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.538);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 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); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.club-card img { width: 100%; height: 160px; object-fit: cover; }
.club-card h3 { font-size: 1.1em; font-weight: 600; padding: 15px; color: #6a1b9a; display: flex; align-items: center; justify-content: center; gap: 8px; transition: color 0.3s ease; }
.club-card h3 i { transition: transform 0.3s ease, color 0.3s ease; color: #6a1b9a; }
.club-card:hover h3 i { transform: scale(1.2); color: #b641ff; }

/* ===================== PROGRAMAS ADICIONALES ===================== */
.programas-section { padding: 40px 20px; text-align: center; max-width: 1200px; margin: 100px auto 0; }

.programas-section h2 {
    font-size: 2.5em;
    font-weight: bold;
    background: linear-gradient(to left, #e91e63, #6a1b9a, #0000df);
    -webkit-background-clip: text;
    color: transparent;
    animation: colorChange 2s linear infinite;
}

.programas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 100px; padding: 0 20px; }

.programa-card.custom {
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: linear-gradient(to right, #ffffff, #fd44f1e4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
    min-height: 100px;
}

.icon-area { display: flex; align-items: center; justify-content: center; width: 80px; height: 100%; padding: 20px; color: white; position: relative; }
.icon-area i { font-size: 28px; }
.icon-area::after { content: ""; position: absolute; right: -20px; top: 0; width: 0; height: 0; border-top: 50px solid transparent; border-bottom: 50px solid transparent; border-left: 20px solid rgba(255, 255, 255, 0.6); }
.text-area { padding: 20px; font-size: 1em; color: #333; font-weight: 500; flex: 1; }

/* Colores compartidos */
.bg-cyan { background: #00acc1; }
.bg-purple { background: #7e57c2; }
.bg-pink { background: #ec407a; }

/* ===================== CONTACTO ===================== */
.contact-section {
    background: linear-gradient(145deg, #e1cbfe90, #ffffff5e);
    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: var(--color-gris-oscuro);
}

.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 #c38cf0;
    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: #50007b; }

.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.legal-text { text-align: justify; }

.contact-section h2 { font-size: 32px; color: var(--color-purpura); text-align: center; margin-bottom: 20px; transition: color 0.3s ease; }
.contact-section h2:hover { color: #ff0099; }
.contact-section form { display: grid; gap: 20px; }

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #c38cf0;
    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: var(--color-purpura); box-shadow: 0 0 10px rgba(106, 13, 173, 0.2); background-color: #fff; }

.contact-section button {
    background: linear-gradient(90deg, #6a0dad, #b4009e);
    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: linear-gradient(90deg, #ff4ec4, #6a0dad); transform: scale(1.05); }

/* ===================== 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: #4d008b;
    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: #7f1fff; font-size: 20px; font-weight: bold; text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); letter-spacing: 3px; }

/* ===================== RESPONSIVO SECCIONES ===================== */
@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; padding-bottom: 8px; }

    .plan-estudios-section { padding: 20px; margin: 100px auto; width: 95%; }
    .plan-estudios-section h2 { font-size: 28px; }
    .plan-estudios-grid { grid-template-columns: 1fr; gap: 16px; }
    .plan-estudios-card { padding: 15px; font-size: 15px; }
    .grado-titulo { font-size: 18px; }
    .grado-numero { width: 60px; height: 60px; font-size: 1.5rem; }
    .categoria h4 { font-size: 0.9rem; padding: 0.4rem 0.8rem; }
    .categoria li { font-size: 0.9rem; padding: 0.4rem 0.8rem; }

    main.galeria { padding: 20px; gap: 15px; }
    .card img { height: 180px; }
    .card p { font-size: 0.95rem; }

    .blur-title-container { padding: 15px 25px; margin-bottom: -30px; }
    .clubes-section { padding: 30px 15px; }
    .clubes-section h2 { font-size: 1.8em; }
    .clubes-grid { grid-template-columns: 1fr; padding: 0 10px; gap: 15px; margin-top: 30px; }
    .club-card img { height: 140px; }
    .club-card h3 { font-size: 1em; padding: 12px; gap: 6px; }

    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;
    }
}
