﻿/* =========================================================
   INTERTRANS · Web 2027 — sistema de diseño
   Fondo blanco protagonista · navy #1B345D · naranja #FF5E00
   ========================================================= */
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --navy: #1B345D;
  --noche: #0E1E38;
  --acero: #4A6A96;
  --bruma: #A9BCD6;
  --niebla: #EEF1F5;
  --grafito: #33373D;
  --naranja: #FF5E00;
  --naranja-2: #FF7A2E;
  --blanco: #FFFFFF;
  --texto: #33373D;
  --texto-suave: #5F6B7D;
  --linea: rgba(27, 52, 93, .10);
  --glass: rgba(255, 255, 255, .55);
  --glass-borde: rgba(255, 255, 255, .7);
  --glass-dark: rgba(14, 30, 56, .55);
  --sombra-s: 0 2px 10px rgba(14, 30, 56, .06);
  --sombra-m: 0 12px 40px rgba(14, 30, 56, .10);
  --sombra-l: 0 30px 80px rgba(14, 30, 56, .18);
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --top-h: 76px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--texto); background: var(--blanco);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.1; letter-spacing: -.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }

/* ---------- Fondos de marca: blanco + degradados sutiles + malla de puntos ---------- */
.bg-soft { position: relative; isolation: isolate; }
.bg-soft::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% 10%, rgba(169, 188, 214, .35), transparent 70%),
    radial-gradient(45% 40% at 95% 85%, rgba(255, 94, 0, .07), transparent 70%),
    radial-gradient(50% 50% at 80% 5%, rgba(74, 106, 150, .10), transparent 70%);
}
.bg-dots::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(27, 52, 93, .13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
}
.glass {
  background: var(--glass); border: 1px solid var(--glass-borde);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--sombra-m);
}
.glass-dark {
  background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}

/* ---------- Botones (naranja) ---------- */
.btn {
  --bg: var(--naranja); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 10px 26px rgba(255, 94, 0, .28);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 94, 0, .36); }
.btn:hover::after { transform: translateX(120%); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico.arrow { transform: translateX(4px); }
.btn.ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(27, 52, 93, .25); }
.btn.ghost:hover { --fg: var(--naranja); box-shadow: inset 0 0 0 1.5px var(--naranja); }
.btn.glass-btn { --bg: rgba(255, 255, 255, .6); --fg: var(--navy); box-shadow: var(--sombra-s); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.sm { padding: .7em 1.2em; font-size: .82rem; }
.btn.pulse { animation: pulse 2.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 26px rgba(255, 94, 0, .28), 0 0 0 0 rgba(255, 94, 0, .45); } 50% { box-shadow: 0 10px 26px rgba(255, 94, 0, .28), 0 0 0 12px rgba(255, 94, 0, 0); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--naranja);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.h-sec { font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.h-sec em { font-style: normal; color: var(--naranja); }
.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--texto-suave); max-width: 60ch; }

/* =========================================================
   BARRA DE INFORMACIÓN (aparece al minuto, se oculta a los 30 s)
   ========================================================= */
.infobar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 38px;
  background: linear-gradient(90deg, var(--noche), var(--navy)); color: #fff; font-size: .78rem; font-weight: 500;
  transform: translateY(-100%); transition: transform .7s var(--ease);
}
.infobar .wrap { height: 100%; display: flex; align-items: center; justify-content: center; gap: 22px; }
.infobar a, .infobar span { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.infobar a:hover { color: var(--naranja); opacity: 1; }
.infobar .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .3); }
.infobar .ico { color: var(--naranja); width: 15px; height: 15px; }
.infobar-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: .7; }
body.infobar-on .infobar { transform: none; }
body.infobar-on .topbar { top: 38px; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--top-h);
  transition: top .7s var(--ease), background .4s, box-shadow .4s, height .4s;
}
.topbar.scrolled {
  background: rgba(255, 255, 255, .72); box-shadow: 0 1px 0 var(--linea), 0 10px 30px rgba(14, 30, 56, .06);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); height: 66px;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 22px; width: auto; opacity: .92; transition: opacity .3s; }
.brand:hover img { opacity: 1; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li { list-style: none; position: relative; }
.nav { padding: 0; margin-block: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-size: .86rem; font-weight: 600; color: var(--navy); transition: color .25s, background .25s;
}
.nav-link:hover, .nav > li:focus-within > .nav-link, .nav-link.active { color: var(--naranja); background: rgba(255, 94, 0, .08); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav > li:hover .chev, .nav > li:focus-within .chev { transform: rotate(180deg); }
.nav-home { width: 42px; height: 42px; justify-content: center; padding: 0; }
.nav-home .ico { width: 20px; height: 20px; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 280px; padding: 10px; border-radius: var(--r-m);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .3s var(--ease);
}
.dropdown::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav > li:hover .dropdown, .nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: .86rem; font-weight: 600; color: var(--navy);
  transition: background .2s, color .2s;
}
.dropdown a .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--niebla); color: var(--navy); transition: all .25s; }
.dropdown a small { display: block; font-weight: 500; color: var(--texto-suave); font-size: .74rem; }
.dropdown a:hover { background: rgba(255, 94, 0, .07); color: var(--naranja); }
.dropdown a:hover .ico { background: var(--naranja); color: #fff; }
.dropdown.wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--navy);
  transition: color .25s, background .25s;
}
.lang-btn:hover, .lang.open .lang-btn { color: var(--naranja); background: rgba(255, 94, 0, .08); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 14px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--ease); }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .84rem; font-weight: 600; color: var(--navy); text-align: left; }
.lang-menu button:hover, .lang-menu button[aria-current='true'] { background: rgba(255, 94, 0, .08); color: var(--naranja); }
.lang-menu .flag { width: 22px; height: 16px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* portal de clientes y rastreo en «Próximamente» */
.soon-tag { font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--naranja); border-radius: 999px; padding: .25em .7em; margin-left: .5em; line-height: 1.2; flex: none; }
.login-soon { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.login-soon h2 { margin: 0; } .login-soon p { margin: 0; line-height: 1.6; } .login-soon .btn { align-self: flex-start; }
.login-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(27, 52, 93, .15); transition: all .25s;
}
.login-btn .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; transition: background .25s; }
.login-btn .avatar .ico { width: 16px; height: 16px; }
.login-btn:hover { color: var(--naranja); box-shadow: inset 0 0 0 1.5px var(--naranja); }
.login-btn:hover .avatar { background: var(--naranja); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--navy); }
.burger:hover { color: var(--naranja); }

/* Drawer móvil */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(14, 30, 56, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 6px; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-head img { height: 18px; }
.drawer a.d-link, .drawer summary { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 700; color: var(--navy); font-size: .95rem; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer a.d-link:hover, .drawer summary:hover { color: var(--naranja); background: rgba(255, 94, 0, .07); }
.drawer details a { display: block; padding: 9px 12px 9px 46px; font-size: .88rem; font-weight: 600; color: var(--texto-suave); border-radius: 10px; }
.drawer details a:hover { color: var(--naranja); }
.drawer .ico-box { width: 34px; height: 34px; border-radius: 10px; background: var(--niebla); display: grid; place-items: center; }
.drawer summary .chev { margin-left: auto; transition: transform .3s; }
.drawer details[open] summary .chev { transform: rotate(180deg); }

/* =========================================================
   HERO INMERSIVO (contenedor 3D en grúa)
   ========================================================= */
.hero-scroll { position: relative; height: 260vh; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg .b1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(169, 188, 214, .9), transparent 65%); }
.hero-bg .b2 { width: 38vw; height: 38vw; right: -10vw; bottom: -12vw; background: radial-gradient(circle, rgba(255, 94, 0, .22), transparent 65%); animation-delay: -6s; }
.hero-bg .b3 { width: 30vw; height: 30vw; right: 18vw; top: -10vw; background: radial-gradient(circle, rgba(74, 106, 150, .35), transparent 65%); animation-delay: -11s; }
@keyframes drift { to { transform: translate(4vw, 3vw) scale(1.12); } }
.hero-routes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-routes path { fill: none; stroke: var(--acero); stroke-width: 1.2; stroke-dasharray: 3 9; animation: dash 30s linear infinite; opacity: .5; }
.hero-routes circle { fill: var(--naranja); }
@keyframes dash { to { stroke-dashoffset: -600; } }

/* Logo oficial (SVG sin modificar) como gran fondo tipográfico */
.hero-word {
  position: absolute; left: 0; right: 0; top: 17vh; z-index: 1; display: flex; justify-content: center; pointer-events: none; user-select: none;
  padding: 0 var(--gutter); will-change: transform;
}
.hero-word img { width: min(92vw, 1600px, 150vh); height: auto; opacity: .1; filter: blur(2px); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
#hero-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.hero-front { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-front > * { pointer-events: auto; }
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 80px); max-width: 470px; }
.hero-copy .eyebrow { margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(1.5rem, 2.3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.hero-copy h1 em { font-style: normal; color: var(--naranja); }
.hero-copy p { margin: 14px 0 24px; color: var(--texto-suave); font-weight: 500; max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { position: absolute; right: var(--gutter); bottom: clamp(28px, 8vh, 90px); display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cert-glass { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r-m); }
.cert-glass .cert-item { display: flex; align-items: center; gap: 10px; }
.cert-glass img { height: 42px; width: auto; }
.cert-glass .cert-txt { font-size: .7rem; line-height: 1.25; color: var(--navy); font-weight: 700; letter-spacing: .02em; }
.cert-glass .cert-txt small { display: block; font-weight: 500; color: var(--texto-suave); }
.cert-glass .vsep { width: 1px; align-self: stretch; background: var(--linea); }
.cert-glass .mini-logo { height: 12px; opacity: .8; }
.hero-live { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--navy); }
.hero-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #18b26b; box-shadow: 0 0 0 0 rgba(24, 178, 107, .6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(24, 178, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 178, 107, 0); } }
.hero-scrollhint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .25em; color: var(--acero); text-transform: uppercase; }
.hero-scrollhint .mouse { width: 22px; height: 34px; border: 2px solid var(--bruma); border-radius: 12px; position: relative; }
.hero-scrollhint .mouse::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--naranja); animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(10px); opacity: 0; } }
.hero-tagline {
  position: absolute; left: var(--gutter); top: 40%; z-index: 4; text-align: left; pointer-events: none;
  font-weight: 900; font-size: clamp(2.6rem, 8vw, 8.5rem); line-height: .95; letter-spacing: -.03em; color: var(--naranja);
  opacity: 0; transform: translateY(40px); will-change: transform, opacity; text-shadow: 0 10px 40px rgba(255, 255, 255, .6);
}
.hero-tagline small { display: block; font-size: .2em; letter-spacing: .28em; font-weight: 700; color: var(--navy); margin-top: .7em; max-width: 22em; line-height: 1.5; }
@media (max-width: 760px) { .hero-tagline { top: 58%; text-align: center; left: 0; right: 0; } .hero-tagline small { margin-inline: auto; } }
.hero-fallback { position: absolute; inset: 0; z-index: 2; display: none; background: url('../img/fotos/hero-puerto.webp') center/cover; }
.hero.no-webgl .hero-fallback { display: block; }
.hero-progress { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--top-h) + 6px); height: 2px; background: var(--linea); border-radius: 2px; z-index: 4; overflow: hidden; opacity: .8; }
.hero-progress i { display: block; height: 100%; width: 0; background: var(--naranja); }

/* =========================================================
   SECCIONES
   ========================================================= */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head > div { max-width: 720px; }
.sec-head .h-sec { margin-top: 14px; }
.sec-head .lead { margin-top: 16px; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Historia + cifras ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1.4fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.about-story p { margin-top: 18px; color: var(--texto-suave); font-size: 1.02rem; }
.about-story .sello { width: 120px; margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  position: relative; padding: 28px; border-radius: var(--r-l); overflow: hidden; background: #fff; border: 1px solid var(--linea);
  box-shadow: var(--sombra-s); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--sombra-l); }
.stat::before { content: ''; position: absolute; inset: auto -40% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(169, 188, 214, .35), transparent 70%); transition: transform .8s var(--ease); }
.stat:hover::before { transform: scale(1.4); }
.stat.feature { background: linear-gradient(150deg, var(--navy), var(--noche)); color: #fff; border: 0; }
.stat.feature::before { background: radial-gradient(circle, rgba(255, 94, 0, .35), transparent 70%); }
.stat .s-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--niebla); color: var(--navy); margin-bottom: 22px; position: relative; }
.stat.feature .s-ico { background: rgba(255, 255, 255, .1); color: var(--naranja); }
.stat .s-ico .ico { width: 28px; height: 28px; }
.stat .s-ico .ico path, .stat .s-ico .ico circle, .stat .s-ico .ico rect, .stat .s-ico .ico polyline, .stat .s-ico .ico line { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.stat.in .s-ico .ico * { stroke-dashoffset: 0; }
.stat .num { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; color: var(--navy); position: relative; }
.stat .num sup { font-size: .5em; color: var(--naranja); vertical-align: .55em; margin-right: 2px; }
.stat.feature .num { color: #fff; }
.stat .num.word { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.stat .lbl { margin-top: 10px; font-weight: 600; font-size: .95rem; color: var(--texto-suave); position: relative; }
.stat.feature .lbl { color: rgba(255, 255, 255, .75); }

/* Slider de afiliaciones en negativo */
.affil { margin-top: clamp(60px, 8vw, 100px); text-align: center; }
.affil h3 { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--acero); font-weight: 700; margin-bottom: 22px; }
.marquee {
  position: relative; overflow: hidden; border-radius: var(--r-l); padding: 26px 0;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(74, 106, 150, .14); box-shadow: var(--sombra-s);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 80px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 48px; width: auto; opacity: .9; transition: opacity .3s, transform .3s; }
.marquee img:hover { opacity: 1; transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Servicios inmersivos (paneles expansibles) ---------- */
.services { background: var(--blanco); }
.svc-panels { display: flex; gap: 10px; height: min(78vh, 680px); }
.svc {
  position: relative; flex: 1; min-width: 0; border-radius: var(--r-l); overflow: hidden; cursor: pointer; isolation: isolate;
  transition: flex 1s var(--ease), box-shadow .5s; background: var(--noche); color: #fff; outline: none;
}
.svc.active { flex: 5.2; box-shadow: var(--sombra-l); }
.svc .media { position: absolute; inset: 0; z-index: -2; }
.svc .media img, .svc .media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease), filter .8s; filter: saturate(.75) brightness(.8); }
.svc.active .media img, .svc.active .media video { transform: scale(1.02); filter: saturate(1) brightness(.95); animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 30, 56, .15) 0%, rgba(14, 30, 56, .25) 40%, rgba(14, 30, 56, .92) 100%); transition: opacity .6s; }
.svc .s-num { position: absolute; top: 22px; left: 22px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; opacity: .7; }
.svc .s-icon { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: all .6s var(--ease); }
.svc.active .s-icon { background: var(--naranja); border-color: transparent; transform: rotate(-8deg) scale(1.08); }
.svc .s-icon .ico { width: 26px; height: 26px; }
.svc .s-vert { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; transition: opacity .4s; }
.svc.active .s-vert { opacity: 0; }
.svc .s-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 40px); opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .8s var(--ease); pointer-events: none; }
.svc.active .s-body { opacity: 1; transform: none; transition-delay: .35s; pointer-events: auto; }
.svc .s-body h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 800; }
.svc .s-body p { margin: 12px 0 18px; max-width: 46ch; opacity: .88; font-size: .98rem; }
.svc .s-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.svc .s-tags span { padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.svc .s-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.svc .s-actions .btn.ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.svc .s-actions .btn.ghost:hover { --fg: var(--naranja); box-shadow: inset 0 0 0 1.5px var(--naranja); background: #fff; }
.svc .s-timer { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--naranja); width: 0; }
.svc.active .s-timer.run { animation: timer 6s linear forwards; }
@keyframes timer { to { width: 100%; } }
.svc-foot { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- Ecosistema logístico 3D (assets/js/ecosistema3d.js) ---------- */
.services:has(.eco:not([hidden])) .sec-head { margin-bottom: clamp(10px, 2vw, 24px); }
.eco { position: relative; }
.eco-stage {
  position: relative; height: clamp(540px, 86vh, 900px); overflow: hidden; background: #fff; isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
#eco-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; outline: none; }
.eco-stage.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 3px solid var(--niebla); border-top-color: var(--naranja); animation: eco-spin 1s linear infinite; }
@keyframes eco-spin { to { transform: rotate(360deg); } }
.eco-stage.loading .eco-pins, .eco-stage.loading .eco-tools, .eco-stage.loading .eco-hint { opacity: 0; }
.eco-pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.eco-pin {
  position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; transition: opacity .3s;
  display: flex; align-items: center; gap: 0; padding: 4px; border-radius: 999px; transform-origin: 0 0;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 22px rgba(14, 30, 56, .18), inset 0 0 0 1px rgba(27, 52, 93, .08);
  color: var(--navy); font-weight: 700; font-size: .78rem; white-space: nowrap; margin: -46px 0 0 -19px;
}
.eco-pin::after { content: ''; position: absolute; left: 18px; top: 100%; width: 2px; height: 10px; background: linear-gradient(var(--navy), rgba(27, 52, 93, 0)); }
.eco-pin .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .02em; transition: background .3s, transform .4s var(--ease); position: relative; }
.eco-pin .n::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--naranja); opacity: 0; animation: eco-ping 2.6s var(--ease) infinite; }
.eco-pin:nth-child(2n) .n::before { animation-delay: 1.3s; }
@keyframes eco-ping { 0% { transform: scale(.8); opacity: .8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.eco-pin .lb { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--ease), opacity .3s, padding .45s var(--ease); }
.eco-pin:hover .lb, .eco-pin:focus-visible .lb, .eco-pin.hover .lb, .eco-pin.on .lb { max-width: 240px; opacity: 1; padding: 0 12px 0 9px; }
.eco-pin:hover .n, .eco-pin.hover .n, .eco-pin.on .n { background: var(--naranja); }
.eco-pin.on { background: var(--navy); color: #fff; }
.eco-pin.off { opacity: 0; pointer-events: none; }
.eco-pin:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.eco-stage.has-sel .eco-pin:not(.on):not(:hover):not(.hover) { opacity: .55; }
.eco-tools { position: absolute; right: clamp(14px, 2.4vw, 32px); top: clamp(48px, 7vh, 72px); z-index: 3; display: flex; flex-direction: column; gap: 8px; transition: opacity .4s; }
.eco-tool { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--navy); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--sombra-m), inset 0 0 0 1px rgba(27, 52, 93, .08); transition: background .25s, color .25s, transform .25s; }
.eco-tool:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.eco-tool:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
.eco-tool .ico { width: 18px; height: 18px; }
.eco-tool .i-play { display: none; }
.eco-stage.paused .eco-tool .i-play { display: block; } .eco-stage.paused .eco-tool .i-pause { display: none; }
.eco-stage.paused .eco-tool[data-act=play] { background: var(--naranja); color: #fff; }
.eco-hint { position: absolute; right: clamp(14px, 2.4vw, 32px); bottom: clamp(44px, 7vh, 70px); z-index: 2; margin: 0; padding: 8px 14px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--texto-suave); background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; transition: opacity .4s; }
.eco-stage.has-sel .eco-hint { opacity: 0; }
.eco-card {
  position: absolute; z-index: 4; left: clamp(14px, 3vw, 44px); bottom: clamp(44px, 7vh, 70px); width: min(430px, calc(100% - 28px)); max-height: calc(100% - 120px); overflow: auto;
  padding: 24px 24px 18px; border-radius: var(--r-l); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--sombra-l), inset 0 0 0 1px rgba(27, 52, 93, .08); color: var(--texto);
}
.eco-card.in { animation: eco-card-in .6s var(--ease) both; }
@keyframes eco-card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.eco-card::before { content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 0 4px 4px 0; background: var(--naranja); }
.eco-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: rgba(27, 52, 93, .06); transition: background .25s, color .25s; }
.eco-x:hover { background: var(--navy); color: #fff; }
.eco-x .ico { width: 16px; height: 16px; }
.eco-k { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.eco-k .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.eco-k .ic .ico { width: 22px; height: 22px; }
.eco-k .n { font-size: .82rem; font-weight: 800; color: var(--naranja); letter-spacing: .08em; }
.eco-k .of { font-size: .74rem; font-weight: 700; color: var(--bruma); }
.eco-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; padding-right: 30px; }
.eco-card p { margin: 10px 0 14px; font-size: .92rem; line-height: 1.55; color: var(--texto-suave); }
.eco-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.eco-tags span { padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--navy); background: var(--niebla); }
.eco-act { display: flex; flex-wrap: wrap; gap: 10px; }
.eco-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linea); font-size: .74rem; font-weight: 700; color: var(--texto-suave); }
.eco-nav button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); transition: background .25s, color .25s; }
.eco-nav button:hover { background: var(--navy); color: #fff; }
.eco-nav .ico { width: 16px; height: 16px; }
.eco-rail { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; margin-top: -26px; position: relative; z-index: 5; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.eco-rail::-webkit-scrollbar { display: none; }
.eco-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--navy); background: #fff; box-shadow: var(--sombra-s), inset 0 0 0 1.5px rgba(27, 52, 93, .12); transition: background .25s, color .25s, box-shadow .25s, transform .25s; }
.eco-chip:hover { transform: translateY(-1px); box-shadow: var(--sombra-m), inset 0 0 0 1.5px rgba(27, 52, 93, .25); }
.eco-chip .n { font-size: .68rem; font-weight: 800; color: var(--naranja); padding-left: 6px; }
.eco-chip .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--niebla); color: var(--navy); }
.eco-chip .ic .ico { width: 16px; height: 16px; }
.eco-chip.on { background: var(--navy); color: #fff; box-shadow: var(--sombra-m); }
.eco-chip.on .ic { background: var(--naranja); color: #fff; }
.eco-chip:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }
@media (max-width: 760px) {
  .eco-stage { height: clamp(460px, 74vh, 640px); }
  .eco-rail { justify-content: flex-start; flex-wrap: nowrap; margin-top: -18px; }
  .eco-card { left: 10px; right: 10px; width: auto; bottom: 36px; padding: 18px 18px 12px; max-height: 62%; }
  .eco-card p { font-size: .86rem; margin: 8px 0 12px; }
  .eco-hint { display: none; }
  .eco-tools { top: 40px; right: 10px; }
  .eco-tool { width: 38px; height: 38px; }
  .eco-pin { font-size: .72rem; }
  .eco-pin .n { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-pin .n::before, .eco-stage.loading::after { animation: none; }
  .eco-card.in { animation: none; }
}

/* ---------- Banner de anuncios con efecto "sobresale" ---------- */
.promo { padding: 40px 0 clamp(60px, 8vw, 110px); }
.promo-card {
  position: relative; border-radius: var(--r-l); min-height: 300px; margin-top: 90px;
  background: linear-gradient(115deg, var(--noche) 0%, var(--navy) 55%, #2a5291 100%); color: #fff; isolation: isolate;
}
.promo-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: radial-gradient(40% 80% at 85% 50%, rgba(255, 94, 0, .35), transparent 70%), radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px) 0 0/20px 20px; }
.promo-card, .promo-slides { min-height: 360px; }
.promo-slides { position: relative; }
.promo-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; padding: clamp(28px, 4vw, 56px); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.promo-slide.on { opacity: 1; visibility: visible; }
.promo-slide .p-txt { position: relative; z-index: 2; }
.promo-slide .tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--naranja); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.promo-slide h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; margin: 14px 0 10px; }
.promo-slide p { opacity: .85; max-width: 46ch; margin-bottom: 22px; }
.promo-slide .p-txt > * { transform: translateY(20px); opacity: 0; transition: all .8s var(--ease); }
.promo-slide.on .p-txt > * { transform: none; opacity: 1; }
.promo-slide.on .p-txt > *:nth-child(2) { transition-delay: .1s; } .promo-slide.on .p-txt > *:nth-child(3) { transition-delay: .2s; } .promo-slide.on .p-txt > *:nth-child(4) { transition-delay: .3s; }
.promo-pop { position: absolute; right: 2%; bottom: 0; width: 52%; height: 150%; z-index: 3; pointer-events: none; }
.promo-pop canvas, .promo-pop img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.promo-pop img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); transform: translateY(30px) scale(.9); opacity: 0; transition: all 1s var(--ease); }
.promo-slide.on .promo-pop img { transform: none; opacity: 1; }
.promo-dots { position: absolute; left: clamp(28px, 4vw, 56px); bottom: 20px; display: flex; gap: 8px; z-index: 4; }
.promo-dots button { width: 26px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: all .3s; }
.promo-dots button.on { width: 46px; background: var(--naranja); }

/* ---------- Logística al Día (boletín formato periódico) ---------- */
.news { background: linear-gradient(180deg, #fff 0%, var(--niebla) 100%); }
.news-masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 3px solid var(--navy); border-bottom: 1px solid var(--linea); margin-bottom: 28px; font-size: .78rem; font-weight: 600; color: var(--texto-suave); flex-wrap: wrap; }
.news-masthead .mast-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 900; color: var(--navy); letter-spacing: -.02em; }
.news-masthead .mast-title em { font-style: normal; color: var(--naranja); }
.ticker { flex: 1; min-width: 200px; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: inline-flex; gap: 40px; animation: marquee 40s linear infinite; }
.ticker b { color: var(--naranja); }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.news-main { display: grid; grid-template-columns: 1fr; gap: 24px; }
.article-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--r-l); overflow: hidden; background: #fff; box-shadow: var(--sombra-m); }
.article-hero .a-img { position: relative; min-height: 340px; overflow: hidden; }
.article-hero .a-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.article-hero:hover .a-img img { transform: scale(1.06); }
.article-hero .a-body { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; }
.a-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--naranja); }
.a-kicker .live { padding: 3px 8px; border-radius: 6px; background: var(--naranja); color: #fff; letter-spacing: .08em; }
.article-hero h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; margin: 12px 0; }
.article-hero p { color: var(--texto-suave); font-size: .96rem; }
.a-meta { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--texto-suave); font-weight: 600; flex-wrap: wrap; }
.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.a-card { background: #fff; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--linea); transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.a-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-m); }
.a-card .a-img { aspect-ratio: 16/10; overflow: hidden; }
.a-card .a-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.a-card:hover .a-img img { transform: scale(1.07); }
.a-card .a-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.a-card h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; transition: color .25s; }
.a-card:hover h4 { color: var(--naranja); }
.a-card .date { font-size: .74rem; color: var(--texto-suave); font-weight: 600; margin-top: auto; }
.news-side { display: flex; flex-direction: column; gap: 18px; }
.widget { border-radius: var(--r-m); padding: 20px; background: #fff; border: 1px solid var(--linea); box-shadow: var(--sombra-s); }
.widget h5 { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acero); font-weight: 800; }
.widget h5 .ico { color: var(--naranja); }
.fx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--linea); }
.fx-row:last-of-type { border-bottom: 0; }
.fx-row .cur { font-weight: 700; color: var(--navy); font-size: .9rem; }
.fx-row .val { font-weight: 900; font-size: 1.5rem; color: var(--navy); letter-spacing: -.02em; }
.fx-row .val small { font-size: .55em; color: var(--texto-suave); font-weight: 700; margin-left: 3px; }
.w-note { font-size: .7rem; color: var(--texto-suave); margin-top: 8px; }
.weather { display: flex; align-items: center; gap: 16px; }
.weather .w-ico { width: 64px; height: 64px; color: var(--naranja); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(6deg); } }
.weather .w-temp { font-size: 2.6rem; font-weight: 900; color: var(--navy); line-height: 1; }
.weather .w-desc { font-size: .84rem; font-weight: 600; color: var(--texto-suave); }
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.w-grid div { background: var(--niebla); border-radius: 10px; padding: 8px; text-align: center; font-size: .72rem; color: var(--texto-suave); font-weight: 600; }
.w-grid b { display: block; color: var(--navy); font-size: .95rem; }
.ad-mini { position: relative; overflow: hidden; border-radius: var(--r-m); padding: 22px; color: #fff; background: linear-gradient(140deg, var(--naranja), #ff8a3d); min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; }
.ad-mini .ad-label { position: absolute; top: 12px; right: 14px; font-size: .62rem; letter-spacing: .14em; font-weight: 800; opacity: .8; }
.ad-mini h6 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; line-height: 1.15; color: #fff; }
.ad-mini p { font-size: .82rem; opacity: .9; margin-bottom: 12px; }
.ad-mini .ad-ico { position: absolute; right: -18px; top: -10px; width: 130px; height: 130px; opacity: .2; animation: floaty 6s ease-in-out infinite; }
.ad-mini .btn { --bg: #fff; --fg: var(--naranja); box-shadow: none; align-self: flex-start; }
.news-foot { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- CTA final ---------- */
.cta-band { position: relative; border-radius: var(--r-l); padding: clamp(36px, 6vw, 70px); overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--linea); box-shadow: var(--sombra-m); isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 100% 50%, rgba(255, 94, 0, .12), transparent 70%), radial-gradient(40% 80% at 0% 0%, rgba(169, 188, 214, .45), transparent 70%); }
.cta-band .h-sec { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band .cta-actions small { color: var(--texto-suave); font-weight: 600; font-size: .8rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: linear-gradient(180deg, var(--noche), #0a1529); color: rgba(255, 255, 255, .78); padding: 80px 0 0; overflow: hidden; isolation: isolate; font-size: .9rem; }
.footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 0% 0%, rgba(74, 106, 150, .35), transparent 70%), radial-gradient(30% 50% at 100% 100%, rgba(255, 94, 0, .12), transparent 70%); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1.1fr 1fr 1fr; gap: clamp(26px, 4vw, 56px); }
.f-brand { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.f-brand .f-logo { width: min(260px, 100%); }
.f-brand p { font-size: .86rem; max-width: 34ch; }
.f-col h4 { color: #fff; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; margin-bottom: 18px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.f-col a { transition: color .2s; }
.f-col a:hover { color: var(--naranja); }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.f-contact .ico { color: var(--naranja); margin-top: 3px; }
.newsletter { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); margin-top: 6px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 14px; color: #fff; font-size: .86rem; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter .btn { padding: .75em 1.1em; }
.nl-msg { font-size: .78rem; margin-top: 8px; min-height: 1.2em; color: var(--naranja); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); transition: all .3s var(--ease); color: #fff; }
.socials a:hover { background: var(--naranja); border-color: var(--naranja); transform: translateY(-3px); }
.socials .ico { width: 18px; height: 18px; }
.f-jobs { margin-top: 22px; padding: 18px; border-radius: var(--r-m); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.f-jobs b { color: #fff; display: block; margin-bottom: 4px; }
.f-jobs a.link { color: var(--naranja); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.seals { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.seal { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-size: .7rem; line-height: 1.2; color: #fff; font-weight: 700; }
.seal small { display: block; font-weight: 500; color: rgba(255, 255, 255, .6); }
.seal .ico { width: 28px; height: 28px; color: #3ddc97; }
.seal.secure .ico { color: var(--naranja); }
.footer-bottom { margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; font-size: .78rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-links a:hover { color: var(--naranja); }
.footer-word { margin: 30px auto 0; opacity: .06; user-select: none; pointer-events: none; }
.footer-word img { width: 100%; height: auto; }

/* =========================================================
   MODALES (cotización · acceso) con glassmorphism de fondo
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(238, 241, 245, .35); -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); opacity: 0; transition: opacity .5s var(--ease), backdrop-filter .5s var(--ease), -webkit-backdrop-filter .5s var(--ease); }
.modal.open .modal-bg { opacity: 1; -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.modal-box {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); overflow: hidden; border-radius: var(--r-l);
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--sombra-l);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  transform: translateY(30px) scale(.97); opacity: 0; transition: all .55s var(--ease); display: flex; flex-direction: column;
}
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(27, 52, 93, .06); color: var(--navy); transition: all .25s; }
.modal-box.login .modal-close { background: rgba(255, 255, 255, .85); }
.modal-close:hover { background: var(--naranja); color: #fff; transform: rotate(90deg); }
.modal-head { padding: 28px 32px 18px; border-bottom: 1px solid var(--linea); }
.modal-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; }
.modal-head p { color: var(--texto-suave); font-size: .9rem; margin-top: 6px; }
.modal-steps { display: flex; gap: 8px; margin-top: 16px; }
.modal-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--linea); position: relative; overflow: hidden; }
.modal-steps span.on::after { content: ''; position: absolute; inset: 0; background: var(--naranja); animation: grow .5s var(--ease); }
@keyframes grow { from { transform: scaleX(0); transform-origin: left; } }
.modal-body { padding: 24px 32px; overflow-y: auto; }
.modal-foot { padding: 16px 32px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--linea); flex-wrap: wrap; }
.modal-foot small { color: var(--texto-suave); font-size: .76rem; display: flex; align-items: center; gap: 6px; }
.fieldset-title { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--acero); font-weight: 800; margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; }
.fieldset-title::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 16px; margin-bottom: 20px; }
.f { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.f.w3 { grid-column: span 3; } .f.w6 { grid-column: span 6; } .f.w4 { grid-column: span 4; }
.f label { font-size: .76rem; font-weight: 700; color: var(--navy); }
.f label .req { color: var(--naranja); }
.f input, .f select, .f textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(27, 52, 93, .12); background: rgba(255, 255, 255, .8); outline: none;
  font-size: .9rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--naranja); box-shadow: 0 0 0 4px rgba(255, 94, 0, .12); background: #fff; }
.f.err input, .f.err select, .f.err textarea { border-color: #e5484d; }
.f .hint { font-size: .7rem; color: #e5484d; min-height: 0; }
.input-ico { position: relative; }
.input-ico .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--acero); width: 18px; height: 18px; pointer-events: none; }
.input-ico input { padding-left: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(27, 52, 93, .14); font-size: .8rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: all .2s; background: rgba(255, 255, 255, .7); }
.chip > span .ico { width: 16px; height: 16px; }
.chip:hover > span { border-color: var(--naranja); }
.chip input:checked + span { background: var(--naranja); border-color: var(--naranja); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 94, 0, .2); }
.dropzone { border: 2px dashed rgba(27, 52, 93, .18); border-radius: 16px; padding: 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: all .25s; background: rgba(255, 255, 255, .6); }
.dropzone:hover, .dropzone.over { border-color: var(--naranja); background: rgba(255, 94, 0, .04); }
.dropzone .ico { width: 34px; height: 34px; color: var(--naranja); }
.dropzone b { color: var(--navy); font-size: .88rem; display: block; }
.dropzone small { color: var(--texto-suave); font-size: .74rem; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs .t { position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; box-shadow: var(--sombra-s); }
.thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(14, 30, 56, .7); color: #fff; display: grid; place-items: center; }
.thumbs .t button .ico { width: 12px; height: 12px; }
.success { text-align: center; padding: 40px 20px; }
.success .check { width: 86px; height: 86px; margin: 0 auto 20px; border-radius: 50%; background: rgba(24, 178, 107, .12); color: #18b26b; display: grid; place-items: center; }
.success .check .ico { width: 44px; height: 44px; stroke-width: 2.4; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .8s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-size: 1.6rem; font-weight: 800; }
.success p { color: var(--texto-suave); margin: 10px auto 0; max-width: 48ch; }
.success .ref { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 10px; background: var(--niebla); font-weight: 800; color: var(--navy); letter-spacing: .06em; }

/* Login */
.modal-box.login { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1.05fr; }
.login-art { position: relative; background: url('../img/fotos/tracking.webp') center/cover; min-height: 520px; color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.login-art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 30, 56, .1), rgba(14, 30, 56, .9)); }
.login-art h3 { color: #fff; font-size: 1.6rem; font-weight: 800; }
.login-art p { opacity: .85; font-size: .9rem; margin-top: 8px; }
.login-art .badge-dev { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.login-form { padding: 44px 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.login-form h2 { font-size: 1.7rem; font-weight: 800; }
.login-form > p { color: var(--texto-suave); font-size: .9rem; margin-top: -6px; }
.login-form .row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 600; color: var(--texto-suave); }
.login-form .row a:hover { color: var(--naranja); }
.login-err { color: #e5484d; font-size: .8rem; font-weight: 600; min-height: 1.2em; }
.login-form .btn { justify-content: center; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--acero); padding: 4px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* =========================================================
   CHAT FLOTANTE
   ========================================================= */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 62px; height: 62px; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(255, 94, 0, .4); transition: transform .35s var(--ease); }
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-fab .ico { width: 26px; height: 26px; }
.chat-fab .chat-ico { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(14, 30, 56, .2)); }
.chat-fab { background: linear-gradient(145deg, #ff7a2e, var(--naranja)); }
.chat-fab::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--naranja); animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
.chat-fab .badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.chat-hello { position: fixed; right: 96px; bottom: 34px; z-index: 70; padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-size: .86rem; font-weight: 600; color: var(--navy); opacity: 0; transform: translateX(10px); transition: all .5s var(--ease); pointer-events: none; }
.chat-hello.show { opacity: 1; transform: none; }
.chat-win { position: fixed; right: 22px; bottom: 96px; z-index: 75; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px)); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; background: rgba(255, 255, 255, .88); border: 1px solid #fff; box-shadow: var(--sombra-l); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); transform-origin: bottom right; transform: scale(.85) translateY(20px); opacity: 0; visibility: hidden; transition: all .45s var(--ease); }
.chat-win.open { transform: none; opacity: 1; visibility: visible; }
.chat-head { padding: 18px; background: linear-gradient(120deg, var(--navy), var(--noche)); color: #fff; display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; position: relative; }
.chat-head .av img { width: 28px; }
.chat-head .av::after { content: ''; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #18b26b; border: 2px solid var(--navy); }
.chat-head b { display: block; font-size: .95rem; }
.chat-head small { opacity: .75; font-size: .74rem; }
.chat-head button { margin-left: auto; opacity: .8; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .86rem; line-height: 1.45; animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.msg.bot { background: var(--niebla); color: var(--grafito); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--naranja); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 4px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--acero); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { padding: 7px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--navy); border: 1.5px solid rgba(27, 52, 93, .15); background: #fff; transition: all .2s; }
.quick button:hover { border-color: var(--naranja); color: var(--naranja); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--linea); background: rgba(255, 255, 255, .7); }
.chat-input input { flex: 1; min-width: 0; border: 1.5px solid rgba(27, 52, 93, .12); border-radius: 999px; padding: 10px 16px; outline: none; font-size: .86rem; background: #fff; }
.chat-input input:focus { border-color: var(--naranja); }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.chat-input button:hover { transform: scale(1.06); }

/* Cookies */
.cookies { position: fixed; left: 50%; bottom: 18px; z-index: 72; width: min(760px, calc(100vw - 140px)); padding: 12px 12px 12px 18px; border-radius: 18px; font-size: .78rem; line-height: 1.45; color: var(--grafito); transform: translate(-50%, 160%); transition: transform .7s var(--ease); display: flex; align-items: center; gap: 16px; }
.cookies.show { transform: translate(-50%, 0); }
.cookies b { color: var(--navy); display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: .84rem; }
.cookies b .ico { color: var(--naranja); }
.cookies a { color: var(--naranja); font-weight: 700; }
.cookies .c-actions { display: flex; gap: 8px; flex: none; }

/* =========================================================
   BARRA INFERIOR TIPO APP (móvil)
   ========================================================= */
.appbar { display: none; }
@media (max-width: 1080px) {
  .nav, .top-actions .login-label { display: none; }
  .burger { display: grid; }
  .top-actions { margin-left: auto; }
  .dropdown.wide { min-width: 0; }
}
@media (max-width: 900px) {
  :root { --top-h: 64px; }
  .about-grid, .news-grid, .cta-band, .article-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; align-items: flex-start; }
  .svc-panels { flex-direction: column; height: auto; gap: 12px; }
  .svc { flex: none !important; height: 96px; transition: height .8s var(--ease); }
  .svc.active { height: 440px; }
  .svc .s-vert { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: auto; top: 50%; margin-top: -.7em; }
  .svc .s-num { display: none; }
  .svc .s-icon { top: 50%; margin-top: -26px; }
  .svc.active .s-icon { top: 18px; margin-top: 0; }
  .promo-slide { grid-template-columns: 1fr; align-content: start; }
  .promo-card, .promo-slides { min-height: 520px; }
  .promo-pop { width: 90%; height: 60%; right: 5%; }
  .news-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .f, .f.w3, .f.w4, .f.w6 { grid-column: span 2; }
  .f.half { grid-column: span 1; }
  .modal-box.login { grid-template-columns: 1fr; }
  .login-art { min-height: 160px; }
  .hero-badges { display: none; }
}
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .appbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 65; height: 64px; border-radius: 22px; padding: 0 6px;
    background: rgba(255, 255, 255, .82); border: 1px solid #fff; box-shadow: 0 10px 40px rgba(14, 30, 56, .18); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  }
  .appbar a, .appbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .62rem; font-weight: 700; color: var(--acero); }
  .appbar .ico { width: 22px; height: 22px; }
  .appbar .on { color: var(--naranja); }
  .appbar .fab-c { position: relative; }
  .appbar .fab-c .ring { width: 54px; height: 54px; margin-top: -26px; border-radius: 18px; background: var(--naranja); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(255, 94, 0, .45); border: 4px solid #fff; }
  .appbar .fab-c span { color: var(--naranja); }
  .chat-fab { bottom: 88px; right: 14px; width: 54px; height: 54px; }
  .chat-hello { right: 78px; bottom: 98px; }
  .chat-win { right: 10px; bottom: 150px; height: min(520px, calc(100svh - 200px)); }
  .cookies { left: 10px; right: 10px; width: auto; bottom: 86px; transform: translateY(160%); flex-direction: column; align-items: stretch; }
  .cookies.show { transform: none; }
  .hero-word { top: 16vh; }
  .brand img { height: 16px; }
  .topbar .login-btn, .topbar .burger { display: none; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .lang-btn .chev { display: none; }
  .hero-copy { right: var(--gutter); bottom: 96px; }
  .chat-hello { display: none; }
  .promo-card, .promo-slides { min-height: 600px; }
  .promo-slide { padding-bottom: 44%; }
  .promo-pop { height: 42%; bottom: 36px; }
  .promo-slide .p-txt { padding-bottom: 10px; }
  .hero-copy h1 { font-size: 1.55rem; }
  .hero-copy p { display: none; }
  .hero-scrollhint { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px; }
  .stat .s-ico { width: 44px; height: 44px; margin-bottom: 14px; }
  .news-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 26px 26px 0 0; max-height: 94svh; }
  .modal-head, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }
  .infobar .wrap { gap: 12px; font-size: .7rem; }
  .infobar .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Odómetro */
.odo { display: inline-flex; align-items: flex-start; line-height: 1; vertical-align: baseline; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 2.2s cubic-bezier(.16, .9, .2, 1); will-change: transform; }
.odo-strip > span { display: block; height: 1em; line-height: 1; }
.odo-sep { display: inline-block; }

/* Tarjetas de cifras: ícono a la izquierda, número a la derecha, texto debajo */
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico num" "lbl lbl"; column-gap: 18px; row-gap: 14px; align-items: center; }
.stat .s-ico { grid-area: ico; margin-bottom: 0; }
.stat .num { grid-area: num; }
.stat .lbl { grid-area: lbl; margin-top: 0; padding-top: 14px; border-top: 1px solid var(--linea); }
.stat.feature .lbl { border-top-color: rgba(255, 255, 255, .14); }
@media (max-width: 760px) { .stat { column-gap: 12px; } .stat .num { font-size: 2.1rem; } .stat .num.word { font-size: 1.5rem; } }

.is-preview .chat-hello, .is-preview .chat-fab, .is-preview .cookies { display: none !important; }
/* Dedo simulado de la demo del portal (teléfono del banner) */
.demo-finger { position: fixed; left: -23px; top: -23px; width: 46px; height: 46px; z-index: 9999; pointer-events: none; opacity: 0; transition: transform var(--d, 0ms) cubic-bezier(.45, 0, .2, 1), opacity .25s; }
.demo-finger.on { opacity: 1; }
.demo-finger::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .45) 60%, rgba(255, 255, 255, .25)); border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 6px 18px rgba(16, 33, 61, .35), inset 0 0 0 1px rgba(27, 52, 93, .12); backdrop-filter: blur(2px); transition: transform .18s; }
.demo-finger.down::before { transform: scale(.82); background: rgba(255, 255, 255, .7); }
.demo-finger::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); opacity: 0; }
.demo-finger.tap::after { animation: demoTap .6s ease-out; }
@keyframes demoTap { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* Muelle difuminado detrás de la grúa, fundido con el blanco */
.hero-dock { position: absolute; left: -2%; right: -2%; bottom: 0; height: 66%; background: url('../img/fotos/muelle.webp') center 58% / cover no-repeat; opacity: .34; filter: blur(2px) saturate(.65) brightness(1.08);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 72%, transparent 100%); }
.hero-word { top: calc(42vh - 6vw); }
@media (max-width: 760px) { .hero-dock { height: 50%; bottom: 18%; background-position: 30% 58%; } .hero-word { top: 22vh; } }

/* Banner: mano con teléfono (portal en vivo) y equipo con sello */
.phone-pop { width: 32%; right: 7%; height: 178%; }
.phone { position: relative; height: 100%; aspect-ratio: 1059 / 1551; margin-left: auto; opacity: 0; transition: opacity .8s var(--ease); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.promo-slide.on .phone { opacity: 1; }
.phone-pop .phone > img { width: 100%; height: 100%; object-fit: contain; transform: none; opacity: 1; filter: none; }
.phone-screen { position: absolute; left: 0; top: 0; width: 390px; height: 966px; transform-origin: 0 0; border-radius: 46px; overflow: hidden; background: #0c0e12; }
.phone-screen iframe { position: absolute; inset: 0; width: 390px; height: 966px; border: 0; pointer-events: none; background: #fff; }

@keyframes phoneFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.phone-screen::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(125deg, rgba(255, 255, 255, .18), transparent 35%); pointer-events: none; }
.team-pop { width: 44%; right: 3%; height: 152%; }
.team-pop > img:first-child { object-position: bottom right; }
.promo-pop .team-seal { position: absolute; top: auto; left: auto; bottom: 5%; right: 3%; width: 64px; height: auto; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); transform: scale(.6) rotate(-10deg); transition-delay: .35s; }
.promo-slide.on .promo-pop .team-seal { transform: none; }
/* Anuncios del panel: imagen troquelada que sobresale (misma posición y tamaño que el equipo) */
.cut-pop { width: 44%; right: 3%; height: 152%; }
.cut-pop.wide { width: 56%; right: 1%; height: 128%; }
.cut-pop img { object-position: bottom right; }
@media (max-width: 900px) { .cut-pop, .cut-pop.wide { width: 78%; height: 50%; right: 11%; } .cut-pop img { object-position: bottom center; } }
@media (max-width: 900px) { .phone-pop { width: 60%; height: 46%; right: 20%; } .team-pop { width: 78%; height: 50%; right: 11%; } .promo-pop .team-seal { right: 2%; bottom: 4%; width: 52px; } }

/* Ilustración de clima detallada (Magnific) */
.weather .w-ico { width: 92px; height: 92px; flex: none; }
.weather .w-ico img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.stat .num { white-space: nowrap; font-size: clamp(2rem, 3.4vw, 3.3rem); }
.ben-ico .ico { width: 24px; height: 24px; }

/* Avatar del chat con el logo apilado oficial */
.chat-head .av { width: 48px; height: 48px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.chat-head .av img { width: 34px; height: auto; }
.chat-head .av::after { right: -3px; bottom: -3px; }

/* Banners: foto de fondo difuminada con profundidad y degradado azul para leer el texto */
.promo-slide { isolation: isolate; }
.p-bg { position: absolute; inset: 0; z-index: -1; border-radius: var(--r-l); overflow: hidden; }
.p-bg::before { content: ''; position: absolute; inset: -30px; background: var(--bg) center / cover no-repeat; filter: blur(5px) saturate(.8); transform: scale(1.08); transition: transform 8s ease-out; }
.promo-slide.on .p-bg::before { transform: scale(1.18); }
.p-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 30, 56, .96) 0%, rgba(14, 30, 56, .88) 38%, rgba(27, 52, 93, .62) 70%, rgba(27, 52, 93, .35) 100%),
              radial-gradient(60% 90% at 85% 60%, rgba(255, 94, 0, .22), transparent 70%); }
/* Contenedor del anuncio: más grande y saliendo hacia arriba */
.box-pop { width: 58%; right: -13%; height: 205%; }
.box-pop img { object-position: center bottom; transform: translateY(70px) scale(.92); }
.promo-slide.on .box-pop img { transform: translateY(1%); animation: boxRise 7s ease-in-out 1s infinite; }
@keyframes boxRise { 0%, 100% { transform: translateY(1%) rotate(0); } 50% { transform: translateY(-3%) rotate(-1.2deg); } }
@media (max-width: 900px) { .box-pop { width: 96%; right: 2%; height: 62%; } .promo-slide.on .box-pop img { transform: translateY(10%); animation: none; } }

/* ===== Arma tu solución (antes del footer) ===== */
.solution { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(80px, 10vw, 130px) 0; margin-top: 40px; }
.sol-bg { position: absolute; inset: 0; z-index: -2; }
.sol-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 7s ease-out; filter: saturate(.85); }
.sol-bg img.on { opacity: 1; transform: scale(1.02); }
.solution::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14, 30, 56, .97) 0%, rgba(14, 30, 56, .9) 42%, rgba(27, 52, 93, .7) 75%, rgba(27, 52, 93, .55) 100%),
              radial-gradient(50% 70% at 90% 30%, rgba(255, 94, 0, .25), transparent 70%); }
.solution::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px); background-size: 22px 22px; }
.sol-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sol-left h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin: 14px 0 12px; }
.sol-left h2 em { font-style: normal; color: var(--naranja); }
.sol-left > p { opacity: .82; font-size: 1.05rem; }
.sol-qs { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.sol-q > b { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bruma); margin-bottom: 10px; }
.sol-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-ops button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: all .25s var(--ease); }
.sol-ops button .ico { width: 18px; height: 18px; }
.sol-ops button:hover { border-color: var(--naranja); transform: translateY(-2px); }
.sol-ops button.on { background: var(--naranja); border-color: var(--naranja); box-shadow: 0 10px 24px rgba(255, 94, 0, .35); }
.sol-card { border-radius: var(--r-l); padding: 26px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.sol-card-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--bruma); }
.sol-card-h img { height: 13px; }
.sol-route { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.sr-pt { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .64rem; font-weight: 700; color: var(--bruma); }
.sr-pt .ico { width: 34px; height: 34px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; }
.sr-line { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 6px, transparent 6px 12px); }
.sr-veh { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--naranja); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 94, 0, .2); }
.sr-veh .ico { width: 20px; height: 20px; }
.sr-line.go .sr-veh { animation: solMove 3.2s var(--ease) forwards; }
@keyframes solMove { from { left: 0; } to { left: 100%; } }
.sol-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sol-list li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: .9rem; animation: pop .45s var(--ease) both; animation-delay: var(--d); }
.sol-list li > .ico:first-child { color: var(--naranja); }
.sol-list li .ok { margin-left: auto; color: #3ddc97; width: 18px; height: 18px; }
.sol-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .76rem; font-weight: 700; color: var(--bruma); margin-bottom: 18px; }
.sol-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.sol-meta .ico { width: 16px; height: 16px; color: var(--naranja); }
.sol-card .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .sol-grid { grid-template-columns: 1fr; } }

/* Popup de suscripción a la comunidad */
.nl-box { width: min(620px, 100%); padding: clamp(36px, 6vw, 60px) clamp(24px, 5vw, 56px); text-align: center; color: #fff; background: linear-gradient(150deg, var(--navy), var(--noche)); border: 0; overflow: hidden; isolation: isolate; display: block; }
.nl-art { position: absolute; inset: 0; z-index: -1; }
.nl-art img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: blur(2px) grayscale(.3); }
.nl-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 80% at 80% 100%, rgba(255, 94, 0, .3), transparent 70%), linear-gradient(180deg, rgba(14, 30, 56, .3), rgba(14, 30, 56, .85)); }
.nl-box .modal-close { background: rgba(255, 255, 255, .12); color: #fff; }
.nl-logo { width: 110px; margin: 0 auto 22px; }
.nl-box h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; line-height: 1.2; }
.nl-box p { opacity: .85; margin: 12px auto 24px; max-width: 42ch; }
.nl-box form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin: 0 auto; }
.nl-box input { padding: 15px 18px; border-radius: 14px; border: 0; outline: 0; font-size: .95rem; color: var(--navy); }
.nl-box input:focus { box-shadow: 0 0 0 4px rgba(255, 94, 0, .35); }
.nl-box .btn { justify-content: center; padding: 15px; border-radius: 14px; }
.nl-pop-msg { display: block; margin-top: 14px; font-size: .78rem; opacity: .75; }
.msg.agent { background: #fff; border: 1.5px solid rgba(255, 94, 0, .35); }
.msg .agent-tag { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--naranja); margin-bottom: 3px; }

.w-note a { color: var(--acero); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.w-note a:hover { color: var(--naranja); }

@media (max-width: 900px) and (min-width: 761px) { .promo-card, .promo-slides { min-height: 640px; } .promo-slide { padding-bottom: 46%; } }

/* ===== Modo edición del panel (pagina.html?editar) ===== */
.cms-edit .reveal, .cms-edit .reveal * { opacity: 1 !important; transform: none !important; }
.cms-edit:not(.cms-look) [data-k]:hover, .cms-edit:not(.cms-look) [data-count]:hover { outline: 2px dashed #FF5E00; outline-offset: 3px; cursor: text; }
.cms-edit:not(.cms-look) main img:not([src*="/logos/"]):not([src*="/cert/"]):hover, .cms-edit:not(.cms-look) footer img:not([src*="/logos/"]):not([src*="/cert/"]):hover { outline: 3px dashed #FF5E00; outline-offset: -3px; cursor: pointer; }
.cms-edit .cms-sel { outline: 3px solid #FF5E00 !important; outline-offset: 3px; }
.cms-edit body { padding-bottom: 64px; }
.cms-edit .cms-off { opacity: .35; filter: grayscale(1); }
.cms-look .cms-sec { display: none; }
.cms-ui { font: 500 13px/1.4 var(--font, system-ui); color: #10213d; }
.cms-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2147483000; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 8px 12px; border-radius: 14px; background: #10213d; color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.cms-bar b { color: #FF5E00; }
.cms-pg { padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.12); font-size: 12px; }
.cms-hint { opacity: .7; font-size: 12px; }
.cms-bar button, .cms-bar a { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 12px; text-decoration: none; border: 0; cursor: pointer; }
.cms-bar button.on { background: #FF5E00; }
.cms-bar a:last-child { background: #FF5E00; }
.cms-panel { position: fixed; right: 14px; top: 84px; bottom: 76px; z-index: 2147483001; width: min(380px, calc(100vw - 28px)); overflow: auto; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(16,33,61,.35); display: flex; flex-direction: column; gap: 10px; }
.cms-panel label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 12px; color: #1B345D; }
.cms-panel textarea, .cms-panel input[type=number] { font: 500 13px/1.45 var(--font, system-ui); padding: 8px 10px; border: 1px solid #c9d3e3; border-radius: 10px; resize: vertical; }
.cms-panel label.cms-chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.cms-ph { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.cms-x { font-size: 22px; line-height: 1; background: none; border: 0; cursor: pointer; color: #1B345D; }
.cms-tip { margin: 0; font-size: 12px; color: #5b6577; }
.cms-tip code { background: #eef2f8; padding: 0 4px; border-radius: 4px; }
.cms-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.cms-prev { width: 100%; max-height: 200px; object-fit: contain; border-radius: 10px; background: #eef2f8; }
.cms-up { align-self: flex-start; }
.cms-bank { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cms-bank button { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; background: center / cover; cursor: pointer; }
.cms-bank button:hover { border-color: #FF5E00; }
.cms-sec { position: absolute; top: 8px; left: 8px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 10px; background: #10213d; color: #fff; font: 700 11px/1 var(--font, system-ui); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.cms-sec button { padding: 5px 9px; border-radius: 7px; border: 0; background: #FF5E00; color: #fff; font: inherit; cursor: pointer; }
.cms-sec.off { background: #8a94a6; }
.cms-sec.off button { background: #1c7c4a; }
.cms-toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); z-index: 2147483002; padding: 10px 16px; border-radius: 10px; background: #1c7c4a; color: #fff; font-weight: 700; opacity: 0; transition: .3s; pointer-events: none; }
.cms-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cms-edit main > :first-child > .cms-sec { top: 92px; }
.btn:hover .ico, .btn:focus-visible .ico { --chat-dot: #fff; }   /* puntos del ícono de chat sobre la burbuja naranja */
