/* ============================================================
   nedforspid — estilos (mobile-first)
   Paleta medida del logo. Único color de acción: --naranja.
   ============================================================ */

@font-face {
  font-family: 'Barlow Condensed';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/barlow-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/barlow-latin-600-normal.woff2') format('woff2');
}

:root {
  --fondo: #1B1C20;
  --superficie: #24262B;
  --tarjeta: #2E3036;
  --acero: #55565A;
  --naranja: #E04817;
  /* Fondo de botones: un tono más profundo que el del logo para que el texto
     blanco pase AA (4.6:1) a cualquier tamaño. */
  --naranja-boton: #D4400F;
  --naranja-hover: #B8370C;
  --naranja-texto: #FF7A4D; /* para texto chico naranja: contraste ~6:1 */
  --texto: #F2F2F0;
  --texto-2: #C9CACD;
  --texto-3: #A8A9AD;

  --f-titulo: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --f-texto: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 20px;
  --ancho: 1120px;
  --corte: 28px; /* altura de los cortes diagonales entre secciones */
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--naranja-texto); }
:focus-visible { outline: 3px solid var(--naranja-texto); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }

.saltar {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--naranja-boton); color: #fff; padding: 10px 14px; font-weight: 600;
}
.saltar:focus { top: 8px; }

/* ---------- Barra superior ---------- */
.barra { position: relative; z-index: 2; }
.barra__in { display: flex; align-items: center; height: 64px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--texto); text-decoration: none; }
.marca img { width: 36px; height: 36px; }
.marca__txt, .pie__marca {
  font-family: var(--f-titulo); font-weight: 800; font-size: 1.45rem; letter-spacing: .08em; line-height: 1;
}
.marca__txt span, .pie__marca span { color: var(--naranja); }

/* ---------- Botón WhatsApp ---------- */
.ico { width: 1.4em; height: 1.4em; flex: none; }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--naranja-boton); color: #fff;
  font-family: var(--f-texto); font-weight: 600; font-size: 1.15rem; line-height: 1.2;
  text-decoration: none; padding: 16px 30px; min-height: 56px;
  /* paralelogramo: eco de las diagonales del logo */
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background-color .15s ease, transform .15s ease;
}
.btn-wa:hover { background: var(--naranja-hover); }
.btn-wa:active { transform: translateY(1px); }
.btn-wa:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }
.btn-wa--grande { width: 100%; font-size: 1.25rem; min-height: 62px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 36px 0 48px;
  background: var(--fondo);
}
/* Foto de fondo + velo oscuro para que el texto se lea siempre */
.hero__foto {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 70% 30%;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(27, 28, 32, .78) 0%, rgba(27, 28, 32, .9) 45%, var(--fondo) 100%);
}
/* Rayas naranjas en diagonal, como las del logo */
.hero__rayas {
  position: absolute; z-index: -1; right: -50px; top: 24px; width: 170px; height: 90px;
  background: repeating-linear-gradient(-60deg, var(--naranja) 0 10px, transparent 10px 26px);
  opacity: .9; pointer-events: none;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.hero__in { position: relative; }
.hero__titulo em { font-style: normal; color: var(--naranja); }
.hero__zona {
  display: inline-block; font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  color: var(--naranja-texto); padding-left: 12px; border-left: 3px solid var(--naranja);
  margin-bottom: 14px;
}
.hero__titulo {
  font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.9rem, 13vw, 5.2rem); line-height: .92; letter-spacing: .005em;
  text-wrap: balance;
}
.hero__titulo span {
  display: block; margin-top: 10px; color: var(--texto-2);
  font-size: .5em; line-height: 1.02;
}
.hero__lead { margin: 16px 0 22px; color: var(--texto-2); font-size: 1.08rem; max-width: 34em; }
.hero__nota { margin-top: 10px; font-size: .92rem; color: var(--texto-3); text-align: center; }
.hero__datos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px;
}
.hero__datos li {
  background: rgba(36, 38, 43, .92); padding: 10px 10px 12px; font-size: .82rem; line-height: 1.25; color: var(--texto-2);
  border-top: 3px solid var(--naranja);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.hero__datos strong { display: block; color: var(--texto); font-family: var(--f-titulo); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .01em; }

/* Aclaración en las fotos de stock */
.ilustrativa {
  position: absolute; right: 8px; bottom: 6px; z-index: 1; margin: 0;
  font-size: .7rem; letter-spacing: .04em; color: var(--texto-2);
  background: rgba(27, 28, 32, .75); padding: 2px 6px;
}

/* ---------- Cinta de zonas (corre en loop) ---------- */
.cinta {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--naranja-boton); color: #fff;
  transform: skewY(-2deg); margin: 8px 0 calc(var(--corte) + 8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.cinta__in {
  display: flex; width: max-content; padding: 12px 0;
  animation: cinta 40s linear infinite;
}
.cinta span {
  font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .06em; line-height: 1; white-space: nowrap;
  padding: 0 18px; display: inline-flex; align-items: center; gap: 36px;
}
.cinta span::after { content: ''; width: 10px; height: 10px; background: #fff; transform: skewX(-20deg); margin-right: -18px; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Franja de fotos ---------- */
.franja {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 6px;
  background: var(--naranja); padding: 6px 0;
}
.franja img { width: 100%; height: 190px; object-fit: cover; }
.franja .ilustrativa { top: 12px; bottom: auto; }
.franja img + img { display: none; }

/* ---------- Aparición al hacer scroll (solo si hay JS) ---------- */
.js .revelar { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .revelar.visto { opacity: 1; transform: none; }

/* ---------- Secciones y cortes diagonales ---------- */
.seccion { position: relative; background: var(--fondo); padding: 56px 0 64px; }
.seccion--alt { background: var(--superficie); }
/* Cada sección se monta sobre la anterior y recorta su borde superior en diagonal. */
.corte {
  margin-top: calc(var(--corte) * -1);
  padding-top: calc(56px + var(--corte));
  clip-path: polygon(0 var(--corte), 100% 0, 100% 100%, 0 100%);
}
.corte--inv { clip-path: polygon(0 0, 100% var(--corte), 100% 100%, 0 100%); }

.titulo {
  font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 9vw, 3.2rem); line-height: .95; margin-bottom: 14px;
}
.titulo::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--naranja); transform: skewX(-30deg); transform-origin: left; }
.titulo--grande { font-size: clamp(2.6rem, 12vw, 4.4rem); }
.bajada { color: var(--texto-2); margin-bottom: 26px; max-width: 36em; }

/* Cómo funciona */
.pasos { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; counter-reset: none; }
.paso {
  position: relative; background: var(--tarjeta); padding: 20px 20px 22px 20px;
  border-left: 4px solid var(--naranja);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.paso__num {
  position: absolute; right: 16px; top: 10px;
  font-family: var(--f-titulo); font-weight: 800; font-size: 2.6rem; line-height: 1; color: #7C7D82;
}
.paso__ico, .slot svg, .atencion svg {
  width: 34px; height: 34px; fill: none; stroke: var(--naranja); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.paso h3 {
  font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1.05;
  margin: 12px 0 6px; padding-right: 48px;
}
.paso p { color: var(--texto-2); }
.paso strong { color: var(--texto); }

/* Garantía */
.garantias { display: grid; gap: 14px; }
.garantia {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #34363D 0%, var(--tarjeta) 55%); padding: 22px 20px 20px;
  border-top: 4px solid var(--naranja);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform .2s ease;
}
.garantia::after { /* sello de fondo con escudo */
  content: ''; position: absolute; right: -18px; bottom: -18px; width: 120px; height: 120px; opacity: .07;
  background: var(--texto);
  clip-path: polygon(50% 0, 100% 14%, 100% 50%, 50% 100%, 0 50%, 0 14%);
}
.garantia:hover { transform: translateY(-4px); }
.garantia__dias {
  font-family: var(--f-titulo); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; line-height: 1; color: var(--texto-2);
}
.garantia__dias span { font-size: 5rem; color: var(--naranja); margin-right: 4px; letter-spacing: -.01em; }
.garantia h3 { font-size: 1.1rem; font-weight: 600; margin: 6px 0 14px; color: var(--texto); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: .88rem; line-height: 1.2; padding: 6px 10px; background: var(--fondo); color: var(--texto-2);
  border: 1px solid #3A3C42;
}
.atencion {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px;
  background: rgba(224, 72, 23, .12); border: 1px solid var(--naranja); color: var(--texto);
}
.atencion svg { width: 26px; height: 26px; flex: none; margin-top: 1px; }

/* Talleres (placeholders) */
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot {
  margin: 0; aspect-ratio: 4 / 3; background: var(--fondo); border: 1px dashed var(--acero);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--texto-3); font-size: .85rem; text-align: center; padding: 8px;
}
.slot svg { stroke: var(--acero); }
.foto { margin: 0; aspect-ratio: 4 / 3; background: var(--tarjeta); overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* Repuestos */
.repuestos__foto {
  position: relative; margin: 0 0 24px; aspect-ratio: 3 / 2; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  border-left: 4px solid var(--naranja);
}
.repuestos__foto img { width: 100%; height: 100%; object-fit: cover; }
.repuestos p { color: var(--texto-2); max-width: 36em; }
.repuestos p + p { margin-top: 10px; }
.repuestos .btn-wa { margin-top: 24px; }
.btn-wa--sec { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 2px var(--naranja); clip-path: none; }
.btn-wa--sec .ico { color: var(--naranja); }
.btn-wa--sec:hover { background: var(--naranja-boton); color: #fff; }
.btn-wa--sec:hover .ico { color: #fff; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 8px; margin-top: 24px; }
.faq details { background: var(--tarjeta); border-left: 3px solid transparent; }
.faq details[open] { border-left-color: var(--naranja); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; position: relative;
  font-weight: 600; font-size: 1.05rem; line-height: 1.3; min-height: 56px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--naranja); border-bottom: 2.5px solid var(--naranja); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p, .faq details ul { padding: 0 16px 16px; color: var(--texto-2); }
.faq details ul { padding-left: 34px; list-style: none; }
.faq details li { position: relative; }
.faq details li + li { margin-top: 6px; }
.faq details li::before { content: ''; position: absolute; left: -16px; top: .6em; width: 8px; height: 8px; background: var(--naranja); transform: skewX(-20deg); }
.faq strong { color: var(--texto); }
.pendiente {
  margin: 0 16px 16px; padding: 10px 12px !important; border: 1px dashed var(--naranja-texto);
  color: var(--naranja-texto) !important; font-size: .92rem;
}

/* Cierre */
.cierre { padding-bottom: 72px; isolation: isolate; }
.cierre__foto {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.cierre::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27, 28, 32, .66) 0%, rgba(27, 28, 32, .9) 55%, var(--fondo) 100%);
}
.cierre__in { position: relative; }
.cierre__zonas { margin-top: 32px; }
.cierre__zonas h3, .redes__titulo { font-size: .95rem; font-weight: 600; color: var(--texto-3); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.chips--zona li { font-size: .95rem; background: var(--tarjeta); color: var(--texto); border-color: transparent; }
.redes { margin-top: 28px; }
.redes ul { display: flex; flex-wrap: wrap; gap: 10px; }
.redes a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  background: var(--tarjeta); color: var(--texto); text-decoration: none; font-weight: 600;
}
.redes a:hover { background: var(--acero); }
.redes svg { width: 22px; height: 22px; color: var(--naranja); }
.redes--pie { margin: 16px 0; }
.redes--pie a { min-height: 44px; padding: 8px 12px; font-size: .9rem; }

/* ---------- Pie ---------- */
.pie { padding: 40px 0 120px; color: var(--texto-3); font-size: .95rem; border-top: 1px solid var(--tarjeta); }
.pie p + p { margin-top: 6px; }
.pie__marca { color: var(--texto); margin-bottom: 10px; }
.pie__copy { font-size: .85rem; }

/* ---------- Botón flotante ---------- */
.wa-flotante {
  position: fixed; z-index: 50;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--naranja-boton); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.1rem; padding: 14px 20px 14px 18px; min-height: 56px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
}
.wa-flotante.visible { transform: none; opacity: 1; visibility: visible; }
.wa-flotante:hover { background: var(--naranja-hover); }
.wa-flotante .ico { width: 1.6em; height: 1.6em; }

/* ---------- Aviso (número de WhatsApp sin configurar, etc.) ---------- */
.aviso {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom));
  max-width: 420px; margin-inline: auto;
  background: var(--tarjeta); color: var(--texto); border-left: 4px solid var(--naranja);
  padding: 14px 16px; font-size: .95rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; --corte: 48px; }
  .btn-wa--grande { width: auto; padding-inline: 44px; }
  .hero__nota { text-align: left; }
  .hero__datos { max-width: 560px; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .seccion { padding-bottom: 88px; }
  .corte { padding-top: calc(80px + var(--corte)); }
  .franja { grid-template-columns: repeat(3, 1fr); padding: 0; }
  .franja img { height: 260px; }
  .franja img + img { display: block; }
  .cinta span { font-size: 1.5rem; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; min-height: 620px; }
  /* En escritorio la foto queda a la derecha y el velo se abre de izquierda a derecha */
  .hero__foto { left: auto; width: 62%; object-position: center; }
  .hero::before {
    background:
      linear-gradient(90deg, var(--fondo) 38%, rgba(27, 28, 32, .72) 62%, rgba(27, 28, 32, .25) 100%),
      linear-gradient(0deg, var(--fondo) 0%, transparent 30%);
  }
  .hero__rayas { top: auto; right: 6%; bottom: 70px; width: 260px; height: 160px; }
  .hero__in { max-width: var(--ancho); }
  .franja img { height: 320px; }
  .repuestos__foto { flex: 0 0 340px; margin: 0; }
  .repuestos__txt { flex: 1; }
  .hero__titulo { max-width: 11em; }
  .hero__lead { font-size: 1.2rem; }
  .pasos { grid-template-columns: repeat(4, 1fr); }
  .garantias { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .galeria { grid-template-columns: repeat(4, 1fr); }
  .repuestos { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .repuestos .btn-wa { margin-top: 0; flex: none; }
  .faq { max-width: 820px; }
}
