/* =========================================================
   Metauto — Propuesta de rediseño
   Estética de taller técnico/multimarca: azul marino "chasis",
   acento ámbar (herramienta/aviso) y toques del rojo del logo real.
   Sobria y de precisión — sin fotos (ver nota en README), apoyada
   en iconografía técnica y datos reales del taller.
   ========================================================= */

:root {
  /* Marca */
  --navy-900: #0b1420;
  --navy-800: #101c2b;
  --navy-700: #1a2c40;
  --navy-500: #35506e;
  --steel-300: #9fb0c0;
  --steel-100: #e4eaf0;

  --amber-500: #e5940f;
  --amber-600: #c97a08;
  --amber-050: #fdf1dd;

  --red-600: #b3271f;
  --red-050: #fbe9e8;

  /* Neutros */
  --ink: #131d29;
  --ink-soft: #566270;
  --line: #dde3ea;
  --bg: #f6f8fa;
  --bg-soft: #edf1f5;
  --white: #ffffff;

  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(11, 20, 32, .07);
  --shadow: 0 16px 38px rgba(11, 20, 32, .14);
  --shadow-lg: 0 28px 64px rgba(11, 20, 32, .24);

  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber-600);
}
.eyebrow::before { content: ''; width: 24px; height: 3px; background: var(--amber-500); }

.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after { content: ''; width: 24px; height: 3px; background: var(--amber-500); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.04rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius);
  cursor: pointer; border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-600); }
.btn-wa { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: #25D366; color: #1a8f47; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-500); color: var(--navy-700); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.scrolled { background: rgba(11,20,32,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 11px 0; }

.header--hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,14,20,.75), rgba(9,14,20,0));
  z-index: 0; transition: opacity .35s;
}
.header--hero.scrolled::before { opacity: 0; }
.header .nav { position: relative; z-index: 5; }
.header .brand { color: #fff; }
.header .nav-links > a { color: rgba(255,255,255,.86); }
.header .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.header .btn-ghost:hover { border-color: var(--amber-500); color: var(--amber-500); }
.header .burger { color: #fff; }

.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: .02em; text-transform: uppercase; }
.brand img { height: 40px; width: auto; display: block; }
.brand b { font-weight: 700; color: var(--amber-500); }

.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-display); }
.nav-links > a { transition: color .2s; }
.nav-links > a:hover { color: var(--amber-500); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; position: relative; background: none; border: 0; width: 28px; height: 28px; cursor: pointer; }
.burger svg { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; transition: opacity .2s; }
.burger .icon-close { opacity: 0; }
.header.menu-open .burger .icon-menu { opacity: 0; }
.header.menu-open .burger .icon-close { opacity: 1; }

/* El panel exterior anima max-height y NO lleva padding propio: si lo llevara,
   el padding no se comprimiría por debajo de max-height y quedaría una barra
   visible tapando la cabecera incluso "cerrado". El padding real vive en
   .mobile-menu-inner. z-index por debajo de .header .nav (5) para que la marca
   y la hamburguesa (que también cierra el menú) queden siempre visibles. */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--navy-900); box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.mobile-menu.open { max-height: 100vh; overflow-y: auto; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; padding: 90px 24px 24px; }
.mm-link { padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 500; color: rgba(255,255,255,.88); text-transform: uppercase; font-size: .86rem; font-family: var(--font-display); letter-spacing: .04em; }
.mm-cta { justify-content: center; margin-top: 16px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
}

/* ---------- Hero (sin foto: patrón técnico + logo real) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--navy-900);
  overflow: hidden;
}
.hero::before {
  /* Patrón de rejilla técnica, evoca plano/diagnóstico, no una foto */
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159,176,192,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,176,192,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 40%, transparent 85%);
}
.hero::after {
  content: '';
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,148,15,.16), transparent 68%);
}
.hero-inner { position: relative; z-index: 1; color: #fff; max-width: 660px; }
.hero .eyebrow { color: var(--amber-500); }
.hero .eyebrow::before { background: var(--amber-500); }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 20px 0 18px; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--amber-500); }
.hero .lead { font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 540px; margin-bottom: 30px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: var(--amber-500); color: var(--amber-500); }
.hero .btn-wa { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-wa:hover { border-color: #25D366; color: #4ee08a; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: .82rem; color: rgba(255,255,255,.86); font-weight: 500;
}
.trust-chip b { color: var(--amber-500); font-family: var(--font-display); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

.zones { background: var(--bg-soft); }

/* ---------- El taller (texto + panel esquemático, sin foto) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text .section-head { margin-bottom: 28px; }
.about-text > p { color: var(--ink-soft); margin-bottom: 24px; font-size: 1.02rem; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trait .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--amber-600); font-weight: 600; flex-shrink: 0; width: 30px; }
.trait h4 { font-size: .98rem; margin-bottom: 4px; text-transform: none; letter-spacing: 0; }
.trait p { color: var(--ink-soft); font-size: .92rem; }

/* Panel esquemático: sustituye a la foto que no existe en la web real del
   negocio (ver README) — un diagrama técnico de coche con puntos de revisión,
   coherente con "diagnosis" y "multimarca". */
.diagram-panel {
  background: var(--navy-900); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow);
  position: relative; overflow: hidden; aspect-ratio: 4/5;
  display: flex; flex-direction: column; justify-content: center;
}
.diagram-panel svg { width: 100%; height: auto; }
.diagram-panel .diagram-caption {
  margin-top: 22px; text-align: center; color: rgba(255,255,255,.6);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-display);
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } .diagram-panel { aspect-ratio: 16/10; } }

/* ---------- Servicios: grid de tarjetas con icono ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.serv-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.serv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--steel-300); }
.serv-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--navy-700); }
.serv-ico svg { width: 24px; height: 24px; }
.serv-card h3 { font-size: 1rem; margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.serv-card p { color: var(--ink-soft); font-size: .9rem; }

.serv-note {
  background: var(--bg-soft); border-left: 3px solid var(--amber-500);
  padding: 18px 24px; margin-top: 36px; color: var(--ink-soft); font-size: .92rem;
}
.serv-note b { color: var(--navy-700); }

/* Promoción destacada (dato real: lacado de faros + descuento en materiales) */
.promo-box {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: 28px 30px; margin-top: 36px;
}
.promo-item { display: flex; align-items: baseline; gap: 12px; }
.promo-item .price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--amber-500); }
.promo-item .desc { font-size: .88rem; color: rgba(255,255,255,.72); max-width: 30ch; }
.promo-item .desc b { color: #fff; }

/* ---------- Aseguradoras ---------- */
.insurer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.insurer-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; text-align: center;
}
.insurer-card .stars { color: var(--amber-500); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.insurer-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.insurer-card p { color: var(--ink-soft); font-size: .88rem; }
.insurer-all {
  grid-column: 1 / -1;
  background: var(--bg-soft); border: 1px dashed var(--steel-300); border-radius: var(--radius-lg);
  padding: 22px 26px; text-align: center; color: var(--ink-soft); font-size: .95rem;
}
.insurer-all b { color: var(--navy-700); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-900); border-radius: var(--radius-lg); padding: 44px 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stats .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--amber-500); }
.stats .lbl { color: rgba(255,255,255,.62); font-size: .82rem; margin-top: 8px; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 18px; } }

/* ---------- Info práctica ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.info-item { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item h4 { font-size: .96rem; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.info-item p { color: var(--ink-soft); font-size: .89rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.contact-card .eyebrow { margin-bottom: 16px; }
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.contact-card > p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-line .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); color: var(--navy-700); display: grid; place-items: center; flex: 0 0 auto; }
.contact-line .ico svg { width: 18px; height: 18px; }
.contact-line small { display: block; color: var(--ink-soft); font-size: .8rem; }
.contact-line b { font-size: .98rem; font-weight: 600; }
.contact-actions { display: flex; gap: 12px; margin: 24px 0 20px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--navy-700); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.socials svg { width: 17px; height: 17px; }

.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; filter: grayscale(.2) contrast(1.05); }
.map-card iframe { width: 100%; height: 100%; border: 0; min-height: 320px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { background: var(--navy-900); }
.cta-box { text-align: center; color: #fff; }
.cta-box .eyebrow { justify-content: center; }
.cta-box .eyebrow::after { content: ''; width: 24px; height: 3px; background: var(--amber-500); }
.cta-box h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 14px 0; }
.cta-box p { color: rgba(255,255,255,.68); max-width: 520px; margin: 0 auto 26px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.cta-box .hero-actions { justify-content: center; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-box .btn-ghost:hover { border-color: var(--amber-500); color: var(--amber-500); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 38px; margin-bottom: 36px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 15px; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer a:hover { color: var(--amber-500); }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer p.about { font-size: .88rem; opacity: .78; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
/* El negocio SÍ publica un número de WhatsApp real (wa.me/34615948605 en su
   web actual), así que el botón persistente es WhatsApp, el canal ya
   verificado, y no una llamada genérica. */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 1.5px solid rgba(255,255,255,.25); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 720px) {
  .hero { padding-top: 90px; }
}
