/* ═══════════════════════════════════════════════════════════════════
   CYH S.A. Transportes — styles.css
   Design system: handoff CYH SA - Homepage.html
   Tipografía titulares: Kanit  |  Cuerpo: Inter
   Desarrollado por Duclos Design (duclosdesign.com.ar)
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   DESIGN TOKENS — fuente única de verdad
   ───────────────────────────────────────────────────────────────── */
:root {
  /* Colores */
  --ink:        #0E0E10;   /* texto principal, header, footer */
  --ink-2:      #1a1a1f;
  --muted:      #6b6b75;   /* textos secundarios */
  --line:       #ececef;   /* bordes sutiles */
  --bg:         #ffffff;
  --bg-soft:    #f6f6f8;
  --accent:     #E63B7A;   /* magenta principal — CTAs, eyebrows, acentos */
  --accent-2:   #c91f5e;   /* magenta hover */
  --whatsapp:   #25D366;

  /* Gradientes */
  --hero-grad: linear-gradient(110deg, #0E0E10 0%, #1a0a14 35%, #4a0e2a 70%, #8a1746 100%);
  --cta-grad:  linear-gradient(110deg, #2a0814 0%, #6a1238 50%, #a51a55 100%);

  /* Tipografía */
  --font-headings: 'Kanit', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;

  /* Espaciado */
  --container-max: 1240px;
  --container-pad: 32px;
  --section-py:    90px;
  --header-h:      72px;

  /* Radios */
  --radius:    14px;
  --radius-lg: 22px;

  /* Sombras */
  --shadow-card:    0 12px 30px rgba(14,14,16,.08), 0 2px 6px rgba(14,14,16,.04);
  --shadow-card-lg: 0 24px 60px rgba(14,14,16,.12), 0 4px 12px rgba(14,14,16,.05);
  --shadow-fab:     0 10px 24px rgba(37,211,102,.4);
  --shadow-cta:     0 12px 30px rgba(0,0,0,.25);

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-med:  280ms ease;
}

/* ─────────────────────────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: .5rem 1rem;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); font-weight: 600; z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* ─────────────────────────────────────────────────────────────────
   LAYOUT — CONTAINER
   ───────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ─────────────────────────────────────────────────────────────────
   TIPOGRAFÍA GLOBAL
   ───────────────────────────────────────────────────────────────── */

/* Eyebrow — label de sección */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

/* Títulos de sección */
.section-title {
  font-family: var(--font-headings);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 0;
}
.section-title-sm {
  font-family: var(--font-headings);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 0;
}
.center { text-align: center; }

/* ─────────────────────────────────────────────────────────────────
   BOTONES
   ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-med),
              box-shadow var(--t-med), border-color var(--t-med);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:active        { transform: translateY(1px); }

/* Primario magenta */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #a51545;           /* ← rosa más oscuro que --accent-2 para mayor contraste */
  border-color: #a51545;
  transform: translateY(-1px);
}

/* Ghost (sobre fondos oscuros) */
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

/* Blanco (sobre fondo magenta/oscuro) */
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-light:hover {
  background: var(--ink);          /* ← gris casi negro = color footer */
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-cta);
}
/* Chevron circular interno del botón */
.btn-chev {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}
/* btn-light: círculo levemente oscuro sobre fondo blanco */
.btn-light .btn-chev {
  background: rgba(14,14,16,.07);
  color: var(--ink);               /* ← flecha oscura en estado normal */
}
/* btn-light hover: círculo blanco translúcido sobre fondo oscuro */
.btn-light:hover .btn-chev {
  background: rgba(255,255,255,.18);
  color: #fff;                     /* ← flecha blanca sobre gris oscuro */
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--ink);
  color: #fff;
  z-index: 1000;
  transition: box-shadow var(--t-med);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
  color: #fff;
  flex-shrink: 0;
}
.logo img { height: 38px; width: auto; }

/* Nav desktop */
.header-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #d8d8dd;
  padding: 6px 10px;
  border-radius: 8px;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t-med);
}
.nav-link:hover               { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active               { color: #fff; }
.nav-link.active::after        { transform: scaleX(1); }

/* Hamburguesa — solo mobile/tablet */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--t-fast);
}
.hamburger:hover { background: rgba(255,255,255,.08); }
.hamburger-bar {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast), width var(--t-med);
  transform-origin: center;
}
.hamburger.open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════
   MENÚ MOBILE — off-canvas derecho
   ═══════════════════════════════════════════════════════════════════ */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  z-index: 1001;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med);
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(85vw, 340px); height: 100%;
  background: var(--ink);
  z-index: 1002;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform var(--t-med);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.menu-close {
  color: rgba(255,255,255,.6);
  padding: .5rem;
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
.menu-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.mobile-nav { padding: 1.25rem 0; flex: 1; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-link {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  padding: .9rem 1.75rem;
  display: block;
  border-left: 3px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), padding-left var(--t-med);
}
.mobile-nav-link:hover {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(230,59,122,.06);
  padding-left: 2.25rem;
}

.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 1rem;
}
.mobile-menu-cta { justify-content: center; border-radius: var(--radius-lg); }
.mobile-menu-contact {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.4); font-size: .85rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--hero-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 150px; /* compensa el clip diagonal */
  min-height: 640px;
  /* Corte diagonal inferior: izquierda baja, derecha sube */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 90px), 0 100%);
}

/* Patrón de puntos decorativo */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
  z-index: 1;                /* ← sobre la imagen de fondo */
}

.hero-inner { position: relative; z-index: 2; }  /* ← sobre textura y foto */

/* ── Imagen de fondo — full-bleed centrada, fade diagonal izquierda ──
   Cubre todo el hero. La máscara diagonal oscurece el lado izquierdo
   (zona del texto) y deja la imagen visible al centro-derecha.
   En tablet/mobile se oculta: el texto ocupa todo el ancho.          */
.hero-bg-right {
  position: absolute;
  inset: 0;                  /* cubre todo el hero */
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;  /* camión centrado — ajustar si hace falta */
  opacity: .5;
  /* Degradado diagonal (mismo ángulo que el hero-grad: 110deg)
     Izquierda: casi invisible → permite leer el texto
     Centro-derecha: imagen bien visible                     */
  -webkit-mask-image: linear-gradient(
    110deg,
    transparent          0%,
    rgba(0,0,0,.08)     28%,
    rgba(0,0,0,.55)     50%,
    black               72%
  );
          mask-image: linear-gradient(
    110deg,
    transparent          0%,
    rgba(0,0,0,.08)     28%,
    rgba(0,0,0,.55)     50%,
    black               72%
  );
}

/* Copy izquierda */
.hero-copy { max-width: 560px; }

/* Pill badge */
.hero-pill {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: .3px;
}

/* H1 */
.hero h1 {
  font-family: var(--font-headings);
  font-size: 46px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 22px;
}

/* Lead paragraph */
.hero-lead {
  color: #d6d2d8;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 480px;
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Features — 4 íconos en fila */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 520px;
}
.hero-feat {
  display: flex;
  gap: 10px;
  align-items: center;             /* ← texto centrado verticalmente con el ícono */
}
.hero-feat .feat-ic {
  width: 48px; height: 48px;       /* ← más grande */
  flex: 0 0 48px;
  border-radius: 10px;
  background: rgba(230,59,122,.18);
  color: var(--accent);
  display: grid; place-items: center;
}
.hero-feat .feat-ic svg { width: 24px; height: 24px; }
.hero-feat .feat-ic img { width: 28px; height: 28px; object-fit: contain; }
.hero-feat .feat-label {
  font-size: 12px;
  line-height: 1.35;
  color: #e6e2e8;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: EMPRESA
   ═══════════════════════════════════════════════════════════════════ */
.section-empresa {
  padding: 80px 0;
  background: var(--bg);
}

.empresa-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: flex-start;
}

.empresa-left p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 430px;
}

/* Feature cards — 3 en fila */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fcard {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid #f1f1f4;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.fcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-lg);
}

.fcard .fcard-ic {
  width: 84px; height: 84px;       /* ← icono empresa más notorio */
  border-radius: 20px;
  background: rgba(230,59,122,.1);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.fcard .fcard-ic svg { width: 48px; height: 48px; }
.fcard .fcard-ic img { width: 54px; height: 54px; object-fit: contain; }

.fcard h3 {
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}
.fcard p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: SERVICIOS
   ═══════════════════════════════════════════════════════════════════ */
.section-servicios {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.section-servicios .center { margin-bottom: 46px; }
.section-servicios .section-title { max-width: 640px; margin: 0 auto; }

/* Grid de 4 cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.scard {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid #f1f1f4;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.scard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-lg);
}
/* Barra magenta inferior */
.scard::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--accent);
}

.scard-head {
  padding: 24px 22px 8px;
  text-align: center;
  flex: 1;
}

.scard-ic {
  width: 84px; height: 64px;       /* ← más grande */
  margin: 0 auto 16px;
  color: var(--accent);
  display: grid; place-items: center;
}
.scard-ic svg  { width: 100%; height: 100%; }
.scard-ic img  { width: 100%; height: 100%; object-fit: contain; }

.scard-head h3 {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}
.scard-head p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
  min-height: 70px; /* alinea el borde inferior de todas las cards */
}

.scard-img {
  height: 250px;               /* ← más alto para mostrar el camión completo */
  overflow: hidden;
  flex-shrink: 0;
}
.scard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: bottom;    /* ← imagen desde abajo: ruedas siempre visibles */
  transition: transform 500ms ease;
}
.scard:hover .scard-img img { transform: scale(1.04); }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: SPLIT — "Transporte para empresas que necesitan cumplir"
   ═══════════════════════════════════════════════════════════════════ */
.section-split {
  padding: 30px 0 80px;
  background: var(--bg-soft);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}

.split-left h2 {
  font-family: var(--font-headings);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 0 0 28px;
  color: var(--ink);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  transition: box-shadow var(--t-med), border-color var(--t-med);
}
.check:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(230,59,122,.25);
}

.check .check-ic {
  width: 72px; height: 72px;       /* ← ~50% más grande que los 48px anteriores */
  border-radius: 16px;
  flex: 0 0 72px;
  background: rgba(230,59,122,.1);
  color: var(--accent);
  display: grid; place-items: center;
  overflow: hidden;                /* contiene el zoom de la img */
  transition: background var(--t-med);
}
.check:hover .check-ic { background: rgba(230,59,122,.18); } /* ← sutil brillo al hover */
.check .check-ic svg { width: 36px; height: 36px; }
.check .check-ic img {
  width: 42px; height: 42px;
  object-fit: contain;
  transition: transform var(--t-med);  /* ← zoom en hover */
}
.check:hover .check-ic img { transform: scale(1.18); } /* ← zoom notorio del ícono */
.check span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

/* Imagen derecha */
.split-right {
  border-radius: var(--radius-lg);
  overflow: hidden;                /* ← contiene el zoom de la imagen */
  min-height: 420px;
}
.split-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease; /* ← zoom suave al hover */
}
.split-right:hover img { transform: scale(1.05); } /* ← zoom de la imagen derecha */

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: FLOTA — Galería asimétrica
   ═══════════════════════════════════════════════════════════════════ */
.section-flota {
  padding: 20px 0 var(--section-py);
  background: var(--bg);
}

.flota-header { margin-bottom: 30px; }
.flota-header h2 {
  font-family: var(--font-headings);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 0 0 8px;
  color: var(--ink);
}
.flota-header .flota-desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  max-width: 560px;
}

/* ── Slider de flota ──────────────────────────────────────────────
   Full-width · Desktop: 5 fotos · Tablet: 4 · Mobile: 1 + hint
   ──────────────────────────────────────────────────────────────── */

/* Envoltorio full-width — sale del container */
.flota-slider-outer {
  position: relative;
  width: 100%;
  margin-top: 28px;
  margin-bottom: 10px;
}

/* Área visible: overflow hidden */
.flota-slider {
  overflow: hidden;
  width: 100%;
  cursor: grab;
}
.flota-slider:active { cursor: grabbing; }

/* Track desplazable */
.flota-track {
  display: flex;
  gap: 10px;                        /* ← separación entre fotos */
  will-change: transform;
  transition: transform 380ms cubic-bezier(.4,0,.2,1);
  user-select: none;
  -webkit-user-select: none;
}
.flota-track.no-transition { transition: none; }

/* Slide individual */
.flota-slide {
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.flota-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  transition: transform 500ms ease;
}
.flota-slide:hover img { transform: scale(1.04); }

/* Flechas de navegación */
.flota-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  border: none;
  cursor: pointer;
}
.flota-arrow:hover { background: var(--accent-2); transform: translateY(-50%) scale(1.08); }
.flota-arrow:disabled { opacity: .3; pointer-events: none; }
.flota-arrow svg { width: 20px; height: 20px; }
.flota-prev { left: 14px; }
.flota-next { right: 14px; }

/* Contador numérico tipo "3 / 14" */
.flota-counter {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.flota-counter strong {
  color: var(--ink);
  font-size: 15px;
}

/* Caption con líneas magenta decorativas */
.gallery-foot {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 24px;
  position: relative;
  padding: 0 38%;
}
.gallery-foot::before,
.gallery-foot::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 34%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.gallery-foot::before { left: 0; }
.gallery-foot::after  { right: 0; }

/* ═══════════════════════════════════════════════════════════════════
   LIGHTBOX (galería)
   ═══════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.92); cursor: pointer; z-index: 0;
}
.lightbox-img-wrap {
  position: relative; z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  display: flex; align-items: center;
}
.lightbox-img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: opacity 200ms ease;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 44px; height: 44px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox-close:hover { background: var(--accent-2); transform: scale(1.1); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 48px; height: 48px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox-arrow:hover { background: var(--accent-2); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN: CTA BAND
   ═══════════════════════════════════════════════════════════════════ */
.section-cta {
  background: var(--cta-grad);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5; pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.cta-grid h2 {
  font-family: var(--font-headings);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -.3px;
  color: #fff;
}
.cta-grid p {
  color: #e7d8df;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 440px;
}

.cta-right { display: flex; justify-content: flex-end; }
.cta-right .btn-light {
  padding: 18px 30px;
  font-size: 14.5px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-cta);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: #d8d8dd;
}

/* Top: logo+contacto (izq) | resumen (der) */
.footer-top {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;            /* ← logo y primer check arrancan al mismo nivel */
}

/* Bloque izquierdo: logo + tagline + contact */
.footer-brand { display: flex; flex-direction: column; gap: 0; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,.45);
  margin: 0 0 28px;
  line-height: 1.4;
}
.footer-brand .contact-list { margin-top: 0; }

/* Columna derecha: arranca al mismo nivel que el logo izquierdo */
.footer-top > div:last-child { padding-top: 0; }

.foot-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Lista de contacto */
.contact-list { display: flex; flex-direction: column; gap: 14px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.contact-row .cicon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-row .cicon svg { width: 16px; height: 16px; }
.contact-row strong {
  display: block;
  font-size: 12px;
  color: #9c9ca6;
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-row a { transition: color var(--t-fast); }
.contact-row a:hover { color: #fff; }

/* Resumen */
.resumen-list { display: flex; flex-direction: column; gap: 14px; }

.resumen-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #d8d8dd;
}
.resumen-row .ricon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  flex: 0 0 22px;
}
.resumen-row .ricon svg { width: 12px; height: 12px; }

/* Middle: logo + nav — eliminado del diseño, clase conservada por si se reactiva */
.footer-mid { display: none; }

.footer-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-nav-link {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: #bdbdc7;
  padding: 4px 8px;
  border-radius: 6px;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.footer-nav-link::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--t-med);
}
.footer-nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.footer-nav-link.active { color: #fff; }
.footer-nav-link.active::after { transform: scaleX(1); }

/* Bottom */
.footer-bot {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8a8a96;
}
.footer-credit-link {
  color: rgba(255,255,255,.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.footer-credit-link:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════
   FLOATING WHATSAPP FAB
   ═══════════════════════════════════════════════════════════════════ */
.fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-fab);
  z-index: 900;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 32px rgba(37,211,102,.5);
}
.fab svg { width: 26px; height: 26px; }

/* ═══════════════════════════════════════════════════════════════════
   REVEAL ON SCROLL (IntersectionObserver)
   ═══════════════════════════════════════════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal-up    { transform: translateY(28px); }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

/* Delay stagger via CSS custom property */
.stagger { transition-delay: var(--d, 0ms); }


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — 4 breakpoints documentados
   ═══════════════════════════════════════════════════════════════════════

   1. Desktop grande  → ≥ 1240px (estilos base)
   2. Notebook/Tablet → ≤ 1080px (colapso principal del handoff)
   3. Tablet          → ≤ 768px
   4. Móvil estándar  → ≤ 480px
   5. Móvil angosto   → ≤ 360px  (Galaxy Z Fold cerrado)

   ══════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   2. NOTEBOOK / TABLET LANDSCAPE  ≤ 1080px
   (breakpoint principal del handoff)
   ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  :root { --section-py: 72px; }       /* ← padding secciones notebook */

  /* Header */
  .header-nav, .site-header .btn-primary { display: none; }   /* ← nav desktop oculto */
  .hamburger { display: flex; }                                /* ← hamburguesa visible */

  /* Hero */
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%); }  /* ← clip reducido */
  .hero h1 { font-size: 36px; }                               /* ← H1 notebook */
  .hero-features { grid-template-columns: repeat(2, 1fr); }   /* ← features 2 col */
  .hero-bg-right img { opacity: .38; }                        /* ← foto más sutil en notebook */

  /* Iconos empresa en notebook */
  .fcard .fcard-ic { width: 76px; height: 76px; }             /* ← fcard icon ≤1080px */
  .fcard .fcard-ic img { width: 48px; height: 48px; }

  /* Empresa */
  .empresa-grid { grid-template-columns: 1fr; gap: 40px; }    /* ← 1 columna */
  .feature-cards { grid-template-columns: repeat(3, 1fr); }   /* ← mantiene 3 en fila */

  /* Servicios */
  .service-grid { grid-template-columns: repeat(2, 1fr); }    /* ← 2 columnas */
  .scard-head p { min-height: auto; }
  .scard-img { height: 260px; }                               /* ← scard-img ≤1080px (2 cols) */

  /* Split */
  .split-grid { grid-template-columns: 1fr; }                 /* ← 1 columna */
  .split-right { min-height: 300px; order: -1; }

  /* Slider: 4 fotos visibles en notebook (el JS lo maneja) */
  .gallery-foot { padding: 0 20%; }

  /* CTA */
  .cta-grid { grid-template-columns: 1fr; gap: 24px; }       /* ← 1 columna */
  .cta-right { justify-content: flex-start; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 36px; }     /* ← 1 columna */
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ──────────────────────────────────────────────
   3. TABLET   ≤ 768px
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;             /* ← padding tablet */
    --header-h: 64px;               /* ← altura header tablet */
    --container-pad: 24px;          /* ← padding lateral tablet */
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 110px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%); /* ← clip tablet */
  }
  .hero h1 { font-size: 32px; }    /* ← H1 tablet */
  .hero-ctas { gap: 10px; }
  /* Hero bg — en tablet/mobile se muestra centrada, sin máscara diagonal */
  .hero-bg-right img {
    opacity: .22;                  /* ← más sutil: el texto necesita legibilidad total */
    object-position: center center;
    -webkit-mask-image: none;      /* ← sin diagonal: imagen centrada de fondo */
            mask-image: none;
  }

  /* Iconos tablet */
  .hero-feat .feat-ic { width: 44px; height: 44px; flex: 0 0 44px; } /* ← hero icons tablet */
  .hero-feat .feat-ic img { width: 26px; height: 26px; }
  .fcard .fcard-ic { width: 72px; height: 72px; }             /* ← fcard icons ≤768px */
  .fcard .fcard-ic img { width: 46px; height: 46px; }
  .scard-ic { width: 72px; height: 56px; }                    /* ← scard icons tablet */
  .check .check-ic { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 14px; } /* ← check icons tablet */
  .check .check-ic img { width: 36px; height: 36px; }

  /* Empresa: cards en 1 col */
  .feature-cards { grid-template-columns: 1fr; }              /* ← feature cards 1 col */

  /* Servicios: 1 col */
  .service-grid { grid-template-columns: 1fr; }               /* ← servicios 1 col tablet */
  .scard-img { height: 340px; }                               /* ← 1 col tablet: camión visible completo */

  /* Slider: flecha arrows achicadas */
  .flota-arrow { width: 40px; height: 40px; }
  .flota-arrow svg { width: 17px; height: 17px; }
  .gallery-foot { padding: 0 15%; }
}

/* ──────────────────────────────────────────────
   4. MÓVIL ESTÁNDAR   ≤ 480px
   ────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --section-py: 48px;             /* ← padding mobile */
    --container-pad: 18px;
  }

  .hero {
    padding-bottom: 90px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); /* ← clip mobile */
  }
  .hero h1 { font-size: 28px; }    /* ← H1 mobile */
  .hero-lead { font-size: 14px; }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn { width: 100%; justify-content: center; border-radius: var(--radius); }
  .hero-features {
    grid-template-columns: repeat(2, 1fr); /* ← features 2 col mobile */
    max-width: 100%;
  }

  /* Iconos mobile — mantener tamaño razonable */
  .hero-feat .feat-ic { width: 42px; height: 42px; flex: 0 0 42px; } /* ← hero icons mobile */
  .fcard .fcard-ic { width: 68px; height: 68px; }             /* ← fcard icons ≤480px */
  .fcard .fcard-ic img { width: 44px; height: 44px; }
  .scard-ic { width: 68px; height: 52px; }                    /* ← scard icons mobile */
  .check .check-ic { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 13px; } /* ← check icons mobile */
  .check .check-ic img { width: 32px; height: 32px; }

  /* Empresa: 1 col en mobile (uno debajo del otro) */
  .feature-cards { grid-template-columns: 1fr; }              /* ← 1 col mobile */

  /* Servicios: 1 col */
  .service-grid { grid-template-columns: 1fr; }
  .scard-img { height: 300px; }                               /* ← 1 col mobile: camión visible completo */

  /* Slider mobile */
  .flota-arrow { width: 38px; height: 38px; }
  .gallery-foot { padding: 0; }
  .gallery-foot::before, .gallery-foot::after { display: none; }

  /* CTA btn full */
  .cta-right .btn-light { width: 100%; justify-content: center; }

  /* FAB */
  .fab { width: 46px; height: 46px; right: 16px; bottom: 16px; } /* ← FAB mobile */
}

/* ──────────────────────────────────────────────
   5. MÓVIL ANGOSTO   ≤ 360px  (Galaxy Z Fold cerrado)
   ────────────────────────────────────────────── */
@media (max-width: 360px) {
  :root {
    --section-py: 40px;             /* ← padding Z Fold */
    --container-pad: 14px;          /* ← padding lateral Z Fold */
  }

  .hero { clip-path: none; }       /* ← sin clip Z Fold (evita errores) */
  .hero h1 { font-size: 24px; }    /* ← H1 Z Fold */

  .hero-features { grid-template-columns: 1fr 1fr; } /* ← 2 col Z Fold */
  .feature-cards { grid-template-columns: 1fr; }     /* ← 1 col Z Fold */

  /* Iconos Z Fold — reducción mínima, se mantienen grandes */
  .hero-feat .feat-ic { width: 40px; height: 40px; flex: 0 0 40px; } /* ← Z Fold hero icons */
  .fcard .fcard-ic { width: 64px; height: 64px; }             /* ← Z Fold fcard icons */
  .fcard .fcard-ic img { width: 40px; height: 40px; }
  .scard-ic { width: 60px; height: 46px; }                    /* ← Z Fold scard icons */
  .check .check-ic { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px; } /* ← Z Fold check icons */
  .check .check-ic img { width: 28px; height: 28px; }

  .btn { font-size: 13px; padding: 11px 18px; }

  /* Mobile menu angosto */
  .mobile-menu { width: 92vw; }    /* ← ancho sidebar Z Fold */

  .gallery-foot { padding: 0; }

  /* Flechas slider Z Fold */
  .flota-arrow { width: 34px; height: 34px; }
  .flota-arrow svg { width: 15px; height: 15px; }

  .fab { width: 42px; height: 42px; right: 12px; bottom: 12px; } /* ← FAB Z Fold */
}

/* ──────────────────────────────────────────────
   PREFER REDUCED MOTION
   ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-up, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
