/* =========================================================
   Agencia Digital JB — embudo.css (Opción 3 · dark-glow negro+verde)
   landing.html / pago.html / gracias.html
   ========================================================= */

:root {
  --bg: #07090a;
  --bg-2: #0c1110;
  --surface: #11161a;
  --surface-2: #161d1f;
  --border: #232b2c;
  --border-soft: #1a2122;
  --green: #34e07a;
  --green-2: #1ec98f;
  --green-dim: #0e3322;
  --green-glow: rgba(52, 224, 122, 0.35);
  --green-soft: rgba(52, 224, 122, 0.1);
  --red: #ff5c5c;
  --red-soft: rgba(255, 92, 92, 0.12);
  --white: #f4f7f5;
  --muted: #9aa7a1;
  --muted-2: #6d7a75;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --max-width: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.18; letter-spacing: -0.01em; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Glow de fondo ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 14% 8%, rgba(52,224,122,0.16), transparent 70%),
    radial-gradient(560px 420px at 88% 28%, rgba(30,201,143,0.13), transparent 70%),
    radial-gradient(700px 500px at 50% 95%, rgba(52,224,122,0.08), transparent 70%);
}

body > * { position: relative; z-index: 1; }

/* ---------- Encabezado ---------- */
.funnel-header {
  background: rgba(7,9,10,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.funnel-header .container { display: flex; align-items: center; justify-content: space-between; }
.funnel-logo { display: inline-flex; align-items: center; }
.funnel-logo .logo-img { height: 50px; width: auto; display: block; border-radius: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  color: #04150b;
  box-shadow: 0 8px 24px var(--green-glow), 0 0 0 1px rgba(52,224,122,0.25) inset;
}
.btn-green:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-green:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border);
  padding: 11px 22px;
  font-size: 0.86rem;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.cta-wrap { text-align: center; margin-bottom: 8px; }
.cta-note { text-align: center; font-size: 0.84rem; color: var(--muted-2); margin-top: 16px; font-weight: 500; }

/* ---------- Hero ---------- */
.funnel-hero { padding: 76px 0 34px; text-align: center; }

.eyebrow-line {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.eyebrow-line strong { color: var(--green); font-weight: 700; }

.funnel-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 880px;
  margin: 0 auto 22px;
  font-weight: 700;
  color: var(--muted);
}
.funnel-hero h1 strong { color: var(--white); font-weight: 800; }
.funnel-hero h1 .hl-green { color: var(--green); font-weight: 800; }

.cons-line { display: inline-flex; flex-direction: column; gap: 8px; margin: 0 auto 30px; text-align: left; }
.cons-line .cons-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--white); }
.cons-line .cons-item .x { color: var(--red); font-weight: 800; }

.funnel-hero .subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
  font-weight: 500;
}
.funnel-hero .subtitle strong { color: var(--white); }

/* ---------- Video ---------- */
.video-wide { width: 96%; max-width: 1800px; margin: 0 auto 56px; padding: 0 12px; }

.video-frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 60px -10px var(--green-glow);
}
.video-block { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; border-radius: calc(var(--r-lg) - 8px); }
.video-block iframe,
.video-block video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }

/* ---------- Tarjetas con glow (incluye) ---------- */
.glow-section { padding: 30px 0 64px; }

.section-eyebrow {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 720px;
  margin: 0 auto 44px;
  font-weight: 700;
  color: var(--white);
}

.glow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.glow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.glow-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}
.glow-card .icon-box {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--surface-2), #0d1211);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--green);
  position: relative;
  z-index: 1;
}
.glow-card p { font-size: 0.95rem; color: var(--muted); font-weight: 500; position: relative; z-index: 1; }
.glow-card p strong { color: var(--white); }

/* ---------- Comparativa con barra lateral ---------- */
.bar-compare { padding: 20px 0 64px; }
.bar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.bar-col h3 { font-size: 1.1rem; margin-bottom: 18px; font-weight: 700; }
.bar-col.problems h3 { color: var(--red); }
.bar-col.includes h3 { color: var(--green); }

.bar-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--red);
  padding: 16px 18px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}
.bar-col.includes .bar-item { border-left-color: var(--green); }
.bar-item strong { color: var(--white); }

/* ---------- Cómo funciona ---------- */
.steps-section { padding: 20px 0 64px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.step-card h4 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 700; color: var(--white); }
.step-card p { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* ---------- Bonus ---------- */
.bonus-section { padding: 20px 0 64px; }
.bonus-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 38px;
}
.bonus-card .bonus-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}
.bonus-card .bonus-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; font-weight: 500; }

.bonus-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.bonus-item .emoji { font-size: 1.15rem; flex-shrink: 0; }
.bonus-item .txt { font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.bonus-item .txt strong { color: var(--green); font-weight: 700; }

/* ---------- Precio / Ticket ---------- */
.price-section { padding: 20px 0 90px; }
.price-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 36px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 70px -20px var(--green-glow);
}
.price-card h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 18px; font-weight: 700; }
.price-tag { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--green); margin-bottom: 6px; }
.price-tag .old { font-family: 'Inter', sans-serif; font-size: 1.1rem; color: var(--muted-2); text-decoration: line-through; font-weight: 600; margin-right: 10px; }
.price-save {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-caption { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; font-weight: 500; }
.price-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.price-features .chip {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- CTA fija móvil ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(7,9,10,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; padding: 14px 18px; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.funnel-footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.82rem;
  color: var(--muted-2);
  border-top: 1px solid var(--border-soft);
  font-weight: 500;
}

/* =========================================================
   RESERVA / GRACIAS
   ========================================================= */
.page-top { padding: 50px 0 6px; text-align: center; }
.page-top h1 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 700px; margin: 0 auto; font-weight: 700; color: var(--white); }
.page-top h1 .hl-green { color: var(--green); }
.page-top .subtitle { color: var(--muted); max-width: 540px; margin: 14px auto 0; font-weight: 500; }

.booking-section { padding: 36px 0 70px; }
.booking-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ---------- Stepper ---------- */
.progress-steps { display: flex; border-bottom: 1px solid var(--border); }
.progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-2);
}
.progress-step .step-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.progress-step.active { color: var(--white); }
.progress-step.active .step-circle { background: var(--green); color: #04150b; border-color: var(--green); }

/* ---------- Host ---------- */
.host-info { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.host-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #04150b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.host-info .host-name { font-weight: 700; font-size: 0.92rem; color: var(--white); }
.host-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--muted); margin-top: 3px; font-weight: 500; }
.host-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Calendario ---------- */
.calendar-wrap { padding: 22px 24px 26px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-nav .month-label { font-weight: 700; font-size: 0.95rem; color: var(--white); }
.calendar-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  color: var(--white);
  transition: background .15s, border-color .15s;
}
.calendar-nav button:hover { border-color: var(--green); color: var(--green); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.calendar-grid .dow { font-size: 0.7rem; font-weight: 700; color: var(--muted-2); text-transform: uppercase; padding-bottom: 8px; }

.calendar-grid .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--white);
  border: 1px solid transparent;
  transition: background .15s, transform .15s;
}
.calendar-grid .day.empty { cursor: default; }
.calendar-grid .day.disabled { color: var(--muted-2); opacity: 0.4; cursor: not-allowed; }
.calendar-grid .day.available { background: var(--bg-2); }
.calendar-grid .day.available:hover { background: var(--green-dim); color: var(--green); transform: scale(1.08); }
.calendar-grid .day.today { border-color: var(--muted-2); }
.calendar-grid .day.selected { background: var(--green); color: #04150b; }

/* ---------- Horarios ---------- */
.slots-wrap { margin-top: 20px; }
.slots-label { font-size: 0.84rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.slot-btn {
  padding: 10px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--white);
  transition: background .15s, border-color .15s;
}
.slot-btn:hover { border-color: var(--green); }
.slot-btn.selected { background: var(--green); color: #04150b; border-color: var(--green); }

.field-error { color: var(--red); font-size: 0.82rem; margin-top: 12px; display: none; font-weight: 600; }
.field-error.show { display: block; }

.calendar-actions { margin-top: 22px; display: flex; justify-content: flex-end; }
.btn-next {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #04150b;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, filter .15s;
}
.btn-next:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---------- Paso 2 ---------- */
.pay-wrap { padding: 24px 24px 28px; display: none; }
.pay-wrap.active { display: block; }
.calendar-step.hidden { display: none; }

.selected-summary {
  background: var(--green-dim);
  border: 1px solid rgba(52,224,122,0.3);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.field input, .field select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  background: var(--bg-2);
  color: var(--white);
  transition: border-color .15s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }

.section-divider {
  margin: 26px 0 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icons { display: flex; gap: 10px; font-size: 1.5rem; color: var(--muted-2); margin-bottom: 14px; }

.beta-note {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 500;
}

.submit-error { color: var(--red); font-size: 0.85rem; margin-top: 12px; text-align: center; display: none; font-weight: 600; }
.submit-error.show { display: block; }

/* ---------- Sidebar resumen ---------- */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
}
.summary-card .summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.summary-card h3 { font-size: 1.02rem; margin-bottom: 16px; font-weight: 700; color: var(--white); }
.summary-card li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.summary-card li .ico { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.summary-card .order-line {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}
.summary-trust { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.summary-trust span { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 7px; font-weight: 500; }

/* =========================================================
   GRACIAS
   ========================================================= */
.thanks-section { max-width: 660px; margin: 0 auto; padding: 60px 24px 90px; text-align: center; }

.thanks-badge {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #04150b;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 60px -5px var(--green-glow);
}

.thanks-section h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 16px; font-weight: 700; color: var(--white); }
.thanks-section .lead { color: var(--muted); margin-bottom: 28px; font-size: 1rem; font-weight: 500; }

.thanks-booking-pill {
  background: var(--green-dim);
  border: 1px solid rgba(52,224,122,0.3);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  color: var(--green);
  font-weight: 700;
  margin: 0 auto 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin-bottom: 22px;
  text-align: left;
}
.info-box h3 { font-size: 0.98rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--white); }
.info-box li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.info-box li .ico { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.info-box.warn { border-color: rgba(255,92,92,0.3); }
.info-box.warn li .ico { color: var(--red); }

.thanks-final { font-weight: 700; font-size: 1.1rem; margin-top: 32px; color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .booking-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .bar-grid { grid-template-columns: 1fr; gap: 28px; }
  .glow-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .sticky-cta { display: flex; }
}

@media (max-width: 520px) {
  .price-tag { font-size: 2.1rem; }
  .host-info { flex-direction: column; align-items: flex-start; }
  .progress-step span.step-label { display: none; }
  .bonus-card { padding: 26px 20px; }
}
