/* ============================ Tokens ============================ */
:root {
  /* Colores de marca (tomados del logo) */
  --brand: #16b85c;        /* verde del logo */
  --lime: #a8ec63;         /* verde lima del logo */

  --bg: #05160c;
  --bg-soft: #0a2414;
  --surface: #0e2d19;
  --surface-2: #143b22;
  --border: #205437;
  --text: #ecfbef;
  --text-dim: #9dc6ab;
  --text-mute: #6b9079;
  --accent: var(--brand);
  --accent-2: var(--lime);
  --accent-soft: rgba(22, 184, 92, 0.16);
  --success: var(--lime);
  --danger: #ff6b81;
  --radius: 18px;
  --radius-sm: 12px;
  --grad: linear-gradient(120deg, #16b85c 0%, #5fd96a 52%, #a8ec63 100%);
  --shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ========================= Fondo decorativo ===================== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}
.orb-1 { width: 480px; height: 480px; background: var(--brand); top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: var(--lime); top: 30%; right: -160px; opacity: 0.22; }
.orb-3 { width: 520px; height: 520px; background: #2fd06e; bottom: -240px; left: 25%; opacity: 0.24; }

main, .nav, .footer { position: relative; z-index: 1; }

/* ============================== Nav ============================= */
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.brand-name { letter-spacing: 0.06em; font-size: 0.95rem; }
.nav-cta {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.nav-cta:hover { border-color: var(--lime); transform: translateY(-2px); }

/* ============================= Hero ============================= */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(22, 184, 92, 0.4);
  color: #bde8c9;
  margin-bottom: 26px;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(168, 236, 99, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 236, 99, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(168, 236, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 236, 99, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.08rem;
}

/* ============================= Video ============================ */
.video-card {
  margin-top: 38px;
  width: min(1080px, 94vw);
  margin-left: 50%;
  transform: translateX(-50%);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.video-frame iframe,
.video-frame video,
.video-frame #ytPlayer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

/* Capa transparente que bloquea clics sobre el video (no se puede pausar) */
.video-guard {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Boton flotante para activar el sonido */
.unmute-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--grad);
  cursor: pointer;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.7);
  animation: pulseSound 2.4s ease infinite;
}
@keyframes pulseSound {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.unmute-pill.is-hidden { display: none; }
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(22, 184, 92, 0.4), transparent 60%),
    linear-gradient(160deg, #103a22, #06170d);
  color: var(--text);
  transition: background 0.3s;
}
.video-poster:hover { background:
    radial-gradient(circle at 50% 45%, rgba(22, 184, 92, 0.58), transparent 60%),
    linear-gradient(160deg, #144a2b, #06170d); }
.play-btn {
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--bg);
  box-shadow: 0 14px 40px -8px rgba(22, 184, 92, 0.85);
  transition: transform 0.2s;
}
.video-poster:hover .play-btn { transform: scale(1.08); }
.video-label { font-weight: 600; font-size: 0.92rem; color: var(--text-dim); }

/* ============================ CTA hero ========================== */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 17px 32px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 18px 45px -12px rgba(22, 184, 92, 0.8);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: shimmer 6s ease infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 24px 55px -12px rgba(22, 184, 92, 0.95); }
.hero-cta svg { transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(4px); }

.trust {
  list-style: none;
  margin: 34px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.trust strong { color: var(--text); font-family: var(--font-display); }
.trust li { display: flex; gap: 6px; }

/* =========================== Schedule =========================== */
.schedule {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 90px;
}
.schedule-head { text-align: center; margin-bottom: 30px; }
.schedule-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
}
.schedule-head p { color: var(--text-dim); margin-top: 8px; }

.booking-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ----------------------------- Steps ---------------------------- */
.steps {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-mute);
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.step span {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.step.is-active { color: var(--text); border-bottom-color: var(--lime); }
.step.is-active span { background: var(--grad); border-color: transparent; color: var(--bg); }
.step.is-done span { background: var(--lime); border-color: transparent; color: var(--bg); }

/* ----------------------------- Panels --------------------------- */
.panel { display: none; padding: 26px; }
.panel.is-active { display: block; animation: fade 0.35s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------- Calendario ------------------------- */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: capitalize;
}
.cal-nav {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--lime); background: var(--surface); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  position: relative;
}
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.disabled {
  background: transparent;
  color: var(--text-mute);
  opacity: 0.35;
  cursor: not-allowed;
}
.cal-day.available:hover { transform: translateY(-2px); border-color: var(--lime); }
.cal-day.available::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
}
.cal-day.selected {
  background: var(--grad);
  color: var(--bg);
  border-color: transparent;
}
.cal-day.selected::after { background: var(--bg); }
.cal-day.today { border-color: var(--text-mute); }
.cal-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-mute);
  text-align: center;
}

/* ----------------------------- Slots ---------------------------- */
.slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.slots-date {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: capitalize;
  color: var(--text);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  color: var(--lime);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.back-link:hover { text-decoration: underline; }

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.slot {
  padding: 13px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.slot:hover { transform: translateY(-2px); border-color: var(--lime); }
.slot.selected { background: var(--grad); border-color: transparent; color: var(--bg); }
.slot.taken {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text-mute);
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: line-through;
}
.slot.taken:hover { transform: none; border-color: var(--border); }
.slots-empty, .slots-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 10px;
  color: var(--text-mute);
}

/* Leyenda de huecos */
.slots-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-mute);
}
.slots-legend span { display: inline-flex; align-items: center; gap: 7px; }
.leg {
  width: 12px; height: 12px;
  border-radius: 4px;
  display: inline-block;
}
.leg-free { background: var(--surface-2); border: 1px solid var(--lime); }
.leg-taken { background: var(--bg-soft); border: 1px solid var(--border); opacity: 0.7; }

/* --------------------------- Formulario ------------------------- */
.summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(22, 184, 92, 0.35);
  font-weight: 600;
}
.summary svg { flex-shrink: 0; color: var(--lime); }
.summary .summary-when { color: #bde8c9; }

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-dim);
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: var(--danger); }

.form-error {
  background: rgba(255, 107, 129, 0.12);
  border: 1px solid rgba(255, 107, 129, 0.4);
  color: #ffb3c1;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bg);
  background: var(--grad);
  background-size: 160% 160%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 14px 35px -12px rgba(22, 184, 92, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.7; cursor: progress; }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(5, 22, 12, 0.35);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-legal {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-mute);
  text-align: center;
}

/* ----------------------------- Exito ---------------------------- */
.success { text-align: center; padding: 20px 10px 10px; }
.success-check {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(168, 236, 99, 0.16);
  border: 1px solid rgba(168, 236, 99, 0.45);
  color: var(--lime);
  animation: pop 0.5s cubic-bezier(0.22, 1.4, 0.5, 1);
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}
.success-detail {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #bde8c9;
}
.success-note { margin-top: 8px; color: var(--text-dim); font-size: 0.92rem; }
.ghost-btn {
  margin-top: 22px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ghost-btn:hover { border-color: var(--lime); }

/* ----------------------------- Footer --------------------------- */
.footer {
  text-align: center;
  padding: 30px 24px 40px;
  color: var(--text-mute);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ======================= Casos de exito ========================= */
.proof {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 100px;
  text-align: center;
}
.proof-head { max-width: 640px; margin: 0 auto 34px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.proof-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.proof-head p { margin-top: 12px; color: var(--text-dim); }

.clients-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 44px;
  margin-bottom: 46px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.client-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  color: var(--text);
  opacity: 0.82;
  transition: opacity 0.2s;
}
.client-logo:hover { opacity: 1; }

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.case {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s, border-color 0.2s;
}
.case:hover { transform: translateY(-4px); border-color: var(--lime); }
.case-stars { color: var(--lime); letter-spacing: 3px; font-size: 0.95rem; }
.case-text { color: var(--text-dim); font-size: 0.96rem; flex: 1; }
.case-client { display: flex; align-items: center; gap: 11px; }
.case-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--bg);
  background: var(--grad);
}
.case-id { display: flex; flex-direction: column; line-height: 1.3; }
.case-id strong { font-family: var(--font-display); font-size: 0.95rem; }
.case-id span { font-size: 0.8rem; color: var(--text-mute); }
.case-metric {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--lime);
  background: var(--accent-soft);
  border: 1px solid rgba(22, 184, 92, 0.3);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 42px 0 36px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 14px;
}
.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-box span { font-size: 0.82rem; color: var(--text-dim); }

.guarantees {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin: 0 0 30px;
}
.guarantees li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.guarantees svg { color: var(--lime); flex-shrink: 0; }

.proof-cta { margin-top: 4px; }

/* --------------------------- Responsive ------------------------- */
@media (max-width: 760px) {
  .cases { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; }
  .step { font-size: 0; gap: 0; }
  .step span { font-size: 0.8rem; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
