/* TrapelTrace landing — estilos propios. Todo color/tipografía/espaciado por tokens. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }
body { background: var(--bg-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; line-height: 1.1; }

.wrap { max-width: var(--w-content); margin: 0 auto; padding: 0 40px; }
.section { padding: 88px 0; }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.over { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-brand); display: inline-flex; align-items: center; gap: 8px; }
.h2 { font-size: 38px; font-weight: 700; margin-top: 14px; max-width: 22ch; text-wrap: balance; }
.lead { font-size: 18px; color: var(--text-secondary); margin-top: 16px; max-width: 60ch; }
.head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.head--center .h2, .head--center .lead { margin-left: auto; margin-right: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: background var(--dur-fast), border-color var(--dur-fast); text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn-wa { background: var(--interactive-primary); color: var(--text-inverse); }
.btn-wa:hover { background: var(--interactive-primary-hover); color: var(--text-inverse); text-decoration: none; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn-ghost:hover { opacity: 1; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--interactive-primary); color: var(--text-inverse); padding: 10px 16px; border-radius: 0 0 var(--radius-md) 0; }
.skip-link:focus { left: 0; }

/* Iconos inline por defecto */
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[tabindex="-1"]:focus { outline: none; }

/* Nav sticky + menú mobile */
.nav { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in srgb, var(--bg-base) 88%, transparent); -webkit-backdrop-filter: saturate(1.1) blur(8px); backdrop-filter: saturate(1.1) blur(8px); border-bottom: 1px solid var(--border-subtle); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.nav-logo img { height: 26px; width: auto; }
.logo-light { display: none; } .logo-dark { display: block; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--surface-1); color: var(--text-secondary); cursor: pointer; }
.icon-btn:hover { background: var(--interactive-ghost-hover); color: var(--text-primary); }
.nav-cta { height: 44px; padding: 0 16px; }
.burger { display: none; }
.nav-mobile { display: none; flex-direction: column; padding: 12px 40px 20px; border-top: 1px solid var(--border-subtle); background: var(--bg-base); }
.nav-mobile a:not(.btn) { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.nav-mobile .btn { width: 100%; margin-top: 12px; }
@media (max-width: 860px){
  .nav-links, .nav-cta { display: none; }
  .js .burger { display: inline-flex; }
  .nav-mobile:not([hidden]) { display: flex; }
  html:not(.js) .nav-mobile { display: flex; }
}

/* Hero (banda oscura) */
.hero { background: var(--slate-900); color: var(--slate-0); position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--blue-500) 22%, transparent) 0, transparent 46%); pointer-events:none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero .over { color: var(--blue-400); }
.hero-h1 { font-size: 54px; font-weight: 700; letter-spacing: -.03em; margin-top: 16px; text-wrap: balance; color: var(--slate-0); }
.hero-h1 em { font-style: normal; color: var(--blue-400); }
.hero-sub { font-size: 18px; color: var(--slate-200); margin-top: 22px; max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--slate-0); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--slate-400); }

/* Mock del panel de monitoreo (hero) — fijado a colores claros para resaltar en la banda oscura en ambos temas */
.panel-mock { background: var(--slate-0); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; max-width: 440px; margin-left: auto; }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--slate-50); border-bottom: 1px solid var(--slate-100); }
.panel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); flex: none; }
.panel-title { font-size: 12px; font-weight: 700; color: var(--slate-500); margin-left: 6px; }
.panel-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .04em; }
.panel-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); flex: none; }
.panel-body { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--slate-50); }
.panel-map { grid-column: 1 / -1; height: 172px; position: relative; border-radius: var(--radius-md); border: 1px solid var(--slate-200); overflow: hidden;
  background:
    radial-gradient(circle at 22% 34%, color-mix(in srgb, var(--blue-500) 14%, transparent) 0, transparent 44%),
    repeating-linear-gradient(0deg, transparent 0 26px, color-mix(in srgb, var(--slate-200) 55%, transparent) 26px 27px),
    repeating-linear-gradient(90deg, transparent 0 26px, color-mix(in srgb, var(--slate-200) 55%, transparent) 26px 27px),
    var(--slate-100); }
.panel-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--slate-0); border: 1px solid var(--slate-200); font-size: 11.5px; font-weight: 700; color: var(--slate-700); }
.panel-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); flex: none; }
.panel-coord { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--slate-0); border: 1px solid var(--slate-200); font-size: 11px; color: var(--slate-600); }
.panel-metric { padding: 13px 14px; background: var(--slate-0); border: 1px solid var(--slate-100); border-radius: var(--radius-md); }
.panel-metric-l { display: block; font-size: 12px; font-weight: 600; color: var(--slate-500); }
.panel-metric-v { display: block; font-size: 26px; font-weight: 700; color: var(--slate-900); margin-top: 4px; line-height: 1; }
.panel-metric-u { font-size: 14px; color: var(--slate-500); font-weight: 600; }

/* Botón flotante (solo mobile) — única excepción al verde WhatsApp */
.wa-float { display: none; position: fixed; right: 16px; bottom: 16px; z-index: var(--z-toast); width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--slate-0); align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.wa-float:hover { color: var(--slate-0); }
@media (max-width: 860px){ .wa-float { display: inline-flex; } }

@media (max-width: 1024px){ .hero-grid { grid-template-columns: 1fr; gap: 40px; } .panel-mock { margin: 0 auto; } .hero-h1 { font-size: 44px; } }
@media (max-width: 640px){ .hero { padding: 48px 0 56px; } .hero-h1 { font-size: 34px; } .hero-sub { font-size: 16px; } .hero-cta > .btn { width: 100%; } }

/* Barra de confianza */
.trust { background: var(--surface-2); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trust-inner { padding: 20px 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.trust-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--surface-1); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.trust-by { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }

/* Sección de problemas (¿Te suena?) */
.head { margin-bottom: 44px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prob { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-1); }
.prob-ic { width: 44px; height: 44px; flex: none; border-radius: var(--radius-md); background: var(--interactive-primary-subtle); color: var(--text-brand); display: flex; align-items: center; justify-content: center; }
.prob-q { font-weight: 700; font-size: 16px; color: var(--text-primary); }
.prob-a { font-size: 14.5px; color: var(--text-secondary); margin-top: 6px; }
@media (max-width: 860px){ .grid-2 { grid-template-columns: 1fr; } .trust-by { margin-left: 0; } }

/* Sección cómo funciona (3 pasos) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-1); }
.step-n { font-size: 13px; font-weight: 700; color: var(--text-brand); letter-spacing: .1em; }
.step-ic { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--interactive-primary-subtle); color: var(--text-brand); display: flex; align-items: center; justify-content: center; margin: 14px 0; }
.step h3 { font-size: 19px; font-weight: 700; }
.step p { font-size: 15px; color: var(--text-secondary); margin-top: 8px; }
@media (max-width: 860px){ .grid-3 { grid-template-columns: 1fr; } }

/* Sección Funcionalidades — grid de 8 features de la plataforma */
.feat { padding: 22px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-1); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.feat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feat-ic { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--surface-3); color: var(--text-brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat h3 { font-size: 17px; font-weight: 700; }
.feat p { font-size: 14px; color: var(--text-secondary); margin-top: 7px; }
@media (max-width: 860px){ .feats.grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .feats.grid-3 { grid-template-columns: 1fr; } }

/* Sección para quién es (4 cards) */
.who { padding: 24px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-1); }
.who h3 { font-size: 18px; font-weight: 700; }
.who p { font-size: 14.5px; color: var(--text-secondary); margin-top: 8px; }

/* Sección teaser "Próximamente" (WhatsApp + IA, en desarrollo) */
.soon-card { max-width: 760px; margin: 0 auto; text-align: center; padding: 40px 32px; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--surface-1); box-shadow: var(--shadow-xs); }
.soon-card .over { color: var(--text-brand); }
.soon-h2 { font-size: 30px; margin: 12px auto 0; max-width: 24ch; }
.soon-lead { font-size: 16px; margin: 12px auto 0; max-width: 54ch; }
.soon-list { list-style: none; padding: 0; margin: 24px auto 0; display: inline-grid; gap: 12px; text-align: left; }
.soon-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.soon-list li svg { color: var(--text-brand); flex: none; }
.soon-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--text-secondary); }
.soon-note svg { color: var(--text-tertiary); flex: none; }

/* Sección preguntas frecuentes (acordeón) */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 700; color: var(--text-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: rotate(45deg); transition: transform var(--dur-fast); flex: none; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 0 22px; font-size: 15px; color: var(--text-secondary); max-width: 68ch; }
.faq-item summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* Sección CTA final (banda oscura) */
.cta { background: var(--slate-900); color: var(--slate-0); position: relative; overflow: hidden; }
.cta::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--blue-500) 24%, transparent) 0, transparent 48%); pointer-events:none; }
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-h2 { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--slate-0); margin-top: 14px; text-wrap: balance; max-width: 20ch; }
.cta-lead { font-size: 18px; color: var(--slate-200); margin-top: 16px; max-width: 46ch; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; margin-top: 28px; }
.cta-reassure { margin-top: 16px; font-size: 13.5px; color: var(--slate-400); }

/* Footer institucional (banda oscura) */
.footer { background: var(--slate-950); color: var(--slate-200); border-top: 1px solid var(--slate-800); }
.footer-top { padding: 60px 40px 44px; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { font-size: 13.5px; color: var(--slate-400); margin-top: 16px; max-width: 32ch; }
.footer-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-400); margin-top: 18px; }
.footer-col h4 { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--slate-300); padding: 6px 0; }
.footer-col a:hover { color: var(--slate-0); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--slate-800); }
.footer-bottom-inner { padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--slate-400); flex-wrap: wrap; }
@media (max-width: 860px){ .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .cta-h2 { font-size: 30px; } }
@media (max-width: 480px){ .footer-top { grid-template-columns: 1fr; } }
