/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --green: #3a9634;          /* verde del logotipo */
  --green-400: #5cb854;
  --green-300: #9fe08f;
  --green-600: #2f7d2b;
  --green-700: #22611f;
  --green-900: #0c2611;
  --green-950: #071a0b;
  --green-50: #f1f8ef;
  --green-100: #e2f0de;
  --white: #ffffff;
  --ink: #122016;
  --muted: #56655b;
  --line: #dbe6d8;
  --amber: #b25e00;
  --amber-bg: #fff4e0;
  --surface: #ffffff;                  /* tarjetas y secciones */
  --page: #ffffff;                     /* fondo general */
  --logo-ink: #000000;                 /* texto del logotipo */
  --field: #fbfdfa;                    /* campos de formulario */
  --header-bg: rgba(255,255,255,.86);
  --bar-bg: rgba(255,255,255,.97);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --logo: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(12,38,17,.06), 0 10px 30px rgba(12,38,17,.08);
  --shadow-lg: 0 2px 4px rgba(12,38,17,.06), 0 30px 60px rgba(12,38,17,.16);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--green); color: var(--white); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.ph { display: inline-block; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .06em; line-height: 1.2; padding: .25em .6em; border-radius: 6px; vertical-align: middle; color: var(--amber); background: var(--amber-bg); border: 1.5px dashed var(--amber); }

/* Logotipo en SVG (mismo trazado en cabecera, intro, camión y pie) */
.lg-word { font-family: var(--logo); font-weight: 700; font-size: 122px; fill: var(--logo-ink); }
.lg-tag { font-family: var(--logo); font-style: italic; font-size: 52px; fill: var(--logo-ink); }
.lg-bar { fill: var(--green); }

/* Imágenes generadas con IA — fondo de marca mientras llegan */
.ai-img { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 80% 10%, #5cb854 0, #2f7d2b 35%, #0c2611 100%); }
.ai-img img, .ai-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-img.is-pending img { opacity: 0; }
.ai-img.is-pending::after {
  content: "Imagen no disponible"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75);
  padding: .55rem .9rem; border: 1.5px dashed rgba(255,255,255,.45); border-radius: 999px; white-space: nowrap;
}
.ai-img.is-pending::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-60deg, transparent 0 46px, rgba(255,255,255,.05) 46px 92px);
  animation: stripes 3s linear infinite;
}
@keyframes stripes { to { background-position: 106px 0; } }
.hero-media.is-pending::after, .hero-media.is-pending::before { display: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); margin-bottom: .9rem; display: flex; align-items: center; gap: .65rem; }
.eyebrow::before { content: ""; width: 30px; height: 6px; background: var(--green); clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.eyebrow-light { color: #cdeac6; }
.eyebrow-light::before { background: var(--green-300); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 em { font-style: italic; font-weight: 500; color: var(--green); }
.section-dark h2 em, .section-green h2 em { color: var(--green-300); }
h3 { font-size: 1.3rem; font-weight: 700; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-top: 1rem; }
.lead-light { color: rgba(255,255,255,.78); }
.section-lead a, .faq a { color: var(--green-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-btn { color: var(--green-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --bg: var(--green); --fg: var(--white);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  background: var(--bg); color: var(--fg); border: 2px solid transparent; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .2s, color .2s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn:hover::before { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { box-shadow: 0 8px 22px rgba(58,150,52,.38); }
.btn-primary:hover { --bg: var(--green-600); box-shadow: 0 12px 30px rgba(58,150,52,.45); }
.btn-light { --bg: var(--white); --fg: var(--green-700); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn-ghost-light { --bg: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
@supports (backdrop-filter: blur(6px)) { .btn-ghost-light { backdrop-filter: blur(8px); } }
.btn-ghost-light:hover { --bg: rgba(255,255,255,.18); }
.btn-ghost-light svg, .btn-ghost-dark svg { transform: none !important; }
.btn-ghost-dark { --bg: var(--white); --fg: var(--green-700); border-color: var(--green); }
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.magnetic { will-change: transform; }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--green-600); font-size: .95rem; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 1.4rem; bottom: -2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.round-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--green); color: var(--green-700); background: var(--surface); transition: all .25s var(--ease-out); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--green); color: var(--white); transform: scale(1.06); }

/* ---------- Intro ---------- */
.splash { position: fixed; inset: 0; z-index: 5000; background: var(--surface); display: grid; place-content: center; justify-items: center; gap: 2rem; animation: splashSafety .01s 3.6s forwards; transition: clip-path .9s var(--ease-out), visibility 0s .9s; clip-path: inset(0 0 0 0); }
.splash.is-out { clip-path: inset(0 0 100% 0); visibility: hidden; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
.splash-logo { width: min(560px, 82vw); overflow: visible; }
.splash-logo .lg-word { clip-path: inset(0 100% 0 0); animation: wipeIn .9s .15s var(--ease-out) forwards; }
.splash-logo .lg-bar { transform: translateX(-110%); animation: barIn .8s .45s var(--ease-out) forwards; }
.splash-logo .lg-tag { opacity: 0; animation: fadeUp .7s .85s var(--ease-out) forwards; }
@keyframes wipeIn { to { clip-path: inset(0 0 0 0); } }
@keyframes barIn { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.splash-road { width: min(260px, 60vw); height: 4px; background: var(--green-100); border-radius: 4px; overflow: hidden; }
.splash-road span { display: block; height: 100%; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; animation: load 1.4s .2s var(--ease-out) forwards; }
@keyframes load { to { transform: scaleX(1); } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; height: var(--header-h); background: var(--bar-bg); transition: box-shadow .3s, background .3s; }
@supports (backdrop-filter: blur(10px)) { .site-header { background: var(--header-bg); backdrop-filter: blur(16px) saturate(170%); } }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(12,38,17,.1); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.scroll-road { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: transparent; pointer-events: none; }
.scroll-road-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-400)); transform-origin: left; transform: scaleX(0); }
.scroll-road-truck { position: absolute; bottom: 1px; left: 0; width: 34px; height: 13px; transform: translateX(-40px); opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled .scroll-road-truck { opacity: 1; }

.brand { display: block; }
.brand-logo { height: 46px; width: auto; overflow: visible; }
.brand-logo .lg-bar { transition: transform .5s var(--ease-out); transform-origin: right; }
.brand-logo .lg-shine { fill: rgba(255,255,255,.55); transform: skewX(-25deg) translateX(-200px); opacity: 0; }
.brand-logo .lg-truck { opacity: 0; transform: translateX(0); transition: transform 1.3s var(--ease-out), opacity .3s; }
.brand:hover .lg-truck, .brand:focus-visible .lg-truck { opacity: 1; transform: translateX(880px); }
.brand:hover .lg-shine { animation: shine .9s var(--ease-out); }
@keyframes shine { 0% { opacity: 1; transform: skewX(-25deg) translateX(-200px); } 100% { opacity: 1; transform: skewX(-25deg) translateX(1200px); } }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone { display: none; align-items: center; gap: .4rem; font-weight: 700; color: var(--green-700); font-size: .95rem; }
.header-phone svg { width: 18px; height: 18px; }
.header-actions .btn-sm { display: none; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
  display: flex; flex-direction: column; padding: .5rem 16px 6rem; gap: .1rem;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .35s var(--ease-out), opacity .25s, visibility .25s;
  max-height: calc(100svh - var(--header-h)); overflow-y: auto;
}
.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.main-nav a:not(.btn) { padding: .85rem .4rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.main-nav .nav-cta-mobile { margin-top: 1rem; }

/* =============================================================
   6. Sections
   ============================================================= */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section-tint { background: var(--green-50); }
.section-dark { background: var(--green-950); color: var(--white); overflow: clip; }
.section-dark::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(58,150,52,.35), transparent); pointer-events: none; }
.section-green { background: linear-gradient(135deg, var(--green-700), var(--green-600) 55%, var(--green)); color: var(--white); overflow: clip; }
.section-green::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 0 60%, rgba(255,255,255,.06) 60% 72%, transparent 72%); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.4rem); max-width: 780px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 100%; align-items: center; color: var(--white); overflow: clip; isolation: isolate; background: var(--green-950); }
.hero-media { position: absolute; inset: -4%; z-index: -3; }
.hero-media img { animation: heroZoom 14s ease-out both; object-position: 50% 55%; }

/* Tarjeta de vídeo flotante del hero (escritorio) */
.hero-visual { display: none; }
.hv-card { position: relative; width: 300px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 6px solid rgba(255,255,255,.92); box-shadow: 0 40px 80px rgba(0,0,0,.45); transform: rotate(3deg); transition: transform .6s var(--ease-out); background: var(--green-900); }
.hv-card:hover { transform: rotate(0deg) scale(1.02); }
.hv-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-card figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 12px; background: rgba(7,26,11,.72); font-size: .82rem; font-weight: 700; }
button.hv-card { display: block; padding: 0; cursor: pointer; color: var(--white); text-align: left; }
.hv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,11,.55) 0%, transparent 35%, transparent 55%, rgba(7,26,11,.85) 100%); pointer-events: none; }
.hv-title { position: absolute; left: 16px; right: 16px; top: 18px; z-index: 2; font-family: var(--display); font-weight: 900; font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hv-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: grid; place-items: center; background: var(--green); box-shadow: 0 0 0 10px rgba(58,150,52,.3), 0 14px 30px rgba(0,0,0,.4); transition: transform .4s var(--ease-bounce); }
.hv-play svg { width: 32px; height: 32px; margin-left: 4px; }
.hv-play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--green-300); animation: ring 2.2s infinite; }
.hv-card:hover .hv-play { transform: scale(1.12); }
.hv-cta { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem .8rem; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--green-700); font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hero-video-mobile svg { width: 18px; height: 18px; }
@media (min-width: 960px) { .hero-video-mobile { display: none; } }

/* Visor del vídeo */
.video-modal { margin: auto; border: 0; padding: 0; background: transparent; color: var(--white); max-width: min(420px, 92vw); width: 100%; overflow: visible; }
.video-modal::backdrop { background: rgba(7,26,11,.88); backdrop-filter: blur(6px); }
.video-modal[open] { animation: chatIn .45s var(--ease-out); }
.video-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-300); text-align: center; }
.video-title { font-family: var(--display); line-height: 1.06; letter-spacing: -0.025em; font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 900; text-transform: uppercase; text-align: center; margin: .3rem 0 1rem; color: var(--white); }
.hv-poster { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 12s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translateY(-3%); } }
.video-frame { position: relative; }
.video-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; border-radius: 20px; background: rgba(7,26,11,.55); color: var(--white); font-weight: 700; pointer-events: none; }
.video-loading[hidden] { display: none; }
.video-loading span { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: var(--green-300); animation: spin .8s linear infinite; }
.video-modal video { width: 100%; max-height: 72vh; border-radius: 20px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.video-close { position: absolute; top: -6px; right: -6px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--green-700); box-shadow: 0 8px 20px rgba(0,0,0,.35); z-index: 2; }
.video-close svg { width: 20px; height: 20px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; animation: pulseDot 1.4s infinite; }
@keyframes pulseDot { 50% { opacity: .3; } }
.hv-badge { position: absolute; left: -46px; top: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%; background: var(--surface); color: var(--green-700); text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,.3); animation: float 5s ease-in-out infinite; }
.hv-badge strong { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; display: block; }
.hv-badge { background: #fff; color: #2c7a27; }
.hv-badge img { width: 70px; height: auto; display: block; }
.hv-badge img + span { margin-top: .25rem; font-size: .58rem; }
.hv-badge span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: block; margin-top: .3rem; padding: 0 .6rem; line-height: 1.2; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-4deg); } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(7,26,11,.55) 0%, rgba(7,26,11,.2) 40%, rgba(7,26,11,.9) 100%), linear-gradient(90deg, rgba(7,26,11,.9), rgba(7,26,11,.1) 75%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 20% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 20% 40%, #000, transparent); }
.hero-content { padding-block: 6rem 5rem; }
.hero-title { font-family: var(--display); font-size: clamp(2.5rem, 7vw, 5.6rem); font-weight: 900; line-height: 1; letter-spacing: -0.025em; max-width: 15ch; }
/* El H1 SEO conserva el aspecto de la antigua etiqueta superior */
h1.hero-h1 { font-family: var(--sans); font-size: .78rem; font-weight: 700; line-height: 1.4; letter-spacing: .16em; text-wrap: wrap; }
.hero-line { display: block; }
.hero-rotator { position: relative; color: var(--green-300); height: 1.08em; overflow: hidden; font-size: .72em; }
@media (min-width: 720px) { .hero-rotator { font-size: 1em; } }
.hero-rotator span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(105%); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s; font-style: italic; font-weight: 800; }
.hero-rotator span.is-on { transform: none; opacity: 1; }
.hero-rotator span.is-off { transform: translateY(-105%); opacity: 0; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 54ch; margin-top: 1.5rem; color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-in { opacity: 0; transform: translateY(26px); animation: heroIn 1s var(--ease-out) forwards; animation-delay: calc(var(--d, 0s) + .9s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-network { margin-top: 3rem; max-width: 560px; padding: 1.2rem 1.3rem 1rem; border-radius: 18px; background: rgba(7,26,11,.55); border: 1px solid rgba(255,255,255,.16); }
@supports (backdrop-filter: blur(10px)) { .hero-network { background: rgba(255,255,255,.08); backdrop-filter: blur(14px); } }
.net-track { position: relative; height: 62px; margin: 0 14px; }
.net-line { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 8px, transparent 8px 14px); animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 14px 0; } }
.net-dot { position: absolute; left: var(--x); top: 24px; transform: translateX(-50%); padding-top: 18px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; color: rgba(255,255,255,.85); }
.net-dot::before { content: ""; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 4px rgba(159,224,143,.25); }
.net-truck { position: absolute; top: 4px; left: 0; width: 46px; height: 17px; animation: netDrive 7s var(--ease-out) infinite; }
@keyframes netDrive { 0% { left: -10px; } 85%, 100% { left: calc(100% - 36px); } }
.net-badges { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .9rem; font-size: .85rem; font-weight: 600; justify-content: space-between; }
.net-badges span { display: inline-flex; align-items: center; gap: .4rem; }
.net-badges svg { width: 18px; height: 18px; color: var(--green-300); }
.net-badges .gmp-mini { width: 36px; height: auto; padding: 3px; border-radius: 8px; background: #fff; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; transform: translateX(-50%); display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; background: var(--surface); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Cinta ---------- */
.marquee { background: var(--green); color: var(--white); overflow: hidden; padding: 1rem 0; transform: skewY(-1.2deg); margin-top: -1.2rem; position: relative; z-index: 3; box-shadow: 0 10px 30px rgba(58,150,52,.3); }
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.6rem); text-transform: uppercase; letter-spacing: .02em; }
.marquee i { width: 30px; height: 10px; background: var(--surface); clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cifras ---------- */
.stats-band { padding: 4.5rem 0 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { padding: 1.4rem 1rem; border-radius: var(--radius-lg); background: var(--green-50); text-align: center; border: 1px solid var(--green-100); transition: transform .4s var(--ease-out), box-shadow .4s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-num { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--green); line-height: 1; }
.stat-label { display: block; font-size: .86rem; color: var(--muted); margin-top: .5rem; line-height: 1.3; }

/* ---------- Servicios ---------- */
.svc { display: grid; gap: 1.5rem; }
.svc-list { display: none; }
.svc-stage { display: grid; gap: 1.3rem; }
.svc-panel { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.svc-img { aspect-ratio: 4 / 3; }
.svc-img img { transition: transform 1.2s var(--ease-out); }
.svc-panel:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 1.6rem; display: grid; gap: .7rem; position: relative; }
.svc-icon { position: absolute; right: 1.4rem; top: -32px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--green); color: var(--white); box-shadow: 0 10px 24px rgba(58,150,52,.4); }
.svc-icon svg { width: 36px; height: 36px; }
.svc-body p { color: var(--muted); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: .3rem; }

/* ---------- Almacén ---------- */
.split { display: grid; gap: 3rem; align-items: center; }
.split-text > .btn { margin-top: 2rem; }
.process { position: relative; margin-top: 2.4rem; display: grid; gap: .4rem; padding-left: 0; }
.process-line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; background: rgba(255,255,255,.12); border-radius: 3px; }
.process-line span { display: block; width: 100%; height: 100%; background: linear-gradient(var(--green-300), var(--green)); transform-origin: top; transform: scaleY(0); border-radius: 3px; }
.process-step { display: flex; gap: 1.1rem; padding: .9rem 0; position: relative; opacity: .45; transition: opacity .5s; }
.process-step.is-on { opacity: 1; }
.process-dot { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--green-950); color: var(--white); border: 2px solid rgba(255,255,255,.3); transition: all .5s var(--ease-bounce); position: relative; z-index: 1; }
.process-step.is-on .process-dot { background: var(--green); border-color: var(--green-300); transform: scale(1.1); box-shadow: 0 0 0 6px rgba(58,150,52,.25); }
.process-step strong { font-family: var(--display); font-size: 1.15rem; }
.process-step p { color: rgba(255,255,255,.7); font-size: .95rem; }
/* Vídeos del proceso del almacén (cambian con cada paso) */
.proc-media { position: relative; aspect-ratio: 9 / 14; max-width: 460px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45); background: var(--green-900); border: 1px solid rgba(255,255,255,.12); }
.proc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.proc-media video.is-on { opacity: 1; transform: none; }
.proc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,26,11,.75)); pointer-events: none; }
.proc-tag { position: absolute; left: 18px; bottom: 22px; z-index: 2; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--white); }
.proc-bars { position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.proc-bars i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); transition: background .4s; }
.proc-bars i.is-on { background: var(--green-300); }
.process-step { cursor: pointer; }

/* Foto del equipo en contacto */
.team-card { position: relative; margin-top: 2.2rem; max-width: 380px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 85%; transition: transform 1s var(--ease-out); }
.team-card:hover img { transform: scale(1.04); }
.team-card figcaption { position: absolute; left: 12px; right: 12px; top: 12px; padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.95); color: #122016; }
.team-card strong { display: block; font-family: var(--display); color: var(--green-700); }
/* Tarjeta de perfil del CEO en la esquina inferior de la foto */
.ceo-badge { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: .75rem; max-width: calc(100% - 24px); padding: .5rem 1rem .5rem .5rem; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 12px 30px rgba(0,0,0,.28); transition: transform .4s var(--ease-out); }
.team-card:hover .ceo-badge { transform: translateY(-3px); }
.quote-info .team-card .ceo-badge img, .team-card .ceo-badge img { position: static; inset: auto; flex: none; width: 60px; height: 60px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--green); box-shadow: 0 0 0 3px rgba(58,150,52,.2); transform: none; }
.ceo-badge strong { font-family: var(--display); font-size: .98rem; color: #122016; line-height: 1.2; }
.ceo-badge span { display: block; font-size: .8rem; color: var(--green-600); font-weight: 600; }
.team-card span { font-size: .88rem; color: var(--muted); }

/* ---------- Sectores ---------- */
.sectors-grid { display: grid; gap: 1.3rem; }
.sector-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; color: var(--white); box-shadow: var(--shadow-lg); transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .4s; }
.sector-img { position: absolute; inset: 0; }
.sector-img img { transition: transform 1.2s var(--ease-out); }
.sector-card:hover .sector-img img { transform: scale(1.08); }
.sector-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 25%, rgba(7,26,11,.92) 85%); }
.sector-card-light::before { background: linear-gradient(180deg, transparent 40%, rgba(7,26,11,.95) 60%); }
.sector-card-light .sector-img { background: #fff; }
.sector-card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 40%); opacity: 0; transition: opacity .3s; }
.sector-card:hover::after { opacity: 1; }
.sector-body { position: relative; z-index: 3; padding: 1.8rem; display: grid; gap: .6rem; }
.sector-icon { width: 48px; height: 48px; color: var(--green-300); }
.sector-body p { color: rgba(255,255,255,.82); }
.sector-body .link-arrow { color: var(--green-300); }

/* ---------- Certificaciones ---------- */
.cert-wrap { display: grid; gap: 2.5rem; align-items: center; position: relative; }
.cert-seal-wrap { position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin-inline: auto; }
.cert-ring { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.cert-ring text { font-family: var(--display); font-weight: 800; font-size: 21px; fill: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }
.cert-core { position: absolute; inset: 22%; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 30px 60px rgba(0,0,0,.25); }
.cert-core span { font-family: var(--logo); font-weight: 700; font-size: 5.5rem; color: var(--green); line-height: 1; }
.cert-grid { display: grid; gap: 1.1rem; }
.flip { perspective: 1200px; text-align: left; min-height: 240px; color: inherit; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; min-height: 240px; transition: transform .8s var(--ease-out); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: .7rem; padding: 1.8rem; border-radius: var(--radius-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); }
.flip-front strong { font-family: var(--display); font-size: 1.5rem; }
.flip-front small { color: rgba(255,255,255,.7); font-size: .85rem; }
.flip-badge { align-self: flex-start; padding: .5rem .9rem; border-radius: 10px; background: var(--surface); color: var(--green-700); font-family: var(--display); font-weight: 900; font-size: 1.2rem; }
.flip-badge-logo { padding: .55rem .7rem; background: #fff; border-radius: 14px; line-height: 0; }
.flip-badge-logo img { width: 98px; height: auto; display: block; }
.flip-back { background: var(--surface); color: var(--ink); transform: rotateY(180deg); }
.flip-back strong { font-family: var(--display); font-size: 1.2rem; color: var(--green-700); }
.flip-back .ph { align-self: flex-start; }
.flip:hover .flip-front { background: rgba(255,255,255,.16); }

/* ---------- Rutas ---------- */
.route-check { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 1.3rem; margin-bottom: 1.6rem; }
.route-check label { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem; }
.route-check label svg { width: 24px; height: 24px; color: var(--green); }
.route-check-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.route-check-row input { flex: 1 1 220px; font: inherit; padding: .8rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.route-check-row input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(58,150,52,.15); }
.route-check-out { margin-top: .8rem; font-weight: 600; min-height: 1.4em; }
.route-check-out.ok { color: var(--green-600); }
.route-check-out.no { color: var(--amber); }
.route-check-out a { text-decoration: underline; }

.routes { display: grid; gap: 1.2rem; }
.route-tabs { display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; padding: .2rem .1rem .7rem; scrollbar-width: thin; }
.route-tabs button { flex: none; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem; border: 1.5px solid var(--line); background: var(--surface); transition: all .25s var(--ease-out); }
.route-tabs button:hover { border-color: var(--green); color: var(--green-700); }
.route-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 6px 16px rgba(58,150,52,.3); }
.routes-body { display: grid; gap: 1.2rem; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.route-map { height: 440px; width: 100%; position: relative; z-index: 0; background: #e7ede5; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.route-map.leaflet-container .map-loading { display: none; }
.route-map .leaflet-tile-pane { filter: saturate(.5) brightness(1.04); }
.route-map .route-line { stroke-dasharray: 10 10; animation: routeDash 1.2s linear infinite; }
@keyframes routeDash { to { stroke-dashoffset: -20; } }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .8rem 1rem; font-size: .85rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.lg-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: -.6rem; vertical-align: middle; }
.lg-dot.lg-base { background: var(--green-900); box-shadow: 0 0 0 3px var(--green-300); }
.lg-dot.lg-stop { background: var(--surface); border: 3px solid var(--green); }
.lg-dot.lg-line { width: 22px; height: 4px; border-radius: 2px; background: var(--green); }

.route-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); align-self: start; }
.route-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.route-panel h3 { margin-top: .3rem; font-size: 1.4rem; }
.route-stops { margin: 1.2rem 0 1.4rem; counter-reset: stop; display: grid; }
.route-stops li { counter-increment: stop; position: relative; padding: .38rem 0 .38rem 2.3rem; font-weight: 600; font-size: .95rem; cursor: pointer; border-radius: 8px; transition: color .2s, background .2s; }
.route-stops li:hover { color: var(--green-700); }
.route-stops li::before { content: counter(stop); position: absolute; left: 0; top: .3rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: var(--green-50); color: var(--green-700); border: 2px solid var(--green); z-index: 1; transition: all .3s var(--ease-bounce); }
.route-stops li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 1.5rem; bottom: -.5rem; width: 2px; background: var(--green-100); }
.route-stops small { font-weight: 500; color: var(--muted); }
.route-stops li.is-active::before, .route-stops li:hover::before { background: var(--green); color: var(--white); transform: scale(1.15); }

.stop-marker { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--green); box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s var(--ease-bounce); }
.stop-marker:hover { transform: scale(1.4); }
.base-marker { width: 26px; height: 26px; border-radius: 50%; background: var(--green-900); border: 4px solid var(--green-300); box-shadow: 0 0 0 6px rgba(58,150,52,.25), 0 3px 8px rgba(0,0,0,.3); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(58,150,52,.35), 0 3px 8px rgba(0,0,0,.3); } 50% { box-shadow: 0 0 0 14px rgba(58,150,52,0), 0 3px 8px rgba(0,0,0,.3); } }
.truck-marker { width: 62px; height: 24px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.truck-marker svg { width: 100%; height: 100%; }
.leaflet-tooltip.stop-label { background: var(--green-900); color: var(--white); border: 0; font-weight: 700; font-family: var(--sans); font-size: .78rem; padding: .25rem .55rem; border-radius: 6px; box-shadow: none; }
.leaflet-tooltip.stop-label::before { display: none; }
.leaflet-popup-content { font-family: var(--sans); }

/* ---------- Mapa de destinos (flechas desde Vila-real) ---------- */
.routes-section .routes-body { display: grid; gap: 1.4rem; position: relative; }
.routes-section .map-wrap { position: relative; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px rgba(0,0,0,.45); background: #0a2210; }
.routes-section .route-map { height: 480px; background: #0a2210; }
.routes-section .route-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.85) contrast(1.15); opacity: .5; mix-blend-mode: luminosity; }
.routes-section .leaflet-control-attribution { background: rgba(7,26,11,.7); color: rgba(255,255,255,.6); }
.routes-section .leaflet-control-attribution a { color: var(--green-300); }
.map-hint { position: absolute; left: 50%; bottom: 16px; z-index: 500; transform: translateX(-50%); padding: .55rem 1rem; border-radius: 999px; background: rgba(7,26,11,.85); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
.map-hint strong { color: var(--green-300); }
.map-hint span { color: var(--green-300); }

.dest-line { transition: stroke .3s; animation: destFlow 1.4s linear infinite; }
@keyframes destFlow { to { stroke-dashoffset: -28; } }
.dest-hit { cursor: pointer; }
.dest-trace { filter: drop-shadow(0 0 6px rgba(92,184,84,.9)); }
.arrow-head { position: relative; width: 22px; height: 22px; pointer-events: none; }
.arrow-head span { position: absolute; left: -3px; top: 4px; width: 14px; height: 14px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 14px 7px; transition: background .3s; }
.arrow-head.is-on span { background: var(--green-300); }
.dest-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.dest-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); transition: all .35s var(--ease-bounce); }
.dest-dot.is-on::before { background: var(--green-400); box-shadow: 0 0 0 8px rgba(92,184,84,.3); transform: scale(1.25); }
.leaflet-tooltip.dest-label { background: rgba(7,26,11,.85); color: #fff; border: 1px solid rgba(255,255,255,.25); font: 700 .78rem/1 var(--sans); padding: .35rem .6rem; border-radius: 8px; box-shadow: none; transition: background .3s, color .3s, transform .3s; }
.leaflet-tooltip.dest-label::before { display: none; }
.leaflet-tooltip.dest-label.is-on { background: var(--green); border-color: var(--green-300); }
.leaflet-tooltip.base-label { background: var(--surface); color: var(--green-700); }
.map-truck { width: 58px; height: 22px; transform-origin: 50% 64%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.map-truck svg { width: 100%; height: 100%; }

.dest-panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: 1rem; align-self: start; }
.dest-panel .route-kicker { color: var(--green-300); }
.dest-panel h3 { color: var(--white); font-size: 1.35rem; margin-top: -.6rem; }
.dest-list { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.dest-list button { width: 100%; display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); color: var(--white); font-weight: 600; font-size: .92rem; text-align: left; transition: all .3s var(--ease-out); }
.dest-list button svg { width: 16px; height: 16px; margin-left: auto; opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease-out); color: var(--green-300); }
.dest-code { font-size: .7rem; font-weight: 800; padding: .2rem .35rem; border-radius: 6px; background: rgba(255,255,255,.12); letter-spacing: .04em; }
.dest-list button:hover, .dest-list button.is-active { background: var(--green); border-color: var(--green-300); }
.dest-list button.is-active svg, .dest-list button:hover svg { opacity: 1; transform: none; color: var(--white); }
.dest-panel .route-check { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); padding: 1rem; margin: 0; }
.dest-panel .route-check label { color: var(--white); font-size: 1rem; }
.dest-panel .route-check-row input { padding: .6rem .9rem; min-width: 0; }
.dest-panel .route-check-out { color: rgba(255,255,255,.85); font-size: .9rem; }
.dest-panel .route-check-out.ok { color: var(--green-300); }
.dest-panel .route-check-out.no { color: #ffd08a; }

/* ---------- Flota ---------- */
.fleet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.carousel-nav { display: flex; gap: .6rem; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.carousel { display: flex; gap: 1.2rem; overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; padding: .5rem max(16px, calc((100% - 1240px) / 2)) 1.5rem; scrollbar-width: none; cursor: grab; }
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-drag { cursor: grabbing; scroll-snap-type: none; }
.car-item { flex: 0 0 min(72vw, 360px); aspect-ratio: 3 / 4; border-radius: var(--radius-lg); scroll-snap-align: start; box-shadow: var(--shadow-lg); user-select: none; }
.car-item img { pointer-events: none; transition: transform 1s var(--ease-out); }
.car-item:hover img { transform: scale(1.05); }
.car-item figcaption { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: rgba(255,255,255,.95); padding: .45rem .9rem; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--green-700); }
.fleet-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1.4rem; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fleet-specs > div { background: var(--surface); padding: 1.1rem 1.2rem; }
.fleet-specs dt { font-size: .82rem; color: var(--muted); }
.fleet-specs dd { margin-top: .3rem; font-family: var(--display); font-weight: 800; }

/* ---------- Opiniones ---------- */
.reviews { overflow: hidden; }
.reviews-track { display: flex; gap: 1.2rem; transition: transform .7s var(--ease-out); }
.review { flex: 0 0 100%; position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1.1rem; border: 1px solid var(--line); }
.review.is-demo::before { content: "EJEMPLO"; position: absolute; top: 1rem; right: 1rem; font-size: .65rem; font-weight: 800; letter-spacing: .08em; color: var(--amber); background: var(--amber-bg); padding: .2rem .5rem; border-radius: 5px; }
.stars { color: var(--green); letter-spacing: .15em; font-size: 1.1rem; }
.review p { font-size: 1.12rem; flex: 1; font-family: var(--display); font-weight: 500; line-height: 1.45; }
.review footer { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--white); font-weight: 800; }
.review footer strong { display: block; font-family: var(--display); }
.review footer span { font-size: .88rem; color: var(--muted); }
.reviews-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .9rem; }
.contact-list .hours { display: block; font-size: 1.02rem; line-height: 1.45; }
.reviews-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.reviews-dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--line); transition: all .3s var(--ease-out); }
.reviews-dots button[aria-current="true"] { width: 32px; background: var(--green); }

/* ---------- Referencias / confianza ---------- */
.refs { background: linear-gradient(180deg, var(--page), var(--green-50)); }
.refs-sectors { display: grid; gap: 1.2rem; }
.ref-card { position: relative; overflow: hidden; padding: 2rem 1.7rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: .7rem; transition: transform .2s ease-out, box-shadow .4s, border-color .3s; }
.ref-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--green), var(--green-300)); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease-out); }
.ref-card:hover::before { transform: scaleX(1); }
.ref-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(58,150,52,.10), transparent 45%); opacity: 0; transition: opacity .3s; }
.ref-card:hover { border-color: var(--green-100); box-shadow: var(--shadow-lg); }
.ref-card:hover::after { opacity: 1; }
.ref-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.ref-icon svg { width: 34px; height: 34px; }
.ref-card p { color: var(--muted); }

/* Ranking de empresas */
.rank { margin-top: clamp(2rem, 5vw, 3rem); padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rank-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.rank-head .eyebrow { margin-bottom: .3rem; }
.rank-head h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
.rank-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--white); box-shadow: 0 10px 24px rgba(58,150,52,.35); }
.rank-icon svg { width: 30px; height: 30px; }
.rank-grid { display: grid; gap: .9rem; }
.rank-tile { padding: 1.3rem 1.2rem; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); display: grid; gap: .3rem; text-align: center; transition: transform .35s var(--ease-out), box-shadow .35s; }
.rank-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.rank-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
.rank-num { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.rank-num strong { display: block; font-weight: 900; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.05; color: var(--green); letter-spacing: -.02em; }
.rank-sub { font-size: .88rem; color: var(--muted); }
.rank-main { background: var(--green-900); border-color: var(--green-900); }
.rank-main .rank-label { color: var(--green-300); }
.rank-main .rank-num { color: rgba(255,255,255,.85); }
.rank-main .rank-num strong { color: var(--white); }
.rank-main .rank-sub { color: rgba(255,255,255,.7); }
.rank-note { margin-top: 1rem; font-size: .8rem; color: var(--muted); text-align: center; }
@media (min-width: 720px) { .rank-grid { grid-template-columns: 1.15fr 1fr 1fr; } }

.refs-quote { position: relative; margin: clamp(2.5rem, 6vw, 4rem) auto; max-width: 860px; text-align: center; padding: clamp(2rem, 5vw, 3rem) clamp(1.4rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--green-900); color: var(--white); overflow: hidden; }
.refs-quote::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(58,150,52,.45), transparent); pointer-events: none; }
.refs-quote-mark { width: 54px; height: 54px; color: var(--green-300); margin: 0 auto 1rem; }
.refs-quote blockquote { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.refs-quote-by { position: relative; margin-top: 1.1rem; color: var(--green-300); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; }

.refs-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillar { padding: 1.4rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: .45rem; transition: transform .35s var(--ease-out), box-shadow .35s; }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: var(--white); transition: transform .4s var(--ease-bounce); }
.pillar:hover .pillar-icon { transform: rotate(-8deg) scale(1.08); }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar strong { font-family: var(--display); font-size: 1.05rem; }
.pillar p { color: var(--muted); font-size: .92rem; }
.refs-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; text-align: center; }
.refs-cta p { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
@media (max-width: 539px) { .refs-pillars { grid-template-columns: 1fr; } }
@media (min-width: 720px) { .refs-sectors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .refs-pillars { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Banda CTA con camión ---------- */
.cta-road { position: relative; background: var(--green-950); color: var(--white); padding: clamp(4.5rem, 10vw, 7rem) 0 0; overflow: clip; text-align: center; }
.cta-road::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 0%, rgba(58,150,52,.45), transparent 70%); }
.cta-road-inner { position: relative; }
.cta-road h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 900; }
.cta-road p { margin: 1rem auto 0; max-width: 46ch; color: rgba(255,255,255,.8); font-size: 1.1rem; }
.cta-road-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.road { position: relative; height: 220px; margin-top: 3rem; }
.road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: #1b2620; border-top: 4px solid #2a372f; }
.road-lines { position: absolute; left: 0; right: 0; bottom: 32px; height: 6px; z-index: 1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 60px, transparent 60px 120px); animation: roadMove .8s linear infinite; }
@keyframes roadMove { to { background-position: -120px 0; } }
.big-truck { position: absolute; bottom: 40px; left: 0; width: min(560px, 90vw); height: auto; z-index: 2; transform: translateX(-100%); filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }
.big-truck .lg-word, .big-truck .lg-tag { fill: #000; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 1rem; }
.faq-list { display: grid; gap: .7rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow .3s, border-color .3s; }
.faq[open] { border-color: var(--green); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3.4rem 1.15rem 1.3rem; font-weight: 700; font-family: var(--display); font-size: 1.07rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); font-size: 1.3rem; font-weight: 600; transition: transform .4s var(--ease-out), background .3s, color .3s; }
.faq[open] summary::after { transform: rotate(135deg); background: var(--green); color: var(--white); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--muted); animation: faqIn .5s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Presupuesto (wizard) ---------- */
.quote { display: grid; gap: 2.5rem; position: relative; }
.quote-info h2 { color: var(--white); }
.quote-info > p { margin-top: 1rem; color: rgba(255,255,255,.85); max-width: 48ch; }
.contact-list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.14); color: var(--white); transition: transform .3s var(--ease-bounce), background .3s; }
.contact-list li:hover svg { transform: rotate(-8deg) scale(1.08); background: rgba(255,255,255,.25); }
.contact-list span:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #cdeac6; font-weight: 700; }
.contact-list a { font-weight: 700; font-size: 1.08rem; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wizard { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.3rem); box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.wiz-progress { margin-bottom: 1.6rem; }
.wiz-bar { position: relative; height: 6px; border-radius: 6px; background: var(--green-100); margin: 22px 10px 0; }
.wiz-bar > span { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--green); transition: width .7s var(--ease-out); }
.wiz-truck { position: absolute; top: -20px; left: 0; width: 46px; height: 17px; transform: translateX(-50%); transition: left .7s var(--ease-out); }
.wiz-labels { display: flex; justify-content: space-between; margin-top: .7rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.wiz-labels li.is-on { color: var(--green-700); }
.wiz-step { display: none; }
.wiz-step.is-on { display: block; animation: stepIn .55s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.no-js .wiz-step, html:not(.js) .wiz-step { display: block; }
.wiz-step legend { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-bottom: 1.1rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1.1rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem .6rem; border-radius: 16px; border: 1.5px solid var(--line); text-align: center; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .3s var(--ease-out); height: 100%; }
.choice svg { width: 36px; height: 36px; color: var(--green); transition: transform .4s var(--ease-bounce); }
.choice:hover span { border-color: var(--green); transform: translateY(-3px); }
.choice:hover svg { transform: scale(1.12) rotate(-4deg); }
.choice input:checked + span { background: var(--green); color: var(--white); border-color: var(--green); box-shadow: 0 10px 24px rgba(58,150,52,.35); }
.choice input:checked + span svg { color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--green-400); outline-offset: 2px; }
.form-grid { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; font-weight: 400; width: 100%; padding: .78rem .95rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(58,150,52,.15); background: var(--surface); }
.is-invalid { border-color: #c0392b !important; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.wiz-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; }
.wiz-nav [data-wiz-next], .wiz-nav [data-wiz-submit] { margin-left: auto; }
.form-status { min-height: 1.4em; margin-top: .8rem; font-weight: 600; font-size: .92rem; color: #c0392b; }
.wiz-done { text-align: center; padding: 1.5rem 0; display: grid; justify-items: center; gap: .8rem; }
.wiz-done[hidden] { display: none; }
.done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; animation: pop .6s var(--ease-bounce); }
.done-icon svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(0); } }
.wiz-done p { color: var(--muted); max-width: 40ch; }

/* ---------- Pie ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.75); padding: 4rem 0 6.5rem; }
.footer-logo { background: var(--surface); border-radius: 18px; padding: 1.1rem 1.4rem; display: inline-block; margin-bottom: 2.5rem; }
.footer-logo svg { height: 70px; width: auto; }
.footer-grid { display: grid; gap: 2rem; }
.site-footer h4, .site-footer .footer-title { color: var(--white); font-size: 1rem; margin-bottom: .9rem; }
.site-footer li { margin-bottom: .45rem; font-size: .95rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* ---------- Barra móvil ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: var(--bar-bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(12,38,17,.1); }
.mobile-bar .btn { padding: .75rem 1rem; }

/* ---------- Chat ---------- */
.chat-fab { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 1200; display: flex; align-items: center; gap: .6rem; padding: .45rem; border-radius: 999px; background: var(--green-900); color: var(--white); box-shadow: 0 14px 34px rgba(12,38,17,.35); transition: transform .35s var(--ease-bounce), padding .3s; }
.chat-fab:hover { transform: translateY(-3px) scale(1.03); }
.chat-fab-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green); position: relative; }
.chat-fab-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green-300); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-fab-icon svg { width: 24px; height: 24px; }
.chat-fab-label { display: none; font-weight: 700; font-size: .92rem; padding-right: .8rem; }
.chat-fab[aria-expanded="true"] { transform: scale(0); pointer-events: none; }

.chat { position: fixed; right: 12px; left: 12px; bottom: 12px; z-index: 1300; display: flex; flex-direction: column; height: min(640px, calc(100svh - 24px)); background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px rgba(12,38,17,.35); overflow: hidden; transform-origin: bottom right; animation: chatIn .45s var(--ease-out); }
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.92); } }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem; background: linear-gradient(135deg, var(--green-700), var(--green)); color: var(--white); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); color: var(--green); display: grid; place-items: center; font-family: var(--logo); font-weight: 700; font-size: 1.4rem; flex: none; }
.chat-head strong { display: block; font-family: var(--display); }
.chat-status { font-size: .78rem; opacity: .85; display: flex; align-items: center; gap: .35rem; }
.chat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 3px rgba(159,224,143,.3); }
.chat-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--green-50); }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; font-size: .94rem; line-height: 1.5; animation: msgIn .35s var(--ease-out); white-space: pre-line; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg-bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(12,38,17,.06); }
.msg-user { align-self: flex-end; background: var(--green); color: var(--white); border-bottom-right-radius: 4px; }
.msg a { color: var(--green-600); font-weight: 700; text-decoration: underline; }
.msg-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.msg-actions a, .msg-actions button { font-size: .8rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); text-decoration: none; }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 1rem; background: var(--surface); border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-chips button { flex: none; font-size: .82rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--green-100); color: var(--green-700); transition: all .2s; }
.chat-chips button:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.chat-form { display: flex; gap: .5rem; padding: .7rem 1rem; background: var(--surface); }
.chat-form input { flex: 1; font: inherit; padding: .75rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--green); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease-bounce); }
.chat-form button:hover { transform: scale(1.08) rotate(-10deg); }
.chat-form button svg { width: 20px; height: 20px; }
.chat-foot { font-size: .72rem; color: var(--muted); text-align: center; padding: 0 1rem .7rem; background: var(--surface); }

/* =============================================================
   7. Efectos de aparición
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .chat { left: auto; width: 400px; right: 20px; bottom: 20px; }
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid .stat:last-child { grid-column: auto; }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .fleet-specs { grid-template-columns: repeat(4, 1fr); }
  .route-map { height: 520px; }
  .header-phone { display: inline-flex; }
  .review { flex-basis: calc(50% - .6rem); }
  .scroll-cue { display: block; }
}
@media (min-width: 960px) {
  .svc { grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
  .js .svc-list { display: grid; gap: .2rem; position: sticky; top: calc(var(--header-h) + 2rem); }
  .svc-item { display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: .6rem; text-align: left; padding: 1.15rem 1rem; border-radius: 16px; position: relative; transition: background .35s, color .3s, padding .35s var(--ease-out); }
  .svc-item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 5px; border-radius: 4px; background: var(--green); transform: scaleY(0); transition: transform .4s var(--ease-out); }
  .svc-num { font-family: var(--display); font-weight: 800; color: var(--green); font-size: .95rem; }
  .svc-name { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -.02em; color: #9aa79e; transition: color .3s; }
  .svc-arrow { width: 24px; height: 24px; color: var(--green); opacity: 0; transform: translateX(-10px); transition: all .35s var(--ease-out); }
  .svc-item:hover .svc-name { color: var(--ink); }
  .svc-item.is-active { background: var(--green-50); padding-left: 1.4rem; }
  .svc-item.is-active::before { transform: scaleY(1); }
  .svc-item.is-active .svc-name { color: var(--ink); }
  .svc-item.is-active .svc-arrow { opacity: 1; transform: none; }
  .js .svc-stage { position: relative; display: block; min-height: 640px; }
  .js .svc-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(20px) scale(.98); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out), visibility 0s .55s; }
  .js .svc-panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .svc-panel .svc-img { aspect-ratio: auto; height: 420px; }
  .hero-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 3rem; align-items: center; padding-block: 3.5rem 4rem; }
  .hero-title { font-size: clamp(2.6rem, 5.2vw, 5rem); max-width: none; }
  .hero-network { margin-top: 2.2rem; }
  .hero-content > * { grid-column: 1; }
  .hero-visual { display: block; position: relative; grid-column: 2; grid-row: 1 / span 6; justify-self: end; }
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .routes-body { grid-template-columns: 1fr 320px; }
  .route-map { height: 620px; }
  .routes-section .routes-body { grid-template-columns: 1fr 340px; }
  .routes-section .route-map { height: 640px; }
  /* Presupuesto: las dos columnas terminan a la misma altura, sin huecos */
  .quote { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: stretch; }
  .quote-info { display: flex; flex-direction: column; }
  .quote-info h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
  .quote-info .contact-list { grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-top: 1.6rem; }
  .quote-info .team-card { flex: 1 1 auto; min-height: 230px; max-width: none; margin-top: 1.6rem; }
  .quote-info .team-card img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 78%; }
  .wizard { display: flex; flex-direction: column; }
  .wizard .wiz-nav { margin-top: auto; padding-top: 1.6rem; }
  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
  .cert-wrap { grid-template-columns: 340px 1fr; gap: 5rem; }
  .site-footer { padding-bottom: 2rem; }
  .mobile-bar { display: none; }
  .chat-fab { bottom: 24px; right: 24px; }
  .chat-fab-label { display: inline; }
  .review { flex-basis: calc(33.333% - .8rem); }
  .sector-card { min-height: 520px; }
}
@media (min-width: 1280px) {
  :root { --header-h: 82px; }
  .brand-logo { height: 52px; }
  .nav-toggle { display: none; }
  .header-actions .btn-sm { display: inline-flex; }
  .main-nav { position: static; flex-direction: row; gap: .1rem; padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; max-height: none; overflow: visible; }
  .main-nav a:not(.btn) { border: 0; padding: .5rem .7rem; font-size: .93rem; border-radius: 8px; position: relative; }
  .main-nav a:not(.btn):hover, .main-nav a.is-current { color: var(--green-600); }
  .main-nav a:not(.btn)::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 3px; background: var(--green); clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
  .main-nav a:not(.btn):hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
  .main-nav .nav-cta-mobile { display: none; }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .marquee-track { animation-duration: 90s; }
  .cert-ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mejoras de conversión y accesibilidad ---------- */
.svc-cta { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--green-50); border: 1px solid var(--green-100); display: grid; gap: 1rem; align-items: center; }
.svc-cta p { color: var(--muted); }
.svc-cta strong { color: var(--ink); font-family: var(--display); font-size: 1.1rem; display: block; margin-bottom: .2rem; }
.svc-cta-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (min-width: 960px) { .svc-cta { grid-template-columns: 1fr auto; padding: 1.6rem 2rem; } }
.site-footer li a { display: inline-block; padding: .25rem 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status.sending { color: var(--green-600); }

/* =============================================================
   Tema de noche (negro y verde)
   ============================================================= */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #111813;
  --page: #070b08;
  --ink: #e7f0e9;
  --muted: #a2b4a7;
  --line: #24332a;
  --green-50: #0f1a13;
  --green-100: #1e3326;
  --logo-ink: #ffffff;
  --field: #0c120e;
  --header-bg: rgba(7,11,8,.82);
  --bar-bg: rgba(7,11,8,.96);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 30px 60px rgba(0,0,0,.55);
}
:root[data-theme="dark"] .nav-toggle span:not(.sr-only) { background: var(--ink); }
:root[data-theme="dark"] .svc-name { color: #6f8075; }
:root[data-theme="dark"] .section-dark, :root[data-theme="dark"] .cta-road, :root[data-theme="dark"] .site-footer { background: #040705; }
:root[data-theme="dark"] .footer-logo { background: #ffffff; }
:root[data-theme="dark"] .footer-logo .lg-word, :root[data-theme="dark"] .footer-logo .lg-tag { fill: #000000; }
:root[data-theme="dark"] .rank-main { background: #1a3a20; border-color: #2c5a33; }
:root[data-theme="dark"] .refs-quote { background: #0f2414; }
:root[data-theme="dark"] .chat-form input { background: var(--field); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .marquee { box-shadow: none; }
:root[data-theme="dark"] .splash { background: #070b08; }
:root[data-theme="dark"] .eyebrow:not(.eyebrow-light), :root[data-theme="dark"] .link-arrow, :root[data-theme="dark"] .section-lead a,
:root[data-theme="dark"] .faq a, :root[data-theme="dark"] .text-btn, :root[data-theme="dark"] .route-kicker, :root[data-theme="dark"] .rank-label,
:root[data-theme="dark"] .svc-num, :root[data-theme="dark"] h2 em, :root[data-theme="dark"] .header-phone, :root[data-theme="dark"] .main-nav a.is-current,
:root[data-theme="dark"] .main-nav a:not(.btn):hover, :root[data-theme="dark"] .btn-ghost-dark, :root[data-theme="dark"] .round-btn,
:root[data-theme="dark"] .wiz-labels li.is-on, :root[data-theme="dark"] .theme-toggle, :root[data-theme="dark"] .stat-num,
:root[data-theme="dark"] .rank-num strong, :root[data-theme="dark"] .form-status.sending, :root[data-theme="dark"] .msg a { color: #72d067; }
:root[data-theme="dark"] .rank-main .rank-num strong { color: #ffffff; }
:root[data-theme="dark"] .btn-light { color: #72d067; }

.routes-section .map-hint { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 28px); line-height: 1.3; }

/* Selector de mapa: cisterna / paletizado */
.map-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.4rem; max-width: 640px; }
.map-modes button { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 16px; text-align: left; color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.16); transition: all .3s var(--ease-out); }
.map-modes button svg { flex: none; width: 34px; height: 34px; color: var(--green-300); transition: transform .4s var(--ease-bounce); }
.map-modes button strong { display: block; font-family: var(--display); font-size: 1.05rem; color: #fff; line-height: 1.2; }
.map-modes button small { display: block; font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.3; }
.map-modes button:hover { border-color: var(--green-300); transform: translateY(-2px); }
.map-modes button:hover svg { transform: scale(1.1) rotate(-4deg); }
.map-modes button.is-active { background: var(--green); border-color: var(--green-300); box-shadow: 0 10px 26px rgba(58,150,52,.4); }
.map-modes button.is-active svg { color: #fff; }
.map-modes button.is-active small { color: rgba(255,255,255,.9); }

/* El mapa ocupa siempre toda la altura de la fila: sin franja vacía cuando el panel crece */
.routes-section .routes-body { align-items: stretch; }
.routes-section .map-wrap { display: flex; flex-direction: column; min-height: 480px; }
.routes-section .route-map { flex: 1 1 auto; height: auto; min-height: 480px; }
@media (min-width: 960px) {
  .routes-section .map-wrap, .routes-section .route-map { min-height: 640px; }
}

/* Mapa dibujado: mar, ciudades y panel de ciudades */
.routes-section .route-map.is-vector { background: #06150a; }
.routes-section .route-map.is-vector .leaflet-tile-pane { display: none; }
.city-dot { width: 12px; height: 12px; border-radius: 50%; background: #9fe08f; border: 2px solid #0a2210; box-shadow: 0 0 0 4px rgba(159,224,143,.25); transition: transform .3s var(--ease-bounce); }
.city-dot.is-major { width: 14px; height: 14px; background: #ffffff; box-shadow: 0 0 0 5px rgba(92,184,84,.45); }
.city-dot:hover { transform: scale(1.35); }
.leaflet-tooltip.city-label { background: transparent; border: 0; box-shadow: none; color: #e7f6e3; font: 700 .74rem/1 var(--sans); text-shadow: 0 1px 3px #000, 0 0 6px #000; padding: 0; }
.leaflet-tooltip.city-label::before { display: none; }
.leaflet-popup-content a.popup-cta { display: inline-block; margin-top: .45rem; padding: .35rem .8rem; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; }
.map-reset { position: absolute; top: 14px; right: 14px; z-index: 600; padding: .55rem 1rem; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: .88rem; box-shadow: 0 8px 20px rgba(0,0,0,.35); transition: transform .3s var(--ease-out); }
.map-reset:hover { transform: translateY(-2px); }
.city-panel { padding: 1rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); animation: faqIn .5s var(--ease-out); }
.city-panel-title { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: .6rem; }
.city-panel-title strong { color: var(--green-300); }
.city-chips { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 210px; overflow-y: auto; padding-right: .2rem; }
.city-chips button { padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #e7f6e3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: all .2s; }
.city-chips button:hover { background: var(--green); border-color: var(--green-300); color: #fff; }

/* Botón de cambio de tema */
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--green-700); border: 1.5px solid var(--line); background: var(--surface); transition: transform .4s var(--ease-bounce), border-color .3s, background .3s; flex: none; }
.theme-toggle:hover { transform: rotate(-20deg) scale(1.06); border-color: var(--green); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important; }

/* =============================================================
   Selector de idioma
   ============================================================= */
.i18n-wait body { visibility: hidden; }
.no-splash .splash { display: none !important; }
.lang { position: relative; display: none; flex: none; }
.lang-btn { height: 42px; padding: 0 .75rem 0 .6rem; display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--green-700); font-weight: 700; font-size: .82rem; letter-spacing: .04em; transition: border-color .3s, background .3s; }
.lang-btn:hover, .lang.is-open .lang-btn { border-color: var(--green); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: .35rem; margin: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease-out), visibility .2s; z-index: 50; }
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .8rem; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--ink); text-align: left; }
.lang-menu button:hover { background: rgba(58,150,52,.12); }
.lang-menu button[aria-current="true"] { color: var(--green-700); font-weight: 800; }
.lang-menu button[aria-current="true"]::after { content: "✓"; }
.nav-langs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.nav-langs button { flex: 1 1 calc(50% - .5rem); padding: .7rem .6rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; }
.nav-langs button[aria-current="true"] { border-color: var(--green); color: var(--green-700); font-weight: 800; }
:root[data-theme="dark"] .lang-btn, :root[data-theme="dark"] .lang-menu button[aria-current="true"], :root[data-theme="dark"] .nav-langs button[aria-current="true"] { color: var(--green-300); }
@media (min-width: 540px) { .lang { display: block; } .nav-langs { display: none; } }
/* Cabecera en una sola línea también con textos más largos (otros idiomas) */
.header-phone span, .header-actions .btn-sm { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1499px) {
  .main-nav a:not(.btn) { padding: .5rem .45rem; font-size: .88rem; }
  .main-nav a:not(.btn)::after { left: .45rem; right: .45rem; }
  .header-inner { gap: .6rem; }
}
@media (min-width: 1280px) and (max-width: 1365px) { .header-phone span { display: none; } }