/* ============================================
   EDUKAPACITA OTEC · CORPORATE PROFESSIONAL
   Paleta: Azul marino + Dorado tenue
   Tipografía: Source Serif 4 + Inter
   ============================================ */

:root {
    --navy-deepest:  #3b82f6;
    --navy-deep:     #3b82f6;
    --navy:          #3b82f6;
    --navy-mid:      #60a5fa;
    --navy-soft:     #93c5fd;

    --gold:          #f5b800;
    --gold-deep:     #d4a000;
    --gold-soft:     #fcd34d;
    --gold-pale:     #fef9c3;

    --slate-700:     #334155;
    --slate-500:     #64748b;
    --slate-300:     #cbd5e1;

    --bg:            #fafaf8;
    --bg-warm:       #eff6ff;
    --surface:       #ffffff;
    --line:          #e8e4dc;
    --line-strong:   #d6d1c4;

    --text:          #1a2332;
    --text-soft:     #475569;
    --text-mute:     #6b7480;

    --success:       #047857;
    --danger:        #b91c1c;

    --font-serif: 'Source Serif 4', 'Times New Roman', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-xs: 0 1px 2px rgba(10, 22, 40, 0.04);
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
    --shadow:    0 4px 12px -2px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 12px 24px -8px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 24px 48px -16px rgba(10, 22, 40, 0.16);

    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --t-fast: 180ms ease;
    --t-base: 240ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--navy-deep);
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); }

p { margin: 0 0 1em; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; overflow: hidden; padding: 0; position: absolute;
    width: 1px; word-wrap: normal !important;
}

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--navy-deepest); color: white; padding: 1rem 1.5rem;
    z-index: 10000;
}
.skip-link:focus { top: 0; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.site-main { min-height: 50vh; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
    background: var(--navy-deepest);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(176, 141, 79, 0.2);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}
.topbar-contact {
    display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.topbar-link {
    color: rgba(255,255,255,0.82);
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 400;
}
.topbar-link:hover { color: var(--gold-soft); }
.topbar-link svg { width: 14px; height: 14px; opacity: 0.7; }

.cert-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--gold-soft);
    font-weight: 500; font-size: 12px;
    letter-spacing: 0.04em;
    padding: 4px 14px;
    border: 1px solid rgba(176, 141, 79, 0.4);
    border-radius: 2px;
}
.cert-badge svg { width: 13px; height: 13px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem var(--gutter);
    gap: 2rem;
    max-width: var(--container);
    margin-inline: auto;
}

.logo-mark { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--navy-deep); }
.logo-icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--navy-deep);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    flex-shrink: 0;
}
.logo-icon svg { width: 28px; height: 28px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand {
    font-family: var(--font-serif);
    font-weight: 500; font-size: 1.4rem;
    letter-spacing: -0.015em;
    color: var(--navy-deep);
}
.logo-tagline {
    font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-mute); margin-top: 3px; font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-menu {
    display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
}
.nav-menu li a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    transition: color var(--t-fast);
}
.nav-menu li a:hover { color: var(--navy-deep); }
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--navy-deep);
}
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--gold);
}

.nav-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--navy-deep); color: white !important;
    padding: 0.7rem 1.4rem;
    border-radius: 2px;
    font-weight: 500; font-size: 0.9rem;
    transition: all var(--t-base);
    letter-spacing: 0.01em;
}
.nav-cta:hover {
    background: var(--navy);
    transform: translateY(-1px);
}
.nav-cta svg { width: 16px; height: 16px; }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger-line {
    width: 24px; height: 2px; background: var(--navy-deep);
    transition: all var(--t-base);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 2px;
    font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer; border: 0;
    transition: all 220ms ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--navy-deep); color: white;
}
.btn-primary:hover {
    background: var(--navy); color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-gold {
    background: var(--gold); color: var(--navy-deepest);
}
.btn-gold:hover {
    background: var(--gold-deep); color: white;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent; color: var(--navy-deep);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
    background: var(--navy-deep); color: white;
    border-color: var(--navy-deep);
}
.btn-ghost-light {
    background: transparent; color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover {
    background: white; color: var(--navy-deep);
    border-color: white;
}
.btn-large { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 80px; height: 3px;
    background: var(--gold);
}

.hero-grid {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem; align-items: center;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--gold-deep);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
    content: ''; width: 30px; height: 1px; background: var(--gold);
}

.hero-title {
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--navy-deepest);
}
.hero-title .accent {
    color: var(--gold-deep);
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.hero-stat-number {
    font-family: var(--font-serif);
    font-size: 2.2rem; font-weight: 500;
    color: var(--navy-deep); line-height: 1;
    margin-bottom: 6px;
}
.hero-stat-label {
    font-size: 0.78rem; color: var(--text-mute);
    letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}

.hero-visual { position: relative; }

.hero-card-main {
    background: var(--navy-deepest);
    color: white;
    padding: 2.5rem;
    border-radius: 2px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.hero-card-main::before {
    content: '';
    position: absolute;
    top: 2.5rem; left: -8px;
    width: 4px; height: 60px;
    background: var(--gold);
}
.hero-card-eyebrow {
    color: var(--gold-soft);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem; font-weight: 500;
    line-height: 1.3;
    color: white;
    margin-bottom: 1.5rem;
}
.hero-card-list {
    list-style: none; padding: 0; margin: 0;
}
.hero-card-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
}
.hero-card-list li:last-child { border-bottom: 0; }
.hero-card-list svg {
    width: 16px; height: 16px;
    color: var(--gold-soft);
    flex-shrink: 0;
    margin-top: 4px;
}
.hero-card-foot {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: space-between;
}
.hero-card-foot-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-card-foot-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--gold-soft);
    font-weight: 500;
}

.hero-cert {
    position: absolute;
    bottom: -28px; right: -16px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow-md);
    border-radius: 2px;
    border-left: 4px solid var(--gold);
}
.hero-cert-label {
    font-size: 0.7rem; font-weight: 600;
    color: var(--text-mute);
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 4px;
}
.hero-cert-value {
    font-family: var(--font-serif);
    font-size: 1.05rem; font-weight: 600;
    color: var(--navy-deep);
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section { padding: clamp(3.5rem, 6vw, 6rem) 0; }

.section-header { max-width: 700px; margin-bottom: 3.5rem; }
.section-header.center { margin-inline: auto; text-align: center; }

.section-eyebrow {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-size: 12px; font-weight: 600;
    color: var(--gold-deep);
    letter-spacing: 0.2em; text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.section-eyebrow::before {
    content: ''; width: 24px; height: 1px; background: var(--gold);
}

.section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--navy-deepest);
}

.section-description {
    font-size: 1.05rem; color: var(--text-soft); line-height: 1.7;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0;
}
.trust-grid {
    display: grid; grid-template-columns: auto 1fr;
    gap: 3rem; align-items: center;
}
.trust-label {
    font-size: 0.75rem; font-weight: 600;
    color: var(--text-mute);
    letter-spacing: 0.18em; text-transform: uppercase;
    border-right: 1px solid var(--line-strong);
    padding-right: 3rem;
    line-height: 1.5;
}
.trust-logos {
    display: flex; gap: 2.75rem;
    align-items: center; flex-wrap: wrap;
}
.trust-logo {
    font-family: var(--font-serif);
    font-weight: 500; color: var(--text-soft);
    font-size: 1rem; letter-spacing: 0.02em;
    transition: color var(--t-fast);
}
.trust-logo:hover { color: var(--navy-deep); }

/* ============================================
   AREAS
   ============================================ */
.areas-section { background: var(--bg-warm); }

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.area-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 2.25rem 1.75rem;
    border-radius: 2px;
    transition: all var(--t-base);
    border-top: 3px solid transparent;
}
.area-card:hover {
    border-top-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.area-icon {
    width: 56px; height: 56px;
    background: var(--bg-warm);
    border: 1px solid var(--line);
    border-radius: 2px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--navy-deep);
    margin-bottom: 1.5rem;
}
.area-icon svg { width: 28px; height: 28px; }
.area-title {
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
    color: var(--navy-deep);
}
.area-description {
    color: var(--text-soft); font-size: 0.95rem;
    line-height: 1.65; margin-bottom: 1.25rem;
}
.area-count {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; font-weight: 600;
    color: var(--gold-deep);
    letter-spacing: 0.05em;
}
.area-count::after { content: '→'; transition: transform var(--t-fast); }
.area-card:hover .area-count::after { transform: translateX(4px); }

/* ============================================
   COURSES
   ============================================ */
.cursos-section { background: var(--bg); }

.cursos-filters {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    padding: 0.5rem 1.1rem;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.88rem; font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
}
.filter-btn:hover { border-color: var(--navy-deep); color: var(--navy-deep); }
.filter-btn.active {
    background: var(--navy-deep); border-color: var(--navy-deep); color: white;
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.curso-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: all var(--t-base);
    display: flex; flex-direction: column;
    position: relative;
}
.curso-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.curso-card-destacado {
    position: absolute; top: 12px; right: 12px;
    background: var(--gold);
    color: var(--navy-deepest);
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.curso-card-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem;
}
.curso-card-icon {
    width: 48px; height: 48px;
    background: var(--bg-warm);
    border: 1px solid var(--line);
    border-radius: 2px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--navy-deep);
    flex-shrink: 0;
}
.curso-card-icon svg { width: 22px; height: 22px; }
.curso-card-cat {
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold-deep);
    padding: 4px 8px;
    background: var(--gold-pale);
    border-radius: 2px;
    align-self: flex-start;
}

.curso-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1; display: flex; flex-direction: column;
}
.curso-card-title {
    font-family: var(--font-sans);
    font-size: 1.05rem; font-weight: 600;
    line-height: 1.35;
    color: var(--navy-deep);
    margin-bottom: 1rem;
    flex: 1;
}
.curso-card-title a { color: var(--navy-deep); }
.curso-card-title a:hover { color: var(--gold-deep); }

.curso-card-meta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--text-mute);
}
.curso-meta-item {
    display: inline-flex; align-items: center; gap: 0.35rem;
}
.curso-meta-item svg { width: 13px; height: 13px; }

.curso-card-precio {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
}
.precio-monto {
    font-family: var(--font-serif);
    font-size: 1.3rem; font-weight: 600;
    color: var(--navy-deep);
}
.precio-cotizar {
    font-size: 0.88rem; font-weight: 500;
    color: var(--gold-deep);
    font-style: italic;
}

.cursos-cta { text-align: center; margin-top: 3rem; }

/* ============================================
   MOODLE SECTION
   ============================================ */
.moodle-section {
    background: var(--navy-deepest);
    color: white;
    position: relative;
}
.moodle-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 3px;
    background: var(--gold);
}

.moodle-section h2 { color: white; }
.moodle-section .section-eyebrow { color: var(--gold-soft); }
.moodle-section .section-eyebrow::before { background: var(--gold-soft); }

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

.moodle-features {
    list-style: none; padding: 0;
    margin: 2rem 0 2.5rem;
}
.moodle-features li {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
}
.moodle-features li:last-child { border-bottom: 0; }
.moodle-features svg {
    width: 18px; height: 18px;
    color: var(--gold-soft);
    flex-shrink: 0;
    margin-top: 4px;
}

.moodle-visual {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 2px;
}
.moodle-visual-bar {
    display: flex; gap: 0.75rem; align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}
.moodle-visual-bar::before {
    content: ''; width: 8px; height: 8px;
    background: var(--gold-soft); border-radius: 50%;
}
.moodle-visual-bar span {
    font-size: 0.8rem; color: rgba(255,255,255,0.6);
    letter-spacing: 0.08em; text-transform: uppercase;
}
.moodle-mock-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.moodle-mock-row:last-child { border-bottom: 0; }
.moodle-mock-icon {
    width: 36px; height: 36px;
    background: rgba(176, 141, 79, 0.15);
    border: 1px solid rgba(176, 141, 79, 0.3);
    color: var(--gold-soft);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.moodle-mock-icon svg { width: 16px; height: 16px; }
.moodle-mock-text { flex: 1; }
.moodle-mock-title {
    font-size: 0.92rem; font-weight: 500;
    color: white;
    margin-bottom: 2px;
}
.moodle-mock-meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}
.moodle-mock-status {
    font-size: 0.72rem; font-weight: 600;
    color: var(--gold-soft);
    letter-spacing: 0.08em; text-transform: uppercase;
}

/* ============================================
   WHY US
   ============================================ */
.why-section { background: var(--surface); }

.why-grid {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 4rem; align-items: center;
}

.why-list {
    list-style: none; padding: 0;
    margin: 2.5rem 0;
}
.why-item {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}
.why-item:last-child { border-bottom: 0; }
.why-item-num {
    font-family: var(--font-serif);
    font-size: 1.5rem; font-weight: 500;
    color: var(--gold-deep);
    flex-shrink: 0;
    line-height: 1;
    min-width: 32px;
}
.why-item-title {
    font-size: 1.05rem; font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 0.35rem;
    font-family: var(--font-sans);
}
.why-item-desc {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.why-image {
    position: relative;
    aspect-ratio: 4/5;
    background: linear-gradient(160deg, var(--navy-deepest) 0%, var(--navy) 60%, var(--navy-deep) 100%);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gold);
}
.why-image-content {
    position: absolute;
    inset: 0;
    padding: 3rem 2.5rem;
    display: flex; flex-direction: column; justify-content: space-between;
    color: white;
}
.why-image-quote {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.45;
    color: white;
    font-style: italic;
}
.why-image-quote::before {
    content: '"';
    display: block;
    font-size: 4rem;
    line-height: 0.5;
    color: var(--gold);
    margin-bottom: 1rem;
}
.why-image-attribution {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
}
.why-image-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: white;
    margin-bottom: 4px;
}
.why-image-role {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   CTA + FOOTER
   ============================================ */
.cta-section {
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;
}
.cta-inner {
    display: grid; grid-template-columns: 1.5fr auto;
    gap: 2rem; align-items: center;
    padding: 1.75rem 0;
}
.cta-text h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem; font-weight: 500;
    color: var(--navy-deepest);
    margin-bottom: 0.4rem;
}
.cta-text p {
    color: var(--text-soft);
    margin: 0;
    font-size: 0.95rem;
}
.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.site-footer {
    background: var(--navy-deepest);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-mark { color: white; }
.footer-brand .logo-icon {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
    color: var(--gold-soft);
}
.footer-brand .logo-brand { color: white; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.5); }
.footer-description {
    margin: 1.5rem 0;
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    line-height: 1.65;
}
.footer-cert-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cert-pill {
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-soft);
}
.footer-title {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.footer-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 0.7rem;
}
.footer-list a {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    transition: color var(--t-fast);
}
.footer-list a:hover { color: var(--gold-soft); }
.footer-contact { font-size: 0.92rem; }
.footer-contact strong {
    font-family: var(--font-serif);
    color: white; font-weight: 500;
    font-size: 1.02rem;
}

.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social-link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--t-base);
    border-radius: 2px;
}
.social-link:hover {
    background: var(--gold);
    color: var(--navy-deepest);
    border-color: var(--gold);
}
.social-link svg { width: 16px; height: 16px; }

.footer-bottom {
    padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: var(--navy-deepest);
    color: white;
    padding: 4.5rem 0 4rem;
    position: relative;
    border-bottom: 4px solid var(--gold);
}
.breadcrumbs {
    display: flex; gap: 0.5rem; align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
}
.breadcrumbs a { color: rgba(255,255,255,0.55); }
.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs span { color: rgba(255,255,255,0.3); }

.page-header-eyebrow {
    color: var(--gold-soft);
    letter-spacing: 0.18em; text-transform: uppercase;
    font-size: 12px; font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}
.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 500;
}
.page-header-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    max-width: 700px;
    line-height: 1.65;
}

/* ============================================
   ABOUT
   ============================================ */
.mv-section { background: var(--bg); }
.mv-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.mv-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    padding: 3rem 2.5rem;
}
.mv-card-num {
    font-family: var(--font-serif);
    font-size: 0.85rem; font-weight: 500;
    color: var(--gold-deep);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: block;
}
.mv-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--navy-deep);
    margin-bottom: 1rem;
}
.mv-card p { color: var(--text-soft); line-height: 1.75; margin: 0; }

.stats-section {
    background: var(--navy-deepest); color: white;
    padding: 4rem 0; position: relative;
}
.stats-section::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 2px; background: var(--gold);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-block { text-align: center; padding: 1rem 0; }
.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500;
    color: var(--gold-soft);
    line-height: 1;
    margin-bottom: 0.6rem;
}
.stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section { padding-top: 4rem; padding-bottom: 4rem; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.contact-info {
    background: var(--navy-deepest); color: white;
    padding: 3rem 2.5rem; position: relative;
}
.contact-info::before {
    content: ''; position: absolute;
    top: 3rem; left: -4px;
    width: 4px; height: 60px;
    background: var(--gold);
}
.contact-info h3 { color: white; font-family: var(--font-serif); font-weight: 500; }
.contact-info > p { color: rgba(255,255,255,0.78); }

.contact-info-list {
    list-style: none; padding: 0; margin: 2rem 0 0;
    display: grid; gap: 1.5rem;
}
.contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start;
}
.contact-info-icon {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--gold-soft);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg { width: 16px; height: 16px; }
.contact-info-label {
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 4px;
}
.contact-info-value { color: white; font-size: 0.95rem; }
.contact-info-value a { color: white; }
.contact-info-value a:hover { color: var(--gold-soft); }

.contact-form-wrap { padding: 3rem 2.5rem; }
.contact-form { display: grid; gap: 1.25rem; }
.form-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-size: 0.82rem; font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    transition: all var(--t-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-deep);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-message {
    padding: 1rem 1.2rem;
    border-radius: 2px;
    font-size: 0.92rem; font-weight: 500;
    display: none;
}
.form-message.success {
    display: block; background: #d1fae5;
    color: var(--success);
    border-left: 3px solid var(--success);
}
.form-message.error {
    display: block; background: #fee2e2;
    color: var(--danger);
    border-left: 3px solid var(--danger);
}

/* ============================================
   COURSE SINGLE (single-curso.php)
   ============================================ */
.curso-single {
    display: grid; grid-template-columns: 2fr 1fr;
    gap: 3rem; align-items: start;
    padding: 4rem 0;
}
.curso-single-content {
    font-size: 1.05rem; line-height: 1.75;
}
.curso-single-content h2,
.curso-single-content h3 {
    margin-top: 2rem;
}
.curso-single-meta-bar {
    display: flex; gap: 2rem; flex-wrap: wrap;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.curso-single-meta-item {
    display: flex; flex-direction: column;
}
.curso-single-meta-label {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-mute);
    font-weight: 600; margin-bottom: 4px;
}
.curso-single-meta-value {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy-deep);
    font-weight: 500;
}

.curso-sidebar {
    position: sticky; top: 100px;
    background: var(--bg-warm);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    padding: 2rem;
}
.curso-sidebar h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--navy-deep);
    margin-bottom: 0.5rem;
}
.curso-sidebar p {
    color: var(--text-soft); font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.curso-sidebar-precio {
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.5rem;
}
.curso-sidebar-precio-label {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-mute);
    font-weight: 600; margin-bottom: 6px;
}
.curso-sidebar-precio .precio-monto {
    font-size: 1.8rem;
}
.curso-sidebar-detail {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
}
.curso-sidebar-detail li {
    display: flex; justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}
.curso-sidebar-detail li:last-child { border-bottom: 0; }
.curso-sidebar-detail strong {
    color: var(--navy-deep); font-weight: 600;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;   /* posición base — siempre visible */
    right: 24px;
    width: 54px; height: 54px;
    background: #25d366; color: white;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px -4px rgba(37, 211, 102, 0.5);
    z-index: 90;    /* el FAB admin se sitúa en z-index 95, encima y con bottom mayor */
    transition: all var(--t-base);
}
.whatsapp-float:hover {
    transform: scale(1.08); color: white;
    box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.65);
}
.whatsapp-float svg { width: 26px; height: 26px; }

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-cert { position: static; margin-top: 2rem; display: inline-block; }
    .moodle-grid, .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { grid-template-columns: 1fr; }
    .curso-single { grid-template-columns: 1fr; }
    .curso-sidebar { position: static; }
    .trust-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .trust-label { border-right: none; border-bottom: 1px solid var(--line-strong); padding: 0 0 1rem; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .topbar-location { display: none; }
    .topbar-inner { justify-content: center; }
    .menu-toggle { display: flex; }
    .nav-menu, .nav-cta {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: white; padding: 1.5rem;
        box-shadow: var(--shadow);
        flex-direction: column; gap: 1rem;
    }
    .main-nav.open .nav-menu,
    .main-nav.open .nav-cta { display: flex; }
    .main-nav.open .nav-cta {
        position: relative; top: auto;
        justify-content: center;
    }
    .nav-menu li a { display: block; padding: 0.5rem 0; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; z-index: 90; }
}

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

@media print {
    .topbar, .site-header, .site-footer, .whatsapp-float, .ed-admin-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
