/*
 * Obsidian Auto Consulting LLC — sistema visual HUD / táctico premium
 * (heredado del diseño de APEX: azul marino profundo, cian, acentos dorados,
 * títulos en Bebas Neue, texto en Barlow y etiquetas en JetBrains Mono).
 */
:root {
  --bg: oklch(0.1848 0.0078 248.25);
  --panel: oklch(0.223 0.010 245);
  --panel-2: oklch(0.2648 0.0127 243.35);
  --fg: oklch(0.951 0.008 230);
  --muted: oklch(0.72 0.02 246);
  --primary: oklch(0.8651 0.1153 207.08);
  --primary-fg: oklch(0.19 0.03 190);
  --gold: oklch(0.8243 0.1218 84.70);
  --border: oklch(0.298 0.017 249);
  --danger: oklch(0.72 0.17 25);
  --success: oklch(0.82 0.15 155);
  --primary-a: color-mix(in oklab, var(--primary) 35%, transparent);
  --gradient-panel: linear-gradient(160deg, var(--panel-2), var(--panel));
  --gradient-cyan: linear-gradient(120deg, color-mix(in oklab, var(--primary) 92%, transparent), color-mix(in oklab, var(--gold) 70%, var(--primary)));
  --shadow-glow: 0 0 0 1px var(--primary-a), 0 18px 60px -20px color-mix(in oklab, var(--primary) 45%, transparent);
  --shadow-panel: 0 24px 70px -35px oklch(0 0 0 / 0.9);
  --radius: 4px;
  --header-h: 72px;
  --display: "Bebas Neue", system-ui, sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--fg); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary); color: var(--primary-fg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; margin: 0 0 .45em; letter-spacing: .01em; }
h1 { font-size: clamp(3rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 .9em;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-1px); background: color-mix(in oklab, var(--primary) 88%, white); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: color-mix(in oklab, var(--panel) 70%, transparent); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: drop-shadow(0 0 10px color-mix(in oklab, var(--primary) 50%, transparent)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.45rem; letter-spacing: .08em; }
.brand-name::after { content: " AUTO"; color: var(--primary); }
.brand-sub { font-family: var(--mono); font-size: .56rem; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: var(--fg); margin: 4px 0; }

/* Fondo de cuadrícula HUD y línea de escaneo */
.hud {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(color-mix(in oklab, var(--primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--primary) 6%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
}
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: color-mix(in oklab, var(--primary) 40%, transparent);
  animation: scanline 4.5s linear infinite;
}
@keyframes scanline { from { transform: translateY(-100%); } to { transform: translateY(90vh); } }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
  opacity: .5; z-index: -2; animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 80%, transparent) 45%, color-mix(in oklab, var(--bg) 25%, transparent) 100%);
}
.hero-inner { position: relative; padding: clamp(56px, 9vw, 110px) 0; }
.hero h1 { max-width: 15ch; margin-top: 22px; }
.hl { color: var(--primary); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--primary-a); background: color-mix(in oklab, var(--panel) 70%, transparent);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--primary);
}
.badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead { font-size: 1.15rem; color: color-mix(in oklab, var(--fg) 78%, transparent); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in oklab, var(--panel) 75%, transparent);
}
.hero-note svg { color: var(--gold); flex: none; }
.scroll-cue {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin-top: 48px; text-decoration: none;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero + .section { border-top: 1px solid var(--border); }

/* Secciones */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section-panel { background: color-mix(in oklab, var(--panel) 45%, var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-intro { color: var(--muted); font-size: 1.05rem; margin: 0; }
.panel-surface, .card, .plan, .contact-form, .faq details, .trust-item, .step, .service, .pending-box {
  background: var(--gradient-panel); border: 1px solid var(--border); box-shadow: var(--shadow-panel);
}

/* A quién ayudamos */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card { padding: 34px 30px; border: 0; box-shadow: none; background: var(--bg); }
.card h3 { margin-top: 26px; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary) 10%, transparent); border: 1px solid var(--primary-a);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Servicios */
.services { display: grid; gap: 18px; }
.service {
  display: grid; grid-template-columns: 220px 72px 1fr; gap: 24px; align-items: start;
  border-radius: var(--radius); padding: 22px;
}
.service-img { width: 220px; height: 170px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.service-num { font-family: var(--mono); font-size: .8rem; color: var(--primary); letter-spacing: .14em; padding-top: 10px; }
.service h3 { font-size: 2rem; margin: 4px 0 14px; }
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service h4 { font-family: var(--mono); font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 6px; color: var(--gold); }
.service-cols p { margin: 0; color: var(--muted); }
.service-note {
  margin: 16px 0 0; font-size: .9rem; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--primary-a); background: color-mix(in oklab, var(--primary) 8%, transparent); color: var(--fg);
}
.center-cta { text-align: center; margin-top: 44px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 15rem; gap: 16px; }
.g-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); grid-column: span 3; }
.g-wide { grid-column: span 6; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* Planes */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 24px; border-radius: var(--radius); }
.plan h3 { font-size: 1.9rem; margin-bottom: 10px; }
.plan-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin: 0 0 10px; }
.plan-price { font-family: var(--display); font-size: 3.4rem; line-height: 1; margin: 0 0 6px; color: var(--primary); }
.plan-currency { font-size: 1.6rem; vertical-align: top; margin-right: 2px; color: var(--muted); }
.plan-term { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.plan-desc { color: var(--muted); font-size: .95rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan-list li { position: relative; padding-left: 24px; font-size: .94rem; line-height: 1.5; color: color-mix(in oklab, var(--fg) 85%, transparent); }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}
.plan-featured { border-color: color-mix(in oklab, var(--gold) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--gold) 30%, transparent), 0 18px 60px -20px color-mix(in oklab, var(--gold) 40%, transparent); }
.plan-featured .plan-tag, .plan-featured .plan-price { color: var(--gold); }
.plan-featured .plan-list li::before { border-color: var(--gold); }
.plan-featured .btn-primary { background: var(--gold); color: oklch(0.2 0.03 84); box-shadow: none; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.trust-item { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); box-shadow: none; }
.trust-item svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h3 { font-size: 1.35rem; margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Método */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step { padding: 30px 26px; border: 0; box-shadow: none; background: var(--bg); min-height: 15rem; }
.step h3 { margin-top: 38px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.step-num { font-family: var(--mono); font-size: .8rem; color: var(--primary); }
.step-num::before { content: "0"; }
.fine-print { color: var(--muted); font-size: .88rem; margin: 24px 0 0; }

/* Sobre */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--muted); }
.pending-box { border-style: dashed; border-color: var(--primary-a); border-radius: var(--radius); padding: 28px; }
.pending-label {
  display: inline-block; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  background: color-mix(in oklab, var(--gold) 18%, transparent); color: var(--gold) !important; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.founder-role { margin: 0 0 4px; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary) !important; }
.pending-box h3 { font-size: 2rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); padding: 0 22px; box-shadow: none; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--primary-a); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contacto */
.section-contact { overflow: hidden; border-top: 1px solid var(--border); background: color-mix(in oklab, var(--panel) 40%, var(--bg)); }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.contact-direct { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.contact-direct-title { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary) !important; margin: 0 0 4px; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 500; overflow-wrap: anywhere; width: fit-content; max-width: 100%; }
.contact-link:hover { color: var(--primary); }
.contact-address { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--fg) !important; font-weight: 500; }
.contact-link svg, .contact-address svg {
  width: 20px; height: 20px; flex: none; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact-address svg { margin-top: 2px; }
.contact-form { border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow-glow); }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius); font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border);
}
.field input:focus, .field select:focus { border-color: var(--primary); }
.field.has-error input[type="text"], .field.has-error input[type="email"], .field.has-error input[type="tel"] { border-color: var(--danger); }
.field.has-error legend { color: var(--danger); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.field .choice {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); font-weight: 500; font-size: .95rem;
}
.choice input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 8%, var(--bg)); }
.optional { font-weight: 400; color: var(--muted); }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; color: var(--muted); }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }
.form-status.is-info { color: var(--gold); }

/* Pie */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg); }
.footer-inner { display: grid; gap: 14px; }
.footer-text { color: var(--muted); max-width: 70ch; margin: 0; font-size: .95rem; }
.footer-contact { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .95rem; }
.footer-contact a { text-decoration: none; color: var(--fg); overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--primary); }
.footer-address { margin: 0; color: var(--muted); font-size: .95rem; }
.footer-legal { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--muted) 70%, transparent); margin: 0; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 14px; }
  .plans, .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 180px 1fr; }
  .service-img { width: 180px; height: 150px; }
  .service-num { display: none; }
  .gallery { grid-auto-rows: 12rem; }
  .g-wide { grid-column: span 12; }
  .g-item { grid-column: span 6; }
}
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .service-cols { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-bg { object-position: 35% center; opacity: .55; }
  .hero-shade { background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 45%, transparent), color-mix(in oklab, var(--bg) 85%, transparent) 60%, var(--bg)); }
  .steps, .choices, .plans, .trust { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 16px; }
  .service-img { width: 100%; height: 190px; }
  .gallery { grid-auto-rows: 14rem; }
  .g-item, .g-wide { grid-column: span 12; grid-row: auto; }
  .contact-form { padding: 22px; }
  .hero-note { align-items: flex-start; }
  .footer-contact { flex-direction: column; gap: 4px; }
  .footer-contact span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
