/* ==========================================================================
   CUBC — Sistema de diseño
   Estética limpia tipo "fintech": tipografía precisa, gradientes mesh,
   superficies blancas con bordes finos y sombras en capas.
   ========================================================================== */

:root {
    /* Marca */
    --primary: #1B4332;
    --primary-light: #2D6A4F;
    --primary-dark: #0F2A1F;
    --mint: #52B788;
    --mint-light: #95D5B2;
    --accent: #D4AF37;
    --accent-light: #E9C46A;
    --accent-ink: #8A6D12;          /* dorado legible sobre blanco */

    /* Neutros */
    --ink: #0A2419;                 /* títulos */
    --text-main: #3C4F47;           /* texto de cuerpo */
    --text-muted: #6B7C75;
    --line: #E3E8EE;
    --line-soft: #EEF2F5;
    --bg-main: #FFFFFF;
    --bg-alt: #F6F9FC;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.78);

    /* Elevación (sombras en capas) */
    --shadow-sm: 0 1px 1px rgba(10, 36, 25, 0.04), 0 2px 5px rgba(10, 36, 25, 0.06);
    --shadow-md: 0 2px 5px -1px rgba(50, 50, 93, 0.12), 0 1px 3px -1px rgba(0, 0, 0, 0.14);
    --shadow-lg: 0 13px 27px -5px rgba(50, 50, 93, 0.22), 0 8px 16px -8px rgba(0, 0, 0, 0.28);
    --shadow-xl: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
    --nav-h: 72px;
    --topbar-h: 34px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: 'ss01', 'cv11';
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { color: var(--text-main); }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
                box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

::selection { background: rgba(82, 183, 136, 0.28); }

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 96px 0;
    position: relative;
}

.text-center { text-align: center; }
.hidden { display: none; }

/* Encabezado de sección reutilizable */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.125rem; color: var(--text-muted); margin-top: 1rem; }

.section-title { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Gradiente mesh animado
   -------------------------------------------------------------------------- */
@keyframes mesh-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

.mesh-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #F3FAF6;
    background-image:
        radial-gradient(60% 80% at 0% 0%, rgba(82, 183, 136, 0.55) 0, transparent 60%),
        radial-gradient(50% 70% at 100% 0%, rgba(212, 175, 55, 0.45) 0, transparent 60%),
        radial-gradient(60% 60% at 60% 30%, rgba(149, 213, 178, 0.55) 0, transparent 65%),
        radial-gradient(50% 60% at 20% 60%, rgba(45, 106, 79, 0.25) 0, transparent 70%);
    clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* Cuando se usa suelta (fuera de un hero), limitarla a la parte superior */
body > .mesh-bg {
    position: absolute;
    height: 620px;
}

@media (prefers-reduced-motion: reduce) {
    .mesh-bg, .hero-mesh { animation: none; }
    * { scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   Top bar + Navbar
   -------------------------------------------------------------------------- */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--topbar-h);
    z-index: 1001;
    background: var(--primary-dark);
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.top-bar .container { width: 100%; }

.top-bar a {
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.top-bar a:hover { color: #fff; }

.navbar {
    position: fixed;
    top: var(--topbar-h);
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(10, 36, 25, 0.06);
    transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 24px -12px rgba(10, 36, 25, 0.25);
}

.navbar > .container { width: 100%; }

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.logo { display: flex; align-items: center; }

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    display: inline-block;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
}

.nav-links a:hover { background: rgba(27, 67, 50, 0.06); color: var(--primary); }

.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-links li:last-child { margin-left: 0.6rem; }

.mobile-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn-cta,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    white-space: nowrap;
}

.btn-cta {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 12px -4px rgba(27, 67, 50, 0.5);
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -8px rgba(27, 67, 50, 0.6);
}

/* Flecha animada en botones: <span class="arrow"></span> */
.btn-cta .arrow,
.btn-secondary .arrow,
.link-arrow .arrow {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.15rem;
    transition: transform 0.2s var(--ease);
}

.btn-cta:hover .arrow,
.btn-secondary:hover .arrow,
.link-arrow:hover .arrow { transform: translateX(3px) rotate(45deg); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}

.btn-secondary:hover { color: var(--primary); box-shadow: inset 0 0 0 1px #CBD6DF, var(--shadow-md); }

.btn-light { background: #fff !important; color: var(--primary) !important; }
.btn-light:hover { background: #F1F7F4 !important; }

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary-light);
}

.link-arrow:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   Hero (páginas interiores)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(var(--topbar-h) + var(--nav-h) + 88px) !important;
    padding-bottom: 96px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.25rem;
    color: var(--ink);
}

/* Palabras resaltadas dentro del título */
.hero h1 span {
    background: linear-gradient(95deg, var(--primary-light) 0%, var(--mint) 55%, #B8962E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero > .container > p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Hero de inicio (oscuro, mesh animado)
   -------------------------------------------------------------------------- */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--topbar-h) + var(--nav-h) + 72px) 0 150px;
    background: var(--primary-dark);
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 90px), 0 100%);
}

.hero-mesh {
    position: absolute;
    inset: -10%;
    z-index: -1;
    background-image:
        radial-gradient(40% 55% at 15% 20%, rgba(82, 183, 136, 0.55) 0, transparent 70%),
        radial-gradient(35% 50% at 85% 15%, rgba(212, 175, 55, 0.45) 0, transparent 70%),
        radial-gradient(45% 60% at 70% 85%, rgba(45, 106, 79, 0.9) 0, transparent 70%),
        radial-gradient(40% 50% at 30% 90%, rgba(149, 213, 178, 0.3) 0, transparent 70%);
    will-change: transform;
    animation: mesh-drift 20s ease-in-out infinite;
}

.home-hero::after {
    /* retícula sutil */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 30%, #000 20%, transparent 70%);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.home-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5.4vw, 4.25rem);
    line-height: 1.04;
    margin-bottom: 1.5rem;
}

.home-hero h1 span {
    color: var(--accent-light) !important;
    background: linear-gradient(95deg, var(--accent-light), var(--mint-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-hero .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 520px;
    margin-bottom: 2.25rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.hero-pill b {
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
    position: relative;
    aspect-ratio: 4 / 4.4;
}

.hero-photo {
    position: absolute;
    inset: 0 0 0 8%;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.6),
                inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
    font-size: 0.85rem;
    line-height: 1.35;
    animation: float 6s ease-in-out infinite;
}

.float-card strong { display: block; font-size: 1rem; color: var(--ink); }
.float-card span { color: var(--text-muted); }

.float-card .ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-light), var(--mint));
    color: #fff;
    flex-shrink: 0;
}

.float-card.one { left: -4%; bottom: 14%; }
.float-card.two { right: -4%; top: 10%; animation-delay: -3s; }
.float-card.two .ic { background: linear-gradient(135deg, #B8962E, var(--accent-light)); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Franja de confianza */
.trust-strip {
    padding: 28px 0 8px;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-items div { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-items i { color: var(--primary-light); width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Tarjetas
   -------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

a.card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card h2, .card h3, .card h4 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); }

/* Íconos de tarjeta con fondo degradado */
.icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--mint));
    box-shadow: 0 8px 16px -8px rgba(45, 106, 79, 0.7);
}

.icon-tile i, .icon-tile svg { width: 22px; height: 22px; }
.icon-tile.gold { background: linear-gradient(135deg, #B8962E, var(--accent-light)); box-shadow: 0 8px 16px -8px rgba(184, 150, 46, 0.7); }
.icon-tile.dark { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); }

/* Tarjeta de programa con imagen */
.program-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    color: inherit;
}

.program-card .media {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease);
}

.program-card:hover .media { transform: scale(1.04); }
.program-card .media-wrap { overflow: hidden; }
.program-card .body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.program-card .body .link-arrow { margin-top: auto; padding-top: 0.75rem; font-size: 0.925rem; }

/* Etiqueta / badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(82, 183, 136, 0.14);
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Secciones especiales del inicio
   -------------------------------------------------------------------------- */
.stats-band {
    background: var(--primary-dark);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
    padding: 150px 0;
}

.stats-band .hero-mesh { opacity: 0.6; }
.stats-band h2 { color: #fff; }
.stats-band .section-head p { color: rgba(255, 255, 255, 0.72); }
.stats-band .eyebrow { color: var(--accent-light); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat {
    display: block;
    padding: 2rem 1.5rem;
    background: rgba(10, 36, 25, 0.62);
    color: #fff;
    transition: background 0.2s var(--ease);
}

.stat:hover { background: rgba(10, 36, 25, 0.35); }

.stat .num {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stat .lbl {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.stat .lbl i { width: 16px; height: 16px; color: var(--accent-light); }

/* Próximo curso */
.course-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.course-callout .poster {
    width: 112px;
    height: 112px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: zoom-in;
    box-shadow: var(--shadow-md);
}

.course-callout .poster img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.course-callout .info { flex: 1; min-width: 240px; }
.course-callout h3 { font-size: 1.5rem; margin: 0.6rem 0 0.4rem; }
.course-callout .meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--text-muted); font-weight: 500; font-size: 0.925rem; }
.course-callout .meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.course-callout .meta i { width: 16px; height: 16px; }

/* Llamado a la acción final */
.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    background: var(--primary-dark);
    padding: 4.5rem 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.cta-panel h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-panel p { color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 auto 2.25rem; font-size: 1.1rem; }
.cta-panel .hero-btns { justify-content: center; }

/* Split: texto + lista */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.check-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.check-list li i { color: var(--mint); width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.check-list strong { color: var(--ink); display: block; }
.check-list span { color: var(--text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.975rem;
    box-shadow: 0 1px 1px rgba(10, 36, 25, 0.04);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-control::placeholder { color: #9AA8A2; }

.form-control:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.18);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--bg-alt);
    color: var(--text-main);
    padding: 80px 0 32px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 56px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.925rem; max-width: 300px; margin-top: 1rem; }

.footer-col h4 {
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; font-size: 0.925rem; color: var(--text-muted); }
.footer-col ul li i { width: 15px; height: 15px; vertical-align: -2px; margin-right: 0.4rem; color: var(--primary-light); }

.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }

.social-links { display: flex; gap: 0.5rem; margin-top: 1.5rem; flex-wrap: wrap; }

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 36px;
    min-width: 36px;
    padding: 0 0.7rem;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 0.8rem;
    font-weight: 600;
}

.social-links a:hover { color: var(--primary); box-shadow: inset 0 0 0 1px #CBD6DF, var(--shadow-sm); }
.social-links a i { width: 16px; height: 16px; }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom p { color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
#global-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 18, 12, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: zoom-out;
    padding: 2rem;
}

#global-lightbox img { max-width: 92%; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-xl); cursor: default; }
#lightbox-caption { color: #fff; margin-top: 1.25rem; font-size: 1.05rem; font-weight: 600; text-align: center; }

#global-lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* --------------------------------------------------------------------------
   Animación de entrada
   -------------------------------------------------------------------------- */
.will-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.will-reveal.reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .nav-links a { padding: 0.5rem 0.55rem; font-size: 0.875rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    :root { --nav-h: 64px; }

    .home-hero-grid,
    .split { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    #contact { padding: 60px 0; }
    .contact-grid > div { padding: 0 !important; }

    .logo-img { height: 42px; }

    .mobile-toggle { display: inline-flex; align-items: center; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        position: absolute;
        top: calc(100% + 8px);
        left: 1rem;
        right: 1rem;
        background: #fff;
        padding: 0.75rem;
        border-radius: 16px;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active { display: flex; }
    .nav-links a { display: block; padding: 0.75rem 1rem; font-size: 1rem; border-radius: 10px; }
    .nav-links li:last-child { margin: 0.5rem 0 0; }
    .nav-links li:last-child a { display: flex; width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    :root { --topbar-h: 0px; }

    .container { padding: 0 1rem; }
    section { padding: 64px 0; }

    .top-bar {
        position: static;
        height: auto;
        padding: 8px 0;
    }

    .top-bar .container {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.4rem 1.2rem !important;
    }

    .top-bar a { font-size: 0.75rem; }

    .navbar { position: sticky; top: 0; }

    .hero {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    .hero p { font-size: 1.05rem; }

    .home-hero {
        padding: 56px 0 110px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
    }

    .home-hero .lead { font-size: 1.05rem; }
    .float-card.one { left: 0; }
    .float-card.two { right: 0; }

    .stats-band { padding: 110px 0; clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%); }
    .stat .num { font-size: 2.25rem; }

    .cta-panel { padding: 3rem 1.5rem; }
    .course-callout { padding: 1.25rem; gap: 1.25rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }

    .card { padding: 1.5rem; }
    .section-head { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-btns .btn-cta, .hero-btns .btn-secondary { width: 100%; }
}

/* ==========================================================================
   Noticias / Blog
   ========================================================================== */
.hero-pill-link { max-width: 100%; transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.hero-pill-link:hover { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.hero-pill-link .pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.hero-pill-link .arrow {
    width: 0.45em; height: 0.45em; flex-shrink: 0;
    border-right: 2px solid currentColor; border-top: 2px solid currentColor;
    transform: rotate(45deg); margin-right: 0.2rem;
}
.hero-pill-link b { background: var(--mint-light); }

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.news-meta strong { color: var(--ink); font-weight: 600; }

.news-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.news-cats a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.news-cats a span { font-size: 0.75rem; color: var(--text-muted); }
.news-cats a:hover { box-shadow: inset 0 0 0 1px #CBD6DF, var(--shadow-sm); }
.news-cats a.active { background: var(--primary); color: #fff; box-shadow: none; }
.news-cats a.active span { color: rgba(255, 255, 255, 0.7); }

.news-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    padding: 0 !important;
    overflow: hidden;
    color: inherit;
    margin-bottom: 1.5rem;
}

.news-featured .media { min-height: 340px; background-size: cover; background-position: center; }
.news-featured .body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; }
.news-featured h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.news-featured p { color: var(--text-muted); font-size: 1.05rem; }

.news-grid .program-card h3,
.home-news .program-card h3 { font-size: 1.1rem; line-height: 1.3; }

.home-news {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.home-news .is-lead { grid-row: span 2; }
.home-news .is-lead .media { height: 300px; }
.home-news .is-lead h3 { font-size: 1.45rem; }
.home-news .program-card:not(.is-lead) { flex-direction: row; }
.home-news .program-card:not(.is-lead) .media-wrap { width: 38%; flex-shrink: 0; }
.home-news .program-card:not(.is-lead) .media { height: 100%; min-height: 150px; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    font-size: 0.925rem;
    color: var(--text-muted);
}

.pagination a { font-weight: 600; }

/* Artículo */
.article-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--topbar-h) + var(--nav-h) + 64px) 0 48px;
}

.article-narrow { max-width: 780px; }
.article-wide { max-width: 1040px; }

.breadcrumbs { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--text-muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 0.35rem; opacity: 0.6; }

.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1.1rem; }
.article-lead { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.author-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary-light), var(--mint));
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.article-cover { margin: 0 0 3rem; }
.article-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-xl);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 280px;
    justify-content: center;
    gap: 4rem;
    padding-bottom: 80px;
}

.aside-card {
    position: sticky;
    top: calc(var(--topbar-h) + var(--nav-h) + 24px);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.aside-card h3 { margin-bottom: 0.5rem; }
.aside-card p { font-size: 0.925rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.toc {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.toc strong { display: block; color: var(--ink); font-size: 0.9rem; margin-bottom: 0.6rem; }
.toc ol { padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.925rem; }
.toc a { color: var(--text-main); }
.toc a:hover { color: var(--primary); }

/* Tipografía del contenido */
.prose { font-size: 1.1rem; line-height: 1.8; color: var(--text-main); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; scroll-margin-top: calc(var(--topbar-h) + var(--nav-h) + 20px); }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5em; }
.prose a { color: var(--primary-light); text-decoration: underline; text-decoration-color: rgba(45, 106, 79, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--mint); }
.prose blockquote {
    border-left: 3px solid var(--mint);
    padding: 0.25em 0 0.25em 1.25em;
    color: var(--ink);
    font-size: 1.15rem;
    font-style: italic;
}
.prose img { border-radius: 12px; height: auto; }
.prose figcaption { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.8rem; text-align: left; }
.prose th { color: var(--ink); background: var(--bg-alt); font-weight: 600; }
.prose code { background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.9em; }

.faq { margin-top: 3.5rem; }
.faq h2 { font-size: 1.7rem; margin-bottom: 1.25rem; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0 1.25rem;
    background: #fff;
}
.faq details + details { margin-top: 0.75rem; }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 0;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary-light); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; color: var(--text-muted); }

.share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.share a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line);
}
.share a:hover { color: var(--primary); box-shadow: inset 0 0 0 1px #CBD6DF, var(--shadow-sm); }
.share a i { width: 17px; height: 17px; }

@media (max-width: 991px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .media { min-height: 220px; }
    .news-featured .body { padding: 1.75rem; }
    .home-news { grid-template-columns: 1fr; }
    .home-news .is-lead { grid-row: auto; }
    .article-layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .aside-card { position: static; }
}

@media (max-width: 768px) {
    .article-hero { padding: 48px 0 32px; }
    .article-cover { margin-bottom: 2rem; }
    .article-cover img { border-radius: 12px; }
    .prose { font-size: 1.03rem; }
    .hero-pill-link .pill-text { max-width: 220px; }
    .home-news .program-card:not(.is-lead) { flex-direction: column; }
    .home-news .program-card:not(.is-lead) .media-wrap { width: 100%; }
    .home-news .program-card:not(.is-lead) .media { height: 180px; }
}
