/* ══════════════════════════════════════════
   ACE DIGITAL NETWORK - Secciones nuevas del home
   (servicios, proceso, precios, FAQ, CTA y cuestionario)
   Usa las variables de color de styles.css (:root)
   ══════════════════════════════════════════ */

:root {
  --card:      #202221;               /* fondo de tarjetas */
  --card-2:    #262928;               /* tarjetas internas / controles */
  --line:      rgba(255,255,255,0.09);
  --glow-a:    rgba(18,235,166,0.22); /* verde ACE */
  --glow-b:    rgba(125,211,252,0.22);/* celeste ACE */
}

/* Padding común de todas las secciones nuevas */
.svc, .steps, .pricing, .qa, .final-cta {
  padding: var(--section-y) 0;
  position: relative;
  scroll-margin-top: 24px;
}

/* Títulos grandes estilo "statement" */
.big-title {
  color: var(--ink);
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}
.big-title.center, .lede.center { text-align: center; margin-left: auto; margin-right: auto; }
.big-title .accent { color: var(--accent); }

/* Link con flecha y subrayado verde */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--accent);
  transition: gap 0.25s var(--ease-out), color 0.2s;
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.link-arrow:hover { gap: 12px; color: var(--accent); }

/* Fondo con brillo en esquinas (se usa en la tarjeta destacada) */
.glow-bg {
  background:
    radial-gradient(60% 55% at 100% 0%, var(--glow-b), transparent 70%),
    radial-gradient(55% 50% at 0% 100%, var(--glow-a), transparent 70%),
    #0d0f0e;
}

/* ══════════════════════════════════════════
   0. HERO (.intro)
   ══════════════════════════════════════════ */
.intro {
  position: relative;
  padding: clamp(130px, 14vw, 170px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
}
/* Brillo de fondo suave detrás de la escena */
.intro::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 70vw; height: 90%;
  background: radial-gradient(closest-side, rgba(18,235,166,0.10), transparent);
  pointer-events: none;
}
.intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.intro-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-muted);
  font-weight: 600; font-size: 0.95rem;
  margin-bottom: 22px;
}
.intro-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.intro-title {
  color: var(--ink);
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
  max-width: 14ch;
}
.intro-lede {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 46ch;
  margin: 26px 0 34px;
}
.intro-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Escena de la derecha: misma tarjeta con brillo que la de servicios */
.intro-stage {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(55% 60% at 100% 0%, var(--glow-b), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, var(--glow-a), transparent 70%),
    #0d0f0e;
}
.intro-stage .stage-tag { position: absolute; top: 22px; right: 22px; }
.intro-browser { position: absolute; top: 25%; left: 9%; width: 72%; }
.intro-browser .m-tiles span:nth-child(1) { background: linear-gradient(135deg, #f1d9c4, #d9b899); }
.intro-browser .m-tiles span:nth-child(2) { background: linear-gradient(135deg, #d9e6e1, #a9cfc3); }
.intro-browser .m-tiles span:nth-child(3) { background: linear-gradient(135deg, #cfe0ee, #a7c4dc); }

.intro-notif { position: absolute; width: auto; min-width: 250px; top: 9%; right: 5%; z-index: 3; }

.intro-card {
  position: absolute;
  left: 3%; bottom: 3%;
  width: 37%;
  aspect-ratio: 1.5;
  background: #f6f5ef; color: #111;
  border-radius: 10px;
  padding: 16px 58px 16px 16px; /* espacio a la derecha para el QR */
  transform: rotate(-6deg);
  box-shadow: 0 24px 50px rgba(0,0,0,0.55);
  z-index: 2;
}
.intro-card .m-qr { width: 38px; height: 38px; right: 14px; bottom: 14px; }
.intro-card-h { font-size: clamp(0.95rem, 1.7vw, 1.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }

.intro-post {
  position: absolute;
  right: 6%; bottom: 8%;
  width: 34%;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  transform: rotate(4deg);
  box-shadow: 0 24px 50px rgba(0,0,0,0.55);
  z-index: 2;
}
.intro-post-img { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(140deg, #9ee9cf, #7dd3fc 60%, #c9b8f5); }
.intro-post-meta { color: #111; font-size: 0.75rem; font-weight: 700; padding: 8px 4px 2px; }
.intro-post-meta .heart { color: #e5484d; }
.intro-post-meta .muted { color: #888; font-weight: 500; }

/* Flotan despacio, cada pieza a su ritmo (se apaga con reduced-motion) */
.intro-notif, .intro-card, .intro-post { animation: bob 6s ease-in-out infinite; }
.intro-card { --r: -6deg; animation-delay: -2s; }
.intro-post { --r: 4deg; animation-delay: -4s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}

/* Fila de rubros */
.intro-for {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.intro-for span {
  color: var(--ink); font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
}

@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-title { max-width: 13ch; }
  .intro-stage { max-width: 620px; width: 100%; }
}
@media (max-width: 600px) {
  .intro-stage { aspect-ratio: 1 / 1.08; border-radius: 24px; overflow: hidden; }
  .intro-browser { width: 84%; left: 8%; top: 24%; }
  .intro-browser .m-tiles { display: none; }
  .intro-notif { min-width: 0; left: 6%; right: 6%; top: 7%; }
  .intro-card { width: 50%; }
  .intro-post { width: 40%; }
  .intro-stage .stage-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-notif, .intro-card, .intro-post { animation: none; }
}

/* ══════════════════════════════════════════
   1. SERVICIOS
   ══════════════════════════════════════════ */
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.svc-left .lede { margin-bottom: 36px; }

.svc-list { border-top: 1px solid var(--line); margin-bottom: 32px; }
.svc-item {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
/* Línea blanca debajo del item activo */
.svc-item::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px; width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.svc-item[aria-selected="true"] { color: var(--ink); }
.svc-item[aria-selected="true"]::after { transform: scaleX(1); }
.svc-item:hover { color: var(--ink); }
.svc-num { font-size: 0.78rem; font-weight: 700; width: 22px; color: var(--text-dim); }
.svc-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--card-2);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}
.svc-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-item[aria-selected="true"] .svc-ico { background: var(--accent); color: #0a0a0a; }
.svc-label { font-size: clamp(1rem, 1.5vw, 1.18rem); font-weight: 700; }
.svc-short, .stage-title { display: none; } /* solo en celular */

/* Tarjeta de vista previa */
.svc-stage {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  min-height: 540px;
  display: flex;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 100% 0%, var(--glow-b), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, var(--glow-a), transparent 70%),
    #0d0f0e;
  border: 1px solid var(--line);
}
.svc-panel { display: flex; flex-direction: column; width: 100%; animation: panelIn 0.5s var(--ease-out); }
.svc-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.stage-tag {
  align-self: flex-end;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 5px 12px;
}
.mock-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.mock-area.col { flex-direction: column; gap: 12px; }
.stage-foot { border-top: 1px solid var(--line); padding-top: 20px; }
.stage-foot p { color: var(--text-muted); margin-bottom: 16px; }
.stage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill-tag {
  font-size: 0.75rem; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
  background: var(--accent); color: #0a0a0a;
}
.pill-tag.alt { background: var(--heading); }

/* ── Piezas de los mockups (todo CSS, sin imágenes) ── */
.m-browser {
  width: 78%;
  background: #f4f4f1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.m-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #e7e7e2; }
.m-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c5c5bf; }
.m-bar span { margin-left: 10px; font-size: 0.68rem; color: #666; background: #fff; border-radius: 100px; padding: 3px 14px; }
.m-page { padding: 16px 18px 18px; color: #111; }
.m-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.m-nav b { width: 18px; height: 18px; border-radius: 5px; background: #111; margin-right: auto; }
.m-nav span { width: 30px; height: 5px; border-radius: 3px; background: #ddd; }
.m-h { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px; }
.m-h.sm { font-size: 0.85rem; }
.m-line { height: 6px; border-radius: 3px; background: #ddd; margin-bottom: 6px; width: 90%; }
.m-line.short { width: 60%; }
.m-cta {
  display: inline-block; margin: 8px 0 14px;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.7rem; font-weight: 800;
  padding: 6px 14px; border-radius: 100px;
}
.m-cta.sm { font-size: 0.55rem; padding: 4px 9px; }
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-tiles span, .m-tile-lg { height: 68px; border-radius: 8px; background: linear-gradient(135deg, #d9e6e1, #b8d4cc); }
.m-tile-lg { height: 80px; }

.m-phone {
  position: absolute;
  right: 4%; bottom: 10%;
  width: 30%;
  background: #f4f4f1;
  border: 6px solid #1c1c1c;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.6);
}
.m-phone .m-page { padding: 12px; }
.m-phone.solo { position: relative; right: auto; bottom: auto; width: 46%; }

.m-profile { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.m-profile b { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--heading)); }
.m-profile div { flex: 1; }
.m-profile span { display: block; height: 6px; border-radius: 3px; background: #ccc; margin-bottom: 5px; }
.m-profile span.short { width: 50%; background: #e2e2e2; }
.m-stats { display: flex; gap: 14px; font-size: 0.6rem; color: #666; margin-bottom: 10px; }
.m-stats strong { display: block; color: #111; font-size: 0.78rem; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.m-grid i { aspect-ratio: 1; background: #cfe3dc; }
.m-grid i:nth-child(3n+2) { background: #bfe0f3; }
.m-grid i:nth-child(4n) { background: #9ee9cf; }

.m-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 0.78rem; font-weight: 700;
  padding: 8px 14px; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.m-chip.c-top { top: 16%; left: 4%; }
.m-chip.c-bot { bottom: 14%; right: 4%; }

.m-card {
  position: relative;
  width: 70%;
  aspect-ratio: 1.5;
  background: #f6f5ef;
  color: #111;
  border-radius: 10px;
  padding: 22px;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}
.m-card-kicker { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #0b9e70; margin-bottom: 6px; }
.m-card-h { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 12px; }
.m-card-h strong { color: #0b9e70; }
.m-qr {
  position: absolute; right: 22px; bottom: 22px;
  width: 54px; height: 54px; border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, #111 0 6px, transparent 6px 11px),
    repeating-linear-gradient(0deg, #111 0 6px, #f6f5ef 6px 11px);
  background-blend-mode: multiply;
}

.m-search {
  width: 86%;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: #333;
  border-radius: 100px;
  padding: 12px 18px;
  font-size: 0.9rem;
}
.m-search svg { width: 16px; height: 16px; fill: none; stroke: #666; stroke-width: 2; }
.m-result {
  width: 86%;
  display: flex; gap: 12px; align-items: center;
  background: #fff; color: #111;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 0 2px var(--accent);
}
.m-result b { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, #d9e6e1, #b8d4cc); flex-shrink: 0; }
.m-result > div { flex: 1; }
.m-res-name { font-weight: 800; font-size: 0.95rem; }
.m-res-stars { color: #f5a400; font-size: 0.8rem; margin-bottom: 6px; }
.m-res-stars span { color: #555; }
.m-result.ghost { opacity: 0.35; box-shadow: none; }

.m-notif {
  width: 86%;
  display: flex; gap: 12px; align-items: center;
  background: rgba(255,255,255,0.94); color: #111;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.m-notif b { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.m-notif .n1 { background: var(--accent); }
.m-notif .n2 { background: var(--heading); }
.m-notif .n3 { background: #cfcfcf; }
.m-notif div { flex: 1; min-width: 0; }
.m-notif p { font-weight: 800; font-size: 0.85rem; }
.m-notif span { font-size: 0.75rem; color: #555; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-notif em { font-style: normal; font-size: 0.7rem; color: #888; align-self: flex-start; }
.m-notif.dim { opacity: 0.5; transform: scale(0.96); }

.m-report { width: 88%; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.m-kpis span { display: block; font-size: 0.72rem; color: var(--text-muted); }
.m-kpis strong { font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--ink); letter-spacing: -0.02em; }
.m-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.m-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: rgba(18,235,166,0.22); }
.m-bars i.hi { background: var(--accent); }

/* Tienda online */
.m-shop { width: 86%; }
.m-cart { width: auto !important; height: auto !important; background: var(--accent) !important; color: #0a0a0a; font-size: 0.6rem; font-weight: 800; padding: 3px 8px; border-radius: 100px; }
.m-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-products i { display: block; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #f1d9c4, #d9b899); margin-bottom: 6px; }
.m-products div:nth-child(2) i { background: linear-gradient(135deg, #d9e6e1, #a9cfc3); }
.m-products div:nth-child(3) i { background: linear-gradient(135deg, #cfe0ee, #a7c4dc); }
.m-products p { font-size: 0.68rem; color: #444; line-height: 1.2; }
.m-products strong { font-size: 0.8rem; }
.m-order { position: absolute; right: 2%; bottom: 8%; width: auto; max-width: 70%; }
.b-warn { color: var(--heading); }
.b-note[hidden] { display: none; }

/* App móvil */
.m-app { width: 40%; }
.m-app-hi { font-weight: 800; font-size: 0.95rem; margin-bottom: 10px; }
.m-app-card {
  background: #111; color: #fff;
  border-radius: 12px; padding: 12px;
  margin-bottom: 10px;
}
.m-app-card span { display: block; font-size: 0.6rem; color: #aaa; }
.m-app-card strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.m-app-card .m-cta { font-style: normal; margin: 6px 0 0; }
.m-app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.m-app-grid i { aspect-ratio: 1.3; border-radius: 10px; background: linear-gradient(135deg, #d9e6e1, #b8d4cc); }
.m-app-grid i:nth-child(2) { background: linear-gradient(135deg, #cfe0ee, #a7c4dc); }
.m-app-grid i:nth-child(3) { background: linear-gradient(135deg, #f1d9c4, #d9b899); }
.m-app-tabs { display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid #e2e2e2; }
.m-app-tabs b { width: 16px; height: 16px; border-radius: 5px; background: #d6d6d6; }
.m-app-tabs b.on { background: var(--accent); }
.m-app-push { position: absolute; bottom: 12%; right: 2%; width: auto; max-width: 62%; }
.m-stores { position: absolute; left: 2%; top: 14%; display: grid; gap: 8px; }
.m-store {
  display: block;
  background: #000; color: #fff;
  border: 1px solid #555; border-radius: 10px;
  padding: 6px 14px;
  font-weight: 700; font-size: 0.9rem; line-height: 1.15;
}
.m-store small { display: block; font-size: 0.58rem; font-weight: 500; color: #ccc; }

/* ══════════════════════════════════════════
   2. PROCESO (Plan / Build / Grow)
   ══════════════════════════════════════════ */
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(48px, 6vw, 72px);
}
.step-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.step-card:nth-child(1) { z-index: 3; }
.step-card:nth-child(2) { z-index: 2; }
.step-card.glow {
  background:
    radial-gradient(70% 60% at 0% 0%, var(--glow-b), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, var(--glow-a), transparent 70%),
    #0d0f0e;
  border-color: var(--border-strong);
}
.step-top { display: flex; align-items: center; gap: 12px; }
.step-n {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #0a0a0a;
  font-weight: 800; font-size: 0.9rem;
}
.step-n.hi { background: var(--accent); }
.step-when { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.step-loop {
  margin-left: auto;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #0a0a0a;
}
.step-loop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step-word {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
  margin: 44px 0 18px;
}
.step-desc { color: var(--text-muted); font-size: 1.02rem; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; min-height: 5.5em; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.checks li::before {
  content: '';
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.step-card .link-arrow { margin-top: 24px; align-self: flex-start; }
/* Flecha que conecta una tarjeta con la siguiente */
.step-arrow {
  position: absolute;
  right: -28px; top: 54px;
  z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #0a0a0a;
  border: 4px solid var(--bg);
}
.step-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ══════════════════════════════════════════
   3. ARMADOR DE PLAN
   ══════════════════════════════════════════ */
.builder {
  position: relative;
  max-width: 600px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 45% at 100% 0%, var(--glow-b), transparent 70%),
    radial-gradient(55% 40% at 0% 100%, var(--glow-a), transparent 70%),
    #0d0f0e;
}
.builder-badge {
  position: absolute;
  top: -16px; right: 24px;
  background: var(--ink); color: #0a0a0a;
  font-size: 0.78rem; font-weight: 700;
  padding: 7px 14px; border-radius: 100px;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  opacity: 0.35;
}
.builder-badge.is-on { opacity: 1; transform: rotate(-2deg); }

.b-step { border: none; margin-bottom: 26px; transition: opacity 0.3s; }
.b-step.is-off { opacity: 0.35; }
.b-step legend { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-bottom: 12px; }
.b-n {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #0a0a0a;
  font-size: 0.78rem; font-weight: 800;
}

/* Control segmentado: radios escondidos, el <span> es el botón visible */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--card-2);
  border-radius: 100px;
}
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-4 { grid-template-columns: repeat(4, 1fr); }

/* Caja de comentarios opcional (solo con Custom) */
.b-custom { margin-top: 14px; }
.b-custom[hidden] { display: none; }
.b-custom label { display: block; font-size: 0.9rem; color: var(--heading); margin-bottom: 6px; }
.b-custom label span { color: var(--text-muted); }
.b-custom textarea { width: 100%; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: transparent; color: inherit; font: inherit; }
.b-custom textarea:focus { outline: none; border-color: var(--accent); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block;
  text-align: center;
  padding: 11px 8px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.25s, color 0.25s;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--accent); color: #0a0a0a; }
.seg input:focus-visible + span { outline: 2px solid var(--heading); outline-offset: 2px; }
.b-step:disabled .seg { pointer-events: none; }

.b-feats { list-style: none; margin: 16px 0 10px; display: grid; gap: 8px; }
.b-feats li { display: flex; gap: 10px; color: var(--ink); font-size: 0.95rem; }
.b-feats li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.b-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; }

.b-total { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.b-total-label { color: var(--text-muted); font-size: 0.9rem; }
.b-total-num {
  font-size: clamp(3rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: var(--ink);
  margin: 4px 0 12px;
  font-variant-numeric: tabular-nums;
}
.b-total-break { color: var(--ink); font-size: 0.95rem; margin-bottom: 8px; }
/* Setup y mensual lado a lado */
.b-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.b-prices > div { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.b-prices .b-total-num { font-size: clamp(2rem, 5vw, 2.9rem); margin: 4px 0 6px; white-space: nowrap; }
.b-prices .b-total-num small { font-size: 0.4em; font-weight: 700; color: var(--text-muted); letter-spacing: 0; margin-left: 2px; }
.b-total-num.is-free { color: var(--accent); }            /* "FREE" en verde */
.b-sub { color: var(--text-muted); font-size: 0.82rem; line-height: 1.4; }
.b-total-break.muted { color: var(--text-dim); font-size: 0.82rem; }
.b-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 26px; }

/* ══════════════════════════════════════════
   4. FAQ
   ══════════════════════════════════════════ */
.qa-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.qa-head { position: sticky; top: 120px; }
.qa-head .big-title { font-size: clamp(2.4rem, 4.4vw, 3.6rem); padding-bottom: 28px; border-bottom: 1px solid var(--border-strong); margin-bottom: 28px; }
.qa-ask { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.qa-ask img { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); padding: 6px; }
.qa-ask strong { display: block; color: var(--ink); font-size: 0.95rem; }
.qa-ask span { color: var(--text-muted); font-size: 0.85rem; }

.qa-list { display: grid; gap: 10px; }
.qa-list details {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: border-color 0.2s;
}
.qa-list details:hover, .qa-list details[open] { border-color: var(--border-strong); }
.qa-list summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  color: var(--ink);
}
.qa-list summary::-webkit-details-marker { display: none; }
/* El "+" que gira a "×" cuando se abre */
.qa-list summary::after {
  content: '+';
  font-size: 1.4rem; font-weight: 400; line-height: 1;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out);
}
.qa-list details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.qa-list details p { padding: 0 22px 22px; color: var(--text-muted); max-width: 62ch; }

/* ══════════════════════════════════════════
   5. CTA FINAL
   ══════════════════════════════════════════ */
.final-cta { border-top: 1px solid var(--line); }
.final-inner { text-align: center; }
.final-actions { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }

/* ══════════════════════════════════════════
   6. CUESTIONARIO (dialog)
   ══════════════════════════════════════════ */
.quote {
  /* Panel flotante a la derecha en desktop */
  margin: auto 24px 24px auto;
  width: min(460px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 48px));
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  color: var(--text);
  overflow: hidden;
  background:
    radial-gradient(80% 30% at 100% 0%, var(--glow-b), transparent 70%),
    #0d0f0e;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}
.quote[open] { display: flex; flex-direction: column; animation: quoteIn 0.45s var(--ease-out); }
.quote::backdrop { background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
@keyframes quoteIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

.quote-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; }
.quote-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); padding: 6px; }
.quote-kicker { font-size: 0.78rem; color: var(--text-muted); }
.quote-title { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.quote-close {
  margin-left: auto;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  background: var(--card-2); color: var(--ink);
}
.quote-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.quote-close:hover { background: #333; }

.quote-progress { padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.quote-stepname { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.quote-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.quote-bars i { height: 4px; border-radius: 4px; background: var(--card-2); transition: background 0.35s; }
.quote-bars i.on { background: var(--accent); }

.quote-form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.q-step { padding: 18px 20px 4px; animation: panelIn 0.4s var(--ease-out); }
.q-step[hidden] { display: none; }

/* Burbujas tipo chat */
.bubble {
  display: inline-block;
  background: var(--card-2);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  margin: 6px 0 8px;
}
.bubble.big { font-size: 1.2rem; }
.q-hint { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }

.q-plan {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-muted);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px;
}
.q-plan[hidden] { display: none; }
.q-plan .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.q-plan strong { color: var(--ink); }

/* Chips: checkbox/radio escondido + span visible */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chips label:hover span { border-color: var(--accent); }
.chips input:checked + span { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.chips input[type="checkbox"]:checked + span::after { content: '✓'; }
.chips input:focus-visible + span { outline: 2px solid var(--heading); outline-offset: 2px; }

.quote textarea, .quote input[type="text"], .quote input[type="email"], .quote input[type="tel"], .quote select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  margin-bottom: 8px;
  resize: vertical;
}
.quote textarea:focus, .quote input:focus, .quote select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.q-field label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); margin: 10px 0 6px; }
.q-field label span { font-weight: 400; color: var(--text-dim); }
.q-legal { font-size: 0.75rem; color: var(--text-dim); margin: 14px 0 6px; }
.q-legal a { color: var(--ink); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }

.q-done { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.q-done .success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: var(--accent); color: #0a0a0a;
  font-size: 1.6rem; font-weight: 800;
}
.q-status { color: var(--danger); font-size: 0.85rem; padding: 0 20px; min-height: 1.2em; }
.quote-foot {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 18px;
  margin-top: auto;
  background: linear-gradient(transparent, #0d0f0e 30%);
}
.quote-foot[hidden] { display: none; }
.quote-foot .btn { margin-left: auto; }
.q-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--ink); font: inherit; font-weight: 700;
}
.q-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.q-back[hidden] { display: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 960px) {
  .svc-grid, .qa-grid { grid-template-columns: 1fr; }
  .qa-head { position: static; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { right: 50%; top: auto; bottom: -27px; transform: translateX(50%) rotate(90deg); }
  .step-desc { min-height: 0; }
  .step-word { margin-top: 28px; }
}
@media (max-width: 600px) {
  .svc-stage { padding: 20px; border-radius: 22px; min-height: 440px; }
  .m-browser { width: 92%; }
  .m-phone { width: 36%; right: 0; }
  .m-phone.solo { width: 62%; }
  .m-card { width: 90%; }
  .builder { padding: 26px 18px; }
  .seg span { font-size: 0.85rem; padding: 10px 4px; }
  .seg-3 span, .seg-4 span { font-size: 0.8rem; padding: 10px 2px; }
  .b-prices { gap: 10px; }
  .b-prices > div { padding: 12px; }
  .b-prices .b-total-num { font-size: 1.7rem; }
  /* Tienda en celular: la notificación del pedido va debajo del navegador, sin taparlo */
  #panel-store .mock-area { flex-direction: column; }
  .m-shop { width: 100%; }
  .m-order { position: relative; right: auto; bottom: auto; align-self: flex-end; margin-top: -18px; max-width: 85%; }
  .m-app { width: 52%; }
  .m-app-push { max-width: 78%; }
  /* En celular las tiendas van en fila abajo para no tapar la app */
  .m-stores { top: auto; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; white-space: nowrap; }
  .m-app-push { bottom: 24%; }
  .m-store { font-size: 0.78rem; padding: 5px 10px; }
  /* El cuestionario ocupa toda la pantalla en celulares */
  .quote { margin: 0; width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: none; }
}

/* ══════════════════════════════════════════
   SERVICIOS EN CELULAR Y TABLET
   La lista vertical pasa a ser una fila de "pills" deslizable arriba
   de la vista previa: se cambia de servicio sin subir y bajar.
   ══════════════════════════════════════════ */
@media (max-width: 960px) {
  /* display: contents "disuelve" .svc-left: sus hijos pasan a ser
     items de la grilla, y así podemos reordenarlos con order */
  .svc-left { display: contents; }
  .svc-grid { gap: 0; }
  .svc-left .big-title { order: 1; text-align: center; }
  .svc-left .lede { order: 2; text-align: center; margin: 16px auto 24px; }
  .svc-list { order: 3; }
  .svc-stage { order: 4; }
  .svc-left > .link-arrow { order: 5; justify-self: center; margin-top: 28px; }

  .svc-list {
    position: relative;            /* para que offsetLeft de las pills se mida desde la fila */
    display: flex;
    gap: 8px;
    margin: 0 -16px 16px;          /* llega hasta los bordes de la pantalla */
    padding: 4px 16px;
    border: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;         /* oculta la barra en Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .svc-list::-webkit-scrollbar { display: none; } /* y en Chrome/Safari */

  .svc-item {
    flex: none;
    width: auto;
    gap: 8px;
    padding: 5px 16px 5px 5px;
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 100px;
    background: var(--card-2);
    scroll-snap-align: center;
  }
  .svc-item::after, .svc-num, .svc-label { display: none; }
  .svc-short { display: inline; font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
  .svc-ico { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.06); }
  .svc-item[aria-selected="true"] { border-color: var(--accent); background: rgba(18,235,166,0.08); }

  .svc-stage { min-height: 0; }
  .mock-area { min-height: 300px; }
  .stage-title { display: block; color: var(--ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
}
@media (max-width: 600px) {
  .mock-area { min-height: 260px; }
}

/* ══════════════════════════════════════════
   AJUSTES PARA CELULARES
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Botón hamburguesa: área táctil de 44x44 (mínimo recomendado por Apple/Google) */
  .nav-toggle { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
  .nav-links a { padding: 8px 12px; }
  .nav-links a.nav-cta, .nav-links a.nav-portal-link { padding: 12px 28px !important; font-size: 1rem !important; }

  /* Links del footer más fáciles de tocar */
  .footer-links ul { gap: 2px; }
  .footer-links a { display: inline-block; padding: 10px 0; }
  .footer-policy-link, .footer-cookie-btn { padding: 12px 8px; }

  /* 16px en inputs: con menos, iPhone hace zoom al tocar el campo */
  .quote textarea, .quote input[type="text"], .quote input[type="email"],
  .quote input[type="tel"], .quote select { font-size: 16px; }

  /* Menos aire entre secciones: en desktop 96px+ queda bien, en un celular son pantallas vacías */
  .svc, .steps, .pricing, .qa, .final-cta { padding: 64px 0; }
  .steps-grid, .builder { margin-top: 40px; }
}

/* En pantallas táctiles, los links con flecha tienen más área para el dedo */
@media (pointer: coarse) {
  .link-arrow { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-panel, .q-step, .quote[open] { animation: none; }
}

/* ══════════════════════════════════════════
   CAPA VISUAL: profundidad, textura y el motivo de puntos del logo
   ══════════════════════════════════════════ */

/* Menos aire muerto entre secciones (antes llegaba a 320px entre dos secciones) */
:root { --section-y: clamp(80px, 9vw, 128px); }

/* Grano de película fijo sobre toda la página: rompe el gris plano.
   Es un SVG de ruido (feTurbulence) embebido; pointer-events:none para no bloquear clicks. */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Fondo base con un leve degradé vertical en vez de un gris único */
body {
  background:
    radial-gradient(120% 60% at 50% 0%, #1f2322 0%, transparent 60%),
    url(../assets/doodles.svg) 0 0 / 600px 600px repeat fixed,   /* doodles del rubro, fijos a la pantalla */
    var(--bg);
}

/* Grilla de puntos que se desvanece en los bordes (mask-image) */
.svc::after, .steps::after, .qa::after, .pricing::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 10%, transparent 75%);
  z-index: 0;
}
.svc::after { -webkit-mask-image: radial-gradient(ellipse 45% 60% at 80% 50%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 45% 60% at 80% 50%, #000 10%, transparent 75%); }
.pricing::after { -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 55%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 70% 50% at 50% 55%, #000 10%, transparent 70%); }
.qa::after  { -webkit-mask-image: radial-gradient(ellipse 40% 60% at 10% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 40% 60% at 10% 30%, #000 10%, transparent 75%); }
.svc > .container, .steps > .container, .qa > .container, .pricing > .container { position: relative; z-index: 1; }

/* Etiqueta chica arriba de cada título: "01 — Services" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text-muted);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow span { color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow span::after {             /* rayita entre el número y el nombre */
  content: ''; display: inline-block; vertical-align: middle;
  width: 28px; height: 1px; margin-left: 12px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow.center { display: flex; justify-content: center; }

/* Segunda línea de los títulos en gris con degradé: da jerarquía sin agregar texto */
.big-title .dim {
  background: linear-gradient(180deg, #d4dbd8 0%, #9ba4a0 100%);   /* más claro: antes se perdía contra el fondo */
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ── Hero ── */
.intro::after {                     /* brillo celeste abajo a la izquierda, contrapeso del verde */
  content: ''; position: absolute;
  left: -15%; bottom: -30%; width: 60vw; height: 70%;
  background: radial-gradient(closest-side, rgba(125,211,252,0.07), transparent);
  pointer-events: none;
}
.intro-globe {
  position: absolute;
  width: min(62vw, 900px); aspect-ratio: 1;
  right: max(-12vw, -180px); top: 50%;
  transform: translateY(-48%);
  opacity: 0.7;
  pointer-events: none;
}
.intro-grid { z-index: 1; }
.intro-stage {                      /* la escena se separa del globo con sombra y borde con luz */
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

/* ── Proceso: banda apenas más clara con líneas de luz arriba y abajo ── */
.steps {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018) 25%, rgba(255,255,255,0.018) 75%, transparent);
}
.steps::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18,235,166,0.35), transparent);
}
.step-card {
  background: linear-gradient(180deg, #232625 0%, #1c1e1d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 60px -30px rgba(0,0,0,0.6);
}

/* ── Precios: halo grande detrás del armador ── */
.pricing::before {
  content: ''; position: absolute;
  left: 50%; top: 55%; width: min(1100px, 100%); height: 900px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(18,235,166,0.14), transparent 70%),
    radial-gradient(40% 30% at 70% 30%, rgba(125,211,252,0.06), transparent);
  pointer-events: none;
}
.builder { box-shadow: 0 50px 120px -40px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.06); }

/* ── FAQ: tarjetas con luz arriba ── */
.qa-list details {
  background: linear-gradient(180deg, #222524, #1e201f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ── CTA final: panel con la cúpula de puntos asomando, como en el logo ── */
.final-cta { border-top: 0; padding-top: clamp(16px, 3vw, 40px); }  /* el panel ya separa: no hace falta tanto aire arriba */
.final-inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 40px;
  border: 1px solid rgba(18,235,166,0.18);
  padding: clamp(64px, 9vw, 110px) clamp(24px, 5vw, 64px) clamp(220px, 24vw, 320px);
  background:
    radial-gradient(70% 60% at 50% 110%, rgba(18,235,166,0.22), transparent 70%),
    radial-gradient(50% 50% at 100% 0%, rgba(125,211,252,0.08), transparent 70%),
    #0f1211;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.final-inner > :not(.final-globe) { position: relative; z-index: 1; }
.final-globe {
  position: absolute; z-index: 0;
  left: 50%; bottom: 0;
  width: min(900px, 140%); aspect-ratio: 1;
  transform: translate(-50%, 66%);  /* solo se ve la mitad de arriba: una cúpula */
  pointer-events: none;
}

/* ── Footer: "ACE" gigante que se funde con el fondo ── */
.footer { position: relative; overflow: hidden; }
.footer-mark {
  font-size: clamp(6rem, 22vw, 17rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-align: center;
  margin: 28px 0 -0.1em;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}

@media (max-width: 900px) {
  .intro-globe { width: 130vw; right: -55vw; top: 18%; opacity: 0.35; }
  .final-inner { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-globe, .final-globe { opacity: 0.4; }
}

/* ══════════════════════════════════════════
   ANILLO 3D DEL HERO
   --card-w lo calcula js/home.js según el ancho disponible.
   Todo lo de adentro de las tarjetas está en "em": como el font-size
   de la tarjeta es --card-w / 10, el contenido escala con la tarjeta.
   ══════════════════════════════════════════ */
.ring-stage {
  position: relative;
  aspect-ratio: 1 / 0.95;
  display: flex; flex-direction: column;
  --card-w: 150px;
}
.ring-globe {                       /* el globo queda en el centro del anillo, como un planeta */
  position: absolute; left: 50%; top: 44%;
  width: 78%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.75; pointer-events: none;
}
.ring-scene {
  position: relative; flex: 1;
  perspective: 1100px;              /* distancia de la "cámara": más chico = 3D más exagerado */
  perspective-origin: 50% 35%;
}
.ring {
  position: absolute; left: 50%; top: 46%;
  width: 0; height: 0;
  transform-style: preserve-3d;     /* sin esto los hijos se aplanan y se pierde el 3D */
}
.rc {
  position: absolute;
  width: var(--card-w); height: calc(var(--card-w) * 1.25);
  left: calc(var(--card-w) / -2); top: calc(var(--card-w) * -0.625);
  font-size: calc(var(--card-w) / 10);
  border-radius: 1em;
  padding: 0.9em;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  box-shadow: 0 2em 4em -1.5em rgba(0,0,0,0.7);
  transition: box-shadow 0.4s, outline-color 0.4s;
  outline: 1px solid transparent;
  cursor: pointer;
}
.rc.is-front { box-shadow: 0 3em 6em -1.5em rgba(0,0,0,0.85), 0 0 3em -0.5em rgba(18,235,166,0.35); outline-color: rgba(18,235,166,0.5); }
.rc-tag {
  align-self: flex-start;
  font-size: 0.68em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35em 0.7em; border-radius: 99em;
  background: rgba(0,0,0,0.08); color: inherit; opacity: 0.8;
  margin-bottom: 0.8em;
}
.rc-body { flex: 1; display: flex; flex-direction: column; gap: 0.45em; min-height: 0; }

/* Temas de tarjeta: mezclar claras y oscuras le da el ritmo del video */
.rc-light  { background: #f4f5f2; color: #111; }
.rc-cream  { background: #f6efe2; color: #111; }
.rc-dark   { background: #121514; color: #f2f2f2; border: 1px solid rgba(255,255,255,0.08); }
.rc-dark .rc-tag, .rc-glow .rc-tag { background: rgba(255,255,255,0.1); }
.rc-accent { background: var(--accent); color: #062b1f; }
.rc-photo  { background: #fff; color: #111; }
.rc-glow   { background: radial-gradient(90% 70% at 100% 0%, rgba(125,211,252,0.35), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(18,235,166,0.45), transparent 60%), #0b0f0e; color: #fff; border: 1px solid rgba(18,235,166,0.3); }

/* Piezas chicas que se reusan */
.rc-h { font-size: 1.25em; font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.rc-h.big { font-size: 1.7em; }
.rc-h.huge { font-size: 2.1em; line-height: 0.95; }
.rc-h em { font-style: normal; color: var(--accent); }
.rc-k { font-size: 0.7em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.rc-k.green { color: #0a8f63; opacity: 1; }
.rc-line { display: block; height: 0.35em; border-radius: 1em; background: currentColor; opacity: 0.15; width: 100%; }
.rc-line.s { width: 60%; }
.rc-pill { align-self: flex-start; margin-top: auto; font-size: 0.75em; font-weight: 700; padding: 0.5em 0.9em; border-radius: 99em; background: var(--accent); color: #062b1f; }
.rc-bar { display: flex; gap: 0.3em; margin-bottom: 0.4em; }
.rc-bar i { width: 0.45em; height: 0.45em; border-radius: 50%; background: #c9ccc8; }

.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em; flex: 1; }
.rc-grid i { border-radius: 0.5em; background: linear-gradient(140deg, #2a3a34, #1a2420); }
.rc-grid i:nth-child(2) { background: linear-gradient(140deg, #3b4d63, #1d2733); }
.rc-grid i:nth-child(3) { background: linear-gradient(140deg, #5b4635, #2b211a); }

.rc-photo .rc-body { gap: 0.5em; }
.rc-img { flex: 1; border-radius: 0.6em; background: linear-gradient(140deg, #9ee9cf, #7dd3fc 60%, #c9b8f5); }
.rc-meta { font-size: 0.75em; font-weight: 700; }
.rc-meta b { color: #e5484d; }

.rc-search { font-size: 0.72em; padding: 0.6em 0.9em; border-radius: 99em; background: #fff; border: 1px solid #ddd; color: #555; }
.rc-result { display: flex; align-items: center; gap: 0.5em; padding: 0.5em; border-radius: 0.5em; }
.rc-result.top { background: #fff; box-shadow: 0 0 0 1px rgba(18,235,166,0.7); }
.rc-result b { font-size: 0.7em; color: #fff; background: #0a8f63; padding: 0.15em 0.4em; border-radius: 0.3em; }

.rc-notif { display: flex; align-items: center; gap: 0.6em; padding: 0.6em; border-radius: 0.7em; background: rgba(255,255,255,0.08); }
.rc-notif i { width: 1.6em; height: 1.6em; border-radius: 0.45em; background: var(--accent); flex: none; }
.rc-notif p { font-size: 0.72em; font-weight: 700; display: flex; justify-content: space-between; gap: 0.5em; flex: 1; }
.rc-notif p span { opacity: 0.5; font-weight: 500; }
.rc-notif.dim { opacity: 0.5; }

.rc-bars { flex: 1; display: flex; align-items: flex-end; gap: 0.35em; padding-top: 0.5em; }
.rc-bars i { flex: 1; height: var(--h); border-radius: 0.3em 0.3em 0.1em 0.1em; background: linear-gradient(180deg, var(--accent), rgba(18,235,166,0.25)); }

.rc-phone { flex: 1; align-self: center; width: 62%; border-radius: 1.2em; background: #062b1f; padding: 0.6em; }
.rc-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45em; margin-top: 0.8em; }
.rc-apps i { aspect-ratio: 1; border-radius: 0.4em; background: rgba(255,255,255,0.85); }
.rc-apps i:nth-child(1) { background: var(--accent); }

.rc-qr { margin-top: auto; align-self: flex-end; width: 2.6em; height: 2.6em; border-radius: 0.3em;
  background: conic-gradient(#111 25%, transparent 0 50%, #111 0 75%, transparent 0) 0 0 / 0.65em 0.65em; }

.rc-price { font-size: 2.2em; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.25em; }
.rc-price small { font-size: 0.4em; opacity: 0.6; }
.rc-price.free { color: var(--accent); }

.rc-qa { display: flex; flex-direction: column; gap: 0.35em; margin-top: auto; }
.rc-qa span { font-size: 0.68em; font-weight: 700; padding: 0.55em 0.7em; border-radius: 0.5em; background: #fff; display: flex; justify-content: space-between; }
.rc-qa span::after { content: '+'; opacity: 0.5; }

/* Leyenda de abajo: número, nombre de la sección y flechas */
.ring-caption {
  position: relative; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.ring-text { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.ring-count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ring-title { color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.ring-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); color: var(--ink);
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.ring-btn:hover { background: rgba(18,235,166,0.12); border-color: var(--accent); }
.ring-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .ring-stage { max-width: 560px; width: 100%; margin: 0 auto; aspect-ratio: 1 / 1.05; }
  .ring-title { font-size: 0.95rem; }
}

/* Tarjeta de espaldas: se oculta el contenido para no ver texto al revés */
.rc .rc-body, .rc .rc-tag { transition: opacity 0.25s; }
.rc.is-back .rc-body, .rc.is-back .rc-tag { opacity: 0; }

/* ══════════════════════════════════════════
   ZOOM AL ANILLO CON EL SCROLL (solo desktop, lo activa js/home.js con .is-pinned)
   ══════════════════════════════════════════ */
/* Sin will-change a propósito: así Chrome redibuja nítido al hacer zoom en vez de estirar una imagen */
.ring-cam { position: relative; flex: 1; display: flex; flex-direction: column; }
/* El alto del contenedor y el "top" del hero los pone js/home.js (dependen de la pantalla) */
.intro-pin.is-pinned .intro { position: sticky; }
/* La sección siguiente queda debajo del último tramo del hero fijo; la copia del zoom la reemplaza */
.intro-pin.is-pinned + section { margin-top: calc(var(--vh) * -1); position: relative; z-index: 2; background: url(../assets/doodles.svg) 0 0 / 600px 600px repeat fixed, var(--bg); }
/* Desktop donde el hero entra entero: ocupa exactamente la pantalla */
.intro-pin.is-fit .intro {
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 0 20px;
}
.intro-pin.is-fit .intro-for { margin-top: 32px; }
/* Capa que oscurece la tarjeta del frente hasta igualar el fondo de la página */
.rc::after {
  content: ''; position: absolute; inset: 0;
  background: var(--bg);
  opacity: var(--shade, 0);
  pointer-events: none;
}

/* ══════════════════════════════════════════
   TARJETAS = MINIATURAS REALES DE LAS SECCIONES
   .rc-page tiene el tamaño de la pantalla (--vw x --vh) y se achica con scale(--k).
   ══════════════════════════════════════════ */
.rc.rc-mini {
  height: var(--card-h);
  top: calc(var(--card-h) / -2);
  padding: 0;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.12);
}
.rc-page {
  position: absolute; left: 0; top: 0;
  width: var(--vw); height: var(--vh);
  overflow: hidden;
  transform: scale(var(--k));
  transform-origin: 0 0;
  background: url(../assets/doodles.svg) 0 0 / 600px 600px, var(--bg);
  pointer-events: none;
}
.rc-mini .rc-tag {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  margin: 0; font-size: 9px;
  background: rgba(10,12,11,0.75); color: #fff;
  backdrop-filter: blur(4px);
}
.rc.is-back .rc-page { opacity: 0; }

/* Copia de Services a tamaño real que hace el zoom (la crea y mueve js/home.js) */
.zoom-page {
  position: fixed; left: 0; top: 0; z-index: 90;      /* debajo del navbar (100) */
  width: var(--vw); height: var(--vh);
  overflow: hidden;
  transform-origin: 0 0;
  background: url(../assets/doodles.svg) 0 0 / 600px 600px, var(--bg);
  pointer-events: none;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,0.8);
}
.zoom-page[hidden] { display: none; }
/* Las copias no deben reaccionar a la regla del hero fijo ni animar su entrada */
.is-clone { margin-top: 0 !important; visibility: visible !important; }
.is-clone .reveal { transition: none !important; }

/* ══════════════════════════════════════════
   PISTA EN LAS PESTAÑAS DE SERVICIOS (js/home.js → checkHint)
   La pestaña siguiente parpadea 2 veces: la animación dura 0.6s y se repite 2 (el "2" del final).
   ══════════════════════════════════════════ */
@keyframes tabHint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18,235,166,0); }
  50%      { box-shadow: 0 0 0 2px var(--accent), 0 0 22px rgba(18,235,166,0.45); background-color: rgba(18,235,166,0.14); color: var(--ink); }
}
@keyframes icoHint {
  0%, 100% { background: var(--card-2); color: inherit; }
  50%      { background: var(--accent); color: #0a0a0a; }
}
.svc-item.is-hint .svc-ico { animation: icoHint 0.6s ease-in-out 0.4s 2; }
@media (max-width: 960px) {
  /* En celular cada servicio es una "pill": parpadea la pill entera */
  .svc-item.is-hint { animation: tabHint 0.6s ease-in-out 0.4s 2; }
  /* Más aire arriba: al terminar el zoom la sección queda pegada arriba y el navbar tapaba el título */
  .svc { padding-top: 112px; }
}

/* ══════════════════════════════════════════
   WEBSITE EN LAPTOP Y TELÉFONO (panel "A website that works on every device")
   Las imágenes tienen la pantalla transparente: la web de ejemplo (.ws) va DETRÁS
   y se ve por el hueco. Los % de .dev-screen son la posición medida del hueco en cada PNG.
   Dentro de la pantalla todo está en "em" y el tamaño de letra sale del ancho de la
   pantalla (unidades cqw = % del ancho del contenedor), así escala con el dispositivo.
   ══════════════════════════════════════════ */
.dev-scene { position: relative; width: 100%; aspect-ratio: 1 / 0.66; }
.dev { position: absolute; filter: drop-shadow(0 26px 36px rgba(0,0,0,0.5)); }
.dev img { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.dev-screen { position: absolute; z-index: 0; overflow: hidden; container-type: size; background: #f6f6f3; }

.dev-laptop { left: 0; top: 0; width: 86%; }
.dev-laptop .dev-screen { left: 10.19%; top: 4.26%; width: 79.36%; height: 66.84%; }
.dev-phone { right: -10%; bottom: -6%; width: 40%; }
.dev-phone .dev-screen { left: 10.53%; top: 2.41%; width: 40.55%; height: 76.8%; border-radius: 14% / 6.5%; }

/* La web ficticia: un taller mecánico con su propia marca (naranja) */
.ws {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 1em;
  padding: 1.1em 1.6em 1.3em;
  font-size: 2.35cqw;               /* 2.35% del ancho de la pantalla */
  line-height: 1.3;
  color: var(--ws-ink); background: var(--ws-bg);
  text-align: left;
  opacity: 0; transition: opacity 0.9s ease;   /* fundido entre sitios */
}
.ws.is-on { opacity: 1; }
.ws-nav { display: flex; align-items: center; gap: 1.4em; font-size: 0.85em; color: #5b6166; }
.ws-logo { margin-right: auto; font-weight: 800; letter-spacing: 0.06em; color: var(--ws-ink); font-size: 1.05em; }
.ws-logo span { color: var(--ws-accent); margin-left: 0.25em; }
.ws-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4em; align-items: stretch; min-height: 0; }
.ws-copy { display: flex; flex-direction: column; justify-content: center; }
.ws-kicker { font-style: normal; font-size: 0.72em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ws-accent); }
.ws-h { margin: 0.25em 0 0.35em; font-size: 2.3em; font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.ws-p { margin: 0 0 0.9em; font-size: 0.92em; color: #5b6166; }
.ws-ctas { display: flex; gap: 0.6em; }
.ws-btn { font-style: normal; display: inline-block; padding: 0.6em 1.1em; border-radius: 99em; background: var(--ws-accent); color: #fff; font-weight: 700; font-size: 0.85em; white-space: nowrap; }
.ws-btn.ghost { background: transparent; color: var(--ws-ink); box-shadow: inset 0 0 0 1.5px var(--ws-ink); }
.ws-btn.sm { padding: 0.45em 0.9em; font-size: 0.8em; }
.ws-img {
  position: relative; border-radius: 0.8em; min-height: 6em;
  background:
    radial-gradient(60% 50% at 70% 35%, rgba(255,255,255,0.18), transparent 70%),
    var(--ws-img);
}
.ws-badge { position: absolute; left: 0.7em; bottom: 0.7em; background: #fff; padding: 0.35em 0.75em; border-radius: 99em; font-size: 0.72em; font-weight: 700; }
.ws-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.ws-cards div { display: flex; flex-direction: column; gap: 0.2em; padding: 0.7em 0.85em; border-radius: 0.6em; background: #fff; box-shadow: 0 0.1em 0.5em rgba(0,0,0,0.06); }
.ws-cards b { font-size: 0.95em; }
.ws-cards span { font-size: 0.75em; color: #6b7075; }

/* Versión celular del mismo sitio */
.ws-m { font-size: 6.6cqw; padding: 2.7em 1.1em 1em; gap: 0.6em; }   /* arriba deja lugar a la muesca */
.ws-m .ws-nav { margin-bottom: 0.4em; }
.ws-m .ws-h { font-size: 1.75em; margin: 0; }
.ws-m .ws-p { margin: 0; }
.ws-m .ws-btn { align-self: flex-start; }
.ws-m .ws-img { flex: 1; min-height: 4em; }
.ws-m .ws-cards { grid-template-columns: 1fr 1fr; gap: 0.5em; }
.ws-m .ws-cards div { padding: 0.6em; }
.ws-burger { width: 1.3em; height: 0.85em; border-top: 0.18em solid #14181a; border-bottom: 0.18em solid #14181a; position: relative; }
.ws-burger::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 0.18em solid #14181a; transform: translateY(-50%); }
/* La foto de la mano termina con un corte recto en la muñeca: la desvanecemos hacia abajo */
.dev-phone img {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 97%);
}

/* Temas de los sitios de ejemplo: cada negocio con su propia paleta */
.ws-auto  { --ws-bg: #f6f6f3; --ws-ink: #14181a; --ws-accent: #e4572e; --ws-img: linear-gradient(140deg, #24323a 0%, #4d6470 55%, #e4572e 150%); }
.ws-salon { --ws-bg: #fbf4f2; --ws-ink: #2a1a20; --ws-accent: #b0446c; --ws-img: linear-gradient(140deg, #5a2a3c 0%, #b0446c 60%, #f2c4b8 130%); }
.ws-food  { --ws-bg: #f7f2e7; --ws-ink: #1d2a20; --ws-accent: #1f7a4d; --ws-img: linear-gradient(140deg, #1f3d2b 0%, #3f7a4f 55%, #e9a23b 130%); }
.ws-salon .ws-h, .ws-food .ws-h { letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) { .ws { transition: none; } }

/* Aclaración debajo de los precios: son estimados hasta que un agente los confirma */
.b-disclaimer {
  margin-top: 14px; padding: 10px 14px;
  border-radius: 12px; border: 1px dashed var(--border-strong);
  font-size: 0.85rem; line-height: 1.5; color: var(--text-muted);
}
