/*
Theme Name: Universidad Internacional
Theme URI: https://uni.datoestrategico.com
Author: Universidad Internacional
Author URI: https://uni.datoestrategico.com
Description: Tema institucional moderno para Universidad Internacional. Red #EF3340 como acento, navy como color principal, diseño visual contemporaneo.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uninter
*/

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif, 'Cormorant Garamond', 'Times New Roman', Georgia, serif);
    font-weight: 700;
    line-height: 1.18;
    color: var(--dark);
    letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }

:root {
    /* Brand red — Pantone Red 032 */
    --accent: #C12D38;            /* texto/links sobre blanco: contraste 5.6:1 cumple WCAG AA */
    --accent-bright: #EF3340;     /* fondos sólidos rojos (badges, pills, buttons) */
    --accent-hover: #a01825;      /* hover sobre texto */
    --accent-soft: rgba(193, 45, 56, .07);
    --accent-glow: rgba(239, 51, 64, .15);
    --uni-red: #C12D38;
    /* Serif principal — Cormorant Garamond + fallbacks system serif */
    --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --navy: #0c1a3a;
    --navy-light: #162548;
    --text: #374151;
    --text-light: #4b5563;        /* subido de #6b7280 → contraste 7.5:1 cumple AAA */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-soft: #f1f5f9;
    --border: #cbd5e1;            /* subido de #e2e8f0 → contraste 3:1 cumple WCAG 1.4.11 */
    --border-soft: #e2e8f0;       /* el viejo, para uso decorativo solamente */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, .12);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, .16);
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   2. LAYOUT
   ========================================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #e2e8f0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { margin: 0 0 16px; }
.section-title .section-title__accent {
    display: inline-block;
    width: 48px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 16px;
}
.section-title p { color: var(--text-light); max-width: 580px; margin: 0 auto; font-size: 1.05rem; line-height: 1.7; }

/* =========================================================
   3. TOP BAR (announcement + ad space)
   ========================================================= */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    font-size: .82rem;
    padding: 8px 0;
    letter-spacing: .2px;
    overflow: hidden;
}
.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}
.top-bar__links--alone { margin-left: auto; }
.top-bar__announce {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.top-bar__announce-icon {
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.top-bar__links { display: flex; gap: 16px; align-items: center; }
.top-bar__links a { color: rgba(255,255,255,.6); font-size: .8rem; transition: color .2s; }
.top-bar__links a:hover { color: #fff; }
.top-bar__access {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    white-space: nowrap;
}
.top-bar__access svg { flex-shrink: 0; }
.top-bar__access--panel {
    background: var(--accent, #EF3340);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(239, 51, 64, 0.28);
}
.top-bar__access--panel:hover {
    background: #c81d2a;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 51, 64, 0.42);
}
.top-bar__access--aula {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.top-bar__access--aula:hover {
    background: #fff;
    color: var(--accent, #EF3340) !important;
    border-color: #fff;
    transform: translateY(-1px);
}
.top-bar__access-label-short { display: none; }

@media (max-width: 768px) {
    .top-bar__phone, .top-bar__email { display: none; }
    .top-bar__links { gap: 8px; }
    .top-bar__access { padding: 5px 11px; font-size: 0.7rem; gap: 5px; }
    .top-bar__access svg { width: 12px; height: 12px; }
    .top-bar__access-label { display: none; }
    .top-bar__access-label-short { display: inline; }
    .top-bar__access--aula span:not(.top-bar__access-label-short) { /* keep Aula Virtual text on mobile */ }
    .top-bar__announce { font-size: .78rem; }
}
@media (max-width: 480px) {
    .top-bar__announce span:not(.top-bar__announce-icon) { display: none; }
    .top-bar__access { padding: 5px 9px; }
}

/* =========================================================
   4. HEADER & NAVIGATION
   ========================================================= */
.site-header {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--ease) .3s;
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(15, 23, 42, .08);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.site-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-brand__shield { width: 48px; height: auto; flex-shrink: 0; }
.site-brand__text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -.01em;
}
.site-brand__text span { display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    padding: 12px 18px 14px;
    color: var(--dark);
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: color .3s var(--ease), background .3s var(--ease);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent, #EF3340);
    transition: width .35s var(--ease);
    border-radius: 2px;
    transform: translateX(-50%);
}
.main-nav a::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: rgba(239, 51, 64, 0.4);
    transition: width .35s var(--ease) 0.05s;
    border-radius: 1px;
    transform: translateX(-50%);
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    width: 40%;
}
.main-nav a:hover::before,
.main-nav .current-menu-item > a::before,
.main-nav .current_page_item > a::before {
    width: 20%;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--accent, #EF3340);
    background: rgba(239, 51, 64, 0.04);
}
/* .btn-cta es el <li> contenedor del menú — debe ser invisible, solo el <a> dentro es el pill */
.btn-cta {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    letter-spacing: normal !important;
}
.btn-cta:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}
.btn-cta::after,
.btn-cta::before { display: none !important; }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 340px;
    max-height: 46vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('assets/img/hero-bg.jpg') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}
.hero.hero--visible .hero__bg {
    transform: scale(1);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(12, 26, 58, .92) 0%,
            rgba(12, 26, 58, .75) 40%,
            rgba(230, 57, 70, .55) 100%
        );
}
.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}
.hero__particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 25s; animation-delay: 0s; width: 3px; height: 3px; }
.hero__particle:nth-child(2) { left: 30%; top: 60%; animation-duration: 20s; animation-delay: -5s; width: 5px; height: 5px; }
.hero__particle:nth-child(3) { left: 50%; top: 40%; animation-duration: 22s; animation-delay: -8s; }
.hero__particle:nth-child(4) { left: 70%; top: 80%; animation-duration: 18s; animation-delay: -3s; width: 6px; height: 6px; }
.hero__particle:nth-child(5) { left: 85%; top: 30%; animation-duration: 24s; animation-delay: -12s; width: 3px; height: 3px; }
.hero__particle:nth-child(6) { left: 20%; top: 75%; animation-duration: 26s; animation-delay: -7s; width: 4px; height: 4px; }

@keyframes float-particle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero > .container {
    position: relative;
    z-index: 2;
    padding-top: 36px;
    padding-bottom: 36px;
}
.hero h1 {
    color: #fff;
    max-width: 780px;
    margin: 0 0 12px;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.005em;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
    line-height: 1.1;
}
.hero p {
    font-size: 0.98rem;
    max-width: 540px;
    margin: 0 0 22px;
    opacity: .92;
    line-height: 1.6;
    font-weight: 400;
}
@media (max-width: 760px) {
    .hero { min-height: 280px; max-height: 60vh; }
    .hero > .container { padding-top: 28px; padding-bottom: 28px; }
    .hero h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
    .hero p { font-size: 0.9rem; margin-bottom: 18px; }
}
.hero-cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================================
   BUTTONS — Clean & professional university design
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .3px;
    border: 2px solid rgba(255,255,255,.35);
    color: #fff;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    gap: 10px;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
}
/* Subtle sweep on hover */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transition: left .5s ease;
    pointer-events: none;
}
.btn:hover::before {
    left: 100%;
}
.btn:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.btn__arrow {
    display: inline-flex;
    transition: transform .3s ease;
    flex-shrink: 0;
}
.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* --- Solid white (hero primary) --- */
.btn--solid {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn--solid:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

/* --- Primary CTA (navy, trustworthy) --- */
.btn--primary {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .2);
}
.btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(230, 57, 70, .2);
}
.btn--primary::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

/* --- Accent/Red (sparingly, for key CTAs only) --- */
.btn--red {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 57, 70, .18);
}
.btn--red:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(230, 57, 70, .22);
}
.btn--red:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, .15);
}
.btn--red::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

/* --- Outline --- */
.btn--outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}
.btn--outline:hover {
    border-color: var(--dark);
    color: var(--dark);
    background: rgba(15, 23, 42, .04);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .08);
}

/* --- Ghost (minimal) --- */
.btn--ghost {
    background: transparent;
    color: var(--text-light);
    border-color: transparent;
    padding: 10px 20px;
    font-weight: 600;
}
.btn--ghost:hover {
    color: var(--dark);
    background: var(--bg-soft);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: none;
}
.btn--ghost::before { display: none; }

/* --- Size variants --- */
.btn--sm {
    padding: 10px 22px;
    font-size: .82rem;
}
.btn--lg {
    padding: 18px 44px;
    font-size: .95rem;
    font-weight: 800;
}

/* --- Ripple effect --- */
.btn__ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    transform: scale(0);
    animation: btn-ripple .6s ease-out;
    pointer-events: none;
}
@keyframes btn-ripple {
    to { transform: scale(4); opacity: 0; }
}

/* --- Loading state --- */
.btn.is-loading {
    pointer-events: none;
    opacity: .7;
}
.btn.is-loading .btn__text { opacity: 0; }
.btn.is-loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: currentColor;
    border-radius: 50%;
    position: absolute;
    animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Nav CTA — clean, professional */
.main-nav .btn-cta {
    list-style: none;
    margin-left: 6px;
}
.main-nav .btn-cta a,
.btn-cta a {
    background: var(--accent-bright, #EF3340);
    color: #fff !important;
    padding: 9px 22px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: .82rem !important;
    letter-spacing: .12em !important;
    transition: background .25s var(--ease), transform .25s var(--ease) !important;
    box-shadow: 0 3px 10px rgba(239, 51, 64, .22);
    border: 0 !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}
.main-nav .btn-cta a::after,
.btn-cta a::after,
.main-nav .btn-cta a::before,
.btn-cta a::before { display: none !important; }
.main-nav .btn-cta a:hover,
.btn-cta a:hover {
    background: var(--accent-hover, #a01825) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(239, 51, 64, .32) !important;
}

/* =========================================================
   5b. AD BANNER
   ========================================================= */
.ad-banner {
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin: 40px auto;
    max-width: 728px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s var(--ease);
}
.ad-banner:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.ad-banner__label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

/* Sidebar ad */
.ad-sidebar {
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    transition: all .3s var(--ease);
}
.ad-sidebar:hover { border-color: var(--accent); }
.ad-sidebar__label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

/* =========================================================
   6. IMAGE GALLERY / PHOTO EFFECTS
   ========================================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 48px 0;
}
.photo-grid__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    cursor: pointer;
}
.photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease), filter .6s;
}
.photo-grid__item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}
.photo-grid__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}
.photo-grid__item:hover::after { opacity: 1; }
.photo-grid__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    z-index: 1;
    transform: translateY(10px);
    opacity: 0;
    transition: all .3s var(--ease);
}
.photo-grid__item:hover .photo-grid__caption {
    transform: translateY(0);
    opacity: 1;
}

/* Featured image with parallax-style effect */
.featured-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-image__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* =========================================================
   7. CARDS & GRIDS
   ========================================================= */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ff8a8a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card h3 { color: var(--dark); margin-top: 0; font-size: 1.15rem; }
.card p { color: var(--text-light); font-size: .95rem; line-height: 1.7; }
.card .card__icon {
    color: var(--accent);
    margin-bottom: 18px;
    background: var(--accent-soft);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px;
    transition: all .3s var(--ease);
}
.card:hover .card__icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

/* Card with image */
.card--image {
    padding: 0;
    overflow: hidden;
}
.card--image .card__img {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card--image .card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .3) 0%, transparent 60%);
}
.card--image .card__body {
    padding: 24px 24px 28px;
}

/* =========================================================
   PROGRAMA (Licenciatura + Diplomados individuales)
   ========================================================= */
.programa-hero {
    margin: 0 0 -40px;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 24px 24px;
    display: flex;
    align-items: flex-end;
}
.programa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.40) 0%, rgba(239, 51, 64, 0.45) 100%);
    border-radius: inherit;
}
.programa-hero__inner {
    position: relative;
    z-index: 1;
    padding: 40px 48px 32px;
    max-width: 760px;
}
.programa-hero__tagline {
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.programa-meta {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 36px;
    margin: 0 auto 36px;
    max-width: 1080px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 2;
}
.programa-meta__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.programa-meta__grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 3px solid var(--accent, #EF3340);
    padding-left: 14px;
}
.programa-meta__grid span {
    color: var(--text-light);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}
.programa-meta__grid strong {
    color: var(--dark);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
}
.page .entry-content h2,
.page .entry-content h3 {
    font-family: var(--font-serif);
}
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin: 18px 0 30px;
}
.plan-year {
    background: var(--bg-alt, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 26px;
    transition: border-color .3s var(--ease);
}
.plan-year:hover { border-color: rgba(239, 51, 64, 0.30); }
.plan-year h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent, #EF3340);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    letter-spacing: 0.02em;
}
.plan-year ul,
.plan-year ol {
    margin: 0;
    padding-left: 18px;
}
.plan-year li {
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 6px;
}
.plan-year li::marker { color: var(--accent, #EF3340); }
.programa-cta {
    background: linear-gradient(135deg, #0c1a3a 0%, #162548 100%);
    color: #fff;
    border-radius: 18px;
    padding: 40px 44px;
    margin: 40px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.programa-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(239, 51, 64, 0.25) 0%, transparent 60%);
    pointer-events: none;
}
.programa-cta h3 {
    color: #fff !important;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}
.programa-cta p {
    color: rgba(255, 255, 255, 0.78) !important;
    margin: 0 0 22px;
    position: relative;
    z-index: 1;
}
.programa-cta p:last-child {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 760px) {
    .programa-hero { min-height: 260px; border-radius: 0; margin: 0 -16px -32px; }
    .programa-hero__inner { padding: 30px 24px 24px; }
    .programa-meta { padding: 22px 24px; }
    .programa-meta__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .programa-cta { padding: 28px 26px; }
}

/* =========================================================
   PROMO CAROUSEL (es el hero del sitio — gestionado desde admin)
   ========================================================= */
.promo-carousel {
    position: relative;
    overflow: hidden;
    background: #0c1a3a;
}
.promo-carousel__viewport {
    overflow: hidden;
    width: 100%;
}
.promo-carousel__track {
    display: flex;
    transition: transform .8s cubic-bezier(.65, .05, .36, 1);
    will-change: transform;
}
.promo-slide {
    flex: 0 0 100%;
    min-height: 540px;
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
}
.promo-slide--red {
    background: linear-gradient(125deg, #C12D38 0%, #7a0e18 100%);
}
.promo-slide--navy {
    background: linear-gradient(125deg, #0c1a3a 0%, #1d3a78 60%, #C12D38 130%);
}
.promo-slide--dark {
    background: linear-gradient(125deg, #1f2937 0%, #0a0e1a 100%);
}
.promo-slide--gradient {
    background: linear-gradient(125deg, #2d1659 0%, #5e1b6e 50%, #C12D38 100%);
}
.promo-slide::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.14) 0%, transparent 65%);
    pointer-events: none;
    transform: rotate(-12deg);
}
.promo-slide::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
    pointer-events: none;
}
.promo-slide__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 96px 96px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    z-index: 2;
    min-height: 540px;
}
.promo-slide__copy {
    max-width: 720px;
    animation: promoFadeIn .9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes promoFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.promo-slide__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}
.promo-slide__title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 700;
    color: #fff !important;
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: 0.005em;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.28);
    max-width: 14ch;
}
.promo-slide__title strong { color: #ffd6da; font-weight: 700; }
.promo-slide__desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0 0 30px;
    max-width: 560px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.promo-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0c1a3a !important;
    padding: 16px 34px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background .25s var(--ease), transform .25s var(--ease), gap .25s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
}
.promo-slide__cta::after {
    content: '→';
    transition: transform .25s var(--ease);
    font-size: 1.1em;
}
.promo-slide__cta:hover {
    background: #fff;
    transform: translateY(-2px);
    gap: 14px;
    color: #0c1a3a !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.40);
}
.promo-slide__cta:hover::after { transform: translateX(3px); }
.promo-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.promo-carousel__btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(255, 255, 255, 0.5);
}
.promo-carousel__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.promo-carousel__btn--prev { left: 24px; }
.promo-carousel__btn--next { right: 24px; }
.promo-carousel__dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}
.promo-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: 0;
    cursor: pointer;
    transition: background .3s var(--ease), width .3s var(--ease);
    padding: 0;
}
.promo-carousel__dot[aria-selected="true"] {
    background: #fff;
    width: 36px;
}
.promo-carousel__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Barra de progreso de autoplay (línea sutil debajo) */
.promo-carousel__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 4;
    overflow: hidden;
}
.promo-carousel__progress::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #fff 0%, #ffd6da 100%);
    transform: translateX(-100%);
    animation: promoProgress 5s linear infinite;
}
.promo-carousel:hover .promo-carousel__progress::after { animation-play-state: paused; }
@keyframes promoProgress {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}
@media (max-width: 880px) {
    .promo-slide { min-height: 420px; }
    .promo-slide__inner { padding: 56px 24px 80px; min-height: 420px; }
    .promo-slide__title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .promo-slide__desc { font-size: 0.96rem; }
    .promo-slide__cta { padding: 13px 26px; font-size: 0.92rem; }
    .promo-carousel__btn { width: 42px; height: 42px; }
    .promo-carousel__btn--prev { left: 10px; }
    .promo-carousel__btn--next { right: 10px; }
    .promo-carousel__dots { bottom: 18px; gap: 7px; }
    .promo-carousel__dot { width: 7px; height: 7px; }
    .promo-carousel__dot[aria-selected="true"] { width: 22px; }
}

/* =========================================================
   VIDA ESTUDIANTIL (cards con foto + texto)
   ========================================================= */
.card--vida { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card--vida:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.card--vida .card__img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    transition: transform .55s var(--ease);
}
.card--vida:hover .card__img { transform: scale(1.05); }
.card--vida .card__body { padding: 22px 24px 26px; }
.card--vida .card__body h4 {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.3;
}
.card--vida .card__body p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}
.vida-grid { gap: 26px; }

/* =========================================================
   RECURSOS ACADÉMICOS (cards con ícono + link)
   ========================================================= */
.recurso-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.recurso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent, #EF3340);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.recurso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(239, 51, 64, 0.10);
    border-color: rgba(239, 51, 64, 0.25);
}
.recurso-card:hover::before { transform: scaleX(1); }
.recurso-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(239, 51, 64, 0.08);
    color: var(--accent, #EF3340);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border: 1px solid rgba(239, 51, 64, 0.15);
    transition: background .3s var(--ease), color .3s var(--ease);
}
.recurso-card:hover .recurso-card__icon {
    background: var(--accent, #EF3340);
    color: #fff;
    border-color: var(--accent, #EF3340);
}
.recurso-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.25;
}
.recurso-card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
}
.recurso-card__link {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--accent, #EF3340);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: gap .25s var(--ease), color .25s var(--ease);
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}
.recurso-card__link:hover { color: #c81d2a; gap: 12px; letter-spacing: 0.04em; }

/* =========================================================
   VIDEO INSTITUCIONAL (debajo del hero)
   ========================================================= */
.section--video-intro { padding: 80px 0 60px; }
.video-intro__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}
.video-intro__eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent, #EF3340);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.video-intro__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    margin: 0 0 18px;
}
.video-intro__lead {
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 22px;
}
.video-intro__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.video-intro__bullets li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: 0.95rem;
}
.video-intro__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 2px;
    background: var(--accent, #EF3340);
}
.video-embed {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    background: #0a0a0a;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.video-embed:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(239, 51, 64, 0.18); }
.video-embed__poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85) saturate(1.1);
    transition: transform .8s var(--ease), filter .4s var(--ease);
}
.video-embed:hover .video-embed__poster { transform: scale(1.04); filter: brightness(0.78); }
.video-embed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.20) 0%, rgba(15, 23, 42, 0.55) 100%);
    pointer-events: none;
}
.video-embed__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    transition: transform .4s var(--ease);
}
.video-embed:hover .video-embed__play { transform: translate(-50%, -50%) scale(1.08); }
.video-embed__caption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 999px;
}
@media (max-width: 880px) {
    .video-intro__layout { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   POSGRADOS PRÓXIMAMENTE
   ========================================================= */
.section--posgrados { background: var(--bg-alt, #f8fafc); }
.section-title__badge {
    display: inline-block;
    background: rgba(239, 51, 64, 0.10);
    color: var(--accent, #EF3340);
    border: 1px solid rgba(239, 51, 64, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.card--posgrado { padding: 0; overflow: hidden; display: flex; flex-direction: column; opacity: 0.96; transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .4s var(--ease); }
.card--posgrado:hover { opacity: 1; transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.card--posgrado .card__img {
    position: relative;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.35) brightness(0.92);
    transition: filter .5s var(--ease);
}
.card--posgrado:hover .card__img { filter: grayscale(0) brightness(1); }
.card--posgrado .card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, transparent 55%);
}
.card__badge--soon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.card--posgrado .card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card--posgrado .card__body h4 {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.3;
}
.card--posgrado .card__body p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}
.card--posgrado .card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 14px;
    border-top: 1px dashed var(--border);
    margin: 0 0 14px;
    font-size: 0.86rem;
}
.card--posgrado .card__meta span {
    color: var(--text-light);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.card--posgrado .card__meta strong { color: var(--accent, #EF3340); margin-left: auto; }

/* =========================================================
   LEAD BAND (captura de mail para posgrados)
   ========================================================= */
.section--lead-band { padding: 40px 0 80px; }
.lead-band {
    background: linear-gradient(135deg, #0c1a3a 0%, #162548 60%, #1e1e3f 100%);
    border-radius: 20px;
    padding: 44px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(12, 26, 58, 0.25);
}
.lead-band::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(239, 51, 64, 0.30) 0%, transparent 60%);
    pointer-events: none;
}
.lead-band__copy { position: relative; z-index: 1; }
.lead-band__copy h3 {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
}
.lead-band__copy p { color: rgba(255, 255, 255, 0.72); font-size: 0.96rem; line-height: 1.6; margin: 0; }
.lead-band__form {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.lead-band__form input[type=email] {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 10px;
    color: #fff;
    font-size: 0.96rem;
    transition: border-color .2s, background .2s;
}
.lead-band__form input[type=email]::placeholder { color: rgba(255, 255, 255, 0.45); }
.lead-band__form input[type=email]:focus { outline: none; border-color: var(--accent, #EF3340); background: rgba(255, 255, 255, 0.12); }
@media (max-width: 760px) {
    .lead-band { grid-template-columns: 1fr; padding: 32px 26px; }
    .lead-band__form input[type=email] { width: 100%; }
}

/* =========================================================
   CARRERA DESTACADA (Licenciatura en Teología)
   ========================================================= */
.carrera-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 64px;
    box-shadow: var(--shadow);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.carrera-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.carrera-feature__img {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 360px;
}
.carrera-feature__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,51,64,0.10) 0%, transparent 55%);
    pointer-events: none;
}
.carrera-feature__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent, #EF3340);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(239,51,64,0.32);
}
.carrera-feature__body {
    padding: 44px 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.carrera-feature__title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    margin: 0 0 18px;
    letter-spacing: 0.005em;
}
.carrera-feature__title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: var(--accent, #EF3340);
    margin-top: 14px;
    border-radius: 2px;
}
.carrera-feature__lead {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 26px;
}
.carrera-feature__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 10px;
}
.carrera-feature__meta li {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--border);
    font-size: 0.96rem;
}
.carrera-feature__meta li:last-child { border-bottom: none; padding-bottom: 0; }
.carrera-feature__meta span {
    color: var(--text-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 600;
}
.carrera-feature__meta strong { color: var(--dark); font-weight: 700; }
.carrera-feature__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 880px) {
    .carrera-feature { grid-template-columns: 1fr; }
    .carrera-feature__img { min-height: 240px; aspect-ratio: 16/10; }
    .carrera-feature__body { padding: 32px 26px 30px; }
    .carrera-feature__title { font-size: 1.7rem; }
    .carrera-feature__meta li { grid-template-columns: 130px 1fr; gap: 10px; }
}

/* =========================================================
   ENCABEZADO SUB-SECCIÓN DIPLOMADOS
   ========================================================= */
.diplomados-header {
    text-align: center;
    margin: 16px auto 36px;
    max-width: 640px;
}
.diplomados-header__rule {
    display: inline-block;
    width: 56px;
    height: 3px;
    background: var(--accent, #EF3340);
    border-radius: 2px;
    margin-bottom: 14px;
}
.diplomados-header h3 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}
.diplomados-header p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   TARJETAS DE DIPLOMADO
   ========================================================= */
/* Cards de diplomado convertidas en un solo link (un tabstop) */
.card--diploma__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.card--diploma__link:hover { color: inherit; }
.card--diploma__link .card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card--diploma__link .card__title {
    font-family: var(--font-serif);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.3;
}
.card--diploma__link .card__desc {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
    display: block;
}
.card--diploma__link .card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 14px;
    border-top: 1px dashed var(--border);
    margin: 0 0 14px;
    font-size: 0.86rem;
}
.card--diploma__link .card__meta-label {
    color: var(--text-light);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.card--diploma__link .card__meta strong { color: var(--accent); margin-left: auto; }
.card--diploma__link .card__cta {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    transition: gap .25s var(--ease), letter-spacing .25s var(--ease);
}
.card--diploma__link:hover .card__cta { letter-spacing: 0.04em; }
.card--diploma__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 14px; }

/* Banner posgrados — badge */
.lead-band__badge {
    display: inline-block;
    background: rgba(239, 51, 64, 0.20);
    color: #ffd1d5;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.lead-band__copy h2 {
    color: #fff !important;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.card--diploma { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card--diploma .card__img {
    position: relative;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    transition: transform .55s var(--ease);
}
.card--diploma:hover .card__img { transform: scale(1.05); }
.card--diploma .card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.05) 50%, transparent 100%);
}
.card--diploma .card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    color: var(--accent, #EF3340);
    font-family: var(--font-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.card--diploma .card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card--diploma .card__body h4 {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: 0.005em;
}
.card--diploma .card__body p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}
.card--diploma .card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 14px;
    border-top: 1px dashed var(--border);
    margin: 0 0 14px;
    font-size: 0.86rem;
}
.card--diploma .card__meta span {
    color: var(--text-light);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.card--diploma .card__meta strong { color: var(--accent, #EF3340); margin-left: auto; }
.diplomados-grid { gap: 26px; }

/* Feature cards (¿Por qué elegirnos?) — zoom suave + ratio más cuadrado */
.card--feature { padding: 0; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card--feature .card__img { aspect-ratio: 4/3; background-size: cover; background-position: center; transition: transform .55s var(--ease); }
.card--feature:hover .card__img { transform: scale(1.06); }
.card--feature .card__body { padding: 22px 26px 26px; }
.card--feature .card__body h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.22rem;
    color: var(--dark);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}
.card--feature .card__body p { margin: 0; }
@media (max-width: 760px) {
    .card--feature .card__img { aspect-ratio: 16/10; }
}

/* =========================================================
   8. STATS BAR
   ========================================================= */
.stats-bar {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(230, 57, 70, .12) 0%, transparent 60%);
    pointer-events: none;
}
.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    padding: 64px 24px;
    position: relative;
    z-index: 1;
}
.stat-item { padding: 12px; }
.stat-item__number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -.02em;
}
.stat-item__number span {
    color: var(--accent);
}
.stat-item__label {
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .stats-bar .container { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* =========================================================
   INFO BAR — Tarjetas blancas elegantes con calendario académico
   ========================================================= */
.info-bar {
    background: var(--bg-alt, #f8fafc);
    padding: 72px 0;
    position: relative;
}
.info-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(239, 51, 64, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(239, 51, 64, 0.04) 0%, transparent 55%);
    pointer-events: none;
}
.info-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    position: relative;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(239, 51, 64, 0.10);
    border-color: rgba(239, 51, 64, 0.30);
}
.info-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(239, 51, 64, 0.08);
    color: var(--accent, #EF3340);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 51, 64, 0.18);
    margin-bottom: 24px;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.info-card:hover .info-card__icon {
    background: var(--accent, #EF3340);
    color: #fff;
    border-color: var(--accent, #EF3340);
    transform: scale(1.04);
}
.info-card__label {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.3;
}
.info-card__value {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    letter-spacing: 0.005em;
    margin-bottom: 16px;
}
.info-card__rule {
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent, #EF3340);
    border-radius: 2px;
    transition: width .4s var(--ease);
}
.info-card:hover .info-card__rule { width: 64px; }
@media (max-width: 880px) {
    .info-bar { padding: 56px 0; }
    .info-bar .container { grid-template-columns: 1fr 1fr; gap: 18px; }
    .info-card { padding: 26px 22px 24px; }
    .info-card__value { font-size: 1.35rem; }
}
@media (max-width: 480px) {
    .info-bar .container { grid-template-columns: 1fr; }
}

/* =========================================================
   9. PAGE CONTENT
   ========================================================= */
.page-content,
.entry-content {
    max-width: 800px;
    margin: 0 auto;
}
.page-content h2,
.entry-content h2 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-top: 1.6em;
}
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, #162548 50%, var(--navy-light) 100%);
    color: #fff;
    padding: 90px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(230, 57, 70, .12) 0%, transparent 60%);
    pointer-events: none;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ff8a8a, var(--accent));
}
.page-header h1 { color: #fff; margin: 0; position: relative; }
.page-header__breadcrumb {
    color: rgba(255,255,255,.55);
    margin-top: 12px;
    font-size: .88rem;
    position: relative;
}
.page-header__breadcrumb a { color: rgba(255,255,255,.55); }
.page-header__breadcrumb a:hover { color: #fff; }

/* Posts */
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s var(--ease);
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.post-card__thumb {
    aspect-ratio: 16/9;
    background: var(--bg-soft) center/cover;
    position: relative;
    overflow: hidden;
}
.post-card__thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ff8a8a);
}
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { color: var(--text-light); font-size: .82rem; margin-bottom: 8px; font-weight: 500; }
.post-card__title { margin: 0 0 10px; font-size: 1.1rem; }
.post-card__title a { color: var(--dark); transition: color .2s; }
.post-card__title a:hover { color: var(--accent); }

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.site-footer h4 {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 24px;
}
.site-footer a { color: #94a3b8; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 12px; font-size: .92rem; }
.footer-grid ul li a { position: relative; }
.footer-grid ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width .25s;
}
.footer-grid ul li a:hover::after { width: 100%; }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 24px 0;
    text-align: center;
    font-size: .82rem;
    color: #475569;
}
.site-footer__brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}
.site-footer__brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.15;
}
.site-footer__brand-text span { display: block; }

/* Contact list */
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: .92rem; }
.footer-contact__icon { color: var(--accent); font-size: 1rem; line-height: 1.5; flex-shrink: 0; }

/* Social icons */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 36px 0;
    margin: 0 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}
.footer-social__label {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
}
.footer-social__icons { display: flex; gap: 12px; }
.footer-social__icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.05);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    transition: all .3s var(--ease);
}
.footer-social__icon:hover {
    color: #fff;
    transform: translateY(-3px);
    background: rgba(255,255,255,.1);
}
.footer-social__icon--facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.footer-social__icon--instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; color: #fff; }
.footer-social__icon--youtube:hover { background: #FF0000; border-color: #FF0000; color: #fff; }

@media (max-width: 540px) {
    .footer-social { flex-direction: column; gap: 14px; }
}

/* =========================================================
   11. CONTACT FORM
   ========================================================= */
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .88rem; color: var(--dark); }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    border-radius: var(--radius-sm);
    transition: all .25s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, .08);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .field { margin-bottom: 16px; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.alert--success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.alert--error { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--accent); }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px 24px;
        box-shadow: var(--shadow-xl);
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
    .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
    .main-nav a::after { display: none; }
    .btn-cta { margin-top: 12px; text-align: center; }
    .contact-form .row { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .hero { min-height: 70vh; }
    .hero > .container { padding-top: 60px; padding-bottom: 60px; }
    .site-brand__text { font-size: .95rem; }
    .photo-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   13. UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.italic { font-style: italic; }
.lead { font-size: 1.1rem; color: var(--text-light); line-height: 1.75; }

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 16px auto; }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--accent); color: #fff; padding: 10px 20px; z-index: 9999; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700; }
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* =========================================================
   14. MODAL
   ========================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.is-open { display: flex; animation: modal-fade .25s ease; }
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(8px);
}
.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 80px rgba(15, 23, 42, .3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-slide .4s cubic-bezier(.16, 1, .3, 1);
}
.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 22px 28px;
}
.modal__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -.01em;
}
.modal__close {
    background: rgba(255,255,255,.1);
    border: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}
.modal__close:hover { background: rgba(255,255,255,.2); }
.modal__body {
    padding: 28px 28px 32px;
    overflow-y: auto;
}
.modal__lead {
    color: var(--text-light);
    margin: 0 0 24px;
    text-align: center;
    font-size: .95rem;
}
.modal-form .field { margin-bottom: 18px; }
.modal-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .82rem;
    color: var(--dark);
}
.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    border-radius: var(--radius-sm);
    transition: all .25s;
}
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, .08);
}
.modal-form textarea { resize: vertical; min-height: 80px; }
.modal-form__note {
    font-size: .78rem;
    color: var(--text-light);
    margin: 10px 0 20px;
    text-align: center;
}
.modal-form__submit {
    width: 100%;
    padding: 15px;
    font-size: .95rem;
    border-radius: 50px;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-slide { from { opacity: 0; transform: translateY(30px) scale(.95); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

@media (max-width: 540px) {
    .modal-form .row { grid-template-columns: 1fr; }
    .modal__title { font-size: 1.15rem; }
    .modal__body { padding: 22px 20px 26px; }
}

body.a11y-pause-anim .modal,
body.a11y-pause-anim .modal__dialog { animation: none !important; }

/* =========================================================
   15. WHATSAPP BUTTON
   ========================================================= */
.wa-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    width: 62px; height: 62px;
    background: linear-gradient(135deg, #1DA851 0%, #0F6E5E 100%);
    color: #fff !important;
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(15,110,94,.45);
    text-decoration: none;
    transition: all .3s var(--ease);
}
.wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(15,110,94,.55);
    color: #fff !important;
}
.wa-btn:focus-visible { outline: 3px solid #0f172a; outline-offset: 3px; }
.wa-btn svg { width: 34px; height: 34px; }
.wa-btn__label {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    box-shadow: var(--shadow);
}
.wa-btn:hover .wa-btn__label,
.wa-btn:focus-visible .wa-btn__label { opacity: 1; }

@media (max-width: 540px) {
    .wa-btn { bottom: 16px; right: 16px; width: 54px; height: 54px; }
    .wa-btn svg { width: 28px; height: 28px; }
    .wa-btn__label { display: none; }
}

body.a11y-pause-anim .wa-btn { animation: none !important; }

/* =========================================================
   16. ACCESSIBILITY WIDGET
   ========================================================= */
.a11y-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
    font-family: 'Inter', sans-serif;
}
.a11y-widget__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    background: var(--dark);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
    transition: all .3s var(--ease);
}
.a11y-widget__toggle:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(15, 23, 42, .35); }
.a11y-widget__toggle svg { width: 28px; height: 28px; }
.a11y-widget__panel {
    display: none;
    position: absolute;
    bottom: 64px; left: 0;
    width: 320px; max-width: calc(100vw - 48px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.a11y-widget__panel.is-open { display: block; animation: modal-slide .3s ease; }
.a11y-widget__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: var(--dark);
    color: #fff;
}
.a11y-widget__title { font-size: .9rem; font-weight: 700; margin: 0; letter-spacing: .5px; }
.a11y-widget__close {
    background: rgba(255,255,255,.1); border: 0; color: #fff;
    font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}
.a11y-widget__close:hover { background: rgba(255,255,255,.2); }
.a11y-widget__body { padding: 18px 20px 22px; max-height: 70vh; overflow-y: auto; }
.a11y-widget__group { margin-bottom: 16px; }
.a11y-widget__group:last-child { margin-bottom: 0; }
.a11y-widget__label {
    display: block;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-light); margin-bottom: 10px;
}
.a11y-widget__textsize { display: flex; gap: 8px; }
.a11y-widget__textsize button {
    flex: 1;
    background: #fff;
    border: 2px solid var(--border);
    color: var(--dark);
    cursor: pointer;
    padding: 10px 0;
    font-family: inherit;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all .2s;
}
.a11y-widget__textsize button[aria-pressed="true"] {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.a11y-widget__toggle-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    padding: 12px 16px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--dark);
    cursor: pointer;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    text-align: left;
    transition: all .2s;
}
.a11y-widget__toggle-btn:hover { border-color: var(--accent); }
.a11y-widget__toggle-btn::after {
    content: "";
    width: 36px; height: 20px;
    background: #ddd;
    border-radius: 20px;
    position: relative;
    flex-shrink: 0;
    transition: background .25s;
}
.a11y-widget__toggle-btn::before {
    content: "";
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    right: 34px;
    transition: right .25s;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    z-index: 1;
}
.a11y-widget__toggle-btn { position: relative; }
.a11y-widget__toggle-btn[aria-pressed="true"]::after { background: var(--accent); }
.a11y-widget__toggle-btn[aria-pressed="true"]::before { right: 18px; }
.a11y-widget__reset {
    width: 100%;
    background: var(--dark);
    color: #fff;
    border: 0;
    padding: 12px 16px;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    transition: background .2s;
}
.a11y-widget__reset:hover { background: var(--accent); }

/* =========================================================
   17. ACCESSIBILITY BODY MODIFIERS
   ========================================================= */
body.a11y-text-lg { font-size: 19px; }
body.a11y-text-lg h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
body.a11y-text-lg h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
body.a11y-text-xl { font-size: 22px; }
body.a11y-text-xl h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
body.a11y-text-xl h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }

body.a11y-high-contrast { background: #000 !important; color: #ffff00 !important; }
body.a11y-high-contrast .site-header,
body.a11y-high-contrast .site-footer,
body.a11y-high-contrast .section,
body.a11y-high-contrast .section--alt,
body.a11y-high-contrast .section--dark,
body.a11y-high-contrast .card,
body.a11y-high-contrast .post-card,
body.a11y-high-contrast .page-header,
body.a11y-high-contrast .hero { background: #000 !important; color: #ffff00 !important; }
body.a11y-high-contrast .hero__bg,
body.a11y-high-contrast .hero__overlay { display: none !important; }
body.a11y-high-contrast h1, body.a11y-high-contrast h2, body.a11y-high-contrast h3, body.a11y-high-contrast h4 { color: #ffff00 !important; }
body.a11y-high-contrast a, body.a11y-high-contrast .site-brand__text, body.a11y-high-contrast .main-nav a { color: #00ffff !important; text-decoration: underline !important; }
body.a11y-high-contrast .btn, body.a11y-high-contrast .btn-cta, body.a11y-high-contrast .btn--red, body.a11y-high-contrast .btn--solid { background: #ffff00 !important; color: #000 !important; border: 2px solid #ffff00 !important; }
body.a11y-high-contrast .card, body.a11y-high-contrast .post-card { border-color: #ffff00 !important; }

body.a11y-grayscale .site-header, body.a11y-grayscale .site-main, body.a11y-grayscale .site-footer { filter: grayscale(1); }
body.a11y-underline-links a:not(.btn):not(.btn-cta):not(.site-brand):not(.wa-btn) { text-decoration: underline !important; }
body.a11y-large-cursor, body.a11y-large-cursor * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M5 3 L5 32 L13 24 L18 35 L22 33 L17 22 L28 22 Z' fill='%23000' stroke='%23fff' stroke-width='2'/></svg>") 4 4, auto !important; }
body.a11y-pause-anim *, body.a11y-pause-anim *::before, body.a11y-pause-anim *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
body.a11y-readable-font, body.a11y-readable-font * { font-family: 'Verdana', 'Arial', sans-serif !important; }

@media (max-width: 540px) {
    .a11y-widget { bottom: 16px; left: 16px; }
    .a11y-widget__toggle { width: 46px; height: 46px; }
    .a11y-widget__toggle svg { width: 24px; height: 24px; }
    .a11y-widget__panel { width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* =========================================================
   18. SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff8a8a);
    z-index: 9999;
    transition: width .1s linear;
    pointer-events: none;
}

/* =========================================================
   19. BACK TO TOP BUTTON
   ========================================================= */
.back-to-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 9997;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all .35s var(--ease);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .2);
}
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(230, 57, 70, .3);
}
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 540px) {
    .back-to-top { bottom: 80px; right: 16px; width: 42px; height: 42px; }
    .back-to-top svg { width: 18px; height: 18px; }
}

/* =========================================================
   20. HAMBURGER ANIMATION
   ========================================================= */
.menu-toggle {
    width: 36px;
    height: 24px;
    position: relative;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.menu-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all .3s var(--ease);
    position: absolute;
    left: 0;
}
.menu-toggle__line:nth-child(1) { top: 0; }
.menu-toggle__line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle__line:nth-child(3) { bottom: 0; }

.menu-toggle.is-open .menu-toggle__line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.menu-toggle.is-open .menu-toggle__line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* =========================================================
   21. TYPEWRITER EFFECT
   ========================================================= */
.hero h1 .typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: .85em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink-cursor .8s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* =========================================================
   22. TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid #10b981;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    color: var(--dark);
    max-width: 420px;
    animation: toast-in .4s cubic-bezier(.16,1,.3,1);
    transition: all .3s;
}
.toast--error { border-left-color: var(--accent); }
.toast__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 800;
}
.toast--success .toast__icon { background: #ecfdf5; color: #10b981; }
.toast--error .toast__icon { background: #fef2f2; color: var(--accent); }
.toast__text { flex: 1; }
.toast__close {
    background: none;
    border: 0;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    line-height: 1;
    transition: color .2s;
}
.toast__close:hover { color: var(--dark); }
.toast.is-leaving {
    opacity: 0;
    transform: translateX(100%);
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 540px) {
    .toast-container { left: 16px; right: 16px; top: 16px; }
    .toast { max-width: 100%; }
}

/* =========================================================
   23. TESTIMONIALS CAROUSEL
   ========================================================= */
.testimonials {
    padding: 0;
    overflow: hidden;
}
.testimonials__track {
    display: flex;
    transition: transform .6s var(--ease);
}
.testimonials__slide {
    min-width: 100%;
    padding: 0 12px;
}
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    position: relative;
}
.testimonial-card__quote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
    margin-bottom: 28px;
    position: relative;
    padding-left: 32px;
}
.testimonial-card__quote::before {
    content: '\201C';
    position: absolute;
    left: -4px;
    top: -10px;
    font-size: 4rem;
    color: var(--accent);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: .25;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.testimonial-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-card__info h4 {
    margin: 0;
    font-size: .95rem;
    color: var(--dark);
}
.testimonial-card__info p {
    margin: 2px 0 0;
    font-size: .82rem;
    color: var(--text-light);
}
.testimonials__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.testimonials__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    color: var(--dark);
}
.testimonials__btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.testimonials__dots {
    display: flex;
    gap: 8px;
}
.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: 0;
    cursor: pointer;
    transition: all .25s;
    padding: 0;
}
.testimonials__dot.is-active {
    background: var(--accent);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .testimonial-card { padding: 28px 20px; }
    .testimonial-card__quote { font-size: 1.05rem; padding-left: 24px; }
    .testimonial-card__quote::before { font-size: 2.5rem; }
}

/* =========================================================
   24. FAQ ACCORDION
   ========================================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow .3s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.is-open { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    border: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
    transition: color .2s;
    gap: 16px;
}
.faq-item__question:hover { color: var(--accent); }
.faq-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .3s;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 400;
}
.faq-item.is-open .faq-item__icon {
    background: var(--accent);
    color: #fff;
    transform: rotate(45deg);
}
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease), padding .3s;
}
.faq-item.is-open .faq-item__answer {
    max-height: 400px;
}
.faq-item__answer-inner {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: .92rem;
}

/* =========================================================
   25. GALLERY LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.is-open { display: flex; animation: modal-fade .25s ease; }
.lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(8px);
}
.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    animation: modal-slide .4s cubic-bezier(.16, 1, .3, 1);
}
.lightbox__content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 32px 80px rgba(0,0,0,.4);
    object-fit: contain;
}
.lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255,255,255,.15);
    border: 0;
    color: #fff;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox__caption {
    text-align: center;
    color: rgba(255,255,255,.8);
    margin-top: 16px;
    font-size: .9rem;
}

/* =========================================================
   26. LOADING SKELETON
   ========================================================= */
.skeleton {
    background: linear-gradient(90deg, var(--bg-soft) 25%, #e8eaed 50%, var(--bg-soft) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton--text { height: 1em; margin-bottom: .8em; }
.skeleton--title { height: 1.8em; width: 60%; margin-bottom: 1em; }
.skeleton--card {
    height: 240px;
    border-radius: var(--radius);
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.page-transition.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   27. 404 PAGE
   ========================================================= */
.error-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
}
.error-404__code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
    opacity: .15;
    letter-spacing: -.04em;
}
.error-404__title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin: -20px 0 16px;
    color: var(--dark);
}
.error-404__text {
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
}
.error-404__search {
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
}
.error-404__search input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    transition: border-color .25s;
}
.error-404__search input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, .08);
}
.error-404__search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #fff;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.error-404__search button:hover { background: var(--accent-hover); }
