/* Refriautos Polar — portada minimalista, al estilo de las tarjetas.
   Escena: un conductor parado en la Vía Siberia a mediodía, con el sol encima
   y el celular en la mano; el dueño de flota la abre en el computador de la
   oficina. Base clara tipo papel (se lee a pleno sol), tinta marino, rojo solo
   en las franjas, el pin y el filo de la banda; verde solo en WhatsApp.
   Seis secciones, un botón principal, mucho aire. */

/* ---------- Fuentes (solo el subconjunto latino: el español cabe ahí) ---------- */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url("/assets/fonts/b0a8ad37ac45.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url("/assets/fonts/4b52ddd4836b.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url("/assets/fonts/215a93c696f4.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url("/assets/fonts/3787a5a41917.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url("/assets/fonts/2515494e8cc2.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Solo para los textos internos del emblema. */
@font-face { font-family: 'Alfa Slab One'; font-weight: 400; font-display: swap; src: url("/assets/fonts/48a110c7fda8.woff2") format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

/* ---------- Tokens (los de tarjetas/fuente.html) ---------- */
:root {
  --marino: #27333f;
  --marino-prof: #18212b;
  --rojo: #d7343a;
  --hielo: #a9cfe0;
  --hielo-claro: #dfeaf1;
  --papel: #f4f6f8;
  --blanco: #fff;
  --tinta-2: #4f5f6d;          /* 6,3:1 sobre papel */
  --linea: #c9d4dc;
  --linea-suave: #dde4ea;
  --wa: #25d366;
  --wa-tinta: #06240f;          /* texto sobre el verde: 9:1 */
  --wa-2: #3be07a;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --cuerpo: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --lado: clamp(20px, 5.5vw, 64px);
  --ancho: 1200px;
  --sec: clamp(72px, 11vw, 144px);

  /* Movimiento: salidas exponenciales, sin rebote. */
  --expo: cubic-bezier(.16, 1, .3, 1);
  --quart: cubic-bezier(.25, 1, .5, 1);
  --rapido: .2s;

  /* Capas */
  --z-cab: 20; --z-flotante: 30; --z-menu: 40;

  interpolate-size: allow-keywords;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--papel); color: var(--marino); font: 400 17px/1.6 var(--cuerpo); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; text-transform: uppercase; text-wrap: balance; }
p { text-wrap: pretty; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--marino); outline-offset: 3px; border-radius: 2px; }
.banda :focus-visible, .pie :focus-visible { outline-color: var(--hielo); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salto { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--marino); color: #fff; font-weight: 600; }
.salto:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--rojo { color: var(--rojo); }

.contenedor { width: min(100% - 2 * var(--lado), var(--ancho)); margin-inline: auto; }
.seccion { padding-block: var(--sec); }

/* ---------- Firma: las franjas de la tarjeta ---------- */
.franjas { --g: 10px; width: min(100%, 220px); margin-top: 16px; }
.franjas b, .franjas i { display: block; transform-origin: left center; }
.franjas b { height: var(--g); background: var(--marino); clip-path: polygon(0 0, 100% 0, calc(100% - var(--g)) 100%, 0 100%); }
.franjas i { width: 72%; height: calc(var(--g) * .58); margin-top: calc(var(--g) * .4); background: var(--rojo); clip-path: polygon(0 0, 100% 0, calc(100% - var(--g) * .58) 100%, 0 100%); }
.franjas--hielo b { background: var(--hielo); }

/* ---------- Tipografía ---------- */
.h2 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); letter-spacing: .005em; }
.lead { max-width: 60ch; margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--tinta-2); }
.lead strong { color: var(--marino); font-weight: 600; }
.kicker { display: flex; align-items: center; gap: 8px; font: 600 .9375rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); }
.kicker .ico { width: 18px; height: 18px; }

/* ---------- Botones y enlaces ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font: 700 1.0625rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); transition: background-color var(--rapido), color var(--rapido), transform .35s var(--expo); }
.btn:active { transform: scale(.97); }
/* El clip-path recorta el outline: el foco va por dentro, anillo marino + blanco. */
.btn:not(.btn--borde):focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--marino), inset 0 0 0 6px #fff; }
.btn .ico { width: 20px; height: 20px; transition: transform .45s var(--expo); }
.btn:hover .ico { transform: translateX(3px); }
.btn--wa { background: var(--wa); color: var(--wa-tinta); }
.btn--wa:hover { background: var(--wa-2); }
.btn--wa:hover .ico { transform: rotate(-8deg) scale(1.08); }
.btn--marino { background: var(--marino); color: #fff; }
.btn--marino:hover { background: var(--marino-prof); }
.btn--borde { min-height: 48px; background: transparent; color: var(--marino); box-shadow: inset 0 0 0 2px var(--marino); clip-path: none; }
.btn--borde:hover { background: var(--marino); color: #fff; }

.enlace { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font: 700 1.0625rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--marino); background: linear-gradient(var(--rojo), var(--rojo)) left calc(50% + 14px) / 100% 2px no-repeat; transition: background-size .5s var(--expo); }
.enlace:hover { background-size: 0 2px; background-position-x: right; }
.enlace .ico { width: 18px; height: 18px; transition: transform .45s var(--expo); }
.enlace:hover .ico { transform: translateX(4px); }
.enlace--wa .ico { width: 20px; height: 20px; color: #1a9e4c; }
.enlace--wa:hover .ico { transform: rotate(-8deg) scale(1.08); }

/* ---------- Cabecera ---------- */
.cab { --cab-alfa: 1; position: fixed; inset: 0 0 auto; z-index: var(--z-cab); background: rgb(244 246 248 / var(--cab-alfa)); box-shadow: 0 1px 0 rgb(39 51 63 / .1); transition: background-color .35s, box-shadow .35s; }
/* Arriba del todo la cabecera se funde con el papel; al bajar se vuelve sólida.
   Con JS: clase en el primer scroll. Con scroll-driven animations: ligado al scroll. */
.js .cab:not(.es-solida) { background: rgb(244 246 248 / 0); box-shadow: 0 1px 0 rgb(39 51 63 / 0); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .cab, .js .cab:not(.es-solida) { animation: cab-solida linear both; animation-timeline: scroll(root); animation-range: 0 120px; transition: none; }
  }
}
@keyframes cab-solida {
  from { background-color: rgb(244 246 248 / 0); box-shadow: 0 1px 0 rgb(39 51 63 / 0), 0 10px 30px -18px rgb(24 33 43 / 0); }
  to   { background-color: rgb(244 246 248 / var(--cab-alfa)); box-shadow: 0 1px 0 rgb(39 51 63 / .12), 0 10px 30px -18px rgb(24 33 43 / .35); }
}
.cab__in { display: flex; align-items: center; gap: 12px; height: 64px; width: min(100% - 2 * var(--lado), var(--ancho)); margin-inline: auto; }
.cab__marca { display: flex; align-items: center; gap: 8px; margin-right: auto; min-height: 44px; }
.cab__marca > svg { flex: none; width: 56px; height: 40px; transition: transform .5s var(--expo); }
.cab__marca:hover > svg { transform: rotate(-3deg) scale(1.04); }
.cab__nombre { font: 800 1.125rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.cab__nombre b { font-weight: 800; }
.cab__nav { display: none; }
.cab__acciones { display: flex; align-items: center; gap: 2px; }
.btn-carrito { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 6px; font: 700 .9375rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.btn-carrito .ico { width: 22px; height: 22px; }
.btn-carrito__txt { display: none; }
.contador { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--rojo); color: #fff; font: 700 .75rem/1 var(--cuerpo); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%); }
.contador.late { animation: latido .6s var(--expo); }
@keyframes latido { 30% { transform: scale(1.4); } }
.hamburguesa { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; }
.hamburguesa span { display: block; width: 24px; height: 2.5px; background: var(--marino); transition: transform .35s var(--expo); }
.hamburguesa span:last-child { width: 16px; margin-left: 8px; }
.hamburguesa:hover span:last-child { transform: translateX(-8px); }

/* Menú móvil: popover nativo (Esc y clic afuera ya cierran). */
.menu { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 96px var(--lado) 40px; border: 0; background: var(--marino); color: #fff; z-index: var(--z-menu); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid rgb(169 207 224 / .2); font: 800 2rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.menu__cerrar { position: absolute; top: 12px; right: var(--lado); width: 48px; height: 48px; font-size: 34px; line-height: 1; color: #fff; }
.menu:popover-open { opacity: 1; transform: none; }
.menu { opacity: 0; transform: translateY(-12px); transition: opacity .35s var(--expo), transform .45s var(--expo), overlay .35s allow-discrete, display .35s allow-discrete; }
@starting-style { .menu:popover-open { opacity: 0; transform: translateY(-12px); } }
.menu:popover-open nav a { animation: entra-item .6s var(--expo) both; }
.menu:popover-open nav a:nth-child(2) { animation-delay: 40ms; }
.menu:popover-open nav a:nth-child(3) { animation-delay: 80ms; }
.menu:popover-open nav a:nth-child(4) { animation-delay: 120ms; }
.menu:popover-open nav a:nth-child(5) { animation-delay: 160ms; }
@keyframes entra-item { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 1 · Hero ---------- */
.hero { display: grid; gap: 36px; padding: 104px var(--lado) 0; max-width: calc(var(--ancho) + 2 * var(--lado)); margin-inline: auto; }
.hero__h1 { margin-top: 18px; font-size: clamp(2.875rem, 1.6rem + 6.2vw, 5.75rem); line-height: .94; letter-spacing: .002em; max-width: 13ch; }
.franjas--hero { --g: 14px; width: min(100%, 360px); margin-top: 22px; }
.hero__bajada { max-width: 42ch; margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--tinta-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 30px; }
.hero__cta .btn--wa { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }
.hero__foto { position: relative; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--marino-prof); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 22%; }
/* Entrada del hero: contenido visible desde el primer cuadro (no se esconde
   nada: solo sube un poco y gana opacidad). Las franjas se dibujan. */
@media (prefers-reduced-motion: no-preference) {
  .hero__texto > * { animation: sube 1s var(--expo) both; }
  .hero__texto > :nth-child(2) { animation-delay: 60ms; }
  .hero__texto > :nth-child(4) { animation-delay: 180ms; }
  .hero__texto > :nth-child(5) { animation-delay: 260ms; }
  .franjas--hero b { animation: dibuja 1.1s var(--expo) .25s both; }
  .franjas--hero i { animation: dibuja 1.1s var(--expo) .4s both; }
  .hero__foto img { animation: asienta 1.8s var(--expo) both; }
}
@keyframes sube { from { opacity: .3; transform: translateY(18px); } }
@keyframes dibuja { from { transform: scaleX(0); } }
@keyframes asienta { from { transform: scale(1.12); } }
/* Parallax sutil de la foto, ligado al scroll (sin JS). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__foto picture { height: 100%; animation: paralaje linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes paralaje { to { transform: translateY(6%) scale(1.13); } }

/* ---------- Revelado al hacer scroll (solo con .rv: JS + movimiento) ---------- */
.rv [data-r] { transition: opacity .9s var(--expo), transform .9s var(--expo); transition-delay: calc(var(--i, 0) * 70ms); }
.rv [data-r]:not(.visto) { opacity: 0; transform: translateY(28px); }
.rv .franjas b, .rv .franjas i { transition: transform 1.1s var(--expo) .15s; }
.rv .franjas i { transition-delay: .3s; }
.rv [data-r]:not(.visto) > .franjas b, .rv [data-r]:not(.visto) > .franjas i { transform: scaleX(0); }
.rv .pasos[data-r] li { transition: opacity .8s var(--expo), transform .8s var(--expo); transition-delay: calc(120ms + var(--i) * 90ms); }
.rv .pasos[data-r]:not(.visto) { opacity: 1; transform: none; }
.rv .pasos[data-r]:not(.visto) li { opacity: 0; transform: translateY(20px); }

/* ---------- 2 · Repuestos ---------- */
.titulo .lead { margin-top: 24px; }
.tienda__conteo { max-width: 60ch; margin-top: 24px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--tinta-2); }
.tienda__conteo strong { color: var(--marino); font-weight: 600; }
/* Tarjetas de línea: el marcado (a.grupo > .grupo__foto + .grupo__nombre > span > small)
   lo escribe scripts/paginas.mjs; aquí solo el estilo. */
.lineas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.grupo { --corte: 16px; position: relative; display: flex; flex-direction: column; background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea-suave); transition: transform .5s var(--expo), box-shadow .5s var(--expo); }
/* Corte diagonal de la esquina (como las franjas), sin clip-path para no cortar la sombra. */
.grupo::after { content: ""; position: absolute; right: 0; bottom: 0; width: var(--corte); height: var(--corte); background: linear-gradient(to top left, var(--papel) calc(50% - .75px), var(--linea-suave) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)); }
.grupo__foto { display: block; overflow: hidden; aspect-ratio: 4 / 3; padding: 8%; }
.grupo__foto img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--expo); }
.grupo__nombre { display: block; padding: 0 14px 18px; }
.grupo__nombre > span { position: relative; display: flex; flex-direction: column; gap: 8px; font: 800 1.125rem/1.05 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--marino); }
.grupo__nombre > span::after { content: ""; order: 1; width: 36px; height: 3px; background: var(--rojo); transform-origin: left; transition: transform .6s var(--expo); }
.grupo__nombre small { order: 2; font: 400 .9375rem/1.3 var(--cuerpo); letter-spacing: 0; text-transform: none; color: var(--tinta-2); }
.grupo__nombre::after { content: ""; position: absolute; right: 16px; bottom: 22px; width: 18px; height: 18px; background: var(--marino); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .5s var(--expo); }
@media (hover: hover) {
  .grupo:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--linea), 0 24px 36px -24px rgb(24 33 43 / .5); }
  .grupo:hover .grupo__foto img { transform: scale(1.07); }
  .grupo:hover .grupo__nombre > span::after { transform: scaleX(2.4); }
  .grupo:hover .grupo__nombre::after { opacity: 1; transform: none; }
}
.grupo:active { transform: scale(.98); }
.grupo:focus-visible { outline-offset: 4px; }
/* Entrada escalonada de las tarjetas (el contenedor lleva data-r). */
.rv .lineas[data-r]:not(.visto) { opacity: 1; transform: none; }
.rv .lineas[data-r] .grupo { transition: opacity .8s var(--expo), transform .8s var(--expo), box-shadow .5s var(--expo); }
.rv .lineas[data-r]:not(.visto) .grupo { opacity: 0; transform: translateY(28px); }
.rv .lineas[data-r].visto .grupo:nth-child(2) { transition-delay: 60ms, 60ms, 0s; }
.rv .lineas[data-r].visto .grupo:nth-child(3) { transition-delay: 120ms, 120ms, 0s; }
.rv .lineas[data-r].visto .grupo:nth-child(4) { transition-delay: 180ms, 180ms, 0s; }
.rv .lineas[data-r].visto .grupo:nth-child(5) { transition-delay: 240ms, 240ms, 0s; }
.rv .lineas[data-r].visto .grupo:nth-child(6) { transition-delay: 300ms, 300ms, 0s; }
.rv .lineas[data-r].visto .grupo:nth-child(7) { transition-delay: 360ms, 360ms, 0s; }
.rv .lineas[data-r].visto .grupo:nth-child(8) { transition-delay: 420ms, 420ms, 0s; }
.repuestos__pie { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 36px; }
.tipos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tipos__rotulo { width: 100%; margin-bottom: 4px; font: 600 .875rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-2); }
.tipos a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--hielo-claro); font-weight: 600; font-size: .9375rem; transition: background-color var(--rapido), color var(--rapido); }
.tipos a:hover { background: var(--marino); color: #fff; }

/* ---------- 3 · Servicios ---------- */
.servicios { background: var(--blanco); }
.vehiculos { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--linea); }
.vehiculos li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--linea); }
.chapa { display: grid; place-items: center; width: 48px; height: 48px; background: var(--marino); color: #fff; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background-color .3s; }
.chapa .ico { width: 26px; height: 26px; stroke-width: 1.8; transition: transform .6s var(--expo); }
.vehiculos li:hover .chapa { background: var(--rojo); }
.vehiculos li:hover .chapa .ico { transform: translateX(3px); }
.vehiculos h3 { font-size: 1.625rem; letter-spacing: .015em; }
.vehiculos p { margin-top: 6px; color: var(--tinta-2); }
.vehiculos .marcas { margin-top: 6px; font: 600 .9375rem/2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--marino); }
.servicios__tambien { max-width: 60ch; margin-top: 26px; color: var(--tinta-2); }
.servicios__tambien a, .vehiculos .marcas a { color: var(--marino); text-decoration: underline; text-decoration-color: rgb(215 52 58 / .55); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color var(--rapido); }
.servicios__tambien a { font-weight: 600; }
.vehiculos .marcas a { padding-block: 8px; }
.servicios__tambien a:hover, .vehiculos .marcas a:hover { text-decoration-color: var(--rojo); }
.enlace--chico { min-height: 44px; margin-top: 6px; font-size: .9375rem; background-position-y: calc(50% + 12px); }
.flotas { margin-top: 40px; padding: 28px 24px 22px; background: var(--hielo-claro); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.flotas h3 { font-size: 1.75rem; }
.flotas p { max-width: 52ch; margin-top: 10px; color: var(--marino); }
.flotas .enlace { margin-top: 8px; }

/* ---------- 4 · Taller ---------- */
.pasos { display: grid; gap: 0; margin-top: 56px; counter-reset: paso; }
.pasos li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--linea); }
.pasos__n { grid-row: span 2; font: 800 3rem/.9 var(--display); color: var(--marino); }
.pasos h3 { align-self: end; font-size: 1.5rem; }
.pasos p { margin-top: 4px; color: var(--tinta-2); }
.lugar { display: grid; gap: 28px; margin-top: 56px; }
.mapa__emblema { position: absolute; left: 50%; top: 40%; width: 36%; max-width: 220px; height: auto; transform: translate(-50%, -50%); }
.mapa { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--hielo-claro); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .8s var(--expo); }
.mapa iframe.listo { opacity: 1; }
.mapa__fachada { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; background: var(--marino); color: #fff; font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: background-color var(--rapido), transform .4s var(--expo); }
.mapa__fachada .ico { color: var(--hielo); }
.mapa__fachada:hover { background: var(--marino-prof); transform: translateX(-50%) translateY(-2px); }
.lugar__rotulo, .contacto__quien span { font: 600 .875rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.lugar__rotulo { color: var(--tinta-2); }
.lugar__dir { margin-top: 10px; font: 800 1.75rem/1.1 var(--display); text-transform: uppercase; }
.lugar__botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- 5 · Preguntas ---------- */
.faq { background: var(--blanco); }
.faq__otra { margin-top: 22px; color: var(--tinta-2); }
.faq__otra a { color: var(--marino); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq__lista { margin-top: 36px; border-top: 1px solid var(--linea); }
.faq__lista details { border-bottom: 1px solid var(--linea); }
.faq__lista summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 18px 52px 18px 0; font: 700 1.25rem/1.2 var(--display); letter-spacing: .01em; text-transform: uppercase; cursor: pointer; list-style: none; transition: color var(--rapido); }
.faq__lista summary::-webkit-details-marker { display: none; }
.faq__lista summary::before, .faq__lista summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 18px; height: 2.5px; background: var(--marino); transition: transform .5s var(--expo), background-color .3s; }
.faq__lista summary::after { transform: rotate(90deg); }
.faq__lista details[open] summary::after { transform: rotate(0); }
.faq__lista details[open] summary::before { background: var(--rojo); }
.faq__lista summary:hover { color: var(--tinta-2); }
.faq__r p { max-width: 62ch; padding-bottom: 22px; color: var(--tinta-2); }
/* Apertura suave donde el navegador lo permite (::details-content). */
@media (prefers-reduced-motion: no-preference) {
  .faq__lista details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--expo), content-visibility .5s allow-discrete; }
  .faq__lista details[open]::details-content { block-size: auto; }
}

/* ---------- 6 · Contacto: la banda ---------- */
.banda { position: relative; background: var(--marino); color: #fff; border-top: 6px solid var(--rojo); padding-block: var(--sec); }
.banda .h2 { color: #fff; }
.contactos { position: relative; display: grid; gap: 34px; margin-top: 48px; }
.contacto__quien { font: 700 1.25rem/1.2 var(--display); letter-spacing: .03em; color: var(--hielo); }
.contacto__quien span { display: block; margin-top: 6px; color: #c7d5df; }
.contacto__num { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; margin-top: 8px; font: 800 clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem)/1 var(--display); letter-spacing: .01em; white-space: nowrap; transition: transform .45s var(--expo); }
.contacto__num .ico--wa { width: 34px; height: 34px; color: var(--wa); transition: transform .5s var(--expo); }
.contacto__num:hover .ico--wa { transform: rotate(-10deg) scale(1.1); }
.contacto__num:hover { transform: translateX(4px); }
.contacto__llamar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 48px; font: 600 1rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--hielo); }
.contacto__llamar .ico { width: 16px; height: 16px; }
.contacto__llamar:hover { color: #fff; }
.banda__dir { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgb(169 207 224 / .25); }
.banda__dir .ico { width: 22px; height: 22px; margin-top: 2px; color: #ff6b70; }
.banda__dir address { font: 700 1.25rem/1.3 var(--display); font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.pie { color: #fff; padding-block: 36px calc(36px + env(safe-area-inset-bottom)); background: var(--marino-prof); }
.pie__in { display: grid; gap: 24px; justify-items: start; }
.pie__marca { display: block; }
.pie__emblema { width: 112px; height: auto; transition: transform .6s var(--expo); }
.pie__marca:hover .pie__emblema { transform: rotate(-3deg) scale(1.04); }
.pie__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.pie__nav a { display: inline-flex; align-items: center; min-height: 44px; font: 600 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #c7d5df; transition: color var(--rapido); }
.pie__nav a:hover { color: #fff; }
.pie__legal { font-size: .875rem; color: #a8b8c5; }

/* ---------- WhatsApp flotante (solo móvil) ---------- */
.wa-flotante { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--z-flotante); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--wa-tinta); box-shadow: 0 10px 28px -8px rgb(6 36 15 / .55), 0 0 0 1px rgb(6 36 15 / .08); transition: transform .55s var(--expo), opacity .35s, visibility .55s; }
.wa-flotante .ico { width: 30px; height: 30px; }
.wa-flotante:active { transform: scale(.94); }
.wa-flotante.oculto { transform: translateY(120px) scale(.9); opacity: 0; visibility: hidden; }

/* ---------- Carrito (lo pinta /js/carrito.js) ---------- */
.carrito:not([open]) { display: none; }
.carrito { position: fixed; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(440px, 100vw); height: 100dvh; max-height: none; max-width: none; margin: 0 0 0 auto; padding: 0; border: 0; border-top: 6px solid var(--rojo); background: var(--papel); color: var(--marino); transition: transform .5s var(--expo), overlay .5s allow-discrete, display .5s allow-discrete; }
@starting-style { .carrito[open] { transform: translateX(100%); } }
.carrito::backdrop { background: rgb(24 33 43 / .55); transition: opacity .4s, overlay .4s allow-discrete, display .4s allow-discrete; }
@starting-style { .carrito[open]::backdrop { opacity: 0; } }
.carrito__cab { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--linea); }
.carrito__cab h2 { font-size: 2rem; }
.carrito__cerrar { width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.carrito__lista { flex: 1; overflow: auto; padding: 8px 24px; }
.carrito__vacio { margin: 40px 0; text-align: center; color: var(--tinta-2); }
.carrito__vacio a { display: inline-block; margin-top: 10px; color: var(--marino); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.carrito__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.carrito__item strong { display: block; }
.carrito__item span { font-size: .875rem; color: var(--tinta-2); }
.cantidad { display: flex; align-items: center; gap: 6px; }
.cantidad button { width: 44px; height: 44px; box-shadow: inset 0 0 0 1px var(--linea); font-size: 18px; }
.cantidad button:hover { background: var(--hielo-claro); }
.cantidad output { min-width: 22px; text-align: center; font-weight: 600; }
.carrito__pie { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--blanco); }
.carrito__total { display: flex; justify-content: space-between; align-items: baseline; }
.carrito__total strong { font: 800 1.75rem/1 var(--display); }
.carrito__enviar[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.carrito__nota { font-size: .875rem; color: var(--tinta-2); }

/* El WhatsApp flotante (solo bajo 900 px) no tapa el final de las líneas. */
@media (max-width: 899px) {
  .vehiculos p, .servicios__tambien, .flotas p, .faq__r p, .faq__otra { padding-right: 56px; }
}

/* ================= Tableta ================= */
@media (min-width: 640px) {
  .hero__foto { aspect-ratio: 16 / 10; }
  .mapa { aspect-ratio: 16 / 9; }
  .lineas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .contactos { grid-template-columns: 1fr 1fr; gap: 0; }
  .contactos::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; border-left: 1px solid rgb(169 207 224 / .3); }
  .contacto:last-child { padding-left: clamp(24px, 5vw, 64px); }
  .lugar__botones .btn { min-width: 150px; }
}

/* ================= Escritorio ================= */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .cab { --cab-alfa: .9; }
  .cab__in { height: 72px; gap: 24px; }
  .cab__marca > svg { width: 65px; height: 46px; }
  .cab__nombre { font-size: 1.25rem; }
  @supports (backdrop-filter: blur(1px)) { .cab { -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); } }
  .cab__nav { display: flex; gap: 4px; margin-right: 12px; }
  .cab__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 700 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
  .cab__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--rojo); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--expo); }
  .cab__nav a:hover::after, .cab__nav a.activo::after { transform: scaleX(1); transform-origin: left; }
  .hamburguesa { display: none; }
  .btn-carrito { padding: 0 14px; box-shadow: inset 0 0 0 2px var(--marino); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); transition: background-color var(--rapido), color var(--rapido); }
  .btn-carrito:hover { background: var(--marino); color: #fff; }
  .btn-carrito:focus-visible { outline: none; background: var(--marino); color: #fff; box-shadow: inset 0 0 0 3px var(--marino), inset 0 0 0 5px #fff; }
  .btn-carrito__txt { display: inline; }
  .wa-flotante { display: none; }

  /* Hero: texto sobre papel a la izquierda; la foto sangra a la derecha con
     el mismo corte diagonal de las franjas. */
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 0; max-width: none; min-height: min(100svh, 880px); padding: 72px 0 0 max(var(--lado), (100vw - var(--ancho)) / 2); }
  .hero__texto { padding: 48px 48px 72px 0; }
  .hero__foto { align-self: stretch; aspect-ratio: auto; height: 100%; min-height: 560px; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .hero__foto img { object-position: 30% 30%; }
  @media (prefers-reduced-motion: no-preference) {
    .hero__foto { animation: corte 1.4s var(--expo) both; }
  }

  .lineas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
  .grupo__nombre { padding: 0 48px 22px 20px; }
  .grupo__nombre > span { font-size: 1.3125rem; }
  .repuestos__pie { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-top: 44px; }
  .tipos__rotulo { width: auto; margin: 0 8px 0 0; }

  .servicios__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
  .servicios__cab { position: sticky; top: 120px; }
  .vehiculos { margin-top: 6px; }
  .vehiculos li { grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 32px 0; }
  .chapa { width: 56px; height: 56px; }
  .vehiculos h3 { font-size: 1.875rem; }
  .flotas { padding: 36px 36px 28px; }

  .taller__cab { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 112px); align-items: end; }
  .taller__cab .lead { margin-top: 0; }
  .pasos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 72px; border-top: 0; }
  .pasos li { display: block; padding: 28px 0 0; border-top: 0; }
  /* Una sola línea que se dibuja de izquierda a derecha a lo largo de los pasos. */
  .pasos::before { content: ""; grid-column: 1 / -1; grid-row: 1; height: 2px; background: var(--marino); transform-origin: left; transition: transform 1.4s var(--expo); }
  .pasos li { grid-row: 2; }
  .rv .pasos[data-r]:not(.visto)::before { transform: scaleX(0); }
  .pasos__n { display: block; font-size: 4rem; }
  .pasos h3 { margin-top: 14px; font-size: 1.625rem; }
  .pasos p { margin-top: 8px; }
  .lugar { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: end; margin-top: 88px; }
  .mapa { aspect-ratio: 16 / 9; }

  .faq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
  .faq__grid .titulo { position: sticky; top: 120px; }
  .faq__lista { margin-top: 0; }
  .faq__lista summary { font-size: 1.375rem; }

  .banda__cab { display: flex; flex-direction: column; }
  .contactos { margin-top: 64px; }
  .banda__dir { align-items: center; column-gap: 14px; }
  .pie__in { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; }
  .pie__nav { justify-content: center; }
}
@keyframes corte { from { clip-path: polygon(46% 0, 100% 0, 100% 100%, 30% 100%); } }

@media (min-width: 1280px) {
  .hero__texto { padding-right: 72px; }
}

/* ================= Movimiento reducido ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
