/* =========================================================================
   sólo importados córdoba. — Diseño C: placa-tecnica
   Lenguaje visual: la placa CSC del contenedor. Blanco/negro, hairlines 1px,
   reglas fuertes 2px, radio 0–4px, sombras casi nulas. Chivo + Chivo Mono.
   Verde solo en CTAs WhatsApp; naranja seguridad solo en datos clave.
   ========================================================================= */

/* ----- Tokens ----- */
:root {
  --bg: oklch(1 0 0);
  --ink: oklch(0.15 0 0);
  --muted: oklch(0.42 0 0);
  --line: oklch(0.85 0 0);              /* hairlines 1px */
  --line-strong: oklch(0.15 0 0);       /* reglas 2px */
  --cta: oklch(0.50 0.135 150);         /* verde WhatsApp, texto blanco */
  --cta-press: oklch(0.44 0.125 150);
  --data: oklch(0.62 0.19 45);          /* naranja seguridad: SOLO datos clave */

  /* superficie oscura (secciones invertidas) */
  --dark-bg: oklch(0.15 0 0);
  --dark-ink: oklch(0.97 0 0);
  --dark-muted: oklch(0.78 0 0);
  --dark-line: oklch(1 0 0 / 0.22);

  --font-body: "Chivo", system-ui, sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, monospace;

  --radius: 4px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  /* escala z semántica */
  --z-header: 10;
  --z-scrim: 20;
  --z-nav: 30;
  --z-fab: 40;
  --z-skip: 50;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; line-height: 1.08; margin: 0; }
p { text-wrap: pretty; margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
li { list-style: none; }

[hidden] { display: none !important; }

img, video { display: block; max-width: 100%; height: auto; }
img { outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.section--dark img { outline-color: rgba(255, 255, 255, 0.1); }

a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.nums { font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

/* Focus visible (no quitar outline sin reemplazo) */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.section--dark :focus-visible, .nav-mobile :focus-visible { outline-color: currentColor; }

/* Skip link */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: var(--z-skip);
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 0.875rem;
  padding: 12px 16px; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; outline-color: #fff; outline-offset: -4px; }

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center;
  border-radius: var(--radius);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-press); }

.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-xl { min-height: 56px; padding: 16px 30px; font-size: 1.125rem; }

/* botón "sello" — sectores (mono, borde 1px, hover invierte) */
.btn-stamp {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-weight: 500; font-size: 0.9375rem;
  min-height: 44px; padding: 10px 18px;
}
.btn-stamp:hover { background: var(--ink); color: #fff; }

.icon-wa { flex: none; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: border-color 200ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line-strong); }

.header-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; text-decoration: none; margin-right: auto;
}
.brand-logo { width: 40px; height: 40px; outline: none; }
.brand-name { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
@media (max-width: 519px) { .site-header .brand-name { display: none; } }

.nav-desktop { display: none; }

/* hamburguesa */
.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
.nav-toggle-bar { width: 18px; height: 2px; background: var(--ink); }

.nav-scrim {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-scrim);
  background: rgba(0, 0, 0, 0.45);
}

.nav-mobile {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 2px solid var(--line-strong);
  padding: 8px var(--gutter) 20px;
  display: flex; flex-direction: column;
}
.nav-mobile a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--font-mono); font-size: 1rem; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 16px; }

@media (min-width: 880px) {
  .nav-toggle, .nav-mobile, .nav-scrim { display: none; }
  .nav-desktop { display: flex; gap: 4px; }
  .nav-desktop a {
    position: relative;
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 12px;
    font-size: 0.9375rem; font-weight: 500; text-decoration: none;
    color: var(--muted);
    transition: color 160ms var(--ease-out);
  }
  .nav-desktop a:hover { color: var(--ink); }
  .nav-desktop a.is-active { color: var(--ink); }
  .nav-desktop a.is-active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px;
    height: 2px; background: var(--ink);
  }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-block: clamp(40px, 7vw, 88px); border-bottom: 2px solid var(--line-strong); }

.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }

.doc-line {
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px; margin-bottom: 22px;
}

h1 {
  font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(2.05rem, 7.4vw, 4.25rem);
}

.lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
  margin-block: 18px 26px;
}

/* Placa de identificación */
.plate {
  margin-top: clamp(28px, 4vw, 44px);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.plate-head {
  background: var(--ink); color: #fff;
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 8px 14px; margin: 0;
}
.plate-row {
  display: grid; grid-template-columns: minmax(96px, 30%) 1fr;
  border-top: 1px solid var(--line);
}
.plate-rows .plate-row:first-child { border-top: 0; }
.plate-row dt {
  padding: 12px 14px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  border-right: 1px solid var(--line);
  align-self: center;
}
.plate-row dd {
  padding: 12px 14px;
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.hero-photo img { width: 100%; height: auto; border-radius: var(--radius); }

figcaption.mono, .hero-photo figcaption, .sheet-photo figcaption {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 0.75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 72px); }
  .hero-photo { max-width: 480px; justify-self: end; }
}

/* =========================================================================
   SECCIONES — encabezado de documento
   ========================================================================= */
.section { padding-block: clamp(56px, 8vw, 104px); }

.section-head {
  border-top: 2px solid var(--line-strong);
  padding-top: 16px;
  margin-bottom: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
}
.section-head h2 {
  font-weight: 900; letter-spacing: -0.015em;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}
.section-ref {
  font-size: 0.8125rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* variante oscura (placa invertida) */
.section--dark { background: var(--dark-bg); color: var(--dark-ink); }
.section--dark .section-head { border-top-color: var(--dark-ink); }
.section--dark .section-ref { color: var(--dark-muted); }

.section--ruled { border-top: 1px solid var(--line); }

/* =========================================================================
   PRODUCTOS — hojas de especificación
   ========================================================================= */
.sheet {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 4vw, 48px);
  background: var(--bg);
}
.sheet:last-child { margin-bottom: 0; }

.sheet-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px;
  padding: 16px clamp(16px, 3vw, 28px);
  border-bottom: 2px solid var(--line-strong);
}
.sheet-head h3 {
  font-weight: 900; letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.sheet-size {
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
}
.sheet-tag {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.9375rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 10px;
  align-self: center;
}
.sheet-ref {
  order: 1;
  font-size: 0.8125rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.sheet-body {
  display: grid; gap: 20px;
  padding: clamp(16px, 3vw, 28px);
}

.sheet-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.sheet-photo figcaption { border-bottom: 0; }

.sheet-data { display: flex; flex-direction: column; gap: 20px; }
.sheet-note { color: var(--muted); max-width: 56ch; }

/* tabla de especificaciones */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td {
  text-align: left; vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
}
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line); }
.spec th {
  width: 34%; min-width: 110px;
  font-weight: 500; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 14px;
}
.spec td { font-weight: 500; }

/* dato clave en naranja seguridad (≤5% de superficie) */
.data-key {
  color: var(--data);
  font-weight: 700;
  font-size: 1.375rem;
  text-transform: uppercase; letter-spacing: 0.02em;
}

.sheet .btn-cta { align-self: flex-start; }

@media (min-width: 880px) {
  .sheet-body { grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
  .sheet--reverse .sheet-body { grid-template-columns: 1fr minmax(0, 460px); }
  .sheet--reverse .sheet-photo { order: 2; }
  .sheet--reverse .sheet-data { order: 1; }
  .sheet--reefer .sheet-body { grid-template-columns: minmax(0, 560px) 1fr; }
}

/* banda de temperatura — la Reefer protagonista */
.temp-band {
  padding: clamp(20px, 4vw, 36px) clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.temp-label {
  font-size: 0.8125rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.temp-value {
  font-family: var(--font-mono); font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 8.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--data);
}

/* =========================================================================
   ¿POR QUÉ ONE TRIP? — placa invertida
   ========================================================================= */
.reasons { display: grid; gap: 0; }
.reason {
  border-top: 1px solid var(--dark-line);
  padding-block: 22px;
}
.reasons .reason:last-child { border-bottom: 1px solid var(--dark-line); }
.reason h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.reason p { color: var(--dark-muted); }

@media (min-width: 880px) {
  .reasons { grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 64px); }
  .reasons .reason:nth-last-child(2) { border-bottom: 1px solid var(--dark-line); }
}

/* =========================================================================
   SECTORES
   ========================================================================= */
.sectors {
  display: grid;
  border-top: 1px solid var(--line);
}
.sector {
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.sector h3 { font-size: 1.375rem; font-weight: 900; letter-spacing: -0.01em; }
.sector p { color: var(--muted); max-width: 44ch; }
.sector .btn-stamp { margin-top: 8px; }

@media (min-width: 880px) {
  .sectors { grid-template-columns: repeat(2, 1fr); column-gap: clamp(36px, 5vw, 72px); }
  .sector { padding-block: 32px; }
}

/* =========================================================================
   CÓMO TRABAJAMOS
   ========================================================================= */
.steps { display: grid; gap: clamp(24px, 4vw, 40px); counter-reset: paso; }
.step { border-top: 2px solid var(--line-strong); padding-top: 14px; }
.step-num {
  font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1; margin-bottom: 10px;
}
.step h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); }

@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   GALERÍA — contact sheet
   ========================================================================= */
.contact-sheet {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cell { background: var(--bg); padding: 10px; display: flex; flex-direction: column; }
.cell img, .cell video {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 0;
}
.cell video { background: var(--ink); }
.cell figcaption {
  font-size: 0.75rem;
  border-bottom: 0;
  padding-bottom: 2px;
  margin-top: auto;
}

@media (min-width: 880px) {
  .contact-sheet { grid-template-columns: repeat(4, 1fr); }
  .cell figcaption { font-size: 0.75rem; }
}

/* =========================================================================
   CTA FINAL
   ========================================================================= */
.cta-final { border-top: 2px solid var(--line-strong); text-align: center; }
.cta-final h2 {
  font-weight: 900; letter-spacing: -0.02em;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: clamp(24px, 4vw, 36px);
}
.trust-line {
  margin-top: 20px;
  font-size: 0.8125rem; color: var(--dark-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { border-top: 2px solid var(--line-strong); padding-block: clamp(36px, 5vw, 56px) 28px; }

.footer-grid { display: grid; gap: 32px; }

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-name { font-size: 1.0625rem; }

.footer-data { display: grid; gap: 0; }
.footer-row {
  display: grid; grid-template-columns: minmax(100px, 30%) 1fr;
  border-top: 1px solid var(--line);
  align-items: center;
}
.footer-row dt {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  padding-block: 12px;
}
.footer-row dd { font-size: 0.9375rem; padding-block: 12px; }
.footer-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.footer-legal {
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 0.8125rem; color: var(--muted);
}
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

/* =========================================================================
   FAB WHATSAPP
   ========================================================================= */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-fab);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cta); color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), background-color 160ms var(--ease-out);
}
.fab.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab:hover { background: var(--cta-press); }
.fab:active { transform: scale(0.97); }

/* =========================================================================
   REVEAL — mejora progresiva (solo si <html> recibe .reveal-ready)
   ========================================================================= */
html.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

html.reveal-ready [data-reveal-children] > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
html.reveal-ready [data-reveal-children].is-visible > * { opacity: 1; transform: none; }
/* stagger ≤60ms, solo dentro de la misma lista */
html.reveal-ready [data-reveal-children].is-visible > *:nth-child(2) { transition-delay: 50ms; }
html.reveal-ready [data-reveal-children].is-visible > *:nth-child(3) { transition-delay: 100ms; }
html.reveal-ready [data-reveal-children].is-visible > *:nth-child(4) { transition-delay: 150ms; }
html.reveal-ready [data-reveal-children].is-visible > *:nth-child(5) { transition-delay: 200ms; }
html.reveal-ready [data-reveal-children].is-visible > *:nth-child(6) { transition-delay: 250ms; }
html.reveal-ready [data-reveal-children].is-visible > *:nth-child(7) { transition-delay: 300ms; }
html.reveal-ready [data-reveal-children].is-visible > *:nth-child(8) { transition-delay: 350ms; }

/* =========================================================================
   REDUCED MOTION — página completa y estática
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .fab { transform: none; }
  .btn:active, .fab:active { transform: none; }
}
