:root {
  --bg: #081C23;
  --surface: #0F2B33;
  --surface-2: #123641;
  --border: #1C4552;
  --teal: #2E6272;
  --teal-light: #3E8296;
  --teal-pale: #B9D6DD;
  --orange: #F97316;
  --orange-deep: #E8730C;
  --orange-light: #F9A05C;
  --text: #EDF4F5;
  --text-dim: #9FB8BE;
  --text-faint: #7FA3AC;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

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

a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: #081C23; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--teal-pale); border: 1.5px solid var(--teal-light); }
.btn-ghost:hover { border-color: var(--teal-pale); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 17px 38px; font-size: 1.1rem; }

:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 28, 35, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  text-decoration: none; color: var(--text);
}
.nav-logo em { font-style: normal; color: var(--orange); }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--text-dim);
  font-size: 0.95rem; transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }

@media (min-width: 800px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--orange);
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.lead { color: var(--text-dim); font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 20px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }

@media (min-width: 900px) {
  .hero { padding: 96px 0 72px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Teléfono / chat ---------- */
.phone {
  width: min(340px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.phone-top {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-faint); font-size: 0.8rem;
  padding: 2px 6px 12px;
}
.phone-top .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }
.chat { display: flex; flex-direction: column; gap: 10px; height: 400px; overflow: hidden; scroll-behavior: smooth; text-align: left; }
.phone-mini .chat { height: 350px; }

.msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: msg-in 0.3s ease both;
}
.msg-user {
  align-self: flex-end;
  background: var(--teal);
  color: #EDF4F5;
  border-bottom-right-radius: 4px;
}
.msg-bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing {
  align-self: flex-start;
  display: flex; gap: 5px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-faint);
  animation: blink 1.1s infinite both;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; animation: msg-in 0.3s ease both; }
.chip {
  border: 1.5px solid var(--teal-light);
  color: var(--teal-pale);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip.sel { background: var(--orange); border-color: var(--orange); color: #081C23; font-weight: 600; }

.cards { display: flex; flex-direction: column; gap: 8px; animation: msg-in 0.3s ease both; }
.card {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card .price { color: var(--orange-light); font-weight: 600; white-space: nowrap; }
.card.sel { border-color: var(--orange); background: rgba(249, 115, 22, 0.1); }

.order-pill {
  align-self: center;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86EFAC;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  animation: msg-in 0.3s ease both;
}

.phones-row {
  display: grid; gap: 32px;
  margin-top: 48px;
}
.phone-demo { text-align: center; }
.phone-demo figcaption { margin-top: 14px; color: var(--text-dim); font-size: 0.95rem; }

@media (min-width: 900px) {
  .phones-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Barra de confianza ---------- */
.trustbar { border-block: 1px solid var(--border); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.trust-item {
  padding: 22px 12px;
  text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.trust-item strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--orange); }
.trust-item span { color: var(--text-dim); font-size: 0.85rem; }

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

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 20px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.05rem; }

.benefits-row { display: grid; gap: 24px; margin-top: 56px; }
.benefit h3 { color: var(--orange-light); margin-bottom: 8px; }
.benefit p { color: var(--text-dim); font-size: 0.97rem; }

@media (min-width: 800px) {
  .benefits-row { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- Pilares ---------- */
.pillars { display: grid; gap: 20px; margin-top: 40px; }
.pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.pillar-tag {
  color: var(--orange);
  font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 10px;
}
.pillar h3 { margin-bottom: 16px; font-size: 1.3rem; }
.pillar ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pillar li {
  color: var(--text-dim); font-size: 0.95rem;
  padding-left: 22px; position: relative;
}
.pillar li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px;
  background: var(--teal-light);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Centro de Mando ---------- */
.dash-wrap { margin-top: 48px; display: grid; gap: 28px; }
.dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi-label { color: var(--text-faint); font-size: 0.75rem; }
.kpi-value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.5rem); }
.kpi-delta { font-size: 0.78rem; color: var(--text-faint); }
.kpi-delta.up { color: #4ADE80; }

.dash-cols { display: grid; gap: 12px; }
.dash-card {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 16px;
}
.dash-title { color: var(--text-faint); font-size: 0.8rem; margin-bottom: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 0.8rem; color: var(--text-dim); }
.bar { background: rgba(255, 255, 255, 0.06); border-radius: 99px; height: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--orange-deep), var(--orange-light)); border-radius: 99px; }

.spark { width: 100%; height: auto; }
.spark polyline { fill: none; stroke: var(--teal-light); stroke-width: 3; stroke-linecap: round; }
.spark circle { fill: var(--orange); }
.dash-note { color: var(--text-dim); font-size: 0.82rem; margin-top: 8px; }

.stock-line { font-size: 0.85rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.stock-line:last-child { border-bottom: 0; }
.stock-line.warn { color: var(--orange-light); }
.stock-line.ok { color: var(--text-faint); }

.dash-questions { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.dq {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 500;
  color: var(--teal-pale);
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

@media (min-width: 900px) {
  .dash-wrap { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .dash-cols { grid-template-columns: 1fr 1fr; }
  .dash-card#dash-stock { grid-column: 1 / -1; }
}

/* ---------- Pasos ---------- */
.steps { list-style: none; display: grid; gap: 24px; margin-top: 40px; counter-reset: paso; }
.step { position: relative; padding: 26px 24px 26px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #081C23;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Dato piloto ---------- */
.stat-band { background: linear-gradient(180deg, var(--bg), #0A2530 60%, var(--bg)); text-align: center; }
.stat-big { font-family: var(--font-head); font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 600; max-width: 20em; margin: 0 auto; }
.stat-sub { color: var(--text-dim); margin-top: 14px; }

/* ---------- Lista de espera ---------- */
.waitlist { text-align: center; max-width: 680px; }
.waitlist p { color: var(--text-dim); margin: 16px auto 32px; }
.wait-form { display: grid; gap: 12px; }
.wait-form input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  min-height: 48px;
}
.wait-form input::placeholder { color: var(--text-faint); }
.wait-form input:focus { border-color: var(--teal-light); outline: none; }
.wait-form .btn { white-space: nowrap; }
.form-ok { color: #86EFAC; margin-top: 18px; font-weight: 500; }

@media (min-width: 700px) {
  .wait-form { grid-template-columns: 1fr 1fr auto; }
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-top: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 18px 22px;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.4rem; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--text-dim); font-size: 0.97rem; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; padding-bottom: 110px; }
.cta-final h2 { margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 34px 0; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer p { color: var(--text-dim); font-size: 0.9rem; }
.footer p a { color: var(--teal-pale); }
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--text-faint); font-size: 0.85rem; text-decoration: none; }
.footer nav a:hover { color: var(--text); }

@media (min-width: 800px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- Reveal on scroll (solo si hay JS: sin JS todo queda visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .chips, .cards, .order-pill { animation: none; }
}
