/* ==========================================================
   Systems Muñoz · landing
   Negro + azul neón del logo · Space Grotesk (títulos) + Inter (texto)
   ========================================================== */
:root {
  --bg: #05070a;
  --bg-2: #0a0f16;
  --panel: #0e151f;
  --line: #1b2836;
  --text: #eef3f8;
  --muted: #93a1b3;
  --blue: #00b8ff;
  --blue-2: #1677ff;
  --wa: #25d366;
  --ok: #3ee0b4;
  --warn: #f5b942;
  --r: 14px;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 20px; border-radius: 12px;
  font: 600 15px/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: filter .15s, background .15s, border-color .15s; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 14px 24px; font-size: 16px; }
.btn.full { width: 100%; }
.btn-primary { background: var(--blue); color: #02121c; }
.btn-wa { background: var(--wa); color: #04210f; }
.btn-primary:hover, .btn-wa:hover { filter: brightness(1.08); }
.btn-line { border-color: #2b3b4d; color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--blue); }
.wa-ico { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- Barra ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(5, 7, 10, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 54px; width: auto; }
.menu { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; }
.menu a { color: #c3cfdc; text-decoration: none; }
.menu a:hover { color: #fff; }

/* ---------- Inicio ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 720px; height: 720px; right: -160px; top: -220px; z-index: -1;
  background: radial-gradient(circle, rgba(0, 184, 255, .16), transparent 62%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.where { color: var(--blue); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 700; max-width: 14ch; }
.lede { margin-top: 22px; font-size: 18px; color: #b6c2cf; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: #cdd7e2; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg, .svc > svg, .track-empty svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.areas { margin-top: 64px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.areas b { color: var(--text); font-weight: 600; }

/* Tarjeta de seguimiento (pieza protagonista) */
.tracker-demo, .tr-card { margin: 0; background: linear-gradient(180deg, #0f1824, #0a1018); border: 1px solid #22364a; border-radius: 20px; padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 184, 255, .06); }
.tracker-demo { max-width: 440px; justify-self: end; width: 100%; }
.td-head, .tr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.td-head strong, .tr-head strong { display: block; font-family: var(--display); font-size: 22px; margin-top: 2px; }
.td-folio { font-family: var(--display); color: var(--blue); font-size: 14px; font-weight: 600; }
.td-badge { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.tr-head small { color: var(--muted); font-size: 13px; text-align: right; }
.td-steps { list-style: none; margin: 20px 0 0; padding: 0; position: relative; }
.td-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.td-steps li:last-child { padding-bottom: 0; }
.td-steps li::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.td-steps li:last-child::before { display: none; }
.td-steps li.done::before { background: var(--blue); }
.td-steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #34485e; background: var(--bg); flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1; }
.td-steps li.done .dot { background: var(--blue); border-color: var(--blue); }
.td-steps li.now .dot { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 6px rgba(62, 224, 180, .16); }
.td-steps b { display: block; font-weight: 600; font-size: 15.5px; }
.td-steps small { color: var(--muted); font-size: 13.5px; }
.td-steps li:not(.done):not(.now) b { color: #7d8b9c; }
.tracker-demo figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Un solo momento de animación: los pasos se encienden al cargar */
@media (prefers-reduced-motion: no-preference) {
  .tracker-demo .td-steps li { opacity: 0; transform: translateY(6px); animation: stepIn .45s ease forwards; }
  .tracker-demo .td-steps li:nth-child(1) { animation-delay: .25s; }
  .tracker-demo .td-steps li:nth-child(2) { animation-delay: .7s; }
  .tracker-demo .td-steps li:nth-child(3) { animation-delay: 1.15s; }
  .tracker-demo .td-steps li:nth-child(4) { animation-delay: 1.6s; }
  .tracker-demo .td-steps li.now .dot { animation: pulse 2.4s ease-in-out 2.2s infinite; }
}
@keyframes stepIn { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(62, 224, 180, 0); } }

/* ---------- Bloques ---------- */
.block { padding: 96px 0; }
.block-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.head h2, .block h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.head p, .track-grid > div > p, .quote-grid > div > p { color: var(--muted); font-size: 17px; max-width: 52ch; }

/* Servicios: el celular es lo principal, va más grande */
.services { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.svc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.svc > svg { width: 30px; height: 30px; margin-bottom: 6px; }
.svc h3 { font-size: 21px; }
.svc p { color: var(--muted); font-size: 15px; flex: 1; }
.svc-main { background: linear-gradient(160deg, #0f2233, var(--panel) 60%); border-color: #21405a; }
.svc-main h3 { font-size: 26px; }
.svc-link { color: var(--blue); font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 8px; }
.svc-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Cómo funciona: es una secuencia real, por eso lleva números */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { padding: 24px 22px; border-top: 2px solid var(--blue); background: var(--panel); border-radius: 0 0 var(--r) var(--r); }
.steps .n { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--blue); }
.steps h3 { font-size: 19px; margin: 8px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Seguimiento */
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.track-grid h2 { max-width: 16ch; margin-bottom: 14px; }
.track-form { margin-top: 26px; }
.track-form label { display: block; font-size: 14px; color: #c3cfdc; margin-bottom: 8px; font-weight: 500; }
.track-row { display: flex; gap: 10px; }
.track-row input { flex: 1; min-width: 0; }
.track-hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.track-hint a { color: var(--blue); }
.track-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 240px; padding: 24px; text-align: center;
  border: 1px dashed #2b3b4d; border-radius: 20px; color: var(--muted); }
.track-empty svg { width: 30px; height: 30px; }
.track-empty.is-error { border-color: rgba(245, 185, 66, .5); color: #f3d59a; }
.tr-msg { margin: 16px 0 4px; font-size: 15.5px; color: #d8e2ec; }
.tr-card.st-listo .tr-msg { color: var(--ok); font-weight: 600; }
.tr-card.st-esperando_pieza .tr-msg { color: var(--warn); }
.tr-card .btn { margin-top: 22px; }
.tr-updated { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Por qué */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.reasons h3 { font-size: 19px; margin-bottom: 8px; padding-left: 14px; border-left: 3px solid var(--blue); }
.reasons p { color: var(--muted); font-size: 15px; padding-left: 17px; }

/* Taller */
.place-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: stretch; }
.place address { font-style: normal; margin-top: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.place address span { color: var(--muted); font-size: 15px; }
.schedule { margin: 22px 0 0; display: grid; gap: 6px; font-size: 15px; }
.schedule div { display: flex; justify-content: space-between; gap: 16px; max-width: 360px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.schedule dt { color: var(--muted); }
.schedule dd { margin: 0; font-weight: 600; }
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--panel); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.2) invert(.9) hue-rotate(180deg) contrast(.9); }

/* Cotizar */
.quote-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.quote-grid h2 { margin-bottom: 14px; }
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.quote label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: #c3cfdc; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea { width: 100%; background: var(--bg); border: 1px solid #263546; color: var(--text); border-radius: 10px; padding: 12px 14px; font: 16px var(--body); }
input::placeholder, textarea::placeholder { color: #5f6e80; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 184, 255, .18); }
.quote .check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; }
.quote .check input { width: 20px; height: 20px; accent-color: var(--blue); }
.form-note { font-size: 14px; color: var(--ok); min-height: 1em; text-align: center; }

/* Pie */
.foot { padding: 56px 0 90px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot img { width: 160px; height: auto; margin-bottom: 12px; }
.foot p { color: var(--muted); font-size: 14.5px; }
.foot h3 { font-size: 15px; margin-bottom: 10px; font-family: var(--body); font-weight: 600; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--blue); }
.copy { margin-top: 36px; font-size: 13px; color: #5f6e80; }

/* WhatsApp flotante */
.float-wa { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.float-wa svg { width: 30px; height: 30px; fill: #04210f; }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .hero-grid, .track-grid, .place-grid, .quote-grid, .head { grid-template-columns: minmax(0, 1fr); }
  .tracker-demo { justify-self: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { gap: 12px; }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .nav { justify-content: space-between; }
  .services { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav { height: 64px; }
  .brand img { height: 46px; }
  .hero { padding-top: 40px; }
  .lede { font-size: 16.5px; }
  .cta-row .btn { width: 100%; }
  .block { padding: 64px 0; }
  .steps, .reasons, .two, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .track-row { flex-direction: column; }
  .place-actions .btn { flex: 1 1 100%; }
  .tracker-demo, .tr-card, .quote { padding: 20px; }
  .areas { margin-top: 44px; }
}
