/* SmartTracker · sitio web. Identidad v1.0: Azul Smart #2563EB, Azul noche #0A1226, Azul pizarra #1A2540, gris azulado #8DA6CC. Tipografía Inter. */
:root {
  --blue: #2563EB; --night: #0A1226; --slate: #1A2540; --steel: #8DA6CC; --ok: #16A34A; --danger: #DC2626;
  --ink: #0F172A; --muted: #475569; --line: #E2E8F0; --bg: #F6F7F9; --white: #FFFFFF;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  --wrap: 1120px; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.025em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand .t { color: var(--blue); }
.brand-desc { display: block; margin: 2px 0 0 50px; font-size: 12.5px; font-weight: 400; letter-spacing: .06em; color: var(--steel); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--blue); color: var(--white); }
.btn.primary:hover { background: #1D4FD8; }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn.ghost:hover { border-color: var(--white); }
.btn.ghost.dark { color: var(--ink); border-color: var(--line); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Cabecera */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-head.scrolled { border-color: var(--slate); box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--steel); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--white); }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--slate); color: var(--white); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }

/* Portada */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--white); overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.55) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 38, .94) 0%, rgba(10, 18, 38, .78) 55%, rgba(10, 18, 38, .6) 100%); }
.hero .wrap { padding: 112px 0 120px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 22px; max-width: 760px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #D6E0F2; max-width: 620px; margin: 0 0 34px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .descriptor { margin-top: 38px; font-size: 13px; letter-spacing: .08em; color: var(--steel); }

/* Secciones */
.sec { padding: 92px 0; }
.sec.alt { background: var(--bg); }
.sec.dark { background: var(--night); color: var(--white); }
.eyebrow { font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.sec h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; max-width: 720px; }
.sec .intro { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 48px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.alt .card { border-color: transparent; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .05); }
.card h3 { font-size: 18px; letter-spacing: -0.015em; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 46px; height: 46px; border-radius: 12px; background: #E8EFFD; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.problem .num { font: 700 14px/1 var(--font); color: var(--blue); letter-spacing: .1em; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: paso; }
.steps li { list-style: none; position: relative; padding: 0 28px 0 0; counter-increment: paso; }
.steps li::before { content: counter(paso); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; margin-bottom: 18px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--slate); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--steel); font-size: 15.5px; max-width: 300px; }

/* Preguntas */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 700px; }

/* Contacto */
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.contact .side p:not(.eyebrow) { color: var(--steel); font-size: 17px; }
.contact .side .alt-contact { display: grid; gap: 12px; margin-top: 26px; }
.form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { font: 400 16px var(--font); color: var(--ink); padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 10px; width: 100%; background: var(--white); }
.form textarea { min-height: 110px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.form-msg.ok { background: #DCFCE7; color: #14532D; }
.form-msg.err { background: #FEE2E2; color: #7F1D1D; }
.form-msg[hidden], .form[hidden] { display: none; }
.noscript { background: #FEF3C7; color: #78350F; border-radius: 10px; padding: 14px 16px; }

/* Pie */
.site-foot { background: var(--night); color: var(--steel); padding: 56px 0 36px; }
.site-foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.site-foot nav a { color: var(--steel); text-decoration: none; font-size: 15px; }
.site-foot nav a:hover { color: var(--white); }
.site-foot .legal { border-top: 1px solid var(--slate); margin-top: 36px; padding-top: 22px; font-size: 13.5px; }

/* Animación sencilla de entrada (se desactiva con «reducir movimiento») */
/* Solo se ocultan si hay JavaScript (si no, el contenido quedaría invisible) */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}


@media (max-width: 960px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps li::after { display: none; }
  .steps li { padding: 0; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--night); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--slate); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--slate); }
  .nav-actions { flex-direction: column; margin-top: 14px; }
  .hero .wrap { padding: 72px 0 80px; }
  .sec { padding: 64px 0; }
}
@media (max-width: 640px) {
  .grid3 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .hero .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Capturas */
.shots { display: grid; gap: 40px; }
.shot { margin: 0; }
.shot .frame { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: 0 20px 50px rgba(15, 23, 42, .12); overflow: hidden; }
.shot .frame::before { content: ""; display: block; height: 28px; background: #F1F5F9; border-bottom: 1px solid var(--line); background-image: radial-gradient(circle, #CBD5E1 4px, transparent 5px), radial-gradient(circle, #CBD5E1 4px, transparent 5px), radial-gradient(circle, #CBD5E1 4px, transparent 5px); background-size: 14px 28px; background-position: 14px 50%, 32px 50%, 50px 50%; background-repeat: no-repeat; }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
@media (min-width: 961px) { .shots { grid-template-columns: 1fr 1fr; } .shot:nth-child(1) { grid-column: 1 / -1; } }
