/* ==========================================================================
   Talleres Català Automotive — hoja de estilos
   ========================================================================== */

:root {
  --black: #08090b;
  --ink: #0e1014;
  --ink-2: #14171c;
  --line: #24282f;
  --white: #ffffff;
  --text: #d7dae0;
  --muted: #939aa6;
  --red: #e11d2e;
  --red-dark: #b81523;

  --wrap: 1200px;
  --radius: 14px;
  --radius-lg: 20px;

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.06;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: .02em; }
h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--white); margin: 0 0 1rem; font-weight: 700;
}
p { margin: 0 0 1rem; }

h1 em {
  font-style: normal;
  color: var(--red);
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- Botones */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font: 600 .9rem/1 var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  --btn-bg: var(--red); --btn-bd: var(--red); --btn-fg: #fff;
  box-shadow: 0 8px 24px -10px rgba(225, 29, 46, .85);
}
.btn-primary:hover { --btn-bg: var(--red-dark); --btn-bd: var(--red-dark); box-shadow: 0 14px 30px -10px rgba(225, 29, 46, .95); }

.btn-ghost { --btn-bg: rgba(255,255,255,.03); }
.btn-ghost:hover { --btn-bd: rgba(255,255,255,.45); --btn-bg: rgba(255,255,255,.08); }

.btn-sm { padding: .68rem 1.15rem; font-size: .8rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------- Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 9, 11, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-stuck {
  background: rgba(8, 9, 11, .95);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}

.brand {
  flex: none;
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none;
}
/* El logotipo completo ya incluye el nombre, así que en la cabecera va solo.
   Se limita alto y ancho para que nunca empuje al menú ni al botón de cita. */
.brand img {
  height: 50px;
  width: auto;
  max-width: min(190px, 42vw);
  object-fit: contain;
}

.nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 1.6rem;
}
.nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .4rem 0;
  transition: color .18s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--red);
  transition: right .25s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--white);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,9,11,.86) 0%, rgba(8,9,11,.72) 45%, rgba(8,9,11,.96) 100%),
    linear-gradient(95deg, rgba(8,9,11,.97) 0%, rgba(8,9,11,.9) 40%, rgba(8,9,11,.55) 100%),
    radial-gradient(900px 600px at 80% 15%, rgba(225,29,46,.2), transparent 62%),
    url("../img/herramientas.jpg") no-repeat center 35% / cover,
    #08090b;
  background-blend-mode: normal, normal, screen, luminosity, normal;
}
/* Logo completo sin fondo como marca de agua, apoyado en la esquina inferior derecha */
.hero-bg::before {
  content: "";
  position: absolute;
  right: -3%;
  bottom: 7%;
  width: min(50vw, 660px);
  aspect-ratio: 1934 / 700;
  background: url("../img/logo-completo.png") no-repeat center / contain;
  opacity: .055;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 75%);
}
.hero-inner { position: relative; max-width: 860px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px; background: var(--red);
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--text);
  max-width: 62ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-points {
  list-style: none; padding: 0;
  margin: 2.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem;
}
.hero-points li {
  position: relative; padding-left: 1.6rem;
  font-size: .9rem; color: var(--muted);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px rgba(225,29,46,.18);
}

/* -------------------------------------------------------------- Trustbar */
.trustbar {
  background: var(--ink);
  border-block: 1px solid var(--line);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
.trust-item {
  background: var(--ink);
  padding: 1.7rem 1.4rem;
  display: flex; align-items: flex-start; gap: .9rem;
}
.trust-item svg { width: 24px; height: 24px; fill: var(--red); flex: none; margin-top: 2px; }
.trust-item strong { display: block; color: var(--white); font-size: .93rem; font-weight: 600; }
.trust-item span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }

/* -------------------------------------------------------------- Secciones */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--ink); }

.section-head { max-width: 700px; margin: 0 0 3.2rem; }
.section-sub { color: var(--muted); font-size: 1.03rem; margin: 0; }

/* --------------------------------------------------------- Tarjetas serv. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
}
.card {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--red);
  transition: width .35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: #34394252;
  box-shadow: 0 26px 50px -30px rgba(0,0,0,.95);
}
.card:hover::before { width: 100%; }

.card-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(225,29,46,.12);
  border: 1px solid rgba(225,29,46,.3);
  display: grid; place-items: center;
  margin-bottom: 1.3rem;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--red); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-link {
  color: var(--white); text-decoration: none;
  border-bottom: 1px solid var(--red); padding-bottom: 1px;
  white-space: nowrap;
}

/* ------------------------------------------------------------- Cita previa */
.booking {
  /* El calendario se sirve desde otro dominio, así que su cabecera y su pie
     no se pueden ocultar con CSS: se recortan desplazando el iframe. */
  --crop-top: 76px;
  --crop-bottom: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  overflow: hidden;
}
/* Calendarios que ya vienen limpios (Cal.com, Calendly): sin recorte.
   Doble clase para que gane también dentro de las media queries de abajo. */
.booking.booking--sin-recorte { --crop-top: 0px; --crop-bottom: 0px; }
.booking.booking--sin-recorte .booking-frame { background: var(--ink-2); }

.booking-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.booking-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1.6rem 1.5rem;
  background: var(--ink-2);
  border: 0;
  border-top: 3px solid transparent;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.booking-option:hover,
.booking-option:focus-visible { background: var(--ink); border-top-color: var(--red); }
.booking-option[aria-pressed="true"] { background: var(--ink); border-top-color: var(--red); }
.booking-option-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
}
.booking-option-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.booking-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
}
.booking-selected p { margin: 0; font-size: .92rem; }
.booking-selected strong { color: var(--white); }

.booking-frame {
  position: relative;
  height: clamp(600px, 80vh, 840px);
  overflow: hidden;
  background: #fff;
}
.booking-frame iframe {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--crop-top));
  width: 100%;
  height: calc(100% + var(--crop-top) + var(--crop-bottom));
  border: 0;
  display: block;
}
.booking-alt {
  margin: 0;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}
.booking-alt a { color: var(--white); }

/* ---------------------------------------------------------------- Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-reverse .split-media { order: 2; }

.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.split-media .logo-panel {
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--black);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.split-body h2 { margin-bottom: 1.1rem; }
.split-body p { color: var(--muted); }

.checklist {
  list-style: none; padding: 0; margin: 1.8rem 0 2rem;
  display: grid; gap: .75rem;
}
.checklist li {
  position: relative; padding-left: 2rem;
  color: var(--text); font-size: .95rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red);
  clip-path: polygon(24% 52%, 42% 70%, 78% 30%, 88% 42%, 42% 88%, 12% 60%);
}

/* ----------------------------------------------------------------- Pasos */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  display: block; margin-bottom: .9rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ------------------------------------------------------------------- FAQ */
.faq { display: grid; gap: .75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(225,29,46,.4); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 3.2rem 1.2rem 1.4rem;
  position: relative;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-body { padding: 0 1.4rem 1.3rem; }
.faq-body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ------------------------------------------------- Banda de llamada a la acción */
.cta-band {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    linear-gradient(90deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.82) 55%, rgba(8,9,11,.6) 100%),
    url("../img/coche-taller.jpg") no-repeat center / cover;
  border-block: 1px solid var(--line);
}
.cta-inner { max-width: 620px; }
.cta-inner h2 { margin-bottom: .7rem; }
.cta-inner p { color: var(--text); margin-bottom: 1.8rem; }

/* -------------------------------------------------------------- Contacto */
.contact-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
  display: block; margin-bottom: .45rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text);
}
.field .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font: 400 1rem/1.5 var(--font-body);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 51%, calc(100% - 14px) 51%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #5d646f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,29,46,.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }

.error { color: #ff6b78; font-size: .82rem; margin: .35rem 0 0; min-height: 0; }
.error:empty { display: none; }

.check {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .88rem; color: var(--muted);
  margin: .4rem 0 1.4rem;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check a { color: var(--white); }

.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.form-note a, .info-block a, .link-arrow { color: var(--white); }

.form-status { margin: 1rem 0 0; font-size: .92rem; text-align: center; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #ff6b78; }
.form-status:empty { display: none; }

.contact-info { display: grid; gap: 1.6rem; }
.info-block h3 { font-size: .95rem; margin-bottom: .5rem; }
.info-block p { color: var(--muted); margin: 0 0 .4rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .87rem; font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
}
.link-arrow::after { content: "→"; color: var(--red); }

.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours th {
  text-align: left; font-weight: 500; color: var(--text);
  padding: .45rem 0; vertical-align: top;
}
.hours td { text-align: right; color: var(--muted); padding: .45rem 0; }

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) hue-rotate(180deg) contrast(.9); }

/* ------------------------------------------------------------------ Pie */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-logo { height: 62px; width: auto; margin-bottom: 1.2rem; }
.footer-desc { color: var(--muted); font-size: .9rem; max-width: 32ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer li, .site-footer a {
  color: var(--muted); font-size: .89rem; text-decoration: none;
  transition: color .18s ease;
}
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}
.footer-bottom p { color: #6d747f; font-size: .82rem; margin: 0; }

/* ------------------------------------------------------- Acciones fijas */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: rgba(8,9,11,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.mobile-bar a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1rem;
  border-radius: 999px;
  font: 600 .85rem/1 var(--font-body);
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
.mobile-bar svg { width: 16px; height: 16px; fill: currentColor; }
.mb-call { background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--white); }
.mb-book { background: var(--red); color: #fff; }

.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 110;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,.7);
  transition: transform .2s ease;
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #08090b; }
.whatsapp-fab:hover { transform: scale(1.08); }

/* ---------------------------------------------------------------- Tienda */
.page-head {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 420px at 78% 0%, rgba(225,29,46,.16), transparent 62%),
    var(--black);
}
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.page-head .lead { margin-bottom: 0; }

.shop-soon,
.shop-intro {
  max-width: 720px;
  text-align: left;
}
.shop-soon .hero-actions { margin-top: 1.6rem; }
.shop-intro .hero-points { margin-top: 1.8rem; }

.shop-teaser {
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 280px at 8% 100%, rgba(225,29,46,.1), transparent 60%),
    var(--ink);
}
.shop-teaser-inner {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
}
.shop-teaser-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0e12;
  max-height: 280px;
}
.shop-teaser-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.shop-teaser-body p { color: var(--muted); max-width: 52ch; }
.shop-teaser-body .btn { margin-top: .4rem; }

.shop-legal {
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  max-width: 70ch;
}
.shop-legal a { color: var(--white); }

.product-media { position: relative; }

.product-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  text-align: center;
  overflow: hidden;
  background:
    url("../img/isotipo-tc.png") no-repeat 92% 86% / 22%,
    linear-gradient(155deg, #16191f, #0c0e12);
}
.product-visual-label {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  z-index: 1;
}
.product-visual-fuel {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  z-index: 1;
}
.product-visual--diesel {
  background:
    url("../img/isotipo-tc.png") no-repeat 92% 86% / 22%,
    radial-gradient(ellipse at 28% 18%, rgba(225,29,46,.2), transparent 56%),
    linear-gradient(155deg, #171b22, #0b0d11);
}
.product-visual--gasolina {
  background:
    url("../img/isotipo-tc.png") no-repeat 92% 86% / 22%,
    radial-gradient(ellipse at 72% 12%, rgba(225,29,46,.38), transparent 52%),
    linear-gradient(155deg, #22151a, #0c0e12);
}

.shop-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* Vehículos de ocasión */
.vehicles { display: grid; gap: 1.2rem; }
.vehicle {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.vehicle:hover { border-color: #34394252; box-shadow: 0 26px 50px -30px rgba(0,0,0,.95); }
/* min-height sostiene el recuadro cuando el vehículo todavía no tiene foto */
.vehicle-media { position: relative; align-self: stretch; min-height: 240px; }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.vehicle-body { padding: 1.8rem 1.8rem 1.8rem 0; }
.vehicle-body h3 { margin-bottom: .8rem; }
.vehicle-body > p { color: var(--muted); font-size: .95rem; }

.specs {
  list-style: none; padding: 0;
  margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.specs li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Recambios */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}
.products--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
}
.product {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.product:hover {
  transform: translateY(-6px);
  border-color: #34394252;
  box-shadow: 0 26px 50px -30px rgba(0,0,0,.95);
}
.product-media { aspect-ratio: 4 / 3; }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product--ficha .product-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0c0e12;
}
.product--ficha .product-media img {
  object-position: center;
}
.product-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.product-body p { color: var(--muted); font-size: .89rem; margin: 0 0 1.1rem; }
.product-body .price { color: var(--white); font-size: 1.7rem; margin: 0 0 1rem; }
.product-body .buy { margin-top: auto; }

.product--ficha { position: relative; }
.product--ficha::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: var(--red);
}
.product-body .product-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

/* Marca de agua para productos sin foto */
.media-empty {
  background:
    url("../img/isotipo-tc.png") no-repeat center / 44%,
    linear-gradient(140deg, #16191f, #0c0e12);
  opacity: .85;
}

.price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--white);
  margin: 0 0 1rem;
}
.price small {
  display: block;
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
}
.buy { display: flex; flex-wrap: wrap; gap: .6rem; }
.buy .btn { flex: 1 1 auto; }

.badge {
  position: absolute; left: 1rem; top: 1rem;
  background: var(--red); color: #fff;
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.badge--muted { background: rgba(8,9,11,.85); border: 1px solid var(--line); color: var(--text); }

/* Garantías de compra */
.shop-notes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.shop-note { background: var(--ink); padding: 1.5rem 1.4rem; }
.shop-note svg { width: 22px; height: 22px; fill: var(--red); margin-bottom: .7rem; }
.shop-note strong { display: block; color: var(--white); font-size: .95rem; margin-bottom: .2rem; }
.shop-note span { color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* ---------------------------------------------------------- Checkout */
.page-head--pago .back-link { margin-bottom: 1.1rem; }
.page-head--pago .lead { max-width: 62ch; }

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 340px);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: start;
}
.checkout-form { margin: 0; }
.checkout-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.checkout-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0e12;
}
.checkout-product h2 {
  font-size: 1.15rem;
  margin: 0 0 .25rem;
}
.checkout-product p { margin: 0; font-size: .88rem; }
.checkout-product .product-kicker {
  margin: 0 0 .2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.delivery {
  border: 0;
  padding: 0;
  margin: 0 0 1.3rem;
}
.delivery legend {
  margin-bottom: .55rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.delivery-option {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  margin-bottom: .55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--black);
  cursor: pointer;
}
.delivery-option:has(input:checked) {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,29,46,.18);
}
.delivery-option input { margin-top: .2rem; accent-color: var(--red); flex: none; }
.delivery-option strong { display: block; color: var(--white); font-size: .92rem; }
.delivery-option em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: .82rem;
  margin-top: .15rem;
}

.checkout-summary {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.checkout-summary h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.checkout-summary dl { margin: 0 0 1rem; }
.checkout-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.checkout-summary dt { margin: 0; }
.checkout-summary dd { margin: 0; color: var(--white); font-weight: 600; }
.checkout-summary .checkout-total {
  border-bottom: 0;
  padding-top: .85rem;
  font-size: 1.05rem;
}
.checkout-summary .checkout-total dd {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
}
.checkout-summary p { margin: 0; color: var(--muted); font-size: .82rem; }
.checkout-ok { text-align: left; }
.checkout-ok .btn { margin-top: .6rem; }

/* --------------------------------------------------- Páginas legales */
.legal-page { padding: clamp(3rem, 7vw, 6rem) 0; }
.legal-page h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .3em; }
.legal-page .updated { color: var(--muted); font-size: .88rem; margin-bottom: 2.5rem; }
.legal-page h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-top: 2.6rem; }
.legal-page h3 { font-size: 1.02rem; margin-top: 1.8rem; }
.legal-page p, .legal-page li { color: var(--muted); font-size: .97rem; }
.legal-page ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin: 0 0 1rem; }
.legal-page a { color: var(--white); }
.legal-page table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9rem;
}
.legal-page th, .legal-page td {
  border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top;
}
.legal-page th { color: var(--white); font-weight: 600; background: var(--ink); }
.legal-page td { color: var(--muted); }
.legal-note {
  border: 1px solid rgba(225,29,46,.4);
  background: rgba(225,29,46,.07);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2.5rem;
}
.legal-note p { color: var(--text); margin: 0; font-size: .92rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--muted); text-decoration: none; font-size: .87rem;
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--white); }

/* ------------------------------------------------------------ Animación */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Entre el menú de escritorio y el de móvil la cabecera va justa:
   se aprieta el interlineado y el teléfono se queda solo con el icono. */
@media (min-width: 1001px) and (max-width: 1230px) {
  .header-inner { gap: 1rem; }
  .nav { gap: 1rem; }
  .header-cta .btn-ghost span { display: none; }
  .header-cta .btn-ghost { padding-inline: .85rem; }
  .brand img { height: 42px; max-width: 155px; }
}

@media (max-width: 1000px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,9,11,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }
  .nav a::after { display: none; }

  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }
  .brand img { height: 46px; max-width: min(180px, 55vw); }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .vehicle { grid-template-columns: 1fr; }
  .vehicle-media { aspect-ratio: 16 / 10; }
  .vehicle-body { padding: 1.5rem; }
  .booking { --crop-top: 72px; --crop-bottom: 170px; }
  .booking-frame { height: 78vh; min-height: 640px; }
  .booking-picker { grid-template-columns: 1fr; }
  .booking-option { padding: 1.3rem 1.3rem; }
  .split-reverse .split-media { order: 0; }
  .split-media .logo-panel { padding: 2rem; }

  /* En pantallas estrechas la marca de agua se centra bajo el contenido,
     sin sobresalir del ancho de la pantalla. */
  .hero-bg::before {
    right: auto;
    left: 50%;
    bottom: 3%;
    transform: translateX(-50%);
    width: min(84vw, 440px);
    opacity: .05;
  }

  .mobile-bar { display: flex; }
  .whatsapp-fab { bottom: 86px; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  body { padding-bottom: 74px; }
}

@media (max-width: 800px) {
  .shop-teaser-inner { grid-template-columns: 1fr; }
  .shop-teaser-photo { max-width: 240px; }
  .checkout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding: 4rem 0 3.5rem; }
  .hero-points { gap: .8rem 1.5rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .products--duo { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
