/*
Theme Name: ESPE Modern
Theme URI: https://ugp.espe.edu.ec
Author: Antigravity AI
Description: Un tema moderno, innovador y rápido para el Centro de Posgrados ESPE.
Version: 1.0
Text Domain: espe-modern
*/

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #00723D;
    /* Verde Institucional ESPE */
    --secondary-color: #00723D;
    --accent-color: #00723D;
    --text-main: #4D4D4D;
    /* Gris Textos */
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 17px;
    /* Rango 16-18px solicitado */
    overflow-x: hidden;
}

p,
li,
span,
div {
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Top Bar Premium Institucional */
.top-bar-premium {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 10px 0;
    font-size: 14px;
    /* Tamaño exacto solicitado */
    font-family: "Helvetica", Sans-serif;
    font-weight: 500;
    position: relative;
    /* Para el canvas */
    overflow: hidden;
}

#top-bar-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.top-bar-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.top-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-search input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    font-family: "Helvetica", Sans-serif;
    font-weight: 500;
    padding: 2px 5px;
    width: 180px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    outline: none;
}

.top-search input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.top-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

.top-links a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 14px;
}

.top-social {
    display: flex;
    gap: 1.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 2rem;
}

.top-social a {
    color: white !important;
    font-size: 14px;
}

.top-lang {
    display: flex;
    gap: 12px;
}

/* Header Principal */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    text-transform: none;
    white-space: nowrap;
    display: block;
    padding: 1rem 0;
}

.btn-postula {
    background: #00723D;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 114, 61, 0.2);
    text-transform: none;
    border: none;
    white-space: nowrap;
}

.btn-postula:hover {
    background: #005a30;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 114, 61, 0.3);
    text-decoration: none !important;
}

.menu-item-has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    padding: 1.5rem 0;
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-item-has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    min-height: 400px;
}

.mega-sidebar {
    width: 250px;
    border-right: 1px solid #eee;
}

.mega-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.mega-sidebar li {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    border-radius: 8px 0 0 8px;
}

.mega-sidebar li:hover,
.mega-sidebar li.active {
    background: #00723D;
    color: white;
}

.mega-content {
    flex: 1;
    padding: 0 2.5rem 0 2rem;
    /* Añadido espacio significativo a la derecha */
}

.mega-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mega-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.pane-links h3 {
    font-size: 18px !important;
    /* Incrementado de 14px a 18px */
    color: #00723D;
    /* Cambiado a verde institucional para mejor visibilidad */
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    font-weight: 800;
}

.pane-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem !important;
}

.pane-links a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s ease;
}

.pane-links a:hover {
    color: #00723D !important;
    transform: translateX(5px);
}

.pane-links a i {
    color: #00723D;
}

.featured-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-right: 1rem;
    /* Espacio extra para que no pegue al borde derecho */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.featured-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.featured-card h4 {
    font-size: 18px;
    margin-bottom: 0.5rem;
    color: #00723D;
}

.featured-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.featured-card .read-more {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #00723D !important;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Dropdown Sub-menus */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    flex-direction: column;
    padding: 0.75rem 0 !important;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.main-nav li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-menu a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

/* Third Level + Dropdowns */
.sub-menu .sub-menu {
    top: -0.75rem;
    left: 100%;
    transform: translateX(10px);
}

.sub-menu li:hover>.sub-menu {
    transform: translateX(0);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0.75rem 1.5rem;
    }

    .main-nav li {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        transition: var(--transition);
        overflow-y: auto;
        padding-bottom: 50px;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav a {
        padding: 1.25rem 2rem;
        border-bottom: 1px solid #f1f5f9;
        font-size: 0.9rem;
        justify-content: space-between;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: #f8fafc;
        width: 100%;
        padding-left: 1rem !important;
        border-radius: 0;
        border: none;
        border-left: 3px solid var(--primary-color);
    }

    .has-children.active>.sub-menu {
        display: block;
    }

    .lang-switcher {
        display: none;
    }
}

/* Hero Slider Premium v5 - ESPE Exact Match */
.hero-slider-premium {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background: #ffffff;
    overflow: hidden;
    font-family: 'Helvetica', sans-serif;
}

.hero-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide-item.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.9) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 80%);
    z-index: 2;
}

.slide-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-info-box {
    max-width: 550px;
}

.slide-tag {
    display: inline-block;
    background: rgba(230, 230, 230, 0.6);
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.slide-info-box h2 {
    margin-bottom: 1.5rem;
    line-height: 0.9;
    text-transform: uppercase;
}

.slide-info-box h2 .first-part {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #4D4D4D !important;
}

.slide-info-box h2 .second-part {
    display: block;
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--primary-color) !important;
    letter-spacing: -1px;
}

.slide-info-box p {
    font-size: 18px;
    color: #444;
    margin-bottom: 2.5rem;
    line-height: 1.3;
    max-width: 480px;
}

/* Botones */
.hero-btn-group {
    display: flex;
    gap: 15px;
}

.hero-btn-group .btn {
    padding: 10px 25px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-group .btn-primary {
    background-color: #2DAD63;
    /* Verde más vibrante para botones como en captura */
    color: white !important;
    border: none;
}

.hero-btn-group .btn-outline {
    background-color: rgba(255, 255, 255, 0.5);
    color: #00723D !important;
    border: 1px solid #00723D;
}

/* Navegación - Puntos estilo Pill */
.hero-nav-dots {
    position: absolute;
    bottom: 40px;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.nav-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    width: 25px;
    height: 6px;
    background: #2DAD63;
    border-radius: 10px;
}

/* Flechas - Lado derecho */
.hero-arrows {
    position: absolute;
    bottom: 30px;
    right: 4rem;
    display: flex;
    gap: 15px;
    z-index: 20;
}

.hero-arrow {
    width: 45px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #666;
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .slide-bg-image {
        width: 100%;
        opacity: 0.2;
    }

    .slide-content-wrapper {
        padding: 0 2rem;
        text-align: center;
    }

    .slide-info-box {
        max-width: 100%;
        text-align: center;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .hero-nav-dots {
        left: 50%;
        transform: translateX(-50%);
    }

    .slide-info-box h2 .first-part {
        font-size: 2rem;
    }

    .slide-info-box h2 .second-part {
        font-size: 2.2rem;
    }
}

/* Section Cards Layout */
.section-wrapper {
    padding: 4rem 2rem;
    background-color: var(--bg-light);
}

.section-card {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 2rem;
    padding: 5rem 4rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: fadeInUp 0.8s ease-out forwards;
}

@media (max-width: 768px) {
    .section-card {
        padding: 3rem 1.5rem;
        border-radius: 1.5rem;
    }

    .section-wrapper {
        padding: 2rem 1rem;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Helvetica', sans-serif;
}

.btn-primary,
button,
input[type="submit"],
.elementor-button {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none;
}

.btn-primary:hover,
button:hover,
input[type="submit"]:hover,
.elementor-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 114, 61, 0.4);
    background-color: #005a30 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 2rem 0;
    /* Reduced as padding is now in .section-card */
    animation: none;
    /* Handled by .section-card */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out forwards;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 35px;
    /* Títulos solicitados */
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Helvetica', sans-serif;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

h1,
h2,
h3 {
    font-size: 35px !important;
    color: var(--primary-color) !important;
    font-family: 'Helvetica', sans-serif !important;
}

h4,
h5,
h6 {
    font-size: 14px !important;
    /* Subtítulos solicitados */
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Helvetica', sans-serif !important;
}

.text-content-limit {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Card Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.premium-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-card:hover .card-img {
    transform: scale(1.08);
    /* Zoom effect on hover */
}

.card-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
    line-height: 1.3;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer Premium Innovador */
.footer-premium {
    background-color: var(--primary-color);
    background: linear-gradient(180deg, #00723D 0%, #005a30 100%);
    position: relative;
    padding: 6rem 0 3rem 0;
    color: var(--white);
    overflow: hidden;
    font-family: 'Helvetica', sans-serif;
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

.footer-grid-premium {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Logo blanco */
}

.footer-title-premium {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.footer-links-premium {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-premium li {
    margin-bottom: 1rem;
}

.footer-links-premium a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links-premium a:hover {
    color: var(--white) !important;
    transform: translateX(5px);
    text-decoration: none !important;
}

.footer-bottom-premium {
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-legal-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--white) !important;
}

.footer-social-premium {
    display: flex;
    gap: 1.5rem;
}

.footer-social-premium a {
    color: var(--white) !important;
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-social-premium a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .footer-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .footer-bottom-premium {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid-premium {
        grid-template-columns: 1fr;
    }

    .footer-premium {
        padding: 4rem 0 2rem 0;
    }
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    right: 30px;
    /* Changed to match common scroll-to-top positions */
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
}

.accessibility-btn:hover {
    transform: scale(1.1);
}

.accessibility-btn img {
    width: 25px;
    height: 25px;
    filter: invert(1);
}

/* Logos Refinement */
.grid img[alt="Convenios"],
.grid img[alt="Idiomas"],
.grid img[alt="Educación Continua"],
.grid img[alt="Radio ESPE"] {
    max-height: 60px;
    width: auto;
    filter: grayscale(1) brightness(0.8);
    opacity: 0.6;
    transition: var(--transition);
}

.grid div:hover img[alt] {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Quick Access Innovative Layout */
.quick-access-section {
    background-color: var(--white);
    overflow: hidden;
}

.quick-access-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.quick-access-content h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.quick-access-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.quick-access-title h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.quick-access-title .divider {
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 2rem;
}

.quick-access-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-modern {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.btn-modern:hover {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.btn-modern .icon {
    font-size: 1.5rem;
    background: var(--white);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Image Cluster */
.quick-access-visual {
    position: relative;
    height: 500px;
}

.image-cluster {
    position: relative;
    width: 100%;
    height: 100%;
}

.cluster-img {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.cluster-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-1 {
    width: 280px;
    height: 280px;
    top: 0;
    left: 10%;
    z-index: 3;
}

.img-2 {
    width: 220px;
    height: 220px;
    bottom: 50px;
    right: 5%;
}

.img-3 {
    width: 180px;
    height: 180px;
    bottom: 100px;
    left: 0;
}

.cluster-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 107, 63, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

/* Floating Animation */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@media (max-width: 992px) {
    .quick-access-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quick-access-title .divider {
        margin: 0 auto 2rem;
    }

    .btn-modern {
        justify-content: center;
    }

    .quick-access-visual {
        height: 400px;
        margin-top: 3rem;
    }

    .img-1 {
        width: 200px;
        height: 200px;
    }

    .img-2 {
        width: 160px;
        height: 160px;
    }

    .img-3 {
        width: 140px;
        height: 140px;
    }
}

/* Destacados Section */
.destacados-section {
    text-align: center;
}

.destacados-buttons {
    display: flex;
    justify-content: center;
    gap: 10rem;
    margin: 4rem 0;
}

.circle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    transition: var(--transition);
}

.circle-icon {
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--white);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.circle-btn:hover .circle-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.circle-btn:hover {
    color: var(--primary-color);
}

/* Logos Layouts */
.destacados-logos-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    align-items: center;
    margin: 5rem 0;
    padding: 0 2rem;
}

.logo-item img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.destacados-logos-small {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding-top: 3rem;
    border-top: 1px solid #f1f5f9;
}

.destacados-logos-small img {
    max-height: 40px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
}

.destacados-logos-small img:hover {
    filter: grayscale(0);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .destacados-buttons {
        gap: 3rem;
        flex-direction: column;
    }

    .destacados-logos-main {
        grid-template-columns: 1fr 1fr;
    }

    .destacados-logos-small {
        gap: 2rem;
    }
}

/* ---------------------------------------------------------
   TRANSPARENCIA PAGE
   --------------------------------------------------------- */
.transparencia-page {
    background: #f8fafc;
    min-height: 100vh;
    padding-top: 80px;
    /* Space for fixed header */
    padding-bottom: 5rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
    letter-spacing: -0.02em;
}

.page-hero .accent {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.page-hero .badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Container for Transparencia */
.transparencia-container {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
    padding: 3rem !important;
}

.transparencia-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 107, 63, 0.1) 0%, rgba(0, 107, 63, 0.05) 100%);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 1px solid rgba(0, 107, 63, 0.1);
}

.header-text h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin: 0;
}

.header-text p {
    color: var(--text-muted);
    margin: 0.5rem 0 0;
}

/* Modern Tabs */
.tabs-nav-wrapper {
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tab-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Document Cards Grid */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
}

.doc-card {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.doc-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(0, 107, 63, 0.1);
    transform: translateY(-3px);
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: #fff5f5;
    color: #e53e3e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.doc-card:hover .doc-icon {
    background: #e53e3e;
    color: var(--white);
    transform: scale(1.1);
}

.doc-info {
    flex-grow: 1;
}

.doc-literal {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(0, 107, 63, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.doc-info h3 {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.doc-meta {
    margin-left: 1rem;
    text-align: right;
}

.doc-size {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.download-btn {
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.5;
    transition: var(--transition);
}

.doc-card:hover .download-btn {
    opacity: 1;
    transform: translateY(2px);
}

/* Animations */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .doc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .transparencia-container {
        padding: 2rem !important;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }
}

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

    .transparencia-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* History Page Styles */
.history-hero {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.history-hero .hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.history-hero .hero-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), var(--secondary-color), transparent);
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 107, 63, 0.5);
}

.timeline-date {
    width: 45%;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary-color);
    padding-top: 15px;
}

.timeline-content {
    width: 45%;
    padding: 2.5rem !important;
    position: relative;
    transition: var(--transition);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.timeline-img {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.timeline-img img {
    width: 100%;
    height: auto;
    display: block;
}

.timeline-quote {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 600;
}

.reveal-left .timeline-content {
    text-align: right;
    order: 1;
}

.reveal-left .timeline-date {
    text-align: left;
    order: 2;
    padding-left: 3rem;
}

.reveal-right .timeline-content {
    text-align: left;
    order: 2;
}

.reveal-right .timeline-date {
    text-align: right;
    order: 1;
    padding-right: 3rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.timeline-content.highlighted {
    border: 2px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
}

.history-footer {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    color: var(--text-muted);
}

/* Animations for timeline Reveal (JS required or CSS @scroll) */
.timeline-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-date,
    .timeline-content {
        width: 100%;
        text-align: left !important;
        order: unset !important;
        padding: 0 !important;
    }

    .timeline-date {
        margin-bottom: 1rem;
    }

    .timeline-content {
        margin-bottom: 2rem;
        padding: 1.5rem !important;
    }
}

/* Authorities Page Styles */
.authority-profile-wrapper {
    margin-top: -6rem;
    position: relative;
    z-index: 10;
}

.authority-card {
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.authority-grid {
    display: grid;
    grid-template-columns: 40% 60%;
}

.authority-image-side {
    background: #f8fafc;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.authority-info-side {
    padding: 4rem 3rem;
    background: var(--white);
}

.authority-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.authority-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.authority-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.authority-details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-text strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.detail-text span,
.detail-text a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.authority-quote {
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .authority-grid {
        grid-template-columns: 1fr;
    }

    .authority-info-side {
        padding: 3rem 2rem;
    }
}

/* Campus Page Styles */
.campus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.campus-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.campus-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.campus-features li i {
    color: var(--primary-color);
    width: 20px;
}

.campus-media {
    width: 100%;
    overflow: hidden;
}

.campus-media img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    display: block;
    box-shadow: var(--shadow-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 3rem 2rem !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.service-price {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.service-price strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-bullets {
    text-align: left;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-bullets li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-contact {
    text-align: left;
    background: rgba(0, 107, 63, 0.05);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.service-steps {
    text-align: left;
}

.service-steps ol {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.service-steps li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .campus-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Philosophy Page Styles */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: -8rem;
    position: relative;
    z-index: 10;
}

.mv-card {
    padding: 4rem 3rem !important;
    text-align: center;
}

.mv-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.mv-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.mv-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Decálogo Styles */
.decalogo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.decalogo-item {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.decalogo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.decalogo-number {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 900;
    color: rgba(0, 107, 63, 0.1);
    line-height: 1;
}

.decalogo-item p {
    margin: 0;
    font-weight: 500;
    color: var(--secondary-color);
}

/* Valores Grid */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.valor-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    color: var(--secondary-color);
}

.valor-card:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.valor-card i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.valor-card span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-dark {
    background: var(--secondary-color);
}

.signature {
    margin-top: 3rem;
    font-family: var(--font-header);
    color: var(--primary-color);
    font-size: 1.25rem;
}

@media (max-width: 992px) {

    .mv-grid,
    .decalogo-grid {
        grid-template-columns: 1fr;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Page Styles */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: -6rem;
    position: relative;
    z-index: 10;
}

.support-card {
    text-align: center;
    padding: 3rem 2rem !important;
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.support-icon.whatsapp {
    color: #25D366;
}

.support-icon.email {
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Directory Grid */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.directory-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.directory-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.directory-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 1rem;
}

.directory-header i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.directory-header h3 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin: 0;
}

.directory-body p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
}

.directory-body i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 4px;
}

.directory-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.location-badge {
    display: inline-block;
    background: rgba(0, 107, 63, 0.05);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 900px) {

    .support-grid,
    .directory-grid {
        grid-template-columns: 1fr;
    }
}

/* Alumni Page Styles */
.tabs-container {
    margin-top: 3rem;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: none;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--white);
}

.tabs-body {
    padding: 4rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.c-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.c-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

/* Video Grid and Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    padding: 0 !important;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.v-info {
    padding: 1.5rem;
    background: var(--white);
}

.v-info strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.v-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Magazine Section */
.magazine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.mag-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.mag-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.mag-img {
    width: 100%;
    border-radius: 1rem;
    transform: rotate(2deg);
    transition: var(--transition);
}

.mag-img:hover {
    transform: rotate(0deg) scale(1.02);
}

@media (max-width: 992px) {
    .tabs-header {
        flex-direction: column;
    }

    .tabs-body {
        padding: 2rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

/* Titulación Page Styles */
.academic-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.academic-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.academic-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.two-col-list {
    column-count: 2;
    column-gap: 2rem;
}

@media (max-width: 768px) {
    .two-col-list {
        column-count: 1;
    }
}

.info-alert {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
    color: #0369a1;
}

.info-alert i {
    font-size: 1.5rem;
    color: #0ea5e9;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.step-num {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Download Banner */
.download-banner {
    background: var(--secondary-color);
    border-radius: 2rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.d-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.d-text h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.d-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .download-banner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .download-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Idioma Page Specifics */
.important-note {
    background: rgba(239, 68, 68, 0.05) !important;
    border-left: 4px solid #ef4444 !important;
    padding: 2rem !important;
    margin-top: 2.5rem;
}

.important-note h4 {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.important-note p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-main);
}

/* Regulatory Document Center */
.document-center-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.document-card {
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem !important;
    text-align: center;
    height: 100%;
}

.doc-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.doc-info h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.doc-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 3em;
}

.document-card .btn {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 900px) {
    .document-center-grid {
        grid-template-columns: 1fr;
    }
}

/* Secondary Navigation */
.secondary-nav {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.quick-links li a {
    display: block;
    padding: 1.5rem 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.quick-links li a.active,
.quick-links li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.quick-links li a i {
    margin-right: 0.5rem;
}

/* Resource Download Card */
.download-resource-card {
    margin-top: 2rem;
    padding: 2.5rem !important;
}

.res-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.res-header i {
    font-size: 2.5rem;
    color: #ef4444;
    /* PDF Color */
}

.res-header div strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.res-header div span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-full {
    width: 100%;
}

@media (max-width: 768px) {
    .secondary-nav {
        display: none;
        /* Hide on mobile to simplify */
    }
}

/* =============================================
   Admisiones Page Styles
   ============================================= */

.req-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.req-two-col h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.text-primary {
    color: var(--primary-color);
}

/* Phases Grid */
.phases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.phase-card {
    display: flex;
    flex-direction: column;
    padding: 3rem 2.5rem !important;
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.phase-header h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 0;
}

.phase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 2rem;
}

/* Payment Highlight */
.payment-highlight {
    padding: 3rem !important;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--secondary-color), #005a30) !important;
    color: white;
}

.payment-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.payment-highlight h3 {
    font-size: 1.8rem;
    color: white !important;
    margin-bottom: 0.5rem;
}

.price-tag {
    color: var(--primary-color);
    font-size: 2rem;
}

.payment-highlight p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.payment-warning {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-warning i {
    color: #fbbf24;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Accordion */
.accordion-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary-color);
    text-align: left;
}

.accordion-btn span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-btn span i {
    color: var(--primary-color);
}

.accordion-icon {
    transition: transform 0.35s ease;
    color: var(--text-muted);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.accordion-item.active .accordion-body {
    max-height: 600px;
    padding: 0 2rem 2rem;
}

/* Bank Cards */
.bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.bank-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
}

.bank-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Social Buttons */
.social-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn.fb {
    background: #1877f2;
    color: white;
}

.social-btn.wa {
    background: #25d366;
    color: white;
}

.social-btn.yt {
    background: #ff0000;
    color: white;
}

.social-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Utilities */
.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.info-row i {
    color: var(--primary-color);
}

@media (max-width: 992px) {

    .req-two-col,
    .phases-grid,
    .bank-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Postulacion Maestrias Page Styles
   ============================================= */

/* Step Indicator Bar */
.steps-indicator-section {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
}

.step-bar-item.active .step-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 113, 61, 0.35);
}

.step-bar-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-bar-item.active span {
    color: var(--primary-color);
}

.step-bar-divider {
    width: 100px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
    margin-bottom: 2rem;
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 3rem;
}

.step-num-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

/* Form Card */
.form-card {
    padding: 3rem !important;
    max-width: 900px;
    margin: 0 auto;
}

.postulacion-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group select {
    padding: 0.9rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--secondary-color);
    transition: var(--transition);
    background: var(--white);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 61, 0.1);
}

.form-terms {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-submit {
    text-align: center;
    padding-top: 1rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Step 2 Grid */
.step2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.doc-download-row {
    margin-top: 2rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* Program Links */
.program-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.program-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--white);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.program-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 113, 61, 0.04);
    transform: translateX(4px);
}

.program-link i {
    color: var(--primary-color);
    flex-shrink: 0;
}

@media (max-width: 900px) {

    .form-row,
    .step2-grid {
        grid-template-columns: 1fr;
    }

    .step-bar-divider {
        width: 40px;
    }
}