/* =========================================================
   Masterclass de IA Aplicada para Empresas — CEOS Lógica
   Sistema de diseño · mobile-first · sin dependencias
   ========================================================= */

:root {
  /* Paleta sobria con acento tecnológico */
  --bg:            #0a0e16;
  --bg-2:          #0e131f;
  --surface:       #131a28;
  --surface-2:     #18202f;
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.16);

  --text:          #eaf0f7;
  --text-soft:     #b6c2d4;
  --text-muted:    #7c8aa1;

  --blue:          #2f6bff;
  --blue-deep:     #1d3a8f;
  --accent:        #2ee6c5;   /* cian-verde técnico */
  --accent-soft:   rgba(46, 230, 197, 0.14);

  --grad-cta:      linear-gradient(135deg, #2ee6c5 0%, #2f9bff 100%);
  --glow:          0 0 0 1px rgba(46,230,197,.18), 0 18px 50px -18px rgba(46,230,197,.35);

  --radius:        16px;
  --radius-sm:     11px;
  --radius-lg:     24px;

  --maxw:          1160px;
  --pad:           clamp(20px, 5vw, 40px);

  --shadow-card:   0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* evita que overflow-y compute a auto y rompa position:sticky */
}

img, svg, video { display: block; max-width: 100%; }
svg { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }

.accent { color: var(--accent); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #062019; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--step--1);
  font-weight: 600; color: var(--accent); margin-bottom: 14px;
}
.section-title { font-size: var(--step-3); }
.section-intro { margin-top: 16px; color: var(--text-soft); font-size: var(--step-1); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: var(--step-0); line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn-primary {
  background: var(--grad-cta); color: #04161f;
  box-shadow: 0 16px 40px -16px rgba(46, 230, 197, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -16px rgba(46, 230, 197, 0.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: var(--step--1); }
.btn-lg { padding: 18px 30px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 22, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { display: block; width: auto; }
.brand-logo-ceos { height: 40px; }
.brand-logo-lider { height: 21px; filter: brightness(0) invert(1); opacity: 0.92; }
.brand-text { font-size: 0.95rem; font-weight: 700; }
.brand-sep { color: var(--text-muted); font-weight: 300; font-size: 1.1rem; }

@media (max-width: 520px) {
  .brand { gap: 9px; }
  .brand-logo-ceos { height: 32px; }
  .brand-logo-lider { height: 17px; }
  .header-cta { padding: 10px 14px; }
}
.header-nav { display: none; margin-left: auto; gap: 26px; font-size: var(--step--1); color: var(--text-soft); }
.header-nav a:hover { color: var(--text); }
.header-cta { margin-left: auto; }

@media (min-width: 920px) {
  .header-nav { display: flex; }
  .header-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 12vw, 150px) clamp(56px, 8vw, 96px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(47, 107, 255, 0.22), transparent 60%),
    radial-gradient(50% 50% at 8% 18%, rgba(46, 230, 197, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 22%, #000 0%, transparent 78%);
          mask-image: radial-gradient(75% 65% at 50% 22%, #000 0%, transparent 78%);
  opacity: 0.5;
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: var(--step--1); color: var(--text-soft); margin-bottom: 26px;
  background: rgba(255,255,255,0.03);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title { font-size: var(--step-4); letter-spacing: -0.035em; }
.hero-sub { margin-top: 22px; max-width: 620px; font-size: var(--step-1); color: var(--text-soft); font-weight: 400; }

.hero-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-top: 38px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--line); max-width: 720px;
}
.hero-facts li { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.fact-value { font-weight: 600; font-size: 0.96rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-foot { margin-top: 26px; font-size: var(--step--1); color: var(--text-muted); }

@media (min-width: 720px) {
  .hero-facts { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Urgencia ---------- */
.urgency { background: var(--bg-2); border-block: 1px solid var(--line); }
.urgency .section-title { font-size: var(--step-2); font-weight: 700; }
.lead { margin-top: 22px; font-size: var(--step-1); color: var(--text-soft); font-weight: 400; }
.lead em { color: var(--text); font-style: normal; font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ---------- Qué cambió ---------- */
.shift-grid {
  display: grid; gap: 18px; align-items: stretch;
  grid-template-columns: 1fr;
}
.shift-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.shift-after { border-color: rgba(46, 230, 197, 0.35); box-shadow: var(--glow); }
.shift-tag { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }
.shift-card ul { display: grid; gap: 12px; }
.shift-card li { position: relative; padding-left: 26px; color: var(--text-soft); }
.shift-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--text-muted); }
.shift-after li::before { background: var(--accent); }
.shift-arrow { display: grid; place-items: center; color: var(--accent); transform: rotate(90deg); }
.shift-note { margin-top: 28px; font-size: var(--step-1); color: var(--text-soft); }

@media (min-width: 860px) {
  .shift-grid { grid-template-columns: 1fr auto 1fr; }
  .shift-arrow { transform: none; }
}

/* ---------- Para quién ---------- */
.audience { background: var(--bg-2); border-block: 1px solid var(--line); }
.audience-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.audience-grid li {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; font-weight: 500; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.audience-grid li:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ag-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); font-size: 0.95rem; }
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   ARQUITECTURA / EXPLODED VIEW
   ========================================================= */
.architecture { padding-bottom: clamp(48px, 6vw, 80px); }

/* Scrollytelling track (desktop) — oculto por defecto, activado por JS */
.arch-track { display: none; }

.arch-stage {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad);
}
.arch-scene {
  position: relative; height: 70vh; perspective: 1400px;
  display: grid; place-items: center;
}
.arch-layer {
  position: absolute; width: min(440px, 80%); height: 92px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  cursor: pointer;
}
.arch-layer:focus-visible { outline: none; }
.layer-face {
  height: 100%; border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
  display: flex; align-items: center; gap: 18px; padding: 0 26px;
  transform: rotateX(54deg) rotateZ(-42deg);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.arch-layer:hover .layer-face {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px var(--accent-soft);
}
.arch-layer:focus-visible .layer-face {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 30px 60px -30px rgba(0,0,0,.9);
}
.arch-layer.is-active .layer-face {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(46,230,197,.16), var(--surface-2));
}
.readout-hint {
  margin-top: 20px; font-size: 0.84rem; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.readout-hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.layer-index { font-weight: 700; font-size: 1.1rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.layer-name { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }

.arch-readout { max-width: 380px; }
.readout-step { font-size: 0.95rem; color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.readout-step #roCurrent { color: var(--accent); font-size: 1.4rem; }
.readout-total { color: var(--text-muted); }
.readout-name { font-size: var(--step-2); margin: 10px 0 14px; }
.readout-desc { color: var(--text-soft); font-size: var(--step-0); }
.readout-benefit { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); }
.rb-label { color: var(--accent); font-weight: 600; }

/* Acordeón / lista (mobile + fallback) */
.arch-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.arch-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .25s var(--ease);
}
.arch-item.is-open, .arch-item:hover { border-color: var(--line-strong); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: 16px;
  background: transparent; border: 0; color: var(--text);
  padding: 20px 22px; text-align: left;
}
.acc-index { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.acc-name { font-weight: 600; font-size: var(--step-0); flex: 1; }
.acc-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; background: var(--text-soft); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.acc-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc-icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.arch-item.is-open .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-panel {
  overflow: hidden; max-height: 0;
  transition: max-height .35s var(--ease);
}
.acc-panel > * { padding-inline: 22px; color: var(--text-soft); }
.acc-panel > :first-child { padding-top: 2px; }
.acc-panel > :last-child { padding-bottom: 22px; }
.acc-benefit { margin-top: 10px; color: var(--text); }
.acc-benefit strong { color: var(--accent); }

/* Acordeón más amplio en pantallas grandes */
@media (min-width: 768px) {
  .arch-list { gap: 16px; max-width: 940px; }
  .acc-trigger { padding: 28px 34px; gap: 24px; }
  .acc-index { font-size: 1.2rem; }
  .acc-name { font-size: var(--step-1); }
  .acc-icon { width: 20px; height: 20px; }
  .acc-icon::before { top: 9px; width: 20px; }
  .acc-icon::after { left: 9px; height: 20px; }
  .acc-panel > * { padding-inline: 34px; font-size: var(--step-0); }
  .acc-panel > :first-child { padding-top: 4px; }
  .acc-panel > :last-child { padding-bottom: 30px; }
  .acc-benefit { margin-top: 14px; }
}

.cta-inline { margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Entregables ---------- */
.deliverables { background: var(--bg-2); border-block: 1px solid var(--line); }
.del-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.del-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.del-card:hover { border-color: rgba(46,230,197,.32); transform: translateY(-3px); }
.del-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.del-icon svg { width: 24px; height: 24px; }
.del-card h3 { font-size: var(--step-1); margin-bottom: 8px; }
.del-card p { color: var(--text-soft); font-size: 0.95rem; }
@media (min-width: 620px) { .del-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .del-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Ficha del evento ---------- */
.event-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.event-card-main { padding: clamp(28px, 4vw, 48px); }
.event-specs { display: grid; gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.event-specs > div { background: var(--surface); padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.event-specs dt { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.event-specs dd { font-weight: 600; text-align: right; }
.event-card-side {
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(165deg, rgba(47,107,255,.12), rgba(46,230,197,.06)), var(--surface-2);
  border-top: 1px solid var(--line);
}
.price-tag { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; display: flex; align-items: flex-start; gap: 4px; }
.price-cur { font-size: 0.45em; margin-top: 0.35em; color: var(--accent); }
.price-mxn { font-size: 0.3em; align-self: flex-end; margin-bottom: 0.5em; color: var(--text-muted); letter-spacing: 0.05em; }
.price-note { color: var(--text-soft); font-size: 0.9rem; margin-top: 6px; }
.limited { display: inline-flex; align-items: center; gap: 9px; margin: 18px 0; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.side-list { margin-top: 22px; display: grid; gap: 10px; }
.side-list li { position: relative; padding-left: 26px; color: var(--text-soft); font-size: 0.92rem; }
.side-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (min-width: 880px) { .event-card { grid-template-columns: 1.3fr 1fr; } .event-card-side { border-top: 0; border-left: 1px solid var(--line); } }

/* ---------- Instructor ---------- */
.instructor { background: var(--bg-2); border-block: 1px solid var(--line); }
.instructor-inner { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
.instructor-media { display: flex; justify-content: flex-start; }
.instructor-photo {
  width: clamp(150px, 34vw, 240px); height: auto; aspect-ratio: 1; border-radius: 24px;
  object-fit: cover; object-position: center top;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-card);
}
.instructor-role { color: var(--accent); font-weight: 600; margin: 8px 0 16px; }
.instructor-body p { color: var(--text-soft); }
.instructor-points { margin-top: 20px; display: grid; gap: 10px; }
.instructor-points li { position: relative; padding-left: 26px; color: var(--text-soft); }
.instructor-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
@media (min-width: 800px) { .instructor-inner { grid-template-columns: auto 1fr; gap: 48px; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .25s var(--ease);
}
.faq-item[open], .faq-item:hover { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-weight: 600; display: flex; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; margin-left: auto; color: var(--accent); font-size: 1.4rem; font-weight: 400;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--text-soft); }

/* ---------- CTA final / Reservar ---------- */
.final-cta {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(47,107,255,.18), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(46,230,197,.12), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.final-inner { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
.final-copy .section-title { font-size: var(--step-3); }
.final-recap { margin-top: 26px; display: grid; gap: 12px; }
.final-recap li { position: relative; padding-left: 28px; color: var(--text-soft); font-size: var(--step-1); }
.final-recap li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.reserve-form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-card); }
.reserve-title { font-size: var(--step-2); }
.reserve-sub { color: var(--text-muted); font-size: 0.92rem; margin: 6px 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 7px; font-weight: 500; }
.field input {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:user-invalid { border-color: #ff6b6b; }
.reserve-form .btn { margin-top: 8px; }
.reserve-secure { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); }
.reserve-secure svg { color: var(--accent); }
@media (min-width: 900px) { .final-inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }

/* ---------- Contacto ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-mail { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-form {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-card);
}
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field .opt { color: var(--text-muted); font-weight: 400; }
.contact-form textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--text); resize: vertical; min-height: 120px;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form textarea:user-invalid { border-color: #ff6b6b; }
.contact-form .btn { margin-top: 8px; }
.form-status {
  margin-top: 16px; text-align: center; font-size: 0.92rem; padding: 12px 16px; border-radius: 11px;
}
.form-status.is-success { color: #1f6f5c; background: rgba(46,230,197,.14); border: 1px solid rgba(46,230,197,.4); color: var(--accent); }
.form-status.is-error { color: #ff8a8a; background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); }

/* ---------- Página de gracias ---------- */
.gracias-doc { text-align: left; }
.gracias-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px;
  color: var(--bg); background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.gracias-badge svg { width: 28px; height: 28px; }
.gracias-lead { font-size: var(--step-1); color: var(--text-soft); }
.gracias-recap {
  margin: 24px 0; padding: 18px 22px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.gracias-recap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gracias-doc .btn { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; background: var(--bg); }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-legal { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.9rem; color: var(--text-soft); }
.footer-nav a:hover { color: var(--accent); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .footer-nav { grid-column: 1 / -1; } }

/* ---------- Sticky CTAs ---------- */
.sticky-cta-desktop {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: none; align-items: center; gap: 6px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  background: var(--grad-cta); color: #04161f;
  box-shadow: 0 18px 44px -16px rgba(46,230,197,.6);
  opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sticky-cta-desktop.is-visible { opacity: 1; transform: translateY(0); }
.sticky-cta-desktop:hover { transform: translateY(-2px); }

.sticky-bar-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(13, 18, 28, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-bar-mobile.is-visible { transform: translateY(0); }
.sbm-price { display: flex; flex-direction: column; line-height: 1.2; }
.sbm-amount { font-weight: 800; font-size: 1.15rem; }
.sbm-note { font-size: 0.72rem; color: var(--text-muted); }
.sticky-bar-mobile .btn { margin-left: auto; flex: 1; max-width: 220px; }

/* Mostrar segun viewport (JS revela con hidden) */
@media (min-width: 1024px) { .sticky-cta-desktop { display: inline-flex; } }
@media (max-width: 1023px) { .sticky-bar-mobile { display: flex; } body { padding-bottom: 76px; } }

/* =========================================================
   Reveal on scroll (Intersection Observer)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Páginas legales (aviso de privacidad / términos)
   ========================================================= */
.legal-main { padding-block: clamp(48px, 8vw, 96px); }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-soft); font-size: 0.9rem; margin-bottom: 28px;
}
.legal-back:hover { color: var(--accent); }
.legal-doc { max-width: 760px; }
.legal-doc .kicker { margin-bottom: 12px; }
.legal-doc h1 { font-size: var(--step-3); margin-bottom: 12px; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.legal-doc h2 {
  font-size: var(--step-1); margin-top: 40px; margin-bottom: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-doc p, .legal-doc li { color: var(--text-soft); }
.legal-doc p { margin-bottom: 14px; }
.legal-doc strong { color: var(--text); }
.legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc ul { display: grid; gap: 10px; margin: 0 0 16px; }
.legal-doc ul li { position: relative; padding-left: 24px; }
.legal-doc ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.legal-note {
  margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text-muted); font-size: 0.88rem;
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse::after { display: none; }
}
