/* SISTREL GESTIÓN · web corporativa
   Tokens: azul marino y naranja del icono oficial (#0f2b49 / #f08229 / #e26828).
   El naranja de los botones se oscurece (#c2540f) para cumplir contraste AA con texto blanco. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0f2b49;
  --navy-900: #0a1f36;
  --navy-700: #1b3d63;
  --orange: #f08229;
  --orange-dark: #e26828;
  --cta: #c2540f;
  --cta-hover: #a84809;
  --ink: #16202c;
  --text: #3d4754;
  --muted: #5b6573;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-warm: #fdf4ec;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 43, 73, .06), 0 8px 24px rgba(15, 43, 73, .08);
  --shadow-lg: 0 18px 48px rgba(15, 43, 73, .16);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  --wa: #0f7a3d;        /* verde WhatsApp oscurecido: texto blanco AA */
  --wa-hover: #0b6e3a;
  --wa-marca: #25d366;  /* verde oficial, sólo en el icono */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--body);
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--cta); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, min(1.2rem + 1.8vw, 5vh), 2.4rem); font-weight: 800; } /* moderado en pantallas bajas */
h3 { font-size: 1.2rem; font-weight: 700; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); max-width: 62ch; }
.center .lead, .lead.center { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}
/* Marca del antetítulo: dos cortes en diagonal, azul y naranja, como el símbolo */
.eyebrow::before { content: ""; width: 26px; height: 12px; background: linear-gradient(118deg, transparent 0 22%, var(--navy) 22% 46%, transparent 46% 54%, var(--orange) 54% 78%, transparent 78%); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center .eyebrow { justify-content: center; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--head); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem/1.3 var(--head); color: var(--cta-hover); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); } }
.header-in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand__icon { width: auto; height: 44px; }
.brand__name { display: flex; flex-direction: column; font-family: var(--head); line-height: 1; }
.brand__name b { font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; color: var(--navy); }
.brand__name span { font-weight: 500; font-size: .74rem; letter-spacing: .32em; color: var(--navy); margin-top: 4px; }
.brand__desc { display: none; font: 600 .86rem/1.2 var(--body); color: color-mix(in srgb, var(--navy) 78%, #fff); padding-left: 18px; margin-left: 4px; border-left: 1px solid var(--line); }
/* Desde 1280 px el descriptor cabe junto al selector y el botón en los cinco idiomas (medido; en francés no cabía a 1240). */
@media (min-width: 1280px) { .brand__desc { display: block; } }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link, .nav__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 0; background: none;
  font: 600 .95rem/1 var(--head); color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 6px; position: relative;
}
.nav__link:hover, .nav__btn:hover { color: var(--cta); }
.nav__link[aria-current="page"]::after, .nav__btn.is-current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--orange); border-radius: 2px;
}
.nav__btn svg { width: 14px; height: 14px; transition: transform .15s; }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item--sub { position: relative; }
.submenu { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.submenu a { display: block; padding: 10px 14px; border-radius: 6px; text-decoration: none; color: var(--ink); font: 600 .95rem/1.3 var(--head); }
.submenu a small { display: block; font: 400 .82rem/1.35 var(--body); color: var(--muted); margin-top: 2px; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg-soft); color: var(--navy); }
/* En escritorio la cabecera tiene sitio para todo en los cinco idiomas (medido de 992 a 1440 px): botón,
   enlaces y descriptor no se parten ni se encogen. */
.header-cta { margin-left: 8px; white-space: nowrap; flex: none; }
.nav__link, .nav__btn, .brand__desc { white-space: nowrap; }
/* Selector de idioma: discreto (códigos pequeños en gris), el activo en azul con subrayado naranja.
   En escritorio va en la cabecera; en móvil, dentro del menú. */
.lang ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.lang li + li::before { content: "·"; color: var(--muted); padding: 0 1px; }
.lang a { display: inline-block; padding: 6px 3px; font: 600 .76rem/1 var(--head); letter-spacing: .05em; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current] { color: var(--navy); border-bottom-color: var(--orange); }
.lang--cabecera { margin-left: 10px; flex: none; }
/* Versión compacta (992–1199 px): «ES ▾» que despliega la lista. */
.lang--compacto { display: none; position: relative; margin-left: 6px; flex: none; }
.lang--compacto summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 6px; font: 600 .8rem/1 var(--head); letter-spacing: .05em; color: var(--navy); }
.lang--compacto summary::-webkit-details-marker { display: none; }
.lang--compacto summary svg { width: 12px; height: 12px; transition: transform .15s; }
.lang--compacto[open] summary svg { transform: rotate(180deg); }
.lang--compacto summary:hover { color: var(--cta); }
.lang--compacto ul { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; flex-direction: column; align-items: stretch; min-width: 76px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lang--compacto li + li::before { content: none; }
.lang--compacto a { display: block; padding: 8px 10px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .lang--cabecera { display: none; }
  .lang--compacto { display: block; }
}
.menu-toggle { display: none; }

@media (min-width: 992px) {
  .submenu { position: absolute; top: calc(100% + 6px); left: -8px; width: 300px; display: none; }
  /* Puente invisible sobre el hueco entre «Servicios» y el desplegable: sin él, al bajar el ratón se pierde el
     :hover y el menú se cierra antes de llegar a las opciones. */
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav__item--sub:hover .submenu, .nav__item--sub:focus-within .submenu, .nav__btn[aria-expanded="true"] + .submenu { display: block; }
  .js .nav__item--sub:not(:hover) .nav__btn[aria-expanded="false"] + .submenu { display: none; }
  .js .nav__item--sub:hover .nav__btn[aria-expanded="false"] + .submenu { display: block; }
  .nav__mobile-only { display: none; }
}
@media (max-width: 991.98px) {
  :root { --header-h: 64px; }
  .brand__icon { height: 38px; }
  .brand__name b { font-size: 1.3rem; }
  .brand__name span { font-size: .66rem; }
  .header-cta { display: none; }
  .lang--cabecera { display: none; }
  .lang--menu a { padding: 10px 8px; font-size: .9rem; }
  .lang--menu li + li::before { padding: 0; }
  .js .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer;
  }
  .menu-toggle svg { width: 24px; height: 24px; }
  .nav { width: 100%; }
  /* Absoluto bajo la cabecera: el backdrop-filter de la cabecera haría relativo a ella un panel «fixed». */
  .js .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; overflow-y: auto; padding: 8px var(--gutter) 32px; display: none; border-top: 1px solid var(--line); }
  .js .nav.is-open { display: block; }
  .no-js .header-in { flex-wrap: wrap; padding-block: 8px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__btn { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.05rem; padding-inline: 4px; }
  .nav__link[aria-current="page"]::after, .nav__btn.is-current::after { left: 4px; right: auto; width: 28px; bottom: 8px; }
  .submenu { border: 0; box-shadow: none; padding: 0 0 12px 8px; }
  .js .nav__btn[aria-expanded="false"] + .submenu { display: none; }
  .nav__mobile-only { padding: 20px 0 0; border-bottom: 0 !important; display: grid; gap: 12px; }
  .nav__mobile-only .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* Hero de inicio */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__text { padding-block: clamp(36px, 6vw, 64px) 0; position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.15rem, 1.3rem + 3.6vw, 3.75rem); line-height: 1.05; margin-bottom: 20px; }
.hero__title span { display: block; color: var(--orange-dark); }
.hero__sub { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 34em; margin-bottom: 28px; }
.hero__media { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__barras { display: none; }
/* Encuadre por imagen: en móvil (16:10) se conserva la franja del camión y el barco; en escritorio, el camión entero. */
.hero__media img { object-position: 50% 62%; }
@media (min-width: 992px) {
  .hero__grid { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); min-height: clamp(520px, 62vh, 680px); }
  .hero__text { padding-block: 56px; max-width: min(620px, calc(52vw - var(--gutter) - 24px)); }
  .hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; margin: 0; }
  .hero__media picture { height: 100%; }
  .hero__media img { height: 100%; aspect-ratio: auto; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .hero__media img { object-position: 30% 50%; }
  .hero__media::before, .hero__media::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; }
  /* Barras corporativas sobre el borde diagonal de la foto (composición aprobada): azul marino ancha como anclaje,
     filete claro translúcido y naranja como acento; finas y algo translúcidas para no pesar sobre la foto. Paralelas al recorte de la imagen (misma inclinación del 16 %)
     y de arriba abajo; tapan sólo el borde de la foto, que no cambia de tamaño. */
  .hero__media::before, .hero__media::after, .hero__barras { left: 0; width: 100%; }
  .hero__media::before { background: var(--navy); opacity: .94; clip-path: polygon(16% 0, 20.4% 0, 4.4% 100%, 0 100%); }
  .hero__barras { display: block; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; background: #fff; opacity: .5; clip-path: polygon(20.4% 0, 20.85% 0, 4.85% 100%, 4.4% 100%); }
  .hero__media::after { background: var(--orange); opacity: .94; clip-path: polygon(20.85% 0, 24.2% 0, 8.2% 100%, 4.85% 100%); }
}

/* Hero de página interior */
.page-hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero__img picture, .cta-band__img picture { height: 100%; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,31,54,.94) 0%, rgba(10,31,54,.82) 42%, rgba(10,31,54,.35) 100%); }
@media (max-width: 767.98px) { .page-hero::before { background: linear-gradient(180deg, rgba(10,31,54,.78) 0%, rgba(10,31,54,.9) 100%); } }
.page-hero__in { padding-block: clamp(56px, 9vw, 120px); max-width: 720px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 40em; margin-bottom: 28px; }
.page-hero--plain { background: var(--navy); }
.page-hero--plain::before { display: none; }
.page-hero--plain .page-hero__in { padding-block: clamp(44px, 6vw, 80px); }
.crumbs { font-size: .85rem; margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

/* Primera pantalla (regla común para todas las páginas): el hero se adapta a la altura de la ventana para que
   la sección siguiente asome con su antetítulo y su título completos, sin cortes accidentales.
   --asomo = espacio reservado bajo el hero de inicio para el arranque de la sección siguiente. */
:root { --asomo: 200px; }
.hero + .section, .page-hero + .section { padding-top: clamp(40px, 7vh, 96px); }
.page-hero__in { padding-block: clamp(32px, calc(14vh - 50px), 120px); }
.page-hero h1 { font-size: clamp(2rem, min(1.35rem + 3.2vw, 7.5vh), 3.5rem); }
.page-hero p { margin-bottom: clamp(18px, 3vh, 28px); }
@media (min-width: 900px) { .page-hero + .section .split { align-items: start; } }
/* Tablet apaisada y portátil estrecho: más ancho para el texto del primer bloque (títulos largos en dos líneas). */
@media (min-width: 900px) and (max-width: 1199.98px) { .page-hero + .section .split { grid-template-columns: 1.25fr 1fr; } }
@media (min-width: 992px) {
  .hero__grid { min-height: clamp(400px, calc(100vh - var(--header-h) - var(--asomo)), 680px); min-height: clamp(400px, calc(100svh - var(--header-h) - var(--asomo)), 680px); }
  .hero__text { padding-block: clamp(24px, 5vh, 56px); }
  .hero__title { font-size: clamp(2.15rem, min(1.3rem + 3.6vw, 7.2vh), 3.75rem); margin-bottom: clamp(12px, 2vh, 20px); }
  /* Titular largo (más de 85 caracteres, p. ej. FR y DE): algo más pequeño para que los botones sigan en la
     primera pantalla. Lo decide la longitud del texto, no el idioma. */
  .hero__title--largo { font-size: clamp(2rem, min(1rem + 3vw, 6vh), 3.1rem); }
  .hero__sub { margin-bottom: clamp(16px, 3vh, 28px); }
}

/* Tarjetas de necesidad (inicio) */
.needs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.need { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.need:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.need__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.need__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.need__icon { width: 44px; height: 44px; color: var(--orange-dark); margin: -2px 0 12px; }
.need__icon .ico { width: 40px; height: 40px; stroke-width: 1.6; }
.need h3 { font-size: 1.25rem; margin-bottom: 8px; }
.need h3 a { color: inherit; text-decoration: none; }
.need h3 a::after { content: ""; position: absolute; inset: 0; }
.need { position: relative; }
.need p { flex: 1; font-size: .97rem; }
.need .link-arrow, .need .btn { position: relative; z-index: 1; align-self: flex-start; }
.need--featured { background: var(--bg-warm); border-color: #f6d3b4; }

/* Flujo de gestión */
.flow-band { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.flow-band::after { content: ""; position: absolute; right: -60px; top: -40px; bottom: -40px; width: 260px; background: linear-gradient(115deg, transparent 0 38%, rgba(240,130,41,.22) 38% 52%, transparent 52% 62%, rgba(255,255,255,.06) 62% 76%, transparent 76%); pointer-events: none; }
.flow-band h2 { color: #fff; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: paso; position: relative; z-index: 1; }
.flow li { display: flex; align-items: center; gap: 16px; text-align: left; }
.flow li { --p: 0; position: relative; }
.flow li:nth-child(2) { --p: .2; } .flow li:nth-child(3) { --p: .4; } .flow li:nth-child(4) { --p: .6; } .flow li:nth-child(5) { --p: .8; } .flow li:nth-child(6) { --p: 1; }
/* El naranja gana presencia paso a paso: borde, fondo y conector; el texto sigue en blanco. */
.flow__icon {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; position: relative; z-index: 1;
  border: 2px solid rgba(255,255,255,.75); color: #fff; background: var(--navy);
  border-color: color-mix(in srgb, var(--orange) calc(var(--p) * 100%), rgba(255,255,255,.7));
  background: color-mix(in srgb, var(--orange) calc(var(--p) * 16%), var(--navy));
}
.flow__icon .ico { width: 28px; height: 28px; }
.flow li:last-child .flow__icon { background: var(--orange); border-color: var(--orange); color: var(--navy-900); box-shadow: 0 0 0 6px rgba(240,130,41,.22), 0 0 0 12px rgba(240,130,41,.08); }
.flow__label { font: 600 1rem/1.3 var(--head); color: #fff; }
.flow__label small { display: block; font: 600 .74rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; color: color-mix(in srgb, var(--orange) calc(var(--p) * 100%), rgba(255,255,255,.72)); }
.flow li:last-child .flow__label { color: var(--orange); font-weight: 800; }
/* Conector vertical en móvil */
.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 64px; width: 2px; height: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--orange) calc(var(--p) * 100%), rgba(255,255,255,.45)), color-mix(in srgb, var(--orange) calc((var(--p) + .2) * 100%), rgba(255,255,255,.45)));
}
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .flow li { flex-direction: column; text-align: center; }
  .flow li:not(:last-child)::after { top: 33px; left: calc(50% + 44px); right: calc(-50% + 44px); width: auto; height: 2px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--orange) calc(var(--p) * 100%), rgba(255,255,255,.45)), color-mix(in srgb, var(--orange) calc((var(--p) + .2) * 100%), rgba(255,255,255,.45))); }
  .flow__icon { width: 68px; height: 68px; }
}
/* Avance animado del flujo (sólo con JavaScript y sin «reducir movimiento»; si no, se ve el estado final estático).
   Cada paso se enciende en orden y su conector se rellena hacia el siguiente: en vertical en móvil, en horizontal en
   escritorio. Sólo cambian colores y transform: no hay saltos de maquetación. */
@media (prefers-reduced-motion: no-preference) {
  .flow--animable .flow__icon, .flow--animable .flow__label, .flow--animable .flow__label small {
    transition: border-color .45s ease, background-color .45s ease, color .45s ease, box-shadow .45s ease;
  }
  .flow--animable li:not(.on) .flow__icon { border-color: rgba(255,255,255,.35); background: var(--navy); color: rgba(255,255,255,.6); box-shadow: none; }
  .flow--animable li:not(.on) .flow__label small { color: rgba(255,255,255,.6); }
  .flow--animable li:last-child:not(.on) .flow__label { color: #fff; font-weight: 600; }
  .flow--animable li.actual .flow__icon { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(240,130,41,.28); }
  .flow--animable li.actual .flow__label small { color: var(--orange); }
  .flow--animable li:not(:last-child)::after { background: rgba(255,255,255,.22); }
  .flow--animable li:not(:last-child)::before {
    content: ""; position: absolute; left: 31px; top: 64px; width: 2px; height: 14px; z-index: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--orange) calc(var(--p) * 100%), rgba(255,255,255,.45)), color-mix(in srgb, var(--orange) calc((var(--p) + .2) * 100%), rgba(255,255,255,.45)));
    transform: scaleY(0); transform-origin: top; transition: transform .5s ease;
  }
  .flow--animable li.lleno::before { transform: none; }
  @media (min-width: 900px) {
    .flow--animable li:not(:last-child)::before { top: 33px; left: calc(50% + 44px); right: calc(-50% + 44px); width: auto; height: 2px;
      background: linear-gradient(90deg, color-mix(in srgb, var(--orange) calc(var(--p) * 100%), rgba(255,255,255,.45)), color-mix(in srgb, var(--orange) calc((var(--p) + .2) * 100%), rgba(255,255,255,.45)));
      transform: scaleX(0); transform-origin: left; }
    .flow--animable li.lleno::before { transform: none; }
  }
}
.flow-tagline { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 36px 0 0; font: 600 1.08rem/1.4 var(--head); color: var(--orange); text-align: center; position: relative; z-index: 1; }
.flow-tagline::before { content: ""; width: 32px; height: 2px; background: var(--orange); flex: none; }

/* Rejillas de características */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--bg-warm); color: var(--orange-dark); }
.feature h3 { font-size: 1.06rem; margin-bottom: 6px; }
.feature p { margin: 0; font-size: .95rem; }
.features--plain .feature { background: transparent; border: 0; padding: 4px 0; }

/* Bloque texto + imagen */
.split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
/* Focos de las composiciones panorámicas recortadas a 4:3: carretilla y camión; centro logístico; precinto y revisión. */
.foco-muelle img { object-position: 8% 50%; }
.foco-centro img { object-position: 50% 50%; }
.foco-aduana img { object-position: 100% 50%; }
/* Tarjetas de Inicio (16:9 sobre originales 4:3): cabina del camión, carpeta de la inspección, camión y buque. */
.foco-autopista img { object-position: 50% 58%; }
.foco-inspeccion img { object-position: 50% 62%; }
.foco-puerto img { object-position: 50% 56%; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2540f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks strong { color: var(--ink); }
.quote { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--orange); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font: 700 1.15rem/1.4 var(--head); color: var(--navy); }

/* Lista de capacidades */
.caps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cap { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange); }
.cap__icon { color: var(--orange-dark); margin-bottom: 12px; }
.cap__icon .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.cap h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cap p { margin: 0; font-size: .96rem; }

/* Rejillas sin huérfanos: 4 elementos en una fila; 7 en 4 + 3. */
.caps:has(> :nth-child(4):last-child), .steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.caps:has(> :nth-child(7):last-child) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* Pasos numerados */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.steps li { counter-increment: s; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 1.6rem/1 var(--head); color: var(--orange-dark); margin-bottom: 10px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; font-size: .95rem; }

/* Por qué SISTREL */
.whys { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.why { display: flex; gap: 16px; }
.why__icon { flex: none; color: var(--orange-dark); }
.why__icon .ico { width: 44px; height: 44px; stroke-width: 1.5; }
.why h3 { font-size: 1.06rem; margin-bottom: 6px; }
.why p { margin: 0; font-size: .95rem; }

/* Enlaces a otros servicios */
.related { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.related a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font: 700 1rem/1.3 var(--head); background: #fff; transition: border-color .15s, box-shadow .15s; }
.related a:hover { border-color: var(--orange); box-shadow: var(--shadow); color: var(--navy); }
.related .ico { color: var(--orange-dark); flex: none; }
.related a > span { flex: 1; }

/* Cortes diagonales azul/naranja derivados del símbolo, en el borde derecho de las cabeceras y bandas */
@media (min-width: 900px) {
  .page-hero::after, .cta-band::after {
    content: ""; position: absolute; top: -2px; bottom: -2px; right: 9%; width: 54px; z-index: -1; pointer-events: none;
    transform: skewX(-22deg); background: linear-gradient(90deg, rgba(240,130,41,.9) 0 28%, transparent 28% 52%, rgba(255,255,255,.13) 52% 100%);
  }
  /* En la banda final el contenido llega al borde derecho: el corte va en el margen exterior y sólo si cabe. */
  .cta-band::after { display: none; right: calc((100% - var(--max)) / 2 - 92px); width: 40px; }
}
@media (min-width: 1440px) { .cta-band::after { display: block; } }


/* Banda de llamada a la acción */
.cta-band { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.cta-band__img { position: absolute; inset: 0; z-index: -2; }
.cta-band__img img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,31,54,.95) 0%, rgba(10,31,54,.86) 55%, rgba(10,31,54,.6) 100%); }
.cta-band__in { display: grid; gap: 24px; align-items: center; padding-block: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .cta-band__in { grid-template-columns: 1.4fr auto auto; gap: 40px; } }
.cta-band h2 { color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; }
.cta-band__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cta-band__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 500; min-height: 32px; }
.cta-band__contact a:hover { color: var(--orange); }
.cta-band__contact .ico { width: 20px; height: 20px; color: var(--orange); }

/* Contacto */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 992px) { .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.channels { display: grid; gap: 14px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
a.channel:hover { border-color: var(--orange); box-shadow: var(--shadow); color: var(--ink); }
.channel__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-warm); color: var(--orange-dark); }
.channel__k { display: block; font: 600 .78rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.channel > span:last-child { min-width: 0; }
.channel__v { display: block; font: 700 1.08rem/1.3 var(--head); color: var(--navy); overflow-wrap: anywhere; }
.channel--quiet { background: var(--bg-soft); border-color: transparent; }
.channel__mapa { display: inline-block; margin-top: 6px; font-size: .86rem; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.channel__mapa:hover { color: var(--navy); }
.channel--quiet .channel__v { font: 500 .95rem/1.45 var(--body); color: var(--text); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.form-card h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font: 600 .92rem/1.3 var(--body); color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c5ced9; border-radius: 8px; background: #fff;
  font: 400 1rem/1.4 var(--body); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2b49' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(240,130,41,.35); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field__err { display: block; color: #b42318; font-size: .86rem; margin-top: 4px; min-height: 0; }
.check, .field .check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; margin-top: 8px; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; }
.form-status { padding: 14px 16px; border-radius: 8px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status--ok { background: #ecf8f0; color: #14532d; border: 1px solid #b7e2c5; }
.form-status--err { background: #fdeceb; color: #8a1c13; border: 1px solid #f3c0bb; }
.cf-turnstile { min-height: 65px; max-width: 100%; }
@media (max-width: 379.98px) { .form-card { padding: 18px 14px; } }

/* WhatsApp y horario (Contacto) */
.ico--relleno { fill: currentColor; stroke: none; }
.wa-card { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid #bfe5cc; background: #f1faf4; }
.wa-card__head { display: flex; align-items: center; gap: 16px; }
.wa-card__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wa-marca); color: #fff; }
.wa-card__icon .ico { width: 26px; height: 26px; }
.btn--wa { background: var(--wa); color: #fff; width: 100%; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--wa .ico { width: 20px; height: 20px; }
.horario { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); }
.horario__t { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 10px; }
.horario__t .ico { width: 20px; height: 20px; color: var(--orange-dark); }
.horario dl { margin: 0 0 6px; display: grid; gap: 6px; }
.horario dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.horario dt { font-weight: 600; color: var(--ink); }
.horario dd { margin: 0; }

/* Correo comercial copiable (sin mailto) */
.correo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.correo .ico { width: 18px; height: 18px; color: var(--orange); }
.correo__copiar {
  font: 600 .8rem/1 var(--body); padding: 7px 10px; min-height: 32px; border-radius: 6px; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit; opacity: .9;
}
.correo__copiar:hover { opacity: 1; }
.correo__ok { font-size: .82rem; font-weight: 600; }
.correo__ok:empty { display: none; }
.channel--correo .correo__copiar { color: var(--navy); margin-top: 8px; }
.channel--correo .correo__ok { display: block; margin-top: 4px; color: #14532d; }
.channel--correo .correo__ok:empty { display: none; }
.site-footer .correo, .cta-band .correo { color: rgba(255,255,255,.88); min-height: 32px; }
.site-footer .correo__copiar, .cta-band .correo__copiar { color: #fff; border-color: rgba(255,255,255,.55); }
.site-footer .correo__ok, .cta-band .correo__ok { color: #9be3b3; }

/* Primera capa de información de privacidad bajo el formulario */
.primera-capa { margin: 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.primera-capa strong { font-weight: 600; color: var(--text); }
.primera-capa__correo { overflow-wrap: anywhere; }

/* Texto legal */
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul { margin: 0 0 1em; }
.prose li + li { margin-top: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { width: 34%; color: var(--ink); font-weight: 600; }
@media (max-width: 599.98px) { .prose th, .prose td { display: block; width: 100%; padding: 6px 0; } .prose th { border-bottom: 0; padding-top: 12px; } }
/* Información legal secundaria (p. ej. AEPD): más pequeña y en gris, sin realce; contraste AA (5,9:1). */
.prose .nota-legal { font-size: .875rem; color: var(--muted); margin-top: 1.4em; }
.prose .nota-legal a { color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; }
.prose .nota-legal a:hover { color: var(--navy); }
.pendiente { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #fff4d6; color: #7a4b00; border: 1px dashed #d9a400; font-size: .88em; font-weight: 600; }
.notice { padding: 16px 18px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #f3dc9b; color: #5c4300; margin-bottom: 28px; font-size: .95rem; }

/* Pie */
.site-footer { position: relative; background: var(--navy-900); color: rgba(255,255,255,.78); font-size: .95rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(112deg, var(--orange) 0 24%, transparent 24% 25%, var(--navy-700) 25%); }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__name b, .footer-brand .brand__name span { color: #fff; }
.footer-brand p { margin: 14px 0 0; max-width: 30ch; }
.footer-desc { display: block; margin-top: 12px; font: 600 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.site-footer h2 { font: 700 .82rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .ico { width: 18px; height: 18px; color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .86rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Botón flotante de WhatsApp (sólo móvil) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; background: var(--wa-hover); }
.wa-float .ico { width: 28px; height: 28px; }
@media (max-width: 767.98px) { .wa-float { display: inline-flex; } .site-footer { padding-bottom: 72px; } }

/* Banda de revisión (sólo en preview) */
.review-bar { background: #fff4d6; color: #5c4300; text-align: center; font: 600 .82rem/1.3 var(--body); padding: 6px var(--gutter); border-bottom: 1px solid #f3dc9b; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .wa-float, .cta-band, .site-footer, .review-bar { display: none !important; } }

/* Página de acceso a la revisión (la sirve el Worker) */
.acceso { max-width: 492px; }
.acceso .form-card img { height: 52px; width: auto; margin-bottom: 18px; }
.h-acceso { font-size: 1.7rem; }
.acceso form { display: grid; gap: 14px; }
