/* Sánchez Autotecnia — web pública */

:root {
  --bg: #0b0d10;
  --bg-2: #0f1318;
  --surface: #14181d;
  --surface-2: #1a1f26;
  --line: #262c35;
  --line-soft: #1d232b;
  --text: #f2f4f7;
  --muted: #98a2b3;
  --muted-2: #6b7686;
  --accent: #00b0f0;
  --accent-2: #38d0ff;
  --warm: #f5a524;
  --ok: #12b76a;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -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; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
}

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ── Tipografía de sección ─────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.kicker::before {
  content: ''; width: 26px; height: 1px; background: var(--accent); opacity: .7;
}
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-lead { color: var(--muted); max-width: 60ch; margin-top: 1rem; font-size: 1.05rem; }

section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

/* ── Botones ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #04121a; box-shadow: 0 12px 30px -12px rgba(0, 176, 240, .7); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line); background: rgba(255, 255, 255, .02); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: #25d366; color: #04231180; color: #052e16; }
.btn-wa:hover { background: #34e57a; }
.btn svg { width: 18px; height: 18px; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 13, 16, .82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #0068a8);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #04121a;
  flex-shrink: 0;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; color: var(--muted-2); letter-spacing: .07em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a { font-size: .92rem; color: var(--muted); transition: color .18s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--accent); transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.nav-cta .btn { padding: .68rem 1.3rem; font-size: .88rem; }
.burger {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding: 8rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: .62; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 620px at 76% 40%, rgba(0, 176, 240, .14), transparent 64%),
    linear-gradient(98deg, var(--bg) 12%, rgba(11, 13, 16, .93) 38%, rgba(11, 13, 16, .55) 68%, rgba(11, 13, 16, .35)),
    linear-gradient(0deg, var(--bg), transparent 42%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead {
  color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 58ch; margin: 1.6rem 0 2.4rem;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: 2rem; flex-wrap: wrap;
  margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--line-soft);
}
.hero-badge { display: flex; gap: .7rem; align-items: flex-start; max-width: 230px; }
.hero-badge svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.hero-badge b { display: block; font-family: var(--display); font-size: .93rem; font-weight: 600; }
.hero-badge span { font-size: .82rem; color: var(--muted-2); line-height: 1.45; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 1;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 0%, 100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Stats ─────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); }
.stat { background: var(--surface); padding: 2.2rem 1.6rem; }
.stat b {
  display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600; color: var(--accent); letter-spacing: -.03em;
}
.stat span { font-size: .87rem; color: var(--muted); line-height: 1.45; display: block; margin-top: .4rem; }

/* ── Credenciales ──────────────────────────────────────────────────── */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.4rem; }
.cred {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 2.2rem;
  transition: border-color .25s ease, transform .25s ease;
}
.cred:hover { border-color: var(--line); transform: translateY(-4px); }
.cred-ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(0, 176, 240, .1); border: 1px solid rgba(0, 176, 240, .22);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 1.4rem;
}
.cred-ico svg { width: 22px; height: 22px; }
.cred h3 { font-size: 1.18rem; margin-bottom: .7rem; }
.cred p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ── Sobre / dueño ─────────────────────────────────────────────────── */
.owner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.owner-photo { position: relative; }
.owner-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.owner-photo::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 16, .8));
  pointer-events: none;
}
.owner-tag {
  position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 1;
  background: rgba(11, 13, 16, .82); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1.1rem;
}
.owner-tag b { display: block; font-family: var(--display); font-size: 1rem; }
.owner-tag span { font-size: .78rem; color: var(--accent); }
.owner-body p { color: var(--muted); font-size: 1.02rem; }
.owner-body p.destacado {
  color: var(--text); font-family: var(--display); font-size: 1.15rem; line-height: 1.5;
  border-left: 2px solid var(--accent); padding-left: 1.3rem; margin-top: 2rem;
}
.owner-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chip {
  font-size: .8rem; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}

/* ── Marcas ────────────────────────────────────────────────────────── */
.brands-vag { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.brand-card {
  flex: 1 1 170px; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.7rem 1.2rem; text-align: center;
  transition: border-color .25s, background .25s;
}
.brand-card:hover { border-color: var(--accent); background: var(--surface-2); }
.brand-card b { display: block; font-family: var(--display); font-size: 1.12rem; letter-spacing: -.01em; }
.brand-card span { font-size: .76rem; color: var(--muted-2); }
.brands-otras {
  margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: var(--radius);
  border: 1px dashed var(--line); color: var(--muted); font-size: .95rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brands-otras b { color: var(--text); font-family: var(--display); }

/* ── Servicios ─────────────────────────────────────────────────────── */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 3.4rem; }
.serv {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 1.9rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.serv::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.serv:hover { border-color: var(--line); transform: translateY(-4px); background: var(--surface-2); }
.serv:hover::before { transform: scaleX(1); }
.serv-top { display: flex; align-items: center; gap: .9rem; }
.serv-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.04); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.serv-ico svg { width: 20px; height: 20px; }
.serv.general .serv-ico { color: var(--warm); }
.serv h3 { font-size: 1.08rem; }
.serv p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.serv-meta { display: flex; gap: 1.2rem; align-items: center; padding-top: .9rem; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--muted-2); }
.serv-meta .dur { display: flex; align-items: center; gap: .4rem; }
.serv-meta svg { width: 14px; height: 14px; }
.serv-meta .precio { margin-left: auto; color: var(--text); font-family: var(--display); font-weight: 600; }
.tag-vag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(0,176,240,.3); border-radius: 999px; padding: .18rem .6rem;
}

/* ── Proceso ───────────────────────────────────────────────────────── */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3.4rem; counter-reset: paso; }
.paso { position: relative; padding-top: 2.6rem; }
.paso::before {
  counter-increment: paso; content: '0' counter(paso);
  position: absolute; top: 0; left: 0;
  font-family: var(--display); font-size: 2.4rem; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1px var(--line);
}
.paso h3 { font-size: 1.05rem; margin-bottom: .55rem; }
.paso p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ── Galería ───────────────────────────────────────────────────────── */
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.4rem; }
.galeria figure {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); aspect-ratio: 4/5;
}
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galeria figure:hover img { transform: scale(1.06); }
.galeria figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(11, 13, 16, .93));
}
.galeria figcaption b { display: block; font-family: var(--display); font-size: .92rem; }
.galeria figcaption span { font-size: .76rem; color: var(--muted); }

/* ── CTA turnos ────────────────────────────────────────────────────── */
.cta-turnos {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 400px at 82% 20%, rgba(0, 176, 240, .13), transparent 65%),
    var(--surface);
  padding: clamp(2.4rem, 5vw, 4rem);
  display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap;
}
.cta-turnos div { flex: 1 1 340px; }
.cta-turnos h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-turnos p { color: var(--muted); margin: .9rem 0 0; max-width: 52ch; }
.cta-acciones { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ── Ubicación ─────────────────────────────────────────────────────── */
.ubi { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.6rem; align-items: start; margin-top: 3rem; }
.datos-lista { display: flex; flex-direction: column; gap: 1.5rem; }
.dato { display: flex; gap: 1rem; align-items: flex-start; }
.dato-ico {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent);
}
.dato-ico svg { width: 18px; height: 18px; }
.dato b { display: block; font-family: var(--display); font-size: .95rem; margin-bottom: .15rem; }
.dato span, .dato a { color: var(--muted); font-size: .93rem; }
.dato a:hover { color: var(--accent); }
.mapa {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  min-height: 380px; position: relative;
}
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35) invert(.92) hue-rotate(180deg) contrast(.92); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line-soft); padding: 3.5rem 0 2.5rem; background: var(--bg-2); }
.footer-top { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: space-between; padding-bottom: 2.5rem; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted-2); font-size: .9rem; margin-top: 1rem; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .55rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted-2); font-size: .8rem;
}
.footer-bottom a:hover { color: var(--accent); }

/* ── WhatsApp flotante ─────────────────────────────────────────────── */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 70;
  display: flex; align-items: center; gap: .7rem;
  background: #25d366; color: #052e16;
  padding: .85rem 1.3rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(37, 211, 102, .7); }
.wa-float svg { width: 22px; height: 22px; }

/* ── Animación de entrada ──────────────────────────────────────────── */
/* El contenido se ve siempre; la animación solo se aplica si el JS está vivo
   (la clase .js la agrega el propio script). Así nunca queda la página en blanco. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

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

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .cred-grid, .pasos { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .owner { grid-template-columns: 1fr; }
  .owner-photo { max-width: 380px; }
  .ubi { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: flex; }
  .nav-links.abierto {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; inset: 76px 0 auto 0;
    background: rgba(11, 13, 16, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.6rem;
  }
  .nav-links.abierto a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero-badges { gap: 1.4rem; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  .cred-grid, .pasos, .galeria, .stats { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: .95rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}
