/* ==================================================================
   P&L Grupo Comercial
   1. Tokens        2. Base          3. Layout        4. Componentes
   5. Header y menú 6. Hero          7. Secciones     8. Footer
   9. WhatsApp flotante              10. Animaciones
   ================================================================== */

/* 1. TOKENS ======================================================== */
:root {
  --bg: #0b0b0c;
  --bg-elev: #141416;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f3f3f1;
  --text-muted: #a3a3a6;
  --accent: #fe6f02;          /* naranja tomado del logo */
  --accent-hover: #ff8a2e;
  --on-accent: #0b0b0c;       /* texto sobre naranja: contraste 7:1 (el blanco no pasa AA) */

  --font-display: "Barlow Condensed", "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 80rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4rem;

  /* Esquinas: todo recto con 3px. Única excepción: el botón flotante de WhatsApp (círculo). */
  --radius: 3px;
  /* Inclinación de marca: la misma de la tipografía itálica */
  --slant: -12deg;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* barridos y movimiento dentro de la pantalla */
  --dur: 0.25s;
  --dur-reveal: 0.7s;
}

@media (min-width: 64em) {
  :root { --header-h: 4.5rem; }
}

/* 2. BASE ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

html.menu-open,
html.menu-open body { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 3. LAYOUT ======================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

/* 4. COMPONENTES =================================================== */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.accent { color: var(--accent); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.35rem + 3.4vw, 3.75rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.eyebrow + .section-title { margin-top: 1rem; }

.section-lead {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 2.75rem;
  padding: 0 1.25em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    color var(--dur) ease,
    box-shadow var(--dur) ease,
    transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 28px -12px rgba(254, 111, 2, 0.65);
}

.btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn--ghost .icon--arrow { transition: transform var(--dur) var(--ease-out); }

/* Movimiento en hover solo con mouse: en pantallas táctiles el hover se queda "pegado" al tocar */
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover .icon--arrow { transform: translateX(3px); }
}

.btn--lg { min-height: 3.5rem; padding: 0 1.3em; font-size: 1.1875rem; }
.btn--sm { min-height: 2.5rem; padding: 0 1em; font-size: 0.9375rem; }

/* Franjas diagonales naranjas: el motivo de sus publicaciones de Instagram */
.stripes {
  position: absolute;
  z-index: -1;
  display: flex;
  gap: 0.55rem;
  pointer-events: none;
}
.stripes span {
  display: block;
  width: 1rem;
  height: 100%;
  background: var(--accent);
  transform: skewX(var(--slant));
  transform-origin: bottom;
}
.stripes span:nth-child(2) { width: 0.625rem; }
.stripes span:nth-child(3) { width: 0.3125rem; }

/* Etiquetas (servicios) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags li {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* 5. HEADER Y MENÚ ================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
}

/* El fondo va en un pseudo-elemento: si el blur estuviera en el propio header,
   el menú móvil (position: fixed) quedaría atrapado dentro de él. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.site-header.is-scrolled::before,
.menu-open .site-header::before { opacity: 1; }
.menu-open .site-header::before { background: var(--bg); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.site-header__brand {
  flex-shrink: 0;
  margin-right: auto;
  border-radius: var(--radius);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s;
}
.site-header__brand img { width: auto; height: 2.5rem; }

/* Mientras el logo grande del hero está a la vista, el del header se oculta */
.js .site-header:not(.show-brand) .site-header__brand {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.js.menu-open .site-header .site-header__brand {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-header__cta { display: none; }

.site-nav__list a {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--dur) ease;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current] { color: var(--text); }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
}
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before,
.menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { transform: translateY(-7px); }
.menu-toggle__icon::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: rotate(-45deg); }

@media (min-width: 40em) {
  .site-header__cta { display: inline-flex; }
}

/* Celular y tablet: menú a pantalla completa */
@media (max-width: 63.99em) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding:
      1rem
      max(var(--gutter), env(safe-area-inset-right))
      calc(1.5rem + env(safe-area-inset-bottom))
      max(var(--gutter), env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s;
  }
  .site-nav__list { display: grid; }
  .site-nav__list a {
    display: flex;
    align-items: center;
    min-height: 3.75rem;
    color: var(--text);
    font-size: clamp(1.875rem, 8vw, 2.75rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: 0.01em;
  }
  .site-nav__list a:hover,
  .site-nav__list a:active,
  .site-nav__list a[aria-current] { color: var(--accent); }
  .site-nav__cta { width: 100%; margin-top: auto; }
}

/* Escritorio: navegación en línea */
@media (min-width: 64em) {
  .site-header__inner { gap: clamp(1.25rem, 2.4vw, 2.5rem); }
  .site-header__brand img { height: 2.75rem; }
  .site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 1.9vw, 2rem);
  }
  .site-nav__list a {
    position: relative;
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .site-nav__list a[aria-current]::after { transform: scaleX(1); }
  .site-nav__cta,
  .menu-toggle { display: none; }
}

@media (min-width: 64em) and (hover: hover) and (pointer: fine) {
  .site-nav__list a:hover::after { transform: scaleX(1); }
}

/* 6. HERO ==========================================================
   Foto del negocio a todo lo ancho. El hero sube detrás del header (transparente arriba)
   para que la foto ocupe toda la primera pantalla. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: clamp(36rem, 100svh, 60rem);
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}
.hero__bg picture,
.hero__bg img { display: block; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 70% 35%; }

/* Degradados para que el texto se lea: oscuro a la izquierda y la camioneta a la derecha;
   arriba para el menú y abajo para fundirse con el resto de la página */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.95) 0%, rgba(11, 11, 12, 0.88) 40%, rgba(11, 11, 12, 0.5) 66%, rgba(11, 11, 12, 0.15) 100%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.75) 0%, rgba(11, 11, 12, 0) 24%, rgba(11, 11, 12, 0) 72%, var(--bg) 100%);
}

.hero__stripes {
  right: clamp(1rem, 5vw, 4rem);
  bottom: 0;
  height: clamp(5rem, 14vw, 11rem);
}

.hero__content { max-width: 46rem; }

.hero__logo {
  width: clamp(10.5rem, 16vw, 16rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
}

.hero__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.25rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero__line--accent { color: var(--accent); }

/* Sobre la foto, la línea pequeña va más clara que en el resto de la página */
.hero .eyebrow { color: rgba(243, 243, 241, 0.85); }

.hero__lead {
  max-width: 33rem;
  margin-top: 1.25rem;
  color: rgba(243, 243, 241, 0.82);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
/* El botón secundario lleva fondo translúcido para leerse bien sobre la foto */
.hero__actions .btn--ghost {
  background: rgba(11, 11, 12, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Celular y tablet: el texto va abajo, sobre la parte más oscura, y la foto se ve arriba */
@media (max-width: 63.99em) {
  .hero { align-items: flex-end; }
  .hero__bg img { object-position: 72% 30%; }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(11, 11, 12, 0.6) 0%, rgba(11, 11, 12, 0.12) 16%, rgba(11, 11, 12, 0.72) 34%, rgba(11, 11, 12, 0.94) 50%, var(--bg) 100%);
  }
  .hero__stripes { display: none; }
}

/* Celular: el logo ya está en el header y rotulado en la camioneta; se omite aquí para ganar espacio */
@media (max-width: 39.99em) {
  .hero__logo { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Tablet: el titular se arma en 3 líneas */
@media (min-width: 48em) {
  .hero__line { display: block; }
  .hero__title { font-size: clamp(3.5rem, 0.75rem + 6.2vw, 4.5rem); }
}

/* Escritorio: tamaño del titular calculado para que "MANTENEMOS OPERACIONES" quepa en la columna de texto */
@media (min-width: 64em) {
  .hero__title { font-size: clamp(3rem, 0.36rem + 4.2vw, 4.25rem); }
}

/* 7. SECCIONES ===================================================== */

/* --- Fotos de fondo en secciones ---
   Capa detrás del contenido con un degradado encima para que el texto se lea.
   Cada sección decide dónde va la foto y qué tan oscura queda. */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}
.section-bg picture,
.section-bg img { display: block; width: 100%; height: 100%; }
.section-bg img {
  object-fit: cover;
  transform: scale(var(--bg-scale, 1.1));
}
.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Historia: la fachada del local. En celular y tablet va como banner arriba del título
   (para que el párrafo no quede sobre el letrero); en escritorio, a la derecha del texto. */
.story { isolation: isolate; }
.story .section-bg { bottom: auto; height: clamp(17rem, 55vw, 26rem); }
.story .section-bg img { object-position: 50% 28%; }
.story .section-bg::after {
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.35) 0%, rgba(11, 11, 12, 0.1) 30%, rgba(11, 11, 12, 0.65) 72%, var(--bg) 100%);
}

@media (max-width: 63.99em) {
  .story { padding-top: clamp(13rem, 44vw, 20rem); }
}

/* ¿Por qué P&L?: el remolque desenfocado, visto a través de los recuadros */
.why { isolation: isolate; }
.why .section-bg img {
  --bg-scale: 1.15;
  object-position: 50% 45%;
  filter: blur(3px) saturate(0.9);
}
.why .section-bg::after {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 12, 0.66) 16%, rgba(11, 11, 12, 0.66) 84%, var(--bg) 100%);
}

/* Contacto: el letrero iluminado como banner arriba, a su tamaño real (la foto mide 720 px),
   con los lados fundidos en negro; el panel de vidrio se monta sobre su parte baja */
.contact { padding-top: clamp(13rem, 28vw, 22rem); }
.contact .section-bg {
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(100%, 45rem);
  height: clamp(19rem, 38vw, 30rem);
  transform: translateX(-50%);
}
.contact .section-bg img { object-position: 50% 55%; }
.contact .section-bg::after {
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 12, 0) 28%, rgba(11, 11, 12, 0) 72%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 12, 0) 20%, rgba(11, 11, 12, 0.15) 70%, var(--bg) 100%);
}

@media (min-width: 64em) {
  .story__text { max-width: 40rem; }
  .story .section-bg {
    left: auto;
    width: 52%;
    height: 100%;
  }
  .story .section-bg::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 12, 0.5) 30%, rgba(11, 11, 12, 0.15) 100%),
      linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 12, 0) 20%, rgba(11, 11, 12, 0) 62%, var(--bg) 100%);
  }
}

/* --- Banda de líneas de producto en movimiento --- */
.ticker {
  overflow: hidden;
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
  border-block: 1px solid var(--line);
}
.ticker__track {
  display: flex;
  width: max-content;
}
.ticker__group { display: flex; flex-shrink: 0; }
.ticker__group li {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group li::after {
  content: "/";
  margin-inline: 0.55em;
  color: var(--accent);
}
/* Una sí y una no en contorno, como en sus publicaciones */
.ticker__group li:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 243, 241, 0.55);
}

/* --- ¿Quiénes somos? --- */
.about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
.about__statement {
  max-width: 30ch;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.about__closing {
  max-width: 42ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}
.about__label {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}
.audiences { margin-top: 0.5rem; }
.audiences li {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  padding-block: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.375rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}
.audiences li::before {
  content: "/";
  content: "/" / "";
  color: var(--accent);
  font-weight: 800;
}

@media (min-width: 48em) and (max-width: 63.99em) {
  .audiences { columns: 2; column-gap: 2rem; }
  .audiences li { break-inside: avoid; }
}

@media (min-width: 64em) {
  .about__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }
  .about__audiences { padding-top: 0.5rem; }
}

/* --- Nuestra historia --- */
.story__text {
  max-width: 46rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.65;
}
/* --- ¿Por qué P&L? --- */
/* Recuadros como vidrio esmerilado sobre la foto de fondo (un solo desenfoque para toda la cuadrícula) */
.why__grid {
  display: grid;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.why__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.875rem 1.25rem;
  background: rgba(11, 11, 12, 0.68);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}
.why__item .icon { width: 1.75rem; height: 1.75rem; color: var(--accent); }

/* Meses sin intereses: dato informativo (no es un botón ni un medio de pago). Siempre ocupa toda la fila. */
.why__msi {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  background: rgba(24, 24, 27, 0.78);
}
.msi {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.75rem;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 0.95;
  text-transform: uppercase;
}
.msi__num {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--accent);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 0.78;
}
.msi__pre { align-self: end; color: var(--text-muted); font-size: 1.0625rem; font-weight: 700; }
.msi__txt { align-self: start; max-width: 10ch; font-size: 1.625rem; font-weight: 800; }
.msi__note {
  max-width: 36ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.45;
}

/* 2 columnas: el noveno punto se extiende para no dejar un hueco */
@media (min-width: 40em) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__item { min-height: 5.25rem; padding: 1.25rem 1.5rem; }
}
@media (min-width: 40em) and (max-width: 63.99em) {
  .why__item:nth-child(9) { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why__msi { padding: 1.75rem 2rem; }
}

/* --- Categorías de llantas --- */
.cats__grid {
  display: grid;
  gap: 0.875rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.cat {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
.cat__media { display: block; background: #1b1b1e; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; }
.cat__body { padding: 1rem 1.125rem 1.125rem; }
.cat__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.cat__text {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cats__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.cats__cta p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (max-width: 39.99em) {
  .cats__cta .btn { width: 100%; }
}
@media (min-width: 40em) {
  .cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .cat { grid-template-columns: none; grid-template-rows: auto 1fr; }
  .cat__media img { height: auto; aspect-ratio: 3 / 2; }
  .cat__body { padding: 1.25rem 1.375rem 1.5rem; }
  .cat__title { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }
  .cat__text { font-size: 1rem; }
}
@media (min-width: 64em) {
  .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Servicio móvil: banda destacada con cortes inclinados --- */
.mobile {
  --cut: clamp(1.5rem, 5vw, 4.5rem);
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(var(--cut) + clamp(3.5rem, 8vw, 6rem));
}
.mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 14px),
    linear-gradient(170deg, #19191c 0%, #101012 100%);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.mobile__stripes {
  bottom: 0;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  height: clamp(4rem, 8vw, 7rem);
}

.mobile__grid {
  display: grid;
  grid-template-areas: "head" "gallery" "body";
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
.mobile__head { grid-area: head; }
.mobile__gallery { grid-area: gallery; }
.mobile__body { grid-area: body; }

.mobile__title { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem); }
.mobile__body .section-lead { margin-top: 0; color: var(--text); }
.mobile__body .tags { margin-top: 1.25rem; }
.mobile__cta { margin-top: clamp(1.75rem, 3vw, 2.25rem); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
  background: #1b1b1e;
}
.gallery__item picture,
.gallery__item img { display: block; width: 100%; height: 100%; }
.gallery__item img { object-fit: cover; }
/* Celular: la Hilux con llantas a lo ancho, dos verticales y el remolque recortado a lo ancho
   (el recorte centra el remolque con las marcas y la camioneta de atrás) */
.gallery__item--a { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery__item--a img { object-position: 50% 90%; }
.gallery__item--b,
.gallery__item--c { aspect-ratio: 3 / 4; }
.gallery__item--d { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery__item--d img { object-position: 50% 48%; }

@media (max-width: 39.99em) {
  .mobile__cta .btn { width: 100%; }
}

/* Tablet: la Hilux a lo ancho y abajo las tres verticales */
@media (min-width: 48em) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .gallery__item--a { aspect-ratio: 16 / 9; }
  .gallery__item--d { grid-column: auto; aspect-ratio: 3 / 4; }
  .gallery__item--d img { object-position: 50% 50%; }
}

/* Escritorio: texto arriba en dos columnas y las cuatro fotos en una tira a todo lo ancho */
@media (min-width: 64em) {
  .mobile__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head body" "gallery gallery";
    align-items: start;
    column-gap: clamp(2.5rem, 5vw, 5rem);
    row-gap: clamp(2.5rem, 4vw, 3.5rem);
  }
  .gallery { grid-template-columns: 1.78fr repeat(3, minmax(0, 1fr)); }
  .gallery__item--a { grid-column: auto; aspect-ratio: auto; }
}

/* --- Contacto: el letrero iluminado de fondo y el panel como vidrio esmerilado --- */
.contact { isolation: isolate; }
.contact__panel {
  position: relative;
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(17, 17, 19, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}
.contact__panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: 0 50%;
}
.contact__cta { margin-top: clamp(1.5rem, 3vw, 2rem); }

.contact__list { display: grid; gap: 1.5rem; }
.contact__item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.contact__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--accent);
}
.contact__label {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact__value {
  margin-top: 0.15rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.contact__value a {
  display: inline-block;
  padding-block: 0.15rem;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat;
  transition: color var(--dur) ease;
}
.contact__value a:hover { color: var(--accent); }
.contact__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
/* Horario: el día arriba de la hora (en la columna angosta no cabe todo en un renglón) */
.contact__hours div + div { margin-top: 0.4rem; }
.contact__hours dt { color: var(--text-muted); }
.contact__hours dd { margin: 0; white-space: nowrap; }
.contact__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding-block: 0.2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--dur) ease;
}
.contact__more:hover { color: var(--accent); }
.contact__more .icon { width: 1rem; height: 1rem; }

@media (max-width: 39.99em) {
  .contact__cta { width: 100%; }
}
/* Tablet: los 5 datos en 2 columnas (la ubicación a todo lo ancho) */
@media (min-width: 48em) {
  .contact__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .contact__item:first-child { grid-column: 1 / -1; }
}

/* Escritorio: texto a la izquierda y datos a la derecha */
@media (min-width: 64em) {
  .contact__panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

/* 8. FOOTER ======================================================== */
.site-footer {
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.site-footer__brand { border-radius: var(--radius); }
.site-footer__brand img { width: auto; height: 2.75rem; }
.site-footer__tagline {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (min-width: 40em) {
  .site-footer__legal { text-align: right; }
}

/* Deja espacio para que el botón flotante no tape el texto */
@media (max-width: 39.99em) {
  .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* 9. WHATSAPP FLOTANTE (solo celular) ============================== */
.wa-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.7);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s;
}
.wa-fab .icon { width: 1.75rem; height: 1.75rem; }
.wa-fab:active { transform: scale(0.94); }

.js .wa-fab:not(.is-visible),
.menu-open .wa-fab {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

@media (min-width: 40em) {
  .wa-fab { display: none; }
}

/* Pulso al aparecer por primera vez (lo activa main.js una sola vez) */
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* 10. ANIMACIONES ==================================================
   Solo transform, opacity y clip-path. Si el usuario pide "reducir movimiento",
   se quedan únicamente desvanecidos suaves (sin desplazamientos ni animaciones continuas). */

/* --- Entrada del hero al cargar --- */
@media (prefers-reduced-motion: no-preference) {
  /* La foto aparece y se asienta (se aleja un poco), como una cámara que se detiene */
  .hero__bg img { animation: bg-in 1.8s var(--ease-out) both; }

  .hero__content > * { animation: rise 0.8s var(--ease-out) both; }
  .hero__content > :nth-child(2) { animation-delay: 0.08s; }
  .hero__content > :nth-child(3) { animation-delay: 0.16s; }
  .hero__content > :nth-child(4) { animation-delay: 0.24s; }
  .hero__content > :nth-child(5) { animation-delay: 0.32s; }

  .hero__stripes span { animation: stripe-in 0.6s var(--ease-out) both; }
  .hero__stripes span:nth-child(1) { animation-delay: 0.45s; }
  .hero__stripes span:nth-child(2) { animation-delay: 0.53s; }
  .hero__stripes span:nth-child(3) { animation-delay: 0.61s; }

  /* Movimiento continuo de marca: la banda de productos avanza */
  .ticker__track { animation: ticker 50s linear infinite; }

  .wa-fab.pulse::after { animation: ring 1.4s var(--ease-out) 2; }
}

/* Desde tablet el titular entra línea por línea */
@media (prefers-reduced-motion: no-preference) and (min-width: 48em) {
  .hero__content > .hero__title { animation: none; }
  .hero__line { animation: rise 0.8s var(--ease-out) both; }
  .hero__line:nth-child(1) { animation-delay: 0.16s; }
  .hero__line:nth-child(2) { animation-delay: 0.24s; }
  .hero__line:nth-child(3) { animation-delay: 0.32s; }
  .hero__content > :nth-child(4) { animation-delay: 0.42s; }
  .hero__content > :nth-child(5) { animation-delay: 0.5s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__bg { animation: fade 0.4s ease both; }
}

/* La banda de productos se pausa fuera de pantalla; con mouse, también al pasar el cursor */
.ticker.is-offscreen .ticker__track { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker__track { animation-play-state: paused; }
}

/* --- Aparición al hacer scroll (IntersectionObserver en main.js, una sola vez) ---
   Sin JavaScript no existe el estado oculto: todo se ve normal. */
.motion-full [data-reveal] {
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.motion-full [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.5rem); }
.motion-full [data-reveal="left"]:not(.is-in) { transform: translateX(-1.5rem); }

/* Títulos: barrido de izquierda a derecha (márgenes negativos para no recortar la itálica) */
.motion-full [data-reveal="wipe"] {
  clip-path: inset(-0.25em -0.5em -0.25em -0.25em);
  transition: clip-path 0.75s var(--ease-in-out);
  transition-delay: var(--delay, 0ms);
}
.motion-full [data-reveal="wipe"]:not(.is-in) {
  opacity: 1;
  transform: none;
  clip-path: inset(-0.25em 100% -0.25em -0.25em);
}

/* Fotos del servicio móvil: se descubren de derecha a izquierda y la imagen se asienta */
.motion-full [data-reveal="clip"] {
  clip-path: inset(0);
  transition: clip-path 0.8s var(--ease-in-out);
  transition-delay: var(--delay, 0ms);
}
.motion-full [data-reveal="clip"]:not(.is-in) {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 100%);
}
.motion-full [data-reveal="clip"] img,
.motion-full .cat img {
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.motion-full [data-reveal="clip"]:not(.is-in) img,
.motion-full .cat:not(.is-in) img { transform: scale(1.12); }

/* Palomitas de "¿Por qué P&L?": se dibujan después de que aparece cada punto */
.motion-full .why__item .icon {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s var(--ease-out);
  transition-delay: calc(var(--delay, 0ms) + 0.3s);
}
.motion-full .why__item:not(.is-in) .icon { stroke-dashoffset: 24; }

/* Borde naranja superior del panel de contacto: se traza al aparecer */
.motion-full .contact__panel::before {
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--delay, 0ms) + 0.25s);
}
.motion-full .contact__panel:not(.is-in)::before { transform: scaleX(0); }

/* Franjas de la banda de servicio móvil: suben al aparecer */
.motion-full [data-reveal="stripes"]:not(.is-in) { opacity: 1; transform: none; }
.motion-full [data-reveal="stripes"] span { transition: transform 0.6s var(--ease-out); }
.motion-full [data-reveal="stripes"] span:nth-child(2) { transition-delay: 80ms; }
.motion-full [data-reveal="stripes"] span:nth-child(3) { transition-delay: 160ms; }
.motion-full [data-reveal="stripes"]:not(.is-in) span { transform: skewX(var(--slant)) scaleY(0); }

/* Movimiento reducido: solo desvanecido */
.motion-lite [data-reveal] {
  transition: opacity 0.4s ease;
  transition-delay: var(--delay, 0ms);
}
.motion-lite [data-reveal]:not(.is-in) { opacity: 0; }

/* Fotos de fondo: se desplazan un poco más lento que el contenido (profundidad).
   Solo navegadores con animaciones ligadas al scroll; en los demás quedan fijas. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-bg img {
      animation: bg-parallax linear both;
      animation-timeline: view();
    }
  }
}

/* Barra de progreso de lectura bajo el header (solo navegadores con animaciones ligadas al scroll) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 2px;
      background: var(--accent);
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
  }
}

@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bg-parallax {
  from { transform: translateY(-4%) scale(var(--bg-scale, 1.1)); }
  to { transform: translateY(4%) scale(var(--bg-scale, 1.1)); }
}
@keyframes bg-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: none; }
}
@keyframes stripe-in {
  from { transform: skewX(var(--slant)) scaleY(0); }
  to { transform: skewX(var(--slant)) scaleY(1); }
}
/* La pista tiene dos copias idénticas: avanzar la mitad es un loop perfecto */
@keyframes ticker {
  to { transform: translateX(-50%); }
}
@keyframes ring {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 0; transform: scale(1.7); }
}
@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
