/* =====================================================================
   FÉNIX ACADEMY — Hoja de estilos principal
   Paleta: magenta / burdeos (marca) + acento dorado (energía del fénix)
   ===================================================================== */

:root {
    /* Marca */
    --burgundy-900: #33081f;
    --burgundy-800: #4a0d2c;
    --burgundy-700: #5f0f38;
    --magenta-700:  #8e1553;
    --magenta-600:  #b01a68;
    --magenta-500:  #cc1f79;
    --pink-400:     #e0218a;
    --pink-200:     #f6c9e0;

    /* Acento */
    --gold-500:     #f2b84b;
    --gold-600:     #e0a531;

    /* Neutros */
    --ink:          #241019;
    --ink-soft:     #5a4650;
    --paper:        #ffffff;
    --paper-soft:   #faf5f8;
    --paper-pink:   #fbeef5;
    --line:         #ecdfe6;

    /* Gradientes */
    --grad-brand:   linear-gradient(135deg, #5f0f38 0%, #b01a68 55%, #e0218a 100%);
    --grad-hero:    linear-gradient(140deg, #2c0619 0%, #6a1140 48%, #b01a68 100%);
    --grad-cta:     linear-gradient(135deg, var(--gold-500), var(--gold-600));

    /* Sombras y radios */
    --shadow-sm:    0 2px 8px rgba(51, 8, 31, .08);
    --shadow-md:    0 10px 30px rgba(51, 8, 31, .12);
    --shadow-lg:    0 24px 60px rgba(51, 8, 31, .22);
    --radius:       18px;
    --radius-sm:    12px;

    --maxw:         1160px;
    --font-head:    'Poppins', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --header-h:     74px;   /* alto de la cabecera fija (lo actualiza el JS) */
}

/* --------------------------- Reset ligero --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--magenta-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink-400); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--burgundy-800); font-weight: 700; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* --------------------------- Utilidades ----------------------------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-soft); }
.section-pink { background: var(--paper-pink); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--magenta-600);
    margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.text-center { text-align: center; }

/* ---------------------------- Botones ------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .18s, box-shadow .18s, background .2s, color .2s;
    text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(176,26,104,.35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(176,26,104,.45); }
.btn-cta { background: var(--grad-cta); color: var(--burgundy-900); box-shadow: 0 10px 24px rgba(224,165,49,.4); }
.btn-cta:hover { color: var(--burgundy-900); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(224,165,49,.5); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { background: transparent; color: var(--magenta-600); border-color: var(--magenta-500); }
.btn-outline:hover { background: var(--magenta-600); color: #fff; }
.btn-wa { background: #25d366; color: #063d1c; }
.btn-wa:hover { background: #1fbe5a; color: #063d1c; transform: translateY(-2px); }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* -------------------------- Cabecera / nav -------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 60px; width: auto; border-radius: 12px; box-shadow: var(--shadow-sm); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    font-family: var(--font-head); font-weight: 500; color: var(--burgundy-800);
    padding: 10px 14px; border-radius: 10px; font-size: .98rem;
}
.nav-link:hover { background: var(--paper-pink); color: var(--magenta-600); }
.nav-link.active { color: var(--magenta-600); }
.nav-cta { margin-left: 8px; padding: 11px 22px; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--burgundy-800); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------ WhatsApp flotante ------------------------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ------------------------------ Hero -------------------------------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--grad-hero);
    padding: 92px 0 96px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(240,33,138,.55), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(242,184,75,.18), transparent 40%);
    pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    padding: 7px 15px; border-radius: 999px; font-size: .82rem; font-weight: 600;
    font-family: var(--font-head); letter-spacing: .02em;
}
.hero h1 {
    color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800;
    letter-spacing: -.01em; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold-500); }
.hero-lead { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-500); line-height: 1; }
.hero-trust span { font-size: .86rem; color: rgba(255,255,255,.8); }

.hero-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
    border-radius: 22px; padding: 30px; backdrop-filter: blur(6px);
    box-shadow: var(--shadow-lg);
}
.hero-card img { border-radius: 16px; box-shadow: var(--shadow-md); }
.hero-card-caption { margin-top: 18px; text-align: center; }
.hero-card-caption strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.hero-card-caption span { font-size: .9rem; color: rgba(255,255,255,.78); }

.hero-wave { position: relative; z-index: 2; line-height: 0; margin-top: 60px; margin-bottom: -96px; }
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* --------------------------- Franja logos --------------------------- */
.strip { background: var(--burgundy-800); color: #fff; padding: 16px 0; }
.strip-inner { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 500; }
.strip-inner span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; opacity: .92; }
.strip-inner .dot { color: var(--gold-500); }

/* ------------------------------ Cards ------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.6rem; background: var(--grad-brand); color: #fff; margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(176,26,104,.3);
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); }

/* Beneficios (por qué nosotros) */
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit .b-ico {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.3rem; background: var(--paper-pink); color: var(--magenta-600);
}
.benefit h3 { font-size: 1.1rem; margin-bottom: 4px; }
.benefit p { color: var(--ink-soft); font-size: .96rem; }

/* --------------------- Etapas / grupos por edad --------------------- */
.stage-card { position: relative; overflow: hidden; text-align: center; }
.stage-card .stage-ico { font-size: 2.4rem; margin-bottom: 10px; }
.stage-card .stage-range {
    display: inline-block; font-family: var(--font-head); font-weight: 700;
    color: var(--magenta-600); font-size: 1.35rem; margin-bottom: 4px;
}
.stage-card h3 { font-size: 1.05rem; color: var(--burgundy-800); margin-bottom: 10px; }
.stage-card p { font-size: .93rem; color: var(--ink-soft); }
.stage-card::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-brand);
}

.cat-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.cat-badge {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
    padding: 10px 20px; border-radius: 999px; font-size: .95rem;
}
.cat-badge.fem { background: var(--paper-pink); color: var(--magenta-600); border: 1px solid var(--pink-200); }
.cat-badge.masc { background: #eef1fb; color: #3a4bb3; border: 1px solid #d9e0f7; }

/* ------------------------ Metodología pasos ------------------------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.step::before {
    counter-increment: step; content: counter(step);
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
    background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 700;
    display: grid; place-items: center; font-size: 1.15rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* ----------------------------- Precios ------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.price-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; position: relative; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
    border: 0; color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-lg); transform: scale(1.03);
}
.price-card.featured h3, .price-card.featured .price-amount { color: #fff; }
.price-card.featured .price-equiv { color: rgba(255,255,255,.85); }
.price-card.featured .price-features li { color: rgba(255,255,255,.95); }
.price-card.featured .price-features li::before { color: var(--gold-500); }
.price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--grad-cta); color: var(--burgundy-900); font-family: var(--font-head); font-weight: 700;
    font-size: .78rem; padding: 6px 16px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.9rem; color: var(--burgundy-800); line-height: 1; }
.price-amount .cur { font-size: 1.3rem; vertical-align: super; }
.price-period { font-size: .95rem; color: var(--ink-soft); }
.featured .price-period { color: rgba(255,255,255,.85); }
.price-equiv { font-size: .9rem; color: var(--ink-soft); margin: 4px 0 18px; }
.price-features { display: grid; gap: 10px; margin: 20px 0 26px; }
.price-features li { padding-left: 28px; position: relative; font-size: .96rem; color: var(--ink); }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--magenta-600); font-weight: 700; }

.price-flex {
    margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
    background: var(--burgundy-800); color: #fff; border-radius: var(--radius); padding: 26px 32px;
}
.price-flex .pf-left h3 { color: #fff; margin-bottom: 4px; }
.price-flex .pf-left p { color: rgba(255,255,255,.82); font-size: .95rem; max-width: 520px; }
.price-flex .pf-price { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--gold-500); white-space: nowrap; }
.price-note { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 22px; }

/* --------------------------- Testimonios ---------------------------- */
.quote {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%;
}
.quote .stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-style: italic; color: var(--ink); margin-bottom: 16px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
}
.quote .who b { font-family: var(--font-head); font-size: .98rem; display: block; color: var(--burgundy-800); }
.quote .who span { font-size: .85rem; color: var(--ink-soft); }

/* ------------------------------- FAQ -------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--burgundy-800);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { flex: 0 0 auto; transition: transform .3s; color: var(--magenta-600); font-size: 1.3rem; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-soft); }

/* ------------------------------- CTA -------------------------------- */
.cta-band {
    background: var(--grad-hero); color: #fff; border-radius: 26px; padding: 56px 44px; text-align: center;
    position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(240,33,138,.5), transparent 45%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------------------- Cabecera de página ------------------------- */
.page-hero { background: var(--grad-hero); color: #fff; padding: 66px 0 58px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 10%, rgba(240,33,138,.5), transparent 46%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .88rem; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

/* ---------------------------- Formulario ---------------------------- */
.form-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.form-aside { background: var(--grad-brand); color: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.form-aside h3 { color: #fff; margin-bottom: 16px; }
.form-aside ul { display: grid; gap: 14px; margin-bottom: 26px; }
.form-aside li { padding-left: 30px; position: relative; }
.form-aside li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-500); font-weight: 700; font-size: 1.1rem; }
.form-aside .aside-contact { border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; display: grid; gap: 8px; font-size: .95rem; }
.form-aside .aside-contact a { color: #fff; text-decoration: underline; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; margin-bottom: 7px; color: var(--burgundy-800); }
.field .req { color: var(--pink-400); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--paper-soft); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--magenta-500); box-shadow: 0 0 0 3px rgba(204,31,121,.15); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.field-check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .96rem; }
.alert-error { background: #fdecef; border: 1px solid #f6c2cd; color: #a4123a; }
.alert-error ul { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.alert-ok { background: #e9f9ef; border: 1px solid #b7e9c9; color: #106a37; }

/* --------------------------- Info contacto -------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { text-align: center; padding: 30px 24px; }
.contact-card .cc-ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px; background: var(--paper-pink); color: var(--magenta-600); display: grid; place-items: center; font-size: 1.5rem; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card a, .contact-card p { color: var(--ink-soft); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-placeholder {
    height: 320px; border-radius: var(--radius); border: 2px dashed var(--pink-200);
    background: var(--paper-pink); display: grid; place-items: center; text-align: center; color: var(--magenta-600); padding: 24px;
}

/* ----------------------------- Tablas ------------------------------- */
.schedule-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.schedule-table th, .schedule-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .97rem; }
.schedule-table thead th { background: var(--grad-brand); color: #fff; font-family: var(--font-head); font-weight: 600; }
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule-table tbody tr:nth-child(even) { background: var(--paper-soft); }
code { background: var(--paper-pink); color: var(--magenta-600); padding: 2px 7px; border-radius: 6px; font-size: .88em; }

/* --------------------------- Texto legal ---------------------------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose .muted { font-size: .9rem; color: var(--ink-soft); }

/* ----------------------------- Footer ------------------------------- */
.site-footer { background: var(--burgundy-900); color: rgba(255,255,255,.82); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-logo { height: 56px; width: auto; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { max-width: 300px; }
.footer-social { display: flex; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a { color: var(--gold-500); font-weight: 600; font-family: var(--font-head); font-size: .92rem; }
.footer-col { min-width: 0; } /* permite que la columna encoja y evita desbordes */
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-contact li, .footer-col a, .footer-brand p { overflow-wrap: break-word; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: rgba(255,255,255,.8); }
.footer-col a:hover { color: var(--gold-500); }
.footer-cta p { margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .86rem; }
.footer-legal a { color: rgba(255,255,255,.8); }

/* --------------------------- Animaciones ---------------------------- */
/* Mejora progresiva: solo ocultamos si hay JS (clase .js en <html>).
   Sin JavaScript, el contenido se ve con total normalidad. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ================================================================
   SCROLLYTELLING — sección de vídeo que avanza con el scroll
   ================================================================ */
.zz { position: relative; background: #1a0510; color: #fff; }
.zz-stage {
    position: relative; overflow: hidden;
    /* Ocupa el área visible JUSTO debajo de la cabecera fija (así se ven las
       4 esquinas y nunca es más alta que la pantalla). */
    min-height: calc(100vh - var(--header-h));   /* fallback */
    min-height: calc(100svh - var(--header-h));  /* altura visible real */
    display: flex; align-items: center; background: #1a0510;
}

/* --- Capa de vídeo a pantalla completa --- */
.zz-media { position: absolute; inset: 0; z-index: 0; }
.zz-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 42%; display: block; background: transparent;
}
/* Fondo desenfocado (rellena los lados en pantallas apaisadas, sin franjas negras) */
.zz-backdrop {
    position: absolute; inset: 0;
    background: var(--zz-poster, url('../video/zigzag-poster.jpg')) center/cover no-repeat;
    filter: blur(34px) saturate(115%) brightness(.5); transform: scale(1.18);
}
/* Veladura de marca para legibilidad del texto */
.zz-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(20,3,10,.86) 0%, rgba(20,3,10,.5) 34%, rgba(20,3,10,0) 62%),
        linear-gradient(0deg, rgba(20,3,10,.85) 0%, rgba(20,3,10,.2) 30%, rgba(20,3,10,.15) 100%),
        linear-gradient(120deg, rgba(95,15,56,.35), rgba(20,3,10,0) 60%);
}

/* --- Marco decorativo de esquinas --- */
.zz-corner { position: absolute; width: 26px; height: 26px; z-index: 3; opacity: .6; pointer-events: none; }
.zz-corner.tl { top: 26px; left: 26px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.zz-corner.tr { top: 26px; right: 26px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.zz-corner.bl { bottom: 26px; left: 26px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; }
.zz-corner.br { bottom: 26px; right: 26px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; }

/* --- Barra de progreso del capítulo (abajo de la sección) --- */
.zz-progress {
    position: absolute; bottom: 0; left: 0; right: 0; height: 4px; z-index: 4;
    background: rgba(255,255,255,.14);
}
.zz-progress-bar {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--gold-500), var(--pink-400));
}

/* --- Contenido superpuesto (centrado verticalmente) --- */
.zz-ui { position: relative; z-index: 3; width: 100%; padding: 40px 0; }
.zz-kicker {
    display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; font-size: .78rem; color: var(--gold-500);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
    padding: 7px 15px; border-radius: 99px; margin-bottom: 20px;
}
.zz-captions { position: relative; max-width: 640px; }
.zz-cap { margin: 0; }
.zz-cap h2 {
    color: #fff; font-family: var(--font-head); font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em;
    margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.zz-cap h2 .accent { color: var(--gold-500); }
.zz-cap p { color: rgba(255,255,255,.92); font-size: clamp(1rem, 1.4vw, 1.25rem); max-width: 480px; margin-bottom: 22px; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.zz-cap .btn { margin-top: 4px; }

.zz-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
    color: rgba(255,255,255,.7); font-size: .85rem; font-family: var(--font-head);
    letter-spacing: .04em; animation: zzBob 1.8s ease-in-out infinite;
}
@keyframes zzBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---- Modo MEJORADO (GSAP activo): captions superpuestos que se relevan ----
   Anclados ARRIBA: el título queda siempre justo debajo del kicker (hueco fijo),
   y el contenido crece hacia abajo. La reserva de alto evita saltos. */
.zz.zz-enh .zz-captions { min-height: clamp(210px, 26vh, 290px); }
.zz.zz-enh .zz-cap {
    position: absolute; left: 0; right: 0; top: 0;
    opacity: 0; visibility: hidden;
}

/* ---- Barra de progreso de lectura (arriba del todo, en toda la web) ---- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--magenta-500), var(--gold-500));
    z-index: 200; transition: width .05s linear; pointer-events: none;
}

/* ---- Barra de progreso de lectura (arriba del todo, en toda la web) ---- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--magenta-500), var(--gold-500));
    z-index: 200; transition: width .05s linear; pointer-events: none;
}

/* --------------------------- Responsive ----------------------------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 420px; margin: 0 auto; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-wrap { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .price-card.featured { transform: none; }
    .contact-cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

}

/* Scrollytelling — ESCRITORIO (pantalla apaisada): el vídeo vertical se muestra
   entero (contain) desplazado a la derecha; el fondo desenfocado rellena. */
@media (min-width: 992px) {
    .zz-video {
        object-fit: contain; object-position: 84% 50%;
        /* Funde el borde izquierdo del vídeo con el fondo desenfocado (sin corte) */
        -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 58%);
                mask-image: linear-gradient(90deg, transparent 38%, #000 58%);
    }
}

@media (max-width: 760px) {
    .section { padding: 60px 0; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
        background: #fff; padding: 18px 22px 26px; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .32s ease; z-index: 99;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { padding: 13px 12px; border-radius: 10px; }
    .nav-cta { margin: 8px 0 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero-trust { gap: 18px; }
    .price-flex { flex-direction: column; align-items: flex-start; }
    .cta-band { padding: 40px 24px; }
}

@media (max-width: 460px) {
    .hero-trust b { font-size: 1.4rem; }
    .brand-logo { height: 50px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
