/* Trasteos la 76 | demo
   Mundo visual: el "cumplido" (comprobante de entrega de carga) sobre papel bond,
   con los colores del logo del negocio:
   naranja = acción (cotizar), azul petróleo = marca y cierre, rojo del 76 = firma
   (el 76 del lema, el sello y la cinta reflectiva), azul noche = tinta y pie.
   Valores muestreados del logo (assets/logo-trasteosla76.png):
   naranja #e55628 (carga del camioncito), petróleo #0b87a5 a #035a75 (cabina),
   rojo #e5272a (el 76), azul noche #000b19 (fondo). */

:root {
  /* Marca */
  --orange: #e55628;      /* exacto del logo; texto encima en azul noche (5.1:1) */
  --orange-hi: #ef6b3d;   /* hover, más claro para no perder contraste (6.1:1) */
  --teal: #0c6b82;        /* petróleo del logo, dentro de su rango, apto para texto blanco (6.1:1) */
  --teal-ink: #0a5a6e;    /* petróleo como tinta sobre papel (7.1:1) */
  --teal-tint: #cfe7ed;   /* texto secundario sobre petróleo (4.7:1) */
  --teal-shade: 3 40 52;  /* sombras sobre petróleo */
  --red: #e2262b;         /* el 76 del logo; solo tamaño grande y marcas (4.2:1 sobre papel) */
  --red-ink: #c81e24;     /* el mismo rojo como tinta de sello, para su texto pequeño (5.2:1) */
  --night: #06121f;       /* azul noche del fondo del logo, apenas levantado */

  /* Papel y tinta */
  --paper: #f4f5f2;
  --paper-2: #e3ebeb;     /* papel con un toque de petróleo */
  --rule: #c5cdcf;
  --ink: #0b1a2b;         /* tinta azul noche (16:1) */
  --ink-2: #4a5a6d;       /* tinta secundaria (6.4:1 sobre papel, 5.8:1 sobre papel-2) */
  --white: #fcfcfb;

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

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 4px;
  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1200px;
  --section-y: clamp(64px, 11vw, 128px);
  --focus: var(--ink);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--ink-2) var(--paper-2); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Recorta en horizontal lo que sangra (camioneta, sello) sin crear scroll lateral */
main { overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--orange); color: var(--night); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -120px; z-index: 40;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--night); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Tipografía de rotulación */
.section-title {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(2.25rem, 9vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lead {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* Botones */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.15rem;
  border: 0; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-stretch: 87.5%; font-weight: 700;
  font-size: 1.0625rem; line-height: 1; white-space: nowrap; text-decoration: none;
  box-shadow: 0 10px 20px -12px rgb(6 18 31 / 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn svg { width: 1.35em; height: 1.35em; flex: none; }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 0.9rem; font-size: 1rem; }
.btn--lg { min-height: 56px; padding: 0 1.5rem; font-size: 1.125rem; }
/* Sobre el bloque petróleo el naranja queda casi a la misma luminosidad (1.65:1),
   así que el botón se invierte a papel y conserva el naranja en el ícono (3.7:1). */
.btn--paper { --btn-bg: var(--white); --btn-fg: var(--night); box-shadow: 0 12px 24px -14px rgb(var(--teal-shade) / 0.9); }
.btn--paper svg { color: var(--orange); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: var(--orange-hi); }
  .btn.btn--paper:hover { --btn-bg: #fff; --btn-fg: var(--teal-ink); }
}

/* Encabezado */
.site-header { border-bottom: 2px solid var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; text-decoration: none; }
.brand picture { display: contents; }
.brand-logo {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  box-shadow: 0 3px 8px -3px rgb(6 18 31 / 0.45);
}
.brand-text { display: grid; gap: 4px; min-width: 0; }
.brand-name {
  font-family: var(--font-display); font-stretch: 62%; font-weight: 800;
  font-size: 1.5rem; line-height: 0.9; letter-spacing: 0.005em; white-space: nowrap;
}
/* Descriptor tal como aparece en el logo */
.brand-desc {
  color: var(--ink-2);
  font-stretch: 75%; font-weight: 700; font-size: 0.6875rem; line-height: 1.15;
  letter-spacing: 0.05em; text-transform: uppercase;
}
/* En celulares angostos el descriptor baja a dos líneas en vez de chocar con Cotizar */
@media (max-width: 399px) { .brand-desc { max-width: 9.5rem; } }
@media (max-width: 319px) { .brand-desc { display: none; } }

/* Hero */
.hero { padding-top: clamp(20px, 4vw, 48px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "truck" "copy";
  row-gap: 8px;
}
.hero-title {
  grid-area: title;
  font-family: var(--font-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(2.6rem, 11.4vw, 4.5rem);
  line-height: 0.92; letter-spacing: -0.008em;
  text-wrap: balance;
}
.hero-title > span { display: block; }
/* El 76 en el rojo del logo (texto grande: 4.2:1 sobre papel) */
.hero-title .num { color: var(--red); }
.hero-copy { grid-area: copy; display: grid; gap: 18px; }
.hero-sub { max-width: 36ch; color: var(--ink-2); font-size: 1.125rem; line-height: 1.45; text-wrap: pretty; }
.hero-actions { display: grid; gap: 4px; justify-items: start; }
.hero-actions .btn { width: 100%; }
.call-link {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule);
}
.call-link svg { width: 1.2em; height: 1.2em; color: var(--teal-ink); }
@media (hover: hover) and (pointer: fine) { .call-link:hover { text-decoration-color: currentColor; } }

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
  .hero-actions .btn { width: auto; }
}
.call-link { white-space: nowrap; }

/* Camioneta: recorte sin deformar (object-fit: cover sobre la imagen cuadrada) + sombra de contacto */
.truck { position: relative; isolation: isolate; --shade: 6 18 31; }
.truck-frame { position: relative; aspect-ratio: 6 / 5; }
.truck-frame picture { display: contents; }
.truck-frame img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 72%;
}
.shadow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shadow i {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  background: radial-gradient(closest-side, rgb(var(--shade) / var(--a, 0.45)), rgb(var(--shade) / 0));
}
/* 3/4 mirando a la izquierda: rueda delantera abajo-izquierda, trasera arriba-derecha */
.truck--izq .shadow i:nth-child(1) { --x: 50%; --y: 90%; --w: 96%; --h: 15%; --r: -10deg; --a: 0.4; }
.truck--izq .shadow i:nth-child(2) { --x: 37.5%; --y: 97%; --w: 24%; --h: 5.5%; --a: 0.85; }
.truck--izq .shadow i:nth-child(3) { --x: 81.5%; --y: 83.4%; --w: 16%; --h: 4.5%; --a: 0.8; }
/* 3/4 mirando a la derecha: espejo */
.truck--der .shadow i:nth-child(1) { --x: 50%; --y: 90%; --w: 96%; --h: 15%; --r: 10deg; --a: 0.4; }
.truck--der .shadow i:nth-child(2) { --x: 62.5%; --y: 97%; --w: 24%; --h: 5.5%; --a: 0.85; }
.truck--der .shadow i:nth-child(3) { --x: 18.5%; --y: 83.4%; --w: 16%; --h: 4.5%; --a: 0.8; }

.truck--hero { grid-area: truck; margin-inline: -2%; }
@media (min-width: 560px) and (max-width: 899px) {
  .truck--hero { width: 100%; max-width: 560px; justify-self: center; margin-inline: 0; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "title truck" "copy truck";
    grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 4vw, 64px);
    row-gap: 28px;
    align-items: start;
  }
  .hero-title { align-self: end; font-size: clamp(3.5rem, 6vw, 5.5rem); padding-top: clamp(24px, 4vw, 56px); }
  .truck--hero { align-self: center; margin-inline: 0 calc(-1 * clamp(0px, (100vw - var(--maxw)) / 2, 96px)); }
}

@media (prefers-reduced-motion: no-preference) {
  .truck--hero img { animation: roll-in 1000ms var(--ease-out) both; }
  .truck--hero .shadow { animation: roll-in-shadow 1000ms var(--ease-out) both; }
}
@keyframes roll-in { from { transform: translateX(8%); } to { transform: none; } }
@keyframes roll-in-shadow { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }

/* Borde perforado de talonario */
.perforation {
  height: 10px;
  margin-top: clamp(28px, 4vw, 48px);
  background: radial-gradient(circle, var(--rule) 0 2.5px, transparent 3px) center / 14px 10px repeat-x;
}

/* Servicios */
.services { padding-top: var(--section-y); }
.services-top { display: grid; gap: 36px; }
.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger-row { display: grid; gap: 6px; padding: 20px 0; }
.ledger-row + .ledger-row { border-top: 1px solid var(--rule); }
.ledger dt {
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  font-size: 1.625rem; line-height: 1.05;
}
.ledger dd { margin: 0; max-width: 46ch; color: var(--ink-2); text-wrap: pretty; }

.truck-panel {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 5vw, 56px) 0 22px;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(12 107 130 / 0.1) 31px 32px);
}
.truck-panel .truck-frame { aspect-ratio: 5 / 4; }
.truck-panel img { object-position: 50% 75%; }
.truck--perfil .shadow i:nth-child(1) { --x: 50%; --y: 97.5%; --w: 100%; --h: 7%; --a: 0.3; }
.truck--perfil .shadow i:nth-child(2) { --x: 14%; --y: 99%; --w: 19%; --h: 4.5%; --a: 0.7; }
.truck--perfil .shadow i:nth-child(3) { --x: 87%; --y: 96.4%; --w: 19%; --h: 4.5%; --a: 0.7; }

@media (min-width: 900px) {
  .services-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 24px; align-items: baseline; padding: 24px 0; }
  .truck-panel { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; padding-top: 40px; }
  .truck-panel .truck-frame { aspect-ratio: 2 / 1; }
  .truck-panel img { object-position: 50% 92%; }
  .truck--perfil .shadow i:nth-child(1) { --y: 95%; --h: 9%; }
  .truck--perfil .shadow i:nth-child(2) { --y: 97.4%; --h: 6%; }
  .truck--perfil .shadow i:nth-child(3) { --y: 92.4%; --h: 6%; }
}

/* Cómo funciona: ruta con marcas de chequeo */
.steps { padding-block: var(--section-y); }
.route {
  --gap: 28px;
  position: relative;
  display: grid; gap: var(--gap);
  margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; list-style: none;
}
.route::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px;
  border-left: 2px dashed rgb(11 26 43 / 0.4);
}
.stop { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; align-content: start; }
.stop-mark {
  grid-row: span 2; position: relative; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper);
}
.stop-mark svg { width: 26px; height: 26px; color: var(--teal-ink); }
.stop h3 {
  padding-top: 9px;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800;
  font-size: 1.75rem; line-height: 1;
}
.stop p { margin-top: 8px; max-width: 34ch; color: var(--ink-2); text-wrap: pretty; }
.steps-cta { margin-top: clamp(36px, 5vw, 56px); }

@media (max-width: 559px) { .steps-cta { width: 100%; } }

@media (min-width: 900px) {
  /* En escritorio la ruta corre en horizontal: cada parada abre con la línea punteada de la vía */
  .route { --gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route::before { content: none; }
  .stop { padding-top: 28px; border-top: 2px dashed rgb(11 26 43 / 0.4); }
}

/* Por qué elegirnos */
.why { padding-bottom: calc(var(--section-y) * 0.6 + 36vw); }
.why-inner { padding-top: clamp(48px, 8vw, 96px); border-top: 2px solid var(--ink); }
.why-items { display: grid; gap: 36px; margin-top: clamp(32px, 5vw, 56px); }
.why-item { padding-top: 18px; border-top: 1px solid var(--rule); }
.why-item h3 {
  font-family: var(--font-display); font-stretch: 62%; font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.75rem); line-height: 0.95;
}
.why-item p { margin-top: 12px; max-width: 40ch; color: var(--ink-2); font-size: 1.125rem; text-wrap: pretty; }
.why-foot { display: flex; justify-content: flex-end; margin-top: 40px; padding-right: 8px; }

.stamp {
  --c: var(--red-ink);
  position: relative;
  display: inline-grid; justify-items: center; gap: 4px;
  padding: 12px 20px 14px;
  border: 3px solid var(--c); border-radius: var(--radius);
  color: var(--c);
  font-family: var(--font-display);
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
}
.stamp::before { content: ""; position: absolute; inset: 4px; border: 1.5px solid var(--c); border-radius: 2px; }
.stamp-top { font-stretch: 87.5%; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.stamp-main { font-stretch: 62%; font-weight: 800; font-size: clamp(2.5rem, 10vw, 3.5rem); line-height: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }

@media (min-width: 900px) {
  .why { padding-bottom: calc(var(--section-y) * 0.5 + 20vw); }
  .why-items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
  .why-foot { margin-top: 24px; padding-right: 4%; }
}
@media (min-width: 1440px) { .why { padding-bottom: 360px; } }

/* El sello cae una vez, cuando entra en vista */
@media (prefers-reduced-motion: no-preference) {
  .js .stamp { opacity: 0; transform: rotate(-15deg) scale(1.45); }
  .js .stamp.is-stamped { animation: stamp-in 480ms var(--ease-out) forwards; }
}
@media (prefers-reduced-motion: reduce) {
  .js .stamp { opacity: 0; transition: opacity 300ms ease; }
  .js .stamp.is-stamped { opacity: 1; }
}
@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-15deg) scale(1.45); }
  55% { opacity: 1; transform: rotate(-7deg) scale(0.96); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* Contacto: bloque petróleo (el lado derecho del logo) con la cinta reflectiva roja y blanca de la camioneta */
.contact { position: relative; background: var(--teal); color: #fff; --focus: #fff; padding-bottom: var(--section-y); }
.tape {
  position: absolute; left: 0; right: 0; top: 0; height: 16px;
  border-block: 2px solid var(--night);
  background: repeating-linear-gradient(90deg, var(--white) 0 48px, var(--red) 48px 96px);
}
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.truck--contact { position: relative; z-index: 2; margin-top: -37.5%; --shade: var(--teal-shade); }
.truck--contact .shadow i:nth-child(1) { --a: 0.5; }
.contact-body { padding-top: 20px; }
.contact .section-title { color: #fff; }
.contact .lead { color: var(--teal-tint); margin-bottom: 28px; }
.contact-body .btn { width: 100%; }

.contact-list { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.35); }
.contact-list a {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 14px;
  min-height: 68px; padding: 10px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.35);
  font-size: 1.25rem; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.contact-list svg { width: 26px; height: 26px; }
.contact-list small {
  display: block; margin-bottom: 2px;
  color: var(--teal-tint); font-size: 0.8125rem; font-weight: 600; font-stretch: 87.5%;
  letter-spacing: 0.08em; text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) { .contact-list a:hover span { text-decoration: underline; text-decoration-thickness: 1px; } }

@media (min-width: 560px) { .contact-body .btn { width: auto; } }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .truck--contact { margin-left: calc(-1 * clamp(0px, (100vw - var(--maxw)) / 2, 80px)); }
  .contact-body { padding-top: clamp(64px, 8vw, 112px); }
}

/* Pie */
.site-footer { background: var(--night); color: #c2cbd4; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 0.9375rem; --focus: #fff; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; line-height: 1.4; }
.footer-brand picture { display: contents; }
.footer-logo { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #fff; font-weight: 700; }
.credit a { display: inline-flex; align-items: center; min-height: 44px; color: #97a3af; text-decoration-color: rgb(151 163 175 / 0.5); }

/* Botones flotantes: WhatsApp + llamar */
.dock {
  position: fixed; z-index: 20;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 8px;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 0s;
}
.dock a {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 54px; border-radius: var(--radius);
  font-stretch: 87.5%; font-weight: 700; font-size: 1.0625rem; line-height: 1; text-decoration: none;
  box-shadow: 0 14px 28px -14px rgb(6 18 31 / 0.7), 0 2px 6px rgb(6 18 31 / 0.14);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.dock a:active { transform: scale(0.97); }
.dock svg { width: 22px; height: 22px; flex: none; }
.dock-wa { flex: 1; padding: 0 16px; background: var(--orange); color: var(--night); }
.dock-call { flex: none; padding: 0 18px; background: var(--night); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .dock-wa:hover { background: var(--orange-hi); }
  .dock-call:hover { background: #16263a; }
}
.js .dock[data-hidden] {
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity 160ms ease-out, transform 160ms ease-out, visibility 0s linear 160ms;
}
@media (min-width: 720px) {
  .dock { left: auto; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .dock-wa { flex: none; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .dock[data-hidden] { transform: none; }
  .btn:active, .dock a:active { transform: none; }
}
