@import "tokens.css";

/* ─── Reset y base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ─── Layout ────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Tipografía ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; margin: 14px 0 12px; }
.sub { color: var(--ink-soft); max-width: 560px; }

/* ─── Nav ───────────────────────────────────────────────────── */
.nav-outer { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
nav {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(14, 17, 23, .94);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 22px;
  box-shadow: 0 12px 32px rgba(11, 14, 19, .18);
}
.brand {
  display: flex;
  align-items: center;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  color: #C7CEDA;
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-links a.active { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 6px 10px;
  cursor: pointer;
}

/* ─── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s, color .18s;
  font-family: var(--font-body);
}
.btn .arr { transition: transform .18s; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn-solid { background: var(--accent); color: #04121F; }
.btn-solid:hover { background: #4AA8FF; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1B212C; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; }
.nav-portal { background: #fff; color: var(--ink); padding: 10px 18px; font-size: 14px; }
.nav-portal:hover { background: var(--accent); color: #04121F; }

/* ─── Secciones ─────────────────────────────────────────────── */
.section { padding: 84px 0; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* ─── Ticket (elemento firma) ───────────────────────────────── */
.ticket-zone { position: relative; }
.ticket {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: 0 30px 70px rgba(11, 14, 19, .28);
  max-width: 430px;
  margin-left: auto;
  position: relative;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--line-dark);
  padding-bottom: 16px;
}
.ticket-head .t-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--panel-soft);
}
.ticket-head .t-code { font-family: var(--font-mono); font-size: 17px; color: #fff; margin-top: 3px; }
.badge-live {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ok);
  border: 1px solid rgba(43, 212, 143, .4);
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ticket-device {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-dark);
  font-size: 14px;
}
.ticket-device span { color: var(--panel-soft); }

/* Timeline del ticket */
.steps { list-style: none; padding: 18px 0 4px; display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; padding: 9px 0; font-size: 14.5px; }
.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
  position: relative;
}
.step:not(:last-child) .dot::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 26px;
  background: var(--line-dark);
}
.step.done .dot { background: rgba(43, 212, 143, .15); color: var(--ok); }
.step.done .dot::after { background: rgba(43, 212, 143, .4); }
.step.current .dot { background: rgba(30, 143, 245, .18); color: var(--accent); }
.step.current .dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; animation: pulse 1.6s infinite; }
.step.todo { color: var(--panel-soft); }
.step.todo .dot { border: 1.5px dashed var(--line-dark); }
.step time { font-family: var(--font-mono); font-size: 11.5px; color: var(--panel-soft); margin-top: 3px; }
.step .s-note { display: block; font-size: 12.5px; color: var(--panel-soft); }
.ticket-foot {
  margin-top: 14px;
  background: rgba(30, 143, 245, .1);
  border: 1px solid rgba(30, 143, 245, .28);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ticket-foot b { color: #fff; }
.ticket-foot a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.ticket-note {
  position: absolute;
  bottom: -18px;
  left: -8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 17px;
  font-size: 13.5px;
  box-shadow: 0 14px 34px rgba(11, 14, 19, .14);
  display: flex;
  gap: 9px;
  align-items: center;
}
.ticket-note .ok-ico { color: var(--ok); font-size: 16px; }

/* ─── Logos strip ───────────────────────────────────────────── */
.logos { padding: 40px 0 10px; }
.logo-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-row { display: flex; gap: 64px; width: max-content; animation: scroll 26s linear infinite; align-items: center; }
.logo-img { max-height: 28px; max-width: 90px; object-fit: contain; opacity: .55; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.logo-img:hover { opacity: .85; filter: grayscale(.3); }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #9AA3B0; letter-spacing: .02em; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .logo-row { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; gap: 24px; }
}

/* ─── Servicios ─────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 14, 19, .1); border-color: transparent; }
.svc-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(30, 143, 245, .1);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 21px;
}
.svc h3 { font-size: 20px; font-weight: 700; }
.svc p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.svc a { font-weight: 600; font-size: 14.5px; color: var(--accent-deep); display: inline-flex; gap: 7px; align-items: center; }
.svc a .arr { transition: transform .18s; }
.svc a:hover .arr { transform: translate(2px, -2px); }
.svc.b2b { background: var(--panel); border-color: var(--panel); color: var(--panel-ink); }
.svc.b2b p { color: var(--panel-soft); }
.svc.b2b .svc-ico { background: rgba(30, 143, 245, .16); color: var(--accent); }
.svc.b2b a { color: var(--accent); }

/* ─── Panel oscuro / stats ──────────────────────────────────── */
.dark-panel {
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 36px;
  padding: 74px 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.dark-panel .eyebrow { color: var(--accent); }
.dark-panel h2 { color: #fff; }
.dark-panel .lead { color: var(--panel-soft); margin-bottom: 34px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 44px; }
.stat b { font-family: var(--font-display); font-size: clamp(36px, 4vw, 50px); font-weight: 800; color: #fff; display: block; line-height: 1; }
.stat b em { font-style: normal; color: var(--accent); }
.stat span { font-size: 14px; color: var(--panel-soft); display: block; margin-top: 7px; max-width: 200px; }
.guarantee {
  background: rgba(43, 212, 143, .08);
  border: 1px solid rgba(43, 212, 143, .3);
  border-radius: var(--radius-xl);
  padding: 30px;
}
.guarantee .g-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.guarantee .g-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(43, 212, 143, .16);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ok);
}
.guarantee h3 { font-size: 21px; color: #fff; }
.guarantee p { font-size: 15px; color: var(--panel-soft); }
.guarantee ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.guarantee li { display: flex; gap: 11px; font-size: 14.5px; color: #D7DEE7; }
.guarantee li::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* ─── Tienda teaser ─────────────────────────────────────────── */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  transition: transform .2s, box-shadow .2s;
}
.prod:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 14, 19, .1); }
.prod .p-img {
  height: 150px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #EAF3FC, #F6F8FA);
  display: grid;
  place-items: center;
  font-size: 52px;
  margin-bottom: 16px;
}
.prod .p-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.prod h3 { font-size: 16.5px; font-weight: 600; font-family: var(--font-body); margin: 5px 0 10px; line-height: 1.35; }
.prod .p-price { display: flex; align-items: baseline; gap: 6px; }
.prod .p-price b { font-family: var(--font-display); font-size: 20px; }
.prod .p-price span { font-size: 12.5px; color: var(--ink-soft); }
.prod .p-stock { margin-top: 10px; font-size: 12.5px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.prod .p-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ─── Testimonios ───────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi q { font-size: 16px; line-height: 1.6; quotes: "\201C" "\201D"; }
.testi .t-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi .t-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.testi .t-who b { display: block; font-size: 14.5px; }
.testi .t-who span { font-size: 13px; color: var(--ink-soft); }
.stars { color: #F5B341; font-size: 14px; letter-spacing: 2px; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; color: var(--accent-deep); transition: transform .2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details .a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; }

/* ─── CTA final ─────────────────────────────────────────────── */
.cta-final {
  background: var(--panel);
  border-radius: 36px;
  padding: 72px 40px;
  text-align: center;
  color: var(--panel-ink);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(30, 143, 245, .28), transparent 65%);
}
.cta-final > * { position: relative; }
.cta-final h2 { color: #fff; max-width: 640px; margin: 14px auto 14px; }
.cta-final p { color: var(--panel-soft); max-width: 480px; margin: 0 auto 32px; }
.cta-final .hero-ctas { justify-content: center; }
.cta-wsp { margin-top: 22px; font-family: var(--font-mono); font-size: 13.5px; color: var(--panel-soft); }
.cta-wsp a { color: var(--accent); }

/* ─── Footer ────────────────────────────────────────────────── */
footer { padding: 70px 0 36px; color: var(--ink-soft); font-size: 14.5px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a:hover { color: var(--accent-deep); }
.foot-brand p { margin-top: 14px; max-width: 280px; }
.foot-contact li { display: flex; gap: 9px; align-items: flex-start; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; flex-wrap: wrap; }
.foot-social { display: flex; gap: 14px; }
.foot-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: border-color .18s, color .18s;
}
.foot-social a:hover { border-color: var(--ink); color: var(--ink); }

/* ─── Reveal on scroll ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .ticket { margin: 0 auto; }
  .services { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .dark-panel { grid-template-columns: 1fr; padding: 52px 34px; }
  .testi-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-portal { display: none; }
  .menu-btn { display: block; }
  .services, .shop-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-final { padding: 56px 24px; }
}

/* ─── Hero (específico de index) ────────────────────────────── */
.hero { padding: 84px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 10px;
  background: rgba(30, 143, 245, .18);
  z-index: -1;
  border-radius: 4px;
}
.hero p { margin: 22px 0 30px; font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; }
.proof-item { display: flex; flex-direction: column; }
.proof-item b { font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.proof-item span { font-size: 13px; color: var(--ink-soft); }
