/* =========================================================
   FOUR01 · Páginas web que venden
   Paleta de marca: negro, aqua, rojo, blanco
========================================================= */

:root {
  --black: #080808;
  --surface: #111418;
  --surface-2: #171B21;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --white: #ffffff;
  --text: #E8EDF2;
  --muted: #98A3AF;
  --aqua: #00E5FF;
  --aqua-deep: #0077FF;
  --red: #FF1744;
  --paper: #F3F6F8;
  --ink: #0A0C0F;
  --green: #22C55E;
  --wa: #25D366;

  --grad: linear-gradient(135deg, var(--aqua) 0%, var(--aqua-deep) 100%);

  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--aqua); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

[data-lucide], .lucide { width: 1.15em; height: 1.15em; stroke-width: 2; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: var(--ink);
  box-shadow: 0 8px 28px -10px rgba(0, 229, 255, .65);
}
.btn-primary:hover { box-shadow: 0 12px 34px -8px rgba(0, 229, 255, .85); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-strong);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }

.btn-whatsapp { background: var(--wa); color: #052713; }
.btn-whatsapp:hover { background: #1fbe5b; }

.btn-paper { background: transparent; color: var(--ink); border-color: rgba(10, 12, 15, .2); }
.btn-paper:hover { border-color: var(--ink); }

/* ---------- Navbar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 8, 8, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark { width: 38px; height: 38px; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.logo-word b { color: var(--aqua); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--white); }

.menu-button { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); position: relative; }
.menu-button span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-button span:nth-child(1) { top: 15px; }
.menu-button span:nth-child(2) { top: 21px; }
.menu-button span:nth-child(3) { top: 27px; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -260px; top: -320px;
  background: radial-gradient(closest-side, rgba(0, 229, 255, .22), rgba(0, 119, 255, .08) 55%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; left: -220px; bottom: -260px;
  background: radial-gradient(closest-side, rgba(255, 23, 68, .16), transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  opacity: .55;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
  font-size: .88rem; color: var(--text);
  margin-bottom: 26px;
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-sub { margin-top: 24px; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; font-size: .93rem; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof [data-lucide], .hero-proof .lucide { color: var(--aqua); }

/* Mockup */
.hero-visual { position: relative; padding: 10px 40px 40px 0; }
.mock-desktop {
  width: 100%; height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 80px rgba(0, 229, 255, .08));
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transform-origin: left center;
}
.mock-phone {
  position: absolute; right: 0; bottom: 0;
  width: 27%; min-width: 110px; height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7));
}

/* Secuencia de armado: bloques aparecen uno a uno */
.mock-desktop .b, .mock-phone .p { opacity: 0; animation: build .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.mock-desktop .b { transform-box: fill-box; }
.b1 { animation-delay: .25s !important; }
.b2 { animation-delay: .55s !important; }
.b3 { animation-delay: .85s !important; }
.b4 { animation-delay: 1.05s !important; }
.b5 { animation-delay: 1.35s !important; }
.b6 { animation-delay: 1.5s !important; }
.b7 { animation-delay: 1.65s !important; }
.p1 { animation-delay: 1.9s !important; }
.p2 { animation-delay: 2.05s !important; }
.p3 { animation-delay: 2.2s !important; }
.p4 { animation-delay: 2.35s !important; }
@keyframes build {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.cursor { animation: cursor-move 7s ease-in-out 1.8s infinite; transform: translate(560px, 400px); }
@keyframes cursor-move {
  0% { transform: translate(560px, 400px); }
  20% { transform: translate(110px, 210px); }
  26% { transform: translate(110px, 210px) scale(.88); }
  30% { transform: translate(110px, 210px); }
  55% { transform: translate(500px, 62px); }
  60% { transform: translate(500px, 62px) scale(.88); }
  64% { transform: translate(500px, 62px); }
  100% { transform: translate(560px, 400px); }
}

.chip {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(23, 27, 33, .72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7);
  opacity: 0;
  animation: build .6s ease forwards, float 6s ease-in-out 3s infinite;
}
.chip strong { display: block; color: var(--white); font-size: .95rem; line-height: 1.2; }
.chip span { font-size: .78rem; color: var(--muted); }
.chip-speed { left: -28px; top: 46%; animation-delay: 2.6s, 3.2s; }
.chip-speed strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--green); }
.gauge { width: 40px; height: 40px; }
.gauge-arc { stroke-dashoffset: 98; animation: gauge 1.4s ease-out 2.8s forwards; }
@keyframes gauge { to { stroke-dashoffset: 0; } }
.chip-lead { right: 12%; top: -14px; animation-delay: 3s, 4s; }
.chip-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(37, 211, 102, .16); color: var(--wa); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 229, 255, .07), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.section-head-left { text-align: left; margin: 0; }
.section-head-left .btn { margin-top: 28px; }

/* ---------- Beneficios (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  overflow: hidden;
}
.tile h3 { font-size: 1.08rem; margin: 18px 0 10px; }
.tile p { color: var(--muted); font-size: .98rem; }
.tile-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(0, 229, 255, .1);
  border: 1px solid rgba(0, 229, 255, .25);
  color: var(--aqua);
}
.tile-xl {
  grid-column: span 2; grid-row: span 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 100%, rgba(0, 229, 255, .14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.tile-xl h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); max-width: 18ch; }
.tile-xl p { max-width: 52ch; font-size: 1.04rem; }
.speed-bars { width: 100%; max-width: 400px; height: auto; }
.tile-wide { grid-column: span 3; display: flex; gap: 22px; align-items: flex-start; }
.tile-wide h3 { margin-top: 4px; }
.tile-wide p { max-width: 80ch; }

/* ---------- Portafolio ---------- */
#portafolio { padding-top: 40px; }
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 40px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(227, 38, 44, .16), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}
.case-visual { position: relative; padding: 0 44px 44px 0; }
.case-browser {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9);
}
.case-bar { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.case-bar span { width: 10px; height: 10px; border-radius: 50%; background: #FF1744; }
.case-bar span:nth-child(2) { background: #FFB020; }
.case-bar span:nth-child(3) { background: #22C55E; }
.case-bar em {
  font-style: normal; font-size: .78rem; color: var(--muted);
  margin-left: 12px; padding: 4px 14px; border-radius: 99px; background: var(--black);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-screen { aspect-ratio: 16 / 10; background: var(--black); }
.case-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .25s ease; }
.case-screen img.swap { opacity: 0; }
.case-phone {
  position: absolute; right: 0; bottom: 0;
  width: 26%; min-width: 96px;
  padding: 6px; border-radius: 26px;
  background: #0D1014; border: 2px solid var(--line-strong);
  box-shadow: 0 30px 50px -16px rgba(0, 0, 0, .9);
}
.case-phone img { width: 100%; height: auto; border-radius: 20px; }

.case-tag {
  display: inline-block; padding: 5px 12px; border-radius: 99px;
  font-size: .82rem; font-weight: 600;
  color: #FF5A5F; background: rgba(227, 38, 44, .12); border: 1px solid rgba(227, 38, 44, .3);
}
.case-client h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 16px 0 12px; }
.case-client p { color: var(--muted); }

.case-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 26px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.case-tab { padding: 8px 16px; border-radius: 99px; font-size: .9rem; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s; }
.case-tab:hover { color: var(--white); }
.case-tab[aria-selected="true"] { background: var(--white); color: var(--ink); }

.case-list { display: grid; gap: 11px; margin-top: 26px; }
.case-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.case-list svg { color: var(--aqua); margin-top: 3px; width: 18px; height: 18px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Paquetes ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 30px 30px;
  border-radius: var(--r-lg);
  background: var(--black);
  border: 1px solid var(--line-strong);
}
.plan-featured {
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    linear-gradient(160deg, var(--aqua), rgba(0, 119, 255, .5) 40%, rgba(255, 23, 68, .6)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(0, 229, 255, .45);
  transform: translateY(-14px);
}
.plan-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--red); color: var(--white);
  font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.plan-badge svg { width: 14px; height: 14px; fill: currentColor; }
.plan-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--aqua);
}
.plan h3 { font-size: 1.3rem; margin-top: 20px; }
.plan-for { color: var(--muted); font-size: .96rem; margin-top: 8px; min-height: 3.1em; }
.launch-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px !important; padding: 8px 16px; border-radius: 99px;
  font-size: .92rem !important; font-weight: 600; color: var(--white) !important;
  background: rgba(255, 23, 68, .12); border: 1px solid rgba(255, 23, 68, .35);
}
.launch-note svg { color: #FF6B81; }
.plan-regular { margin-top: 24px; font-size: .88rem; color: var(--muted); }
.plan-regular s { color: #FF6B81; text-decoration-thickness: 2px; }
.plan-price {
  margin-top: 6px;
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: 2.3rem; letter-spacing: -0.03em; line-height: 1;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.plan-price .from { font-family: var(--font-body); font-weight: 500; font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.plan-price small { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-time svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.plan-time { margin-top: 12px; color: var(--aqua); font-size: .92rem; font-weight: 600; }
.plan-list { margin: 26px 0 30px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; flex-grow: 1; align-content: start; }
.plan-list li { display: flex; gap: 10px; font-size: .97rem; color: var(--text); }
.plan-list svg { color: var(--aqua); margin-top: 4px; width: 16px; height: 16px; }

/* ---------- Cotizador ---------- */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}
.quote-builder { display: grid; gap: 22px; }

.q-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: rgba(255, 255, 255, .025);
  min-width: 0;
}
.q-block legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--white);
  margin-bottom: 20px;
}
.q-block legend + * { clear: both; }
.q-step {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad); color: var(--ink);
  font-size: .85rem; font-weight: 700;
}

/* tipo */
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt label {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.type-opt label:hover { border-color: rgba(0, 229, 255, .5); }
.type-opt .t-icon { color: var(--aqua); margin-bottom: 6px; }
.type-opt .t-name { font-weight: 700; color: var(--white); }
.type-opt .t-meta { font-size: .86rem; color: var(--muted); }
.type-opt .t-check {
  position: absolute; top: 14px; right: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: all .2s;
}
.type-opt input:checked + label {
  border-color: var(--aqua);
  background: linear-gradient(180deg, rgba(0, 229, 255, .1), rgba(0, 229, 255, .03)), var(--surface);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, .08);
}
.type-opt input:checked + label .t-check {
  border-color: var(--aqua);
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0C0F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.type-opt input:focus-visible + label { outline: 2px solid var(--aqua); outline-offset: 3px; }

/* páginas */
.pages-row { display: flex; align-items: center; gap: 24px; }
.stepper {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); padding: 4px; flex-shrink: 0;
}
.step-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  transition: background-color .2s;
}
.step-btn:hover { background: rgba(255, 255, 255, .08); }
.step-btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper output {
  min-width: 48px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--white);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua) var(--fill, 15%), rgba(255, 255, 255, .1) var(--fill, 15%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--aqua);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 5px solid var(--aqua);
}
.q-hint { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.q-hint b { color: var(--aqua); font-weight: 600; }

/* extras */
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.extra { position: relative; }
.extra input { position: absolute; opacity: 0; pointer-events: none; }
.extra label {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer; height: 100%;
  transition: border-color .2s, background-color .2s;
}
.extra label:hover { border-color: rgba(0, 229, 255, .45); }
.extra .box {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--line-strong);
  transition: all .2s;
}
.extra .e-name { display: block; font-weight: 600; color: var(--white); font-size: .96rem; line-height: 1.3; }
.extra .e-desc { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.extra .e-price { font-weight: 700; font-size: .9rem; color: var(--aqua); white-space: nowrap; }
.extra input:checked + label { border-color: var(--aqua); background: rgba(0, 229, 255, .06); }
.extra input:checked + label .box {
  border-color: var(--aqua);
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0C0F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.extra input:focus-visible + label { outline: 2px solid var(--aqua); outline-offset: 3px; }
.extra input:disabled + label { cursor: default; opacity: .75; }
.extra input:disabled + label .e-price { color: var(--green); }
.extra.urgent .e-price { color: #FF6B81; }

/* campos */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: .9rem; font-weight: 600; color: var(--text); }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--white);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #66717D; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(0, 229, 255, .12); }
.field.invalid input { border-color: var(--red); }
.field-error { font-style: normal; font-size: .84rem; color: #FF6B81; min-height: 0; }

/* Ticket */
.ticket-wrap { position: sticky; top: calc(var(--header-h) + 20px); }
.ticket {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 28px 26px 26px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 40px 80px -30px rgba(0, 229, 255, .35), 0 20px 40px -20px rgba(0, 0, 0, .8);
}
/* borde perforado del ticket */
.ticket::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background:
    radial-gradient(circle at 10px 0, var(--paper) 9px, transparent 9.5px) 0 0 / 20px 12px repeat-x;
}
.ticket-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 2px dashed rgba(10, 12, 15, .15); }
.ticket-logo { width: 38px; height: 38px; background: var(--white); border-radius: 10px; padding: 4px; border: 1px solid rgba(10, 12, 15, .1); }
.ticket-head strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.ticket-head span { font-size: .82rem; color: #5B6570; }

.ticket-lines { padding: 16px 0; display: grid; gap: 10px; font-size: .92rem; min-height: 80px; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 14px; animation: line-in .3s ease; }
.ticket-lines li span:first-child { color: #333B44; }
.ticket-lines li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-lines li.base span:first-child { font-weight: 700; color: var(--ink); }
.ticket-lines li.muted span { color: #6B7580; font-weight: 500; }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.ticket-total {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 18px 0 16px;
  border-top: 2px dashed rgba(10, 12, 15, .15);
}
.ticket-total span { font-size: .85rem; color: #5B6570; font-weight: 600; }
.ticket-total strong {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ticket-total small { font-size: .78rem; color: #6B7580; }
.ticket-days {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px;
  background: var(--ink); color: var(--white);
}
.ticket-days span { color: var(--white); font-weight: 500; font-size: .85rem; white-space: nowrap; }
.ticket-days b { color: var(--aqua); font-family: var(--font-display); }
.ticket-days svg { color: var(--aqua); }
.ticket-note { font-size: .82rem; color: #5B6570; padding: 12px 14px; background: rgba(10, 12, 15, .05); border-radius: 10px; }
.ticket-actions { display: grid; gap: 10px; margin-top: 18px; }
.form-status { font-size: .86rem; margin-top: 12px; color: #0B7A3B; font-weight: 600; min-height: 1.2em; }
.form-status.error { color: #C8102E; }

.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.05); color: #0077FF; } }

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: s;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--aqua-deep), var(--red));
  opacity: .5;
}
.step { position: relative; padding: 0 6px; }
.step-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink);
  background: var(--grad);
  box-shadow: 0 0 0 8px var(--surface), 0 10px 30px -6px rgba(0, 229, 255, .6);
}
.step:last-child .step-num { background: linear-gradient(135deg, var(--red), #FF6B3D); box-shadow: 0 0 0 8px var(--surface), 0 10px 30px -6px rgba(255, 23, 68, .6); color: var(--white); }
.step-icon { position: absolute; top: 14px; right: 10px; color: rgba(255, 255, 255, .25); }
.step-icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.step p { color: var(--muted); font-size: .97rem; }
.step-time {
  display: inline-block; margin-top: 16px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--aqua);
  background: rgba(0, 229, 255, .08); border: 1px solid rgba(0, 229, 255, .2);
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-layout .section-head-left { position: sticky; top: calc(var(--header-h) + 30px); }
.accordion { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .025); transition: border-color .2s, background-color .2s; }
.acc-item.open { border-color: rgba(0, 229, 255, .35); background: rgba(0, 229, 255, .04); }
.acc-item h3 { font-family: var(--font-body); font-size: 1.04rem; font-weight: 600; letter-spacing: 0; }
.acc-btn {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; color: var(--white);
  border-radius: var(--r-md);
}
.acc-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; transition: transform .3s ease, background-color .2s, border-color .2s; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.acc-item.open .acc-icon { background: var(--aqua); border-color: var(--aqua); color: var(--ink); transform: rotate(180deg); }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 24px 22px; color: var(--muted); max-width: 68ch; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }

/* ---------- CTA final ---------- */
.final-cta { padding: 40px 0 120px; }
.final-inner {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  padding: 80px 32px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(0, 229, 255, .28), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(255, 23, 68, .25), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
  max-width: calc(var(--container) - 48px);
}
.final-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.final-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 24ch; margin-inline: auto; }
.final-inner p { color: var(--muted); margin: 18px auto 32px; max-width: 50ch; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 0; background: #050505; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: .95rem; max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--aqua); }
.footer-contact { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { color: var(--aqua); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: .88rem; color: #6B7580;
}
.footer-bottom a:hover { color: var(--aqua); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.ticket-legal { font-size: .76rem; color: #6B7580; margin-top: 4px; }
.ticket-legal a { color: #0A0C0F; text-decoration: underline; text-underline-offset: 2px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--white);
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* =========================================================
   Responsivo
========================================================= */
@media (max-width: 1080px) {
  .quote { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .type-grid { grid-template-columns: 1fr; }
  .type-opt label { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-right: 48px; }
  .type-opt .t-icon { margin-bottom: 0; }
  .type-opt .t-meta { flex-basis: 100%; padding-left: 32px; }
  .extras { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-button { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 28px;
    background: rgba(8, 8, 8, .97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); }
  .nav-cta { margin-top: 18px; padding: 1em; }
  .site-header.menu-open { background: rgba(8, 8, 8, .97); }

  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero h1 { max-width: 18ch; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-xl { grid-column: span 2; grid-row: auto; }
  .tile-wide { grid-column: span 2; }

  .case { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 32px; }

  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 30px; }
  .plan-featured { transform: none; order: -1; }
  .plan-for { min-height: 0; }

  .quote { grid-template-columns: 1fr; }
  .ticket-wrap { position: static; }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-opt label { flex-direction: column; align-items: flex-start; padding-right: 18px; }
  .type-opt .t-meta { padding-left: 0; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
  .steps::before { display: none; }

  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-layout .section-head-left { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 90px 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-inline: 18px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-sub { font-size: 1.04rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 10px 24px 30px 0; }
  .chip { padding: 9px 12px 9px 9px; gap: 9px; }
  .chip-speed { left: -6px; top: 52%; }
  .chip-lead { right: auto; left: 30%; top: -26px; }
  .chip-lead span { display: none; }
  .gauge { width: 32px; height: 32px; }
  .chip-icon { width: 30px; height: 30px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .bento { grid-template-columns: 1fr; }
  .tile-xl, .tile-wide { grid-column: auto; }
  .tile-wide { flex-direction: column; }
  .tile { padding: 24px; }

  .case { padding: 18px 18px 26px; border-radius: 24px; }
  .case-visual { padding: 0 22px 30px 0; }
  .case-phone { border-radius: 18px; padding: 4px; }
  .case-phone img { border-radius: 14px; }
  .case-tabs { display: flex; }
  .case-tab { flex: 1; padding: 8px 10px; }
  .case-actions .btn { flex: 1 1 100%; }

  .q-block { padding: 22px 18px; }
  .type-grid { grid-template-columns: 1fr; }
  .type-opt label { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-right: 48px; }
  .type-opt .t-meta { flex-basis: 100%; padding-left: 32px; }
  .pages-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .stepper { align-self: flex-start; }
  .extras { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .ticket { padding: 24px 20px 22px; }
  .ticket-total { flex-direction: column; align-items: flex-start; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .acc-btn { padding: 18px; }
  .acc-panel p { padding: 0 18px 18px; }

  .final-cta { padding-bottom: 90px; }
  .final-inner { padding: 56px 22px; border-radius: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .cursor { display: none; }
  .gauge-arc { stroke-dashoffset: 0; }
}
