/* WAGMI TECH — sitio corporativo. Estático, sin build. Marca: nodos naranja→rojo + azul marino. */
:root {
  /* Azul marino del wordmark */
  --ink: #112143;
  --ink-soft: #1d2d4f;
  --navy-900: #0a1430;
  --navy-800: #0e1b3a;
  --navy-700: #14264d;

  /* Acento de marca: gradiente naranja → rojo del isotipo */
  --accent: #e8401c;
  --accent-orange: #ff5a1f;
  --accent-red: #a8140a;
  --accent-deep: #8e1207;
  --glow: #ff7a45;

  --paper: #ffffff;
  --mist: #f6f8fc;
  --line: #e6eaf2;
  --muted: #5b6478;
  --muted-on-navy: #9aa6c4;
  --ok: #15a36e;

  --maxw: 1140px;
  --radius: 16px;
  --shadow: 0 14px 50px rgba(11, 16, 32, 0.10);
  --shadow-sm: 0 6px 22px rgba(11, 16, 32, 0.07);
  --grad-brand: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-red) 100%);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -0.022em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.01em; font-size: 1.22rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; object-fit: contain; }
nav.top { display: flex; align-items: center; }
nav.top a { color: var(--ink-soft); font-weight: 500; margin-left: 26px; font-size: 0.95rem; }
nav.top a:hover { color: var(--accent-deep); text-decoration: none; }
nav.top a.nav-cta { background: var(--grad-brand); color: #fff; padding: 9px 16px; border-radius: 100px; box-shadow: 0 6px 18px rgba(232,64,28,.30); }
nav.top a.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 760px) {
  nav.top a { margin-left: 14px; font-size: 0.84rem; }
  nav.top a.hide-sm { display: none; }
  .brand span.full { display: none; }
}

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 11px; font-weight: 600; font-size: 0.99rem; transition: transform .1s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 28px rgba(232, 64, 28, 0.38); border: none; }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(232, 64, 28, 0.48); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.06); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-ghost.on-light { border: 1px solid var(--line); color: var(--ink); background: #fff; }

/* Hero — fondo azul marino con red de nodos three.js */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 520px at 78% -8%, rgba(232, 64, 28, 0.20), transparent 60%),
  radial-gradient(820px 460px at 6% 12%, rgba(255, 90, 31, 0.14), transparent 58%),
  linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; z-index: 2; padding: 104px 24px 96px; }
.hero h1, .hero p { color: #fff; }
.hero .eyebrow { color: #ffd9c8; background: rgba(255, 122, 69, 0.14); border: 1px solid rgba(255, 122, 69, 0.28); }
.hero p.lead { color: #c4cde2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent-deep); background: #fff0ea; padding: 7px 14px; border-radius: 999px; margin-bottom: 24px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-orange); box-shadow: 0 0 0 4px rgba(255,90,31,.22); }
.hero p.lead { font-size: clamp(1.06rem, 2.2vw, 1.32rem); max-width: 640px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* Sections */
section.block { padding: clamp(48px, 6vw, 72px) 0; position: relative; border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--line), transparent) 1; }
section.block.tint { background: #eef2f9; }
.kicker { font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.8rem; margin-bottom: 12px; }
.section-head { max-width: 660px; }
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.18rem; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: #fff0ea; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-deep); }

/* Productos — banda oscura con tarjetas claras elevadas (jerarquía hero + 2) */
.products-band { background:
  radial-gradient(900px 460px at 82% -10%, rgba(232,64,28,.16), transparent 60%),
  linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%); color: #fff; border: none; }
.products-band .section-head h2 { color: #fff; }
.products-band .kicker { color: #ff9d76; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: clamp(40px, 4vw, 56px); }
.products .feature { grid-column: 1 / -1; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }
.product {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px 28px; box-shadow: var(--card-shadow); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-brand); opacity: 1; box-shadow: 0 1px 6px rgba(232,64,28,.4); transition: height .2s var(--ease-out); }
/* SmartFleet destacado: borde-glow + sombra de color permanente */
.product.feature { border-color: #f3c9ba; box-shadow: 0 1px 2px rgba(11,16,32,.05), 0 18px 40px rgba(232,64,28,.18); }
.product.feature:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(11,16,32,.05), 0 24px 52px rgba(232,64,28,.26); }
.product.feature:hover::before { height: 5px; }
.product.feature:hover .p-ico { transform: scale(1.06) rotate(-2deg); }
/* Tarjetas "soon": atenuadas, sin barra naranja, lift menor */
.product.soon { background: linear-gradient(180deg, #fcfdff, #f6f8fc); display: flex; flex-direction: column; }
.product.soon::before { display: none; }
.product.soon > .muted, .product.soon .p-tag { opacity: .92; }
.product.soon:hover { transform: translateY(-3px); }
.product .p-ico { transition: transform .25s var(--ease-out); }
/* Línea de dolor (gris, arriba del one-liner) */
.product .p-pain { font-family: var(--mono); font-size: .8rem; color: #7a8499; margin: 0 0 .4em; letter-spacing: 0; }
/* CTA relleno dentro de SmartFleet */
.product .p-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 22px; font-size: .95rem; }
:target { scroll-margin-top: 88px; }
.product:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,64,28,.18), var(--card-shadow); }
.product .p-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--grad-brand); box-shadow: 0 8px 20px rgba(232,64,28,.30); }
.product.soon .p-ico { background: #aeb8cd; box-shadow: none; }
.product h3 { font-size: 1.3rem; margin-bottom: .35em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 1.15; }
.product .p-tag { font-size: .92rem; font-weight: 600; color: var(--accent-deep); margin-bottom: .8em; }
.product.soon .p-tag { color: var(--muted); }
.badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.badge.live { display: inline-flex; align-items: center; gap: 7px; background: #e7f7f0; color: #0e7a52; border: 1px solid #bfe9d6; font-size: .72rem; font-weight: 700; padding: 5px 12px; transform: translateY(1px); }
.badge.live .bdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.badge.soon { background: #eef1f7; color: #6b7790; }
.product ul { list-style: none; padding: 0; margin: 18px 0 0; }
.product li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--ink-soft); font-size: .96rem; }
.product li svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.product.soon li svg { color: #aeb8cd; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n { counter-increment: step; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 6px 16px rgba(232,64,28,.30); }
.step .n::before { content: counter(step); }

/* Franja CTA fusionada con el footer (cierre navy) */
.cta-band { text-align: center; padding: clamp(48px, 6vw, 68px) 0 40px; border-bottom: 1px solid rgba(255,255,255,.10); }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { max-width: 720px; margin: 0 auto .4em; }
.cta-band .muted { color: #b9c4dc; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn-primary { display: inline-block; }
.cta-band .micro-steps { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: #a6b3d0; }
.cta-band .micro-steps span { display: inline-flex; align-items: center; gap: 8px; }
.cta-band .micro-steps span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-orange); }
.cta-band .micro-steps span:not(:last-child)::after { content: ''; width: 18px; height: 1px; background: rgba(255,255,255,.18); margin-left: 18px; }

/* Legal pages */
.legal { padding: 60px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.fill { background: #fff7e6; border: 1px dashed #e0b94d; border-radius: 8px; padding: 2px 7px; font-weight: 600; color: #8a5a00; font-size: 0.92em; }
.notice { background: #fff0ea; border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 18px; margin: 24px 0; }

/* Bloque de identidad legal (verificación Meta) */
.legal-id { background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.legal-id dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: .95rem; }
.legal-id dt { color: var(--muted); font-weight: 600; }
.legal-id dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .legal-id dl { grid-template-columns: 1fr; gap: 2px 0; } .legal-id dt { margin-top: 8px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,64,28,.30); }
.field textarea { min-height: 130px; resize: vertical; }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.info-row .ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: #fff0ea; display: grid; place-items: center; color: var(--accent-deep); }

/* Footer */
footer.site { background: var(--navy-900); color: #c0cae0; padding: 56px 0 30px; }
footer.site a { color: #c0cae0; }
footer.site a:hover { color: #fff; }
/* Footer de cierre fusionado con la CTA-band */
footer.site.close { padding: 0 0 30px; }
footer.site.close .cta-band { margin-bottom: 44px; }
footer.site.close > .wrap { padding-top: 0; }
.brand.on-navy { color: #fff; }
.foot-tagline { max-width: 320px; margin-top: 14px; color: var(--muted-on-navy); }
.foot-grid { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; margin-bottom: 30px; }
.foot-grid .brand { color: #fff; }
.foot-grid .brand .mark { width: 32px; height: 32px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #8a96b4; margin: 0 0 14px; font-weight: 700; }
.foot-col a { display: block; margin-bottom: 10px; font-size: .94rem; }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: .85rem; color: #8a96b4; line-height: 1.7; }
.foot-legal strong { color: #cdd6ea; font-weight: 600; }
.foot-bottom { margin-top: 16px; font-size: 0.84rem; color: #9aa6c4; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Animación de aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   MEJORAS INFORMADAS POR RESEARCH (Vercel / Linear / Stripe / Samsara)
   Refinan reglas anteriores vía cascada. 2026-06-22.
   ============================================================ */

:root {
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --card-shadow: 0 1px 2px rgba(11,16,32,.05), 0 10px 30px rgba(11,16,32,.07);
}

/* Tipografía más tensa (pesos contenidos, tracking negativo) */
h1 { font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-weight: 700; letter-spacing: -0.03em; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); line-height: 1.04; }
/* Gradiente de TEXTO AA-safe sobre navy (extremo rojo subido a --accent) */
.hero .grad-text { background: linear-gradient(120deg, #ff7a45 0%, #e8401c 55%, #c01f0e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 30px rgba(232,64,28,.18); }

/* Eyebrow / kicker / badges en mono = "developer-grade" */
.eyebrow, .kicker, .badge { font-family: var(--mono); }
.kicker { font-size: .76rem; }

/* Botones tipo píldora */
.btn { border-radius: 100px; transition: transform .12s var(--ease-out), box-shadow .2s var(--ease-out), background-position .35s var(--ease-out); }

/* Superficies premium: borde fino + sombra apilada + anillo interior */
.card, .product { box-shadow: var(--card-shadow); }
.faq-item { box-shadow: var(--card-shadow); }

/* Hero: grilla blueprint + glow enmascarado detrás del canvas */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 38%, #000 55%, transparent 92%), linear-gradient(to bottom, transparent 0, #000 80px);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 38%, #000 55%, transparent 92%), linear-gradient(to bottom, transparent 0, #000 80px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; right: -100px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,31,.16), transparent 62%);
  filter: blur(60px);
}
.hero .glow-2 {
  position: absolute; z-index: 1; left: -160px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,20,10,.12), transparent 64%);
  filter: blur(70px); pointer-events: none;
}
.hero .wrap { z-index: 3; }
#hero-canvas { z-index: 2; opacity: 0; transition: opacity .8s var(--ease-out); }
#hero-canvas.ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #hero-canvas { opacity: 1; transition: none; } }

/* Hero compacto + animación de entrada (stagger) */
.hero .wrap { padding: 80px 24px 72px; }
@media (max-width: 760px) { .hero .wrap { padding: 64px 20px 64px; } }
/* La animación de entrada SOLO oculta el texto cuando JS confirmó que va a animar
   (clase .hero-anim en <html>, puesta por script inline antes del render). Si JS no
   corre o falla, el h1/lead (LCP) quedan en su estado final visible: nunca atenuados. */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim .hero .eyebrow, .hero-anim .hero h1, .hero-anim .hero .lead,
  .hero-anim .hero .cta, .hero-anim .hero .trust-badges {
    opacity: 0; transform: translateY(16px); animation: heroIn .7s var(--ease-out) forwards;
  }
  .hero-anim .hero .eyebrow { animation-delay: .06s; } .hero-anim .hero h1 { animation-delay: .14s; }
  .hero-anim .hero .lead { animation-delay: .24s; } .hero-anim .hero .cta { animation-delay: .34s; }
  .hero-anim .hero .trust-badges { animation-delay: .44s; }
}
@keyframes heroIn { to { opacity: 1; transform: none; } }
/* Salvaguarda dura: si algo aborta la animación, forzar el estado final del texto crítico. */
.hero-shown .hero .eyebrow, .hero-shown .hero h1, .hero-shown .hero .lead,
.hero-shown .hero .cta, .hero-shown .hero .trust-badges {
  opacity: 1 !important; transform: none !important; animation: none !important;
}

/* Fila de badges de confianza (hero) — chips reales, no prosa */
.trust-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust-badges .chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; color: #d6deef; font-weight: 500;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  padding: 9px 14px; border-radius: 100px; backdrop-filter: blur(6px);
}
.trust-badges .chip svg { color: var(--accent-orange); flex: 0 0 auto; }

/* Link "acceso anticipado" en tarjetas de producto */
.product .p-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  font-weight: 600; font-size: .94rem; color: var(--accent-deep);
}
.product .p-link svg { transition: transform .2s var(--ease-out); }
.product:hover .p-link svg { transform: translateX(3px); }
.product.soon .p-link { color: var(--accent-deep); font-weight: 600; margin-top: auto; }
.product.soon:hover .p-link { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ (accordion con <details>) */
.faq { display: grid; gap: 10px; margin-top: 28px; max-width: 780px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item:hover { border-color: #d9deea; }
.faq-item[open] { border-color: #f3c9ba; box-shadow: 0 1px 2px rgba(11,16,32,.05), 0 12px 30px rgba(232,64,28,.08); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { flex: 0 0 auto; width: 20px; height: 20px; position: relative; transition: transform .3s var(--ease-out); color: var(--accent); }
.faq-item[open] summary .pm { transform: rotate(45deg); }
.faq-item .faq-body { display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); color: var(--muted); }
.faq-item[open] .faq-body { grid-template-rows: 1fr; }
.faq-item .faq-body-inner { overflow: hidden; }
.faq-item .faq-body-inner p { margin: 0; padding: 0 24px 22px; }
@media (prefers-reduced-motion: reduce) { .faq-item .faq-body { transition: none; } }

/* Glow que sigue al cursor SOLO en SmartFleet (proporcional a convertibilidad) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product:not(.soon)::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    opacity: 0; transition: opacity .25s ease;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255,90,31,.14), transparent 60%);
  }
  .product:not(.soon):hover::after { opacity: 1; }
}

/* ============================================================
   MICRO-INTERACCIONES DE MARCA + COMPACIDAD MOBILE
   Toda animación nueva bajo prefers-reduced-motion: no-preference.
   ============================================================ */

/* Header condensado al hacer scroll */
header.site { transition: box-shadow .25s var(--ease-out); }
header.site .wrap { transition: height .25s var(--ease-out); }
header.site.scrolled { box-shadow: 0 6px 24px rgba(11,16,32,.08); }
header.site.scrolled .wrap { height: 60px; }

/* Botón: pulsación + shimmer del gradiente en hover */
.btn:active { transition-duration: .06s; transform: translateY(0) scale(.98); }
.btn-primary { background-size: 200% 200%; background-position: 0% 50%; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-position .4s var(--ease-out); }
.btn-primary:hover { background-position: 100% 50%; }

/* Pulso del punto del eyebrow */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,90,31,.22); }
  50% { box-shadow: 0 0 0 7px rgba(255,90,31,0); }
}

/* Tap targets mobile (≥44px) */
@media (max-width: 760px) {
  section.block { padding: 52px 0; }
  nav.top a { padding: 12px 6px; display: inline-flex; align-items: center; min-height: 44px; margin-left: 12px; }
  nav.top a.nav-cta { padding: 11px 16px; }
  .foot-col a { padding: 6px 0; margin-bottom: 6px; }
  .product .p-link { padding: 8px 0; display: inline-flex; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  header.site, header.site .wrap, .btn-primary { transition: none; }
  .btn, .card, .product, .product .p-ico, .product .p-link svg { transition: none !important; }
  .btn:hover, .card:hover, .product:hover, .product.feature:hover, .product.soon:hover { transform: none !important; }
  .product.feature:hover .p-ico, .product:hover .p-link svg { transform: none !important; }
}

/* Ajustes post-evaluación adversarial (2026-06-22) */
.trust-badges .chip { color: #e3e9f5; }          /* contraste AA sobre navy */
@media (max-width: 480px) {
  .badge-extra { display: none; }                /* "Disponible" a secas en móvil; evita que parta el título */
}

/* ============================================================
   PULIDO PREMIUM + CONVERSIÓN + A11Y (ronda 88→95)
   ============================================================ */

/* Anillo de foco de marca (teclado) */
a:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible,
nav.top a:focus-visible,
.faq-item summary:focus-visible,
.p-link:focus-visible,
.p-cta:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Superficies oscuras: anillo claro */
.hero a:focus-visible,
.products-band a:focus-visible,
footer.site a:focus-visible,
.cta-band .btn:focus-visible {
  outline-color: #ffd9c8;
}
.faq-item summary { outline: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: -3px; border-radius: 12px; }

/* Skip link */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }

/* Línea de orientación bajo el h2 de productos */
.products-band .head-note { color: #aeb8cd; margin-top: .6em; font-size: .96rem; }

/* Reaseguramiento bajo el CTA de SmartFleet */
.product .p-reassure { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Capacidades por producto en tarjetas soon (identidad propia, equilibra densidad vs SmartFleet) */
.product.soon .p-soon-list { list-style: none; padding: 0; margin: 16px 0 0; }
.product.soon .p-soon-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.product.soon .p-soon-list li svg { flex: 0 0 auto; margin-top: 2px; color: #8e9ab5; }
/* Micro-línea de baja fricción en tarjetas soon */
.product.soon .p-soon-note { font-size: .82rem; color: var(--muted); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* Segundo enlace caliente en el cierre */
.cta-band .cta-alt { margin-top: 16px; }
.cta-band .cta-alt a { color: #ffd9c8; font-size: .92rem; }

/* ============================================================
   DIAGRAMA DE MARCA (núcleo de nodos → productos) — superficie de "wow" honesta
   ============================================================ */
.brand-map { padding: clamp(56px, 7vw, 88px) 0; background:
  radial-gradient(720px 360px at 16% 30%, rgba(232,64,28,.06), transparent 62%), var(--mist);
  border-bottom: 1px solid var(--line); text-align: center; }
.brand-map-eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .13em; font-size: .76rem; font-weight: 700; color: var(--accent-deep); margin: 0 0 10px; }
.brand-map-title { max-width: 640px; margin: 0 auto; }
.brand-diagram { position: relative; max-width: 920px; margin: clamp(28px, 4vw, 48px) auto 0; }
.bd-svg { width: 100%; height: auto; display: block; overflow: visible; }
.bd-halo { fill: rgba(232,64,28,.06); stroke: rgba(232,64,28,.22); stroke-width: 1; }
.bd-core-dot { filter: drop-shadow(0 4px 14px rgba(232,64,28,.45)); }
/* Etiqueta del núcleo, centrada sobre el isotipo */
.bd-core-label { position: absolute; left: 16%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; pointer-events: none; }
/* Tarjetas de producto alineadas con los nodos de salida del SVG */
.bd-products { list-style: none; margin: 0; padding: 0; position: absolute; right: 0; top: 0; bottom: 0;
  width: 38%; display: flex; flex-direction: column; justify-content: space-between; }
.bd-products .bd-p { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  box-shadow: var(--card-shadow); text-align: left; }
.bd-products .bd-p:first-child { border-color: #f3c9ba; box-shadow: 0 1px 2px rgba(11,16,32,.05), 0 12px 28px rgba(232,64,28,.14); }
.bd-p-name { font-weight: 700; font-size: .98rem; color: var(--ink); letter-spacing: -.01em; }
.bd-p-state { font-family: var(--mono); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 9px; border-radius: 999px; background: #eef1f7; color: #6b7790; white-space: nowrap; }
.bd-p-state.live { display: inline-flex; align-items: center; gap: 6px; background: #e7f7f0; color: #0e7a52; border: 1px solid #bfe9d6; }
.bd-p-state.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
/* Trazado animado de las conexiones cuando entra en viewport */
@media (prefers-reduced-motion: no-preference) {
  .bd-links path { stroke-dasharray: 600; stroke-dashoffset: 600; }
  .brand-diagram.in .bd-links path { animation: bdDraw 1.1s var(--ease-out) forwards; }
  .brand-diagram.in .bd-links path:nth-child(2) { animation-delay: .12s; }
  .brand-diagram.in .bd-links path:nth-child(3) { animation-delay: .24s; }
  .bd-core-dot { animation: bdPulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes bdDraw { to { stroke-dashoffset: 0; } }
@keyframes bdPulse { 0%,100% { opacity: 1; } 50% { opacity: .78; } }
/* Núcleo en móvil (cuando se oculta el SVG): chip con punto de marca y conector */
.bd-core-mobile { display: none; }
@media (max-width: 760px) {
  .brand-diagram { max-width: 420px; }
  .bd-svg { display: none; }
  .bd-core-label { display: none; }
  .bd-core-mobile { display: inline-flex; align-items: center; gap: 9px; margin: 0 auto 22px;
    background: var(--grad-brand); color: #fff; padding: 10px 16px; border-radius: 100px;
    font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .04em;
    box-shadow: 0 10px 26px rgba(232,64,28,.3); position: relative; }
  .bd-core-mobile::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 18px;
    background: linear-gradient(var(--accent), transparent); }
  .bd-cm-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
  .bd-products { position: static; width: 100%; gap: 12px; }
}

/* Ronda 2 — remates finales (push 93→95+) */
/* Línea de dolor con acento tenize y arrow conectada al beneficio */
.product .p-pain { color: #b35a36; opacity: .92; }
/* Pulso de microvida en los dots de estado "Disponible" (paridad con el dot del eyebrow) */
@media (prefers-reduced-motion: no-preference) {
  .badge.live .bdot, .bd-p-state.live::before { animation: livePulse 2.4s ease-in-out infinite; }
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 163, 110, .45); }
  50%      { box-shadow: 0 0 0 5px rgba(21, 163, 110, 0); }
}
