/* ══════════════════════════════════════════════════════════════════════════
   GRUPO JBA — sistema de diseño de jba.mx
   Una sola hoja para todas las páginas (inicio y cotizadores). Tema oscuro
   azul marino con acentos azul eléctrico → cian.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #050913;
  --bg-2:      #08101f;
  --surface:   #0c1527;
  --surface-2: #111c33;
  --surface-3: #16233f;
  --line:      rgba(148, 170, 210, .14);
  --line-2:    rgba(148, 170, 210, .26);
  --text:      #e9effa;
  --text-2:    #b4c1d8;
  --muted:     #8090ab;
  --brand:     #2f7bff;
  --brand-2:   #22d3ee;
  --brand-ink: #9cc2ff;
  --grad:      linear-gradient(135deg, #2f7bff 0%, #22d3ee 100%);
  --ok:        #2fd47a;
  --warn:      #f5b740;
  --danger:    #ff6b6b;
  --wa:        #25d366;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --font:      'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
[hidden], .hidden { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ── Iconos (SVG de trazo) ───────────────────────────────────────────── */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-fill { fill: currentColor; stroke: none; }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--grad); color: #04101f; box-shadow: 0 10px 30px rgba(47, 123, 255, .35); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(34, 211, 238, .38); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-ink); background: rgba(47, 123, 255, .10); }
.btn-wa { background: var(--wa); color: #04210f; box-shadow: 0 10px 28px rgba(37, 211, 102, .28); }
.btn-wa:hover { box-shadow: 0 14px 34px rgba(37, 211, 102, .4); }
.btn-soft { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-soft:hover { border-color: var(--brand-ink); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: .84rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }

/* ── Navegación ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(5, 9, 19, .78);
  backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; }
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: 8px; }
.nav-links a {
  display: block; white-space: nowrap; padding: 8px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle .ico { width: 22px; height: 22px; }

@media (max-width: 1140px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 14px 16px;
    background: rgba(8, 16, 31, .98); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-store-lbl { display: none; }
}
@media (max-width: 480px) {
  .nav-in { gap: 12px; padding: 10px 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 420px) {
  .nav-actions .btn-cta-lbl-long { display: none; }
  .nav-logo img { height: 28px; }
  .wrap { padding: 0 16px; }
}
@media (min-width: 421px) { .btn-cta-lbl-short { display: none; } }

/* ── Encabezados de sección ─────────────────────────────────────────── */
section { padding: 92px 0; position: relative; }
.sec-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2);
  margin-bottom: 14px;
}
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.sec-head h2, h2.h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.lead { color: var(--text-2); font-size: 1.07rem; margin-top: 14px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 22%, rgba(34, 211, 238, .16), transparent 70%),
    radial-gradient(55% 60% at 10% 0%, rgba(47, 123, 255, .22), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(148, 170, 210, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 170, 210, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 30%, #000 30%, transparent 75%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(47, 123, 255, .1); border: 1px solid rgba(47, 123, 255, .28);
  font-size: .82rem; font-weight: 600; color: var(--brand-ink);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; margin-top: 20px; }
.hero .hero-sub { font-size: 1.12rem; color: var(--text-2); margin-top: 20px; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--text-2); font-size: .88rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { width: 17px; height: 17px; color: var(--ok); }

/* Escena del hero: terminal facial + tarjetas flotantes */
.scene { position: relative; min-height: 470px; }
.term {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 250px; padding: 14px; border-radius: 28px;
  background: linear-gradient(160deg, #1a2742, #0c1426);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.term-cam { width: 9px; height: 9px; border-radius: 50%; background: #0a0f1c; border: 2px solid #26365a; margin: 0 auto 10px; }
.term-screen { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; background: radial-gradient(80% 70% at 50% 35%, #12305e, #071022); }
.term-face { position: absolute; inset: 14% 18% 22%; }
.term-face svg { width: 100%; height: 100%; }
.term-frame { position: absolute; inset: 12% 14% 20%; }
.term-frame i { position: absolute; width: 22px; height: 22px; border-color: var(--brand-2); border-style: solid; }
.term-frame i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.term-frame i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.term-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.term-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.term-scan { position: absolute; left: 14%; right: 14%; height: 2px; top: 12%; background: linear-gradient(90deg, transparent, var(--brand-2), transparent); box-shadow: 0 0 18px var(--brand-2); animation: scan 2.8s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 13%; } 50% { top: 78%; } }
.term-ok {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px; background: rgba(47, 212, 122, .16); border: 1px solid rgba(47, 212, 122, .4);
  font-size: .74rem; font-weight: 700; color: #b8f5d1;
}
.term-ok .ico { width: 16px; height: 16px; color: var(--ok); }
.term-ok small { display: block; font-weight: 500; color: #8fd9b0; font-size: .68rem; }
.chip-float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px; font-size: .8rem; font-weight: 700;
  background: rgba(12, 21, 39, .86); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.chip-float small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.chip-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(47, 123, 255, .15); color: var(--brand-ink); }
.chip-float .dot .ico { width: 18px; height: 18px; }
.cf-1 { left: 0; top: 30px; }
.cf-2 { right: 0; top: 110px; animation-delay: -2s; }
.cf-3 { left: 0; top: 248px; animation-delay: -4s; }
.cf-4 { right: 0; bottom: 0; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .scene { min-height: 430px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero { padding: 56px 0 48px; }
  .scene { min-height: 400px; }
  .chip-float { font-size: .74rem; padding: 9px 11px; }
  .chip-float .dot { width: 28px; height: 28px; }
  .cf-2 { top: 90px; }
  .cf-3 { top: 220px; }
  .term { width: 210px; }
}

/* ── Franja de marcas ────────────────────────────────────────────────── */
.brands { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.brands p { text-align: center; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.brand-chip { width: 128px; height: 54px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 2px 8px; opacity: .92; transition: opacity .2s, transform .2s; }
.brand-chip:hover { opacity: 1; transform: translateY(-2px); }
.brand-chip img { height: 50px; width: auto; max-width: 112px; object-fit: contain; }
.brand-chip.txt { font-weight: 800; color: #0d1830; font-size: .92rem; letter-spacing: .02em; }

/* ── Tarjetas genéricas ──────────────────────────────────────────────── */
.card {
  position: relative; border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.card:hover, .card.hoverable:hover { border-color: rgba(47, 123, 255, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.16rem; font-weight: 800; letter-spacing: -.01em; }
.card p { color: var(--text-2); font-size: .94rem; margin-top: 8px; }
.card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--brand-ink); }
.card .go .ico { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .go .ico { transform: translateX(3px); }
.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(47, 123, 255, .22), rgba(34, 211, 238, .12));
  border: 1px solid rgba(47, 123, 255, .3); color: #cfe0ff;
}
.icon-box .ico { width: 24px; height: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(47, 123, 255, .12); color: var(--brand-ink); border: 1px solid rgba(47, 123, 255, .28);
}
.tag.ok { background: rgba(47, 212, 122, .12); color: #9eeec3; border-color: rgba(47, 212, 122, .3); }
.tag.warn { background: rgba(245, 183, 64, .12); color: #f7d58e; border-color: rgba(245, 183, 64, .3); }
.tag.plain { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }

/* Solución destacada (con lista de enlaces) */
.sol-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ── Cotizadores (tarjetas con foto) ─────────────────────────────────── */
.qcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.qcard-img { background: #fff; height: 190px; display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; }
.qcard-img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.qcard-img .tag { position: absolute; left: 12px; top: 12px; background: #0b1630; color: #cfe0ff; border-color: transparent; }
.qcard-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.qcard-body ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.qcard-body li { display: flex; gap: 8px; color: var(--text-2); font-size: .9rem; }
.qcard-body li .ico { width: 16px; height: 16px; color: var(--brand-2); margin-top: 4px; }
.qcard-body .go { margin-top: auto; padding-top: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; counter-reset: paso; }
.step { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); counter-increment: paso; }
.step::before { content: counter(paso); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #04101f; font-weight: 800; font-size: .9rem; margin-bottom: 10px; }
.step b { display: block; font-size: .95rem; }
.step span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ── Apps (Reloj Checador / Puerta Segura) ───────────────────────────── */
.app-card { padding: 30px; display: flex; flex-direction: column; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.app-logo .ico { width: 28px; height: 28px; }
.app-logo.checador { background: linear-gradient(135deg, #f59e0b, #ef6c00); }
.app-logo.puerta { background: linear-gradient(135deg, #2f7bff, #7c3aed); }
.app-head small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.feat-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.feat-list li { display: flex; gap: 10px; color: var(--text-2); font-size: .94rem; }
.feat-list li .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.app-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.combo { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.combo-eq { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.combo-eq .plus { color: var(--muted); font-weight: 500; }
.combo p { color: var(--text-2); font-size: .92rem; flex: 1 1 280px; }

/* ── Bloques secundarios ─────────────────────────────────────────────── */
.mini { display: flex; gap: 18px; align-items: flex-start; }
.mini .icon-box { margin-bottom: 0; flex-shrink: 0; }

.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-item { display: flex; gap: 14px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.trust-item .ico { width: 22px; height: 22px; color: var(--brand-2); margin-top: 2px; }
.trust-item b { display: block; font-size: .98rem; }
.trust-item span { color: var(--text-2); font-size: .88rem; }
.trust-item a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .trust-list { grid-template-columns: 1fr; } }

/* ── Contacto / formulario WhatsApp ──────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.contact-list li { display: flex; gap: 12px; align-items: center; color: var(--text-2); }
.contact-list .ico { color: var(--brand-2); }
.contact-list a:hover { color: #fff; }
.panel { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.panel h3 { font-size: 1.25rem; font-weight: 800; }
.panel .sub { color: var(--muted); font-size: .9rem; margin: 4px 0 20px; }

/* ── Formularios ─────────────────────────────────────────────────────── */
.fg { margin-bottom: 14px; }
.fg label, .fg .lbl { display: block; font-size: .8rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; letter-spacing: .02em; }
.fg label .opt { color: var(--muted); font-weight: 500; }
.input, .fg input[type=text], .fg input[type=email], .fg input[type=tel], .fg input[type=number], .fg select, .fg textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); font-size: .96rem; transition: border-color .15s, box-shadow .15s; outline: none;
}
.fg textarea { min-height: 110px; resize: vertical; }
.input:focus, .fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 123, 255, .2); }
.fg input.err { border-color: var(--danger); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; }
.check a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.form-err { display: none; padding: 10px 14px; border-radius: 10px; background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .35); color: #ffc2c2; font-size: .88rem; margin-bottom: 14px; }
.form-err.on { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; font-weight: 600; color: var(--text-2); cursor: pointer; transition: all .15s; user-select: none; }
.pill input:checked + span { background: rgba(47, 123, 255, .18); border-color: var(--brand); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.qa { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-size: 1.4rem; color: var(--brand-ink); line-height: 1; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 22px 20px; color: var(--text-2); font-size: .95rem; }
.qa .ans a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Cierre ──────────────────────────────────────────────────────────── */
.closer {
  text-align: center; padding: 70px 24px; border-radius: 26px; position: relative; overflow: hidden;
  background: radial-gradient(70% 120% at 50% 0%, rgba(47, 123, 255, .28), transparent 70%), var(--surface);
  border: 1px solid var(--line-2);
}
.closer h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.02em; font-weight: 800; }
.closer p { color: var(--text-2); max-width: 620px; margin: 14px auto 0; }
.closer .hero-actions { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { padding: 64px 0 30px; border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand img { height: 36px; width: auto; }
.foot-brand p { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 320px; }
.footer h5 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: var(--muted); font-size: .9rem; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); transition: color .15s, border-color .15s; }
.socials a:hover { color: #fff; border-color: var(--brand-ink); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-bar { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.foot-bar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-bar a:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   CATÁLOGO / COTIZADOR (arcos, torniquetes, credenciales, barreras)
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero { padding: 64px 0 40px; }
.page-hero .hero-in { grid-template-columns: 1.2fr .8fr; gap: 40px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.ph-visual { position: relative; border-radius: 24px; background: #fff; min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 26px; box-shadow: var(--shadow); }
.ph-visual img { max-height: 290px; width: auto; object-fit: contain; }
.ph-visual .tag { position: absolute; left: 16px; top: 16px; background: #0b1630; color: #cfe0ff; border-color: transparent; }
.ph-points { list-style: none; display: grid; gap: 8px; margin-top: 22px; }
.ph-points li { display: flex; gap: 10px; color: var(--text-2); font-size: .96rem; }
.ph-points .ico { width: 18px; height: 18px; color: var(--brand-2); margin-top: 3px; }
@media (max-width: 960px) {
  .page-hero .hero-in { grid-template-columns: 1fr; }
  .ph-visual { min-height: 240px; }
  .ph-visual img { max-height: 220px; }
}

.cat-section { padding: 40px 0 70px; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.cat-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer;
  color: var(--text-2); font-weight: 700; font-size: .95rem; text-align: left; transition: all .15s;
}
.cat-tab small { font-weight: 500; font-size: .74rem; color: var(--muted); }
.cat-tab:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.cat-tab.active { background: linear-gradient(135deg, rgba(47, 123, 255, .26), rgba(34, 211, 238, .12)); border-color: rgba(47, 123, 255, .45); color: #fff; }
.cat-tab.active small { color: var(--brand-ink); }
@media (max-width: 560px) { .cat-tabs { width: 100%; } .cat-tab { flex: 1 1 140px; } }

.cat-desc { color: var(--text-2); margin: 18px 0 0; font-size: .95rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); outline: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 123, 255, .2); }
.select { padding: 11px 36px 11px 14px; border-radius: 12px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238090ab' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; border: 1px solid var(--line-2); color: var(--text); appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; }
.select:focus { border-color: var(--brand); }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cfd8ea; transition: transform .15s; }
.switch input:checked { background: var(--brand); border-color: var(--brand); }
.switch input:checked::after { transform: translateX(16px); background: #fff; }
.count { margin-left: auto; color: var(--muted); font-size: .88rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.fbtn:hover { border-color: var(--line-2); color: #fff; }
.fbtn.on { background: rgba(47, 123, 255, .18); border-color: var(--brand); color: #fff; }
.fbtn img { height: 16px; width: auto; max-width: 54px; object-fit: contain; background: #fff; border-radius: 4px; padding: 1px 3px; }
.fbtn .n { color: var(--muted); font-weight: 500; }
.filters-lbl { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); align-self: center; margin-right: 4px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 24px; }
.pcard {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pcard:hover { border-color: rgba(47, 123, 255, .5); transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard-img { position: relative; background: #fff; height: 200px; display: flex; align-items: center; justify-content: center; padding: 18px; cursor: pointer; }
.pcard-img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.pcard-badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-badges .tag { background: #0b1630; color: #cfe0ff; border-color: transparent; font-size: .68rem; }
.pcard-badges .tag.star { background: var(--grad); color: #04101f; }
.pcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-brand { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard-model { font-family: var(--mono); font-size: .88rem; font-weight: 600; color: #fff; word-break: break-word; cursor: pointer; }
.pcard-title { font-size: .84rem; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard-chips span { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.stock { font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); }
.stock.no { color: var(--warn); }
.price { margin-top: auto; padding-top: 6px; }
.price .lbl { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.price .val { display: block; font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; }
.price .val small { font-size: .74rem; font-weight: 600; color: var(--muted); }
.price .note { display: block; font-size: .72rem; color: var(--muted); }
.pcard-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: all .15s; }
.icon-btn:hover { color: #fff; border-color: var(--brand-ink); }
.icon-btn .ico { width: 18px; height: 18px; }

.state { text-align: center; color: var(--muted); padding: 64px 20px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: var(--surface); margin-top: 24px; }
.state p + p { margin-top: 6px; font-size: .86rem; }
.state .btn { margin-top: 16px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand-2); margin: 0 auto 16px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { border-radius: var(--radius); height: 380px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.more { display: flex; justify-content: center; margin-top: 26px; }

/* ── Detalle de producto ─────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--brand-ink); font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .15s; }
.back:hover { border-color: var(--brand); color: #fff; }
.back .ico { width: 17px; height: 17px; }
.det { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; margin-top: 22px; align-items: start; }
@media (max-width: 960px) { .det { grid-template-columns: 1fr; } }
.det-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .84rem; color: var(--brand-ink); }
.det-tag img { height: 20px; width: auto; background: #fff; border-radius: 4px; padding: 2px 5px; }
.det h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.22; font-weight: 800; letter-spacing: -.015em; margin-top: 10px; }
.det-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gallery { margin-top: 22px; }
.g-main { background: #fff; border-radius: 20px; height: 420px; display: flex; align-items: center; justify-content: center; padding: 26px; }
.g-main img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb { flex: 0 0 82px; height: 82px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 8px; border: 2px solid transparent; cursor: pointer; }
.g-thumb.active { border-color: var(--brand); }
.g-thumb img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 560px) { .g-main { height: 300px; } }

.buybox { position: sticky; top: 86px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.buybox .price .val { font-size: 2rem; }
.qty { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; }
.qty label { font-size: .84rem; font-weight: 700; color: var(--text-2); margin-right: auto; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.stepper button { width: 40px; height: 42px; background: none; border: none; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: rgba(255, 255, 255, .06); }
.stepper input { width: 58px; height: 42px; text-align: center; background: none; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--text); font-weight: 700; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.total-row span { color: var(--text-2); font-size: .9rem; }
.total-row b { font-size: 1.25rem; }
.buy-actions { display: grid; gap: 10px; margin-top: 14px; }
.buy-note { margin-top: 14px; font-size: .78rem; color: var(--muted); display: flex; gap: 8px; }
.buy-note .ico { width: 16px; height: 16px; margin-top: 2px; }

.det-sec { margin-top: 46px; }
.det-sec h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.det-sec h2::before { content: ''; width: 4px; height: 20px; border-radius: 4px; background: var(--grad); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.feature { display: flex; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; color: var(--text-2); }
.feature .ico { width: 18px; height: 18px; color: var(--brand-2); margin-top: 3px; }
.specs { width: 100%; border-collapse: collapse; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.specs td { padding: 13px 18px; font-size: .93rem; border-bottom: 1px solid var(--line); }
.specs tr:last-child td { border-bottom: none; }
.specs td:first-child { color: var(--muted); width: 40%; }
.specs td:last-child { font-weight: 600; }
.desc-fab { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); overflow: hidden; font-size: .94rem; }
.desc-fab img { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; }
.desc-fab table { max-width: 100%; }
.desc-fab iframe { max-width: 100%; }
.docs { display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.doc:hover { border-color: var(--brand-ink); transform: translateX(3px); }
.doc .pdf { width: 38px; height: 38px; border-radius: 9px; background: #e5484d; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; }
.doc b { display: block; font-size: .93rem; }
.doc span { font-size: .78rem; color: var(--muted); }

/* ── Modal de cotización ─────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(2, 5, 12, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  padding: 26px;
}
.modal-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { color: #fff; }
.modal h3 { font-size: 1.3rem; font-weight: 800; padding-right: 40px; }
.modal .sub { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.mprod { display: flex; gap: 14px; align-items: center; margin: 18px 0; padding: 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.mprod-img { width: 70px; height: 70px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 6px; flex-shrink: 0; }
.mprod-img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.mprod b { display: block; font-family: var(--mono); font-size: .86rem; }
.mprod span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.mprod .stepper { margin-left: auto; flex-shrink: 0; }
.stepper { flex-shrink: 0; }
@media (max-width: 460px) { .mprod { flex-wrap: wrap; } .mprod .stepper { margin-left: 84px; } }
.msum { display: flex; justify-content: space-between; align-items: baseline; margin: -4px 0 16px; padding: 0 4px; color: var(--text-2); font-size: .9rem; }
.msum b { color: #fff; font-size: 1.15rem; }
.done { text-align: center; padding: 10px 0 4px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(47, 212, 122, .15); border: 1px solid rgba(47, 212, 122, .4); color: var(--ok); }
.done-ico .ico { width: 30px; height: 30px; }
.done .folio { display: inline-block; margin: 12px 0 4px; padding: 8px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.done p { color: var(--text-2); font-size: .92rem; }
.done .buy-actions { margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 140; padding: 12px 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .9rem; transition: all .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Guía / tabla comparativa de las páginas de línea ────────────────── */
.guide { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.guide th, .guide td { padding: 14px 18px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.guide tr:last-child td { border-bottom: none; }
.guide td:first-child { font-weight: 700; color: #fff; white-space: nowrap; }
.guide td { color: var(--text-2); }
.table-scroll { overflow-x: auto; border-radius: 16px; }
.table-scroll .guide { min-width: 640px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
