/*
 * Design style Drivin (ronda 3, 2026-10-14). Sale de "Correcciones Sitio Web - Ronda 02" del cliente y de 3gtms.com
 * como referencia visual. Es la base única de las 3 URLs (Home, Demo, Industria) y el espejo de theme.json:
 * cada token tiene el slug que tendrá su preset en WordPress.
 * Reglas en una línea: 3 botones · H1 a H4 fijos · sin eyebrows · foto real protagonista con un detalle de UI ·
 * íconos de la librería Descartes (line art) · tarjetas de 4 tipos · en móvil se recorta texto y las grillas pasan a carrusel.
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
	/* Color: manual Descartes 3.0 + los de la web de Descartes. Cada uno tiene UN rol */
	--wp--preset--color--navy: #012A49; /* títulos y bandas oscuras */
	--wp--preset--color--action: #0058BF; /* botón principal, links, cifras */
	--wp--preset--color--light-blue: #009CEB; /* acentos sobre navy, tratamiento de foto */
	--wp--preset--color--light-green: #BADD92; /* botón secundario */
	--wp--preset--color--dark-gray: #53565A; /* texto de párrafo */
	--wp--preset--color--panel: #F3F4F6; /* tarjeta sobre blanco */
	--wp--preset--color--pastel: #EDF4FC; /* banda alterna */
	--wp--preset--color--tint-blue: #E5F0FB;
	--wp--preset--color--tint-green: #EEF6E4;
	--wp--preset--color--line: #E1E4E8;
	--wp--preset--color--white: #FFFFFF;

	--ink: var(--wp--preset--color--navy);
	--text: var(--wp--preset--color--dark-gray);
	--blue: var(--wp--preset--color--action);
	--lime: var(--wp--preset--color--light-green);

	/* Tipografía: Roboto. 4 niveles de título, fijos en todo el sitio */
	--wp--preset--font-family--body: 'Roboto', Arial, sans-serif;
	--wp--preset--font-size--h1: 64px;
	--wp--preset--font-size--h2: 48px;
	--wp--preset--font-size--h3: 28px;
	--wp--preset--font-size--h4: 20px;
	--wp--preset--font-size--lead: 18px;
	--wp--preset--font-size--body: 16px;
	--wp--preset--font-size--small: 14px;
	--wp--preset--font-size--cifra: 88px;

	/* Espaciado y forma */
	--wp--preset--spacing--sec: 112px; /* padding vertical de sección */
	--wp--preset--spacing--head: 56px; /* título de sección → contenido */
	--wp--preset--spacing--gap: 16px; /* entre tarjetas */
	--pad: 32px; /* dentro de una tarjeta */
	--r: 16px; /* tarjetas */
	--r-media: 20px; /* fotos y bandas */
	--r-btn: 10px;
	--float: 0 18px 44px rgba(1, 42, 73, .16); /* sombra: SÓLO lo que flota sobre una foto */
	--wp--style--global--wide-size: 1280px;
}
@media (max-width: 781px) {
	:root {
		--wp--preset--font-size--h1: 40px;
		--wp--preset--font-size--h2: 32px;
		--wp--preset--font-size--h3: 24px;
		--wp--preset--font-size--h4: 18px;
		--wp--preset--font-size--lead: 17px;
		--wp--preset--font-size--cifra: 64px;
		--wp--preset--spacing--sec: 64px;
		--wp--preset--spacing--head: 36px;
		--pad: 24px;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; font: 400 var(--wp--preset--font-size--body)/1.6 var(--wp--preset--font-family--body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Títulos: una clase por nivel; el tag HTML sigue la semántica, la clase fija el tamaño ===== */
.h1, .h2, .h3, .h4 { color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--wp--preset--font-size--h1); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.h2 { font-size: var(--wp--preset--font-size--h2); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.h3 { font-size: var(--wp--preset--font-size--h3); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.h4 { font-size: var(--wp--preset--font-size--h4); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.hl { color: var(--blue); }
.lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.6; }
.small { font-size: var(--wp--preset--font-size--small); }
.on-dark :is(.h1, .h2, .h3, .h4) { color: #fff; }
.on-dark .hl { color: var(--wp--preset--color--light-blue); }
.on-dark :is(.lead, p) { color: rgba(255, 255, 255, .8); }
/* Una caja blanca dentro de una banda oscura vuelve a los colores de fondo claro */
.on-dark .card :is(.h1, .h2, .h3, .h4) { color: var(--ink); }
.on-dark .card p { color: var(--text); }

/* ===== Botones: sólo 3 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-btn); font: 500 16px/1 var(--wp--preset--font-family--body); white-space: nowrap; cursor: pointer; }
.btn .i { font-size: 18px; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
/* 1. Principal (azul): todo lo que lleva a la demo o a conversar */
.btn--primario { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(0, 88, 191, .28); }
/* 2. Secundario (verde): casos de éxito, blog, recursos, descargas */
.btn--secundario { background: var(--lime); color: var(--ink); }
/* 3. Sin fondo: complementario. Azul sobre claro, blanco sobre oscuro */
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--blue); }
.link .i { font-size: 18px; transition: transform .2s; }
.on-dark .link { color: #fff; }

/* ===== Superficies y cajas ===== */
.sec { padding: var(--wp--preset--spacing--sec) 0; }
.sec--pastel { background: var(--wp--preset--color--pastel); }
.sec--navy { background: radial-gradient(70% 55% at 50% 100%, rgba(0, 88, 191, .85), rgba(0, 88, 191, 0) 70%), var(--ink); }
.w { max-width: calc(var(--wp--style--global--wide-size) + 160px); margin: 0 auto; padding: 0 80px; }
.head { display: grid; gap: 16px; justify-items: center; max-width: 860px; margin: 0 auto var(--wp--preset--spacing--head); text-align: center; }
.head .lead { max-width: 620px; }

/* Tarjeta base: sin borde ni sombra. Gris sobre blanco, blanca sobre pastel o navy */
.card { display: grid; align-content: start; gap: 14px; padding: var(--pad); border-radius: var(--r); background: var(--wp--preset--color--panel); }
.sec--pastel .card, .sec--navy .card { background: #fff; }
.card p { font-size: 15px; }

/* ===== Íconos Descartes (line art, el formato que la librería marca como preferido) ===== */
.ico { width: 64px; height: 64px; object-fit: contain; }
.ico--lg { width: 88px; height: 88px; }
/* Sobre navy el line art (Dark Blue #134169) no se lee: va dentro de un cuadro blanco, nunca recoloreado */
.ico-tile { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 14px; background: #fff; }
.ico-tile .ico { width: 56px; height: 56px; }

/* ===== Foto + detalle (3gtms "Built for modern supply chains"): foto real de protagonista y UNA pieza de UI encima ===== */
.media { position: relative; }
.media-foto { border-radius: var(--r-media); overflow: hidden; aspect-ratio: 4 / 3; }
.media-foto img { width: 100%; height: 100%; object-fit: cover; }
.media--retrato .media-foto { aspect-ratio: 4 / 5; }
/* Tratamiento azul del manual Descartes: sólo en heros. En el contenido la foto va en su color */
.media--azul .media-foto { background: var(--ink); }
.media--azul .media-foto img { filter: grayscale(1) contrast(1.05) brightness(1.3); }
.media--azul .media-foto::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-media); background: linear-gradient(165deg, var(--wp--preset--color--light-blue) 10%, var(--blue) 60%, var(--ink)); mix-blend-mode: multiply; opacity: .78; }
.detalle { position: absolute; z-index: 1; display: grid; gap: 8px; width: 240px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: var(--float); font-size: 13px; color: var(--text); }
.detalle--bi { left: -32px; bottom: 32px; }
.detalle--sd { right: -32px; top: 32px; }
.detalle-h { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.detalle-h img { width: 32px; height: 32px; }
.detalle-row { display: flex; justify-content: space-between; gap: 8px; }
.detalle-row em { font-style: normal; font-weight: 500; color: var(--ink); }
.prog { display: block; height: 6px; border-radius: 99px; background: var(--wp--preset--color--line); overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--blue); }
.bars i:nth-child(odd) { background: var(--wp--preset--color--light-blue); }

/* Fila de contenido: texto + media, alterna lados */
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.fila + .fila { margin-top: 112px; }
.fila--inv .fila-texto { order: 2; }
.fila-texto { display: grid; gap: 20px; justify-items: start; max-width: 500px; }

/* ===== Cifra ===== */
.cifra { display: grid; align-content: space-between; gap: 32px; min-height: 300px; }
.cifra b { font-size: var(--wp--preset--font-size--cifra); line-height: .95; font-weight: 700; letter-spacing: -.05em; color: var(--blue); }
.cifra p { max-width: 260px; font-size: 18px; line-height: 1.4; color: var(--ink); }

/* ===== Testimonio: logo arriba, cita al centro, nombre y cargo al pie ===== */
.testi { display: grid; grid-template-rows: 48px 1fr auto; gap: 24px; padding: var(--pad); border-radius: var(--r); background: #fff; }
.sec:not(.sec--pastel) .testi { background: var(--wp--preset--color--panel); }
.testi > img { height: 44px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.testi blockquote { font-size: 18px; line-height: 1.55; color: var(--ink); }
.testi footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); font-size: 14px; }
.testi footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi footer b { display: block; font-size: 16px; color: var(--ink); }

/* ===== Verificados: sellos + dos citas cortas con estrellas y plataforma ===== */
.verif { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verif-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 24px; }
.verif-head .sellos { display: flex; align-items: center; gap: 32px; }
.verif-head .sellos img { height: 72px; width: auto; }
.cita { display: grid; align-content: start; gap: 16px; padding: var(--pad); border-radius: var(--r); background: #fff; border: 1px solid var(--wp--preset--color--line); }
.estrellas { display: flex; align-items: center; gap: 3px; color: #FF9922; font-size: 20px; }
.estrellas .i { fill: currentColor; stroke: none; }
.estrellas span { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.cita blockquote { font-size: 18px; line-height: 1.5; color: var(--ink); }
.cita footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.cita footer b { color: var(--ink); }
.cita footer img { height: 22px; width: auto; }

/* ===== Carrusel: con peek, puntos y flechas. Nunca un scroll horizontal sin señal ===== */
.carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > * { scroll-snap-align: start; }
.carrusel-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #C9D6E4; }
.dots i.on { width: 24px; border-radius: 4px; background: var(--blue); }
.flechas { display: flex; gap: 8px; }
.flechas span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #C9D6E4; color: var(--ink); font-size: 20px; }

/* ===== Hero: una foto real con tratamiento azul y los 5 módulos alrededor =====
   Entran uno tras otro (cada 0,5 s) cuando el hero se ve y después flotan sin parar, cada uno a su ritmo (3gtms) */
.hero-c { position: relative; width: 560px; height: 540px; margin: 0 auto; }
.hero-c .media-foto { position: absolute; left: 50px; top: 20px; width: 460px; height: 500px; aspect-ratio: auto; }
.chip-mod { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 14px; background: #fff; box-shadow: var(--float);
	font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(16px) scale(.96); }
.chip-mod img { width: 36px; height: 36px; }
.en-vista .chip-mod { animation: chip-entra .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * .5s) forwards, chip-flota var(--f, 5s) ease-in-out calc(var(--i) * .5s + .7s) infinite alternate; }
@keyframes chip-entra { to { opacity: 1; transform: none; } }
@keyframes chip-flota { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .chip-mod, .en-vista .chip-mod { animation: none; opacity: 1; transform: none; } }

/* ===== Tabs de funcionalidades (aprobados en la ronda 2): pila de tarjetas a la derecha; a la izquierda el título,
   el CTA y la zona de mockup, que cambia con el tab abierto ===== */
.tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); column-gap: 80px; align-items: start; }
.tabs-izq { display: grid; gap: 28px; justify-items: start; }
.pila-item { --c: #E5F5FD; --t: var(--wp--preset--color--navy); --tl: var(--wp--preset--color--dark-gray); --bd: rgba(1, 42, 73, .18); position: relative; margin-top: -18px; border-radius: 16px; background: var(--c); color: var(--t);
	box-shadow: 0 -4px 14px rgba(1, 26, 46, .12); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.pila-item:first-child { margin-top: 0; }
.pila-item:not(:last-child) { padding-bottom: 18px; } /* la tarjeta siguiente tapa estos 18 px */
/* Tonos del manual Descartes de claro a oscuro, elegidos por contraste (medido): todo el texto navy sobre los tres claros
   (13,2 · 10,6 · 7,5:1) y blanco sobre los tres oscuros (6,7 · 10,6 · 7,4:1). Light Blue puro (#009CEB) salió: con navy
   daba 4,9 y con blanco 3,0 */
.pila-item:nth-child(2) { --c: #B3E1FA; }
.pila-item:nth-child(3) { --c: #66C4F3; }
.pila-item:nth-child(4) { --c: #0058BF; }
.pila-item:nth-child(5) { --c: #134169; }
.pila-item:nth-child(6) { --c: #53565A; }
.pila-item:nth-child(-n+3) { --tl: var(--wp--preset--color--navy); }
.pila-item:nth-child(n+4) { --t: #fff; --tl: rgba(255, 255, 255, .92); --bd: rgba(255, 255, 255, .28); }
.pila-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 18px 18px 28px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
	font: 600 22px/1.2 var(--wp--preset--font-family--body); letter-spacing: -.015em; }
.pila-head b { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--blue); font-size: 20px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.pila-head:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; border-radius: 16px; }
.pila-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.2, .7, .2, 1); }
.pila-body > div { min-height: 0; overflow: hidden; padding: 0 28px; opacity: 0; transition: opacity .25s, padding .55s; }
.pila .pila-lead { font-size: 18px; line-height: 1.4; font-weight: 500; color: var(--t); text-wrap: balance; }
.pila ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--bd); list-style: none; }
.pila li { position: relative; margin: 0; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--tl); }
.pila li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--wp--preset--color--tint-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23012A49' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.pila-item.is-open .pila-head { cursor: default; }
.pila-item.is-open .pila-head b { transform: rotate(90deg); }
.pila-item.is-open .pila-body { grid-template-rows: 1fr; }
.pila-item.is-open .pila-body > div { padding-top: 4px; padding-bottom: 30px; opacity: 1; transition: opacity .35s .15s, padding .55s; }
@media (hover: hover) { .pila-item:not(.is-open):hover { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pila-item, .pila-head b, .pila-body, .pila-body > div { transition: none; } }

/* Mockup de la plataforma: una ventana blanca por tab, con datos de muestra. Entra con un fundido y sus barras o la ruta
   se dibujan al aparecer */
.mock-zona { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.mock { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-media); background: #fff; box-shadow: 0 24px 60px rgba(0, 12, 30, .35); overflow: hidden;
	opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; font-size: 13px; color: var(--text); }
.mock.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--wp--preset--color--line); font-size: 13px; font-weight: 500; color: var(--ink); }
.mock-bar img { width: 28px; height: 28px; }
.mock-bar span { margin-left: auto; padding: 3px 10px; border-radius: 99px; background: var(--wp--preset--color--tint-blue); color: var(--blue); font-size: 12px; }
.mock-body { display: grid; align-content: start; gap: 12px; padding: 18px; min-height: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { padding: 10px 12px; border-radius: 10px; background: var(--wp--preset--color--panel); }
.mock-kpis b { display: block; font-size: 22px; line-height: 1.1; color: var(--ink); }
.mock-fila { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; padding: 10px 12px; border-radius: 10px; background: var(--wp--preset--color--panel); }
.mock-fila b { font-weight: 500; color: var(--ink); }
.mock-fila .prog { grid-column: 1 / -1; }
.estado { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.estado--ok { background: var(--wp--preset--color--tint-green); color: #2F5D0E; }
.estado--ruta { background: var(--wp--preset--color--tint-blue); color: var(--blue); }
.estado--alerta { background: #FFF1E0; color: #9A4A00; }
.mock-mapa { position: relative; border-radius: 12px; background: #EAF1F8; overflow: hidden; }
.mock-mapa svg { display: block; width: 100%; height: 100%; }
.mock-mapa .calle { stroke: #fff; stroke-width: 6; fill: none; }
.mock-mapa .r { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.mock.is-on .r { animation: traza 1.6s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }
.mock .bars i, .mock .prog > i { transform-origin: bottom; }
.mock.is-on .bars i { animation: crece .7s cubic-bezier(.2, .7, .2, 1) both; }
.mock.is-on .bars i:nth-child(2) { animation-delay: .08s; } .mock.is-on .bars i:nth-child(3) { animation-delay: .16s; } .mock.is-on .bars i:nth-child(4) { animation-delay: .24s; }
.mock.is-on .bars i:nth-child(5) { animation-delay: .32s; } .mock.is-on .bars i:nth-child(6) { animation-delay: .4s; } .mock.is-on .bars i:nth-child(7) { animation-delay: .48s; }
@keyframes crece { from { transform: scaleY(0); } }
.mock.is-on .prog > i { animation: llena .9s .2s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left; }
@keyframes llena { from { transform: scaleX(0); } }
.linea-t { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.linea-t li { position: relative; display: grid; grid-template-columns: 1fr auto; padding: 0 0 26px 28px; font-size: 14px; }
.linea-t li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.linea-t li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 2px; width: 2px; background: var(--blue); }
.linea-t li.pend::before { background: #fff; border: 2px solid #C9D6E4; left: 3px; }
.linea-t li.pend::after, .linea-t li.ahora::after { background: #C9D6E4; }
.linea-t li.ahora::before { box-shadow: 0 0 0 5px rgba(0, 88, 191, .18); }
.linea-t b { font-weight: 500; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .mock, .mock.is-on .r, .mock.is-on .bars i, .mock.is-on .prog > i { transition: none; animation: none; stroke-dashoffset: 0; } }

/* ===== Movimiento: hover, entradas y lo que se mueve solo =====
   Tres duraciones y dos curvas. El hover sólo con mouse (en pantallas táctiles el :hover queda pegado tras el toque);
   .is-hover fuerza el estado para capturas. Con "reducir movimiento" todo queda quieto y visible */
:root { --t-rapida: .2s; --t-media: .45s; --t-lenta: .7s; --e-salida: cubic-bezier(.2, .7, .2, 1); --e-rebote: cubic-bezier(.34, 1.56, .64, 1); }

.btn { transition: background var(--t-rapida), box-shadow var(--t-rapida), transform var(--t-rapida) var(--e-salida); }
.btn .i { transition: transform var(--t-rapida) var(--e-salida); }
.btn:active { transform: scale(.98); }
.link { padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--e-salida); }
:is(.btn, .link, .mod, .caso, .flechas span, .pila-head):focus-visible, .is-foco { outline: 2px solid var(--lime); outline-offset: 3px; }

.media--link .media-foto img { transition: transform var(--t-lenta) var(--e-salida); }
.media--link .detalle { transition: transform var(--t-media) var(--e-salida); }
.flechas span { cursor: pointer; transition: background var(--t-rapida), border-color var(--t-rapida), color var(--t-rapida), opacity var(--t-rapida); }
.flechas span[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.dots i { cursor: pointer; }
/* Carrusel de 2 por vista (testimonios, como el ejemplo del cliente). Con mouse se puede arrastrar */
.carrusel--2 { grid-auto-columns: calc((100% - 16px) / 2); }
@media (hover: hover) { .carrusel { cursor: grab; } .carrusel.arrastra { cursor: grabbing; scroll-snap-type: none; user-select: none; } .carrusel.arrastra * { pointer-events: none; } }
.dots i { transition: width .3s var(--e-salida), background .3s; }

@media (hover: hover) {
	.btn--primario:is(:hover, .is-hover) { background: #004BA3; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 88, 191, .38); }
	.btn--secundario:is(:hover, .is-hover) { background: #ABD47E; transform: translateY(-2px); }
	.btn:is(:hover, .is-hover) .i, .link:is(:hover, .is-hover) .i { transform: translateX(3px); }
	.link:is(:hover, .is-hover) { background-size: 100% 1.5px; }
	.mod:is(:hover, .is-hover) .mod-foto { opacity: 1; transform: none; }
	.mod:is(:hover, .is-hover) .mod-velo { opacity: 1; }
	.mods .mod:is(:hover, .is-hover) :is(h3, p) { color: #fff; }
	.mods .mod:is(:hover, .is-hover) .ico-tile { background: #fff; transform: scale(1.06); }
	.media--link:is(:hover, .is-hover) .media-foto img { transform: scale(1.04); }
	.media--link:is(:hover, .is-hover) .detalle { transform: translateY(-6px); }
	.flechas span:is(:hover, .is-hover) { border-color: var(--blue); background: var(--blue); color: #fff; }
	.caso:is(:hover, .is-hover) .media-foto img { transform: scale(1.05); }
	.caso:is(:hover, .is-hover) .media-foto::after { opacity: .9; }
	.caso:is(:hover, .is-hover) .link .i { transform: translateX(3px); }
	.pila-item.is-hover:not(.is-open) { transform: translateY(-4px); }
}

/* Caso de éxito: foto de camiones con el overlay azul, título y enlace encima */
.caso { position: relative; display: block; border-radius: var(--r-media); overflow: hidden; color: #fff; }
.caso .media-foto { aspect-ratio: 4 / 3; border-radius: 0; }
.caso .media-foto img { transition: transform var(--t-lenta) var(--e-salida); }
.caso .media-foto::after { transition: opacity var(--t-media); }
.caso-txt { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 12px; justify-items: start; padding: var(--pad); }
.caso-txt img { height: 28px; width: auto; }
.caso-txt b { font-size: var(--wp--preset--font-size--h4); font-weight: 500; line-height: 1.3; }
.caso .link { color: #fff; }

/* ===== Caja con enlace (módulo): blanca sobre la banda navy; con el mouse se da vuelta a la foto del módulo con un
   velo navy y el texto pasa a blanco (la P2 aprobada). En el teléfono no hay hover: la foto queda puesta ===== */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod { position: relative; isolation: isolate; display: grid; align-content: space-between; justify-items: start; gap: 56px; min-height: 300px; padding: var(--pad); border-radius: var(--r); overflow: hidden; background: #fff; }
.mod-foto { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity var(--t-media), transform var(--t-lenta) var(--e-salida); }
.mod-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 42, 73, .35), rgba(1, 42, 73, .94) 72%); opacity: 0; transition: opacity var(--t-media); }
.mod .ico-tile { width: 72px; height: 72px; background: var(--wp--preset--color--panel); transition: background var(--t-media), transform var(--t-media) var(--e-rebote); }
.mods .mod h3 { font-size: var(--wp--preset--font-size--h3); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; color: var(--ink); transition: color var(--t-media); }
.mods .mod p { max-width: 320px; margin-top: 10px; font-size: 15px; color: var(--text); transition: color var(--t-media); }

/* ===== Detalles con animación interna: el detalle sobre la foto no es una etiqueta quieta, muestra la plataforma andando ===== */
/* Soporte: los 4 canales conectados al equipo local; un mensaje viaja de cada canal al centro, que lo recibe con una onda */
.det-red { width: 270px; }
.det-red svg { display: block; width: 100%; height: auto; overflow: visible; }
.det-red .linea { fill: none; stroke: #C9D6E4; stroke-width: 1.5; stroke-dasharray: 3 4; }
.det-red .nodo > circle { fill: #fff; stroke: #C9D6E4; stroke-width: 1.5; animation: nodo 6s var(--d) infinite; }
.det-red .ui { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.det-red .centro { fill: var(--wp--preset--color--tint-blue); }
.det-red .onda { fill: none; stroke: var(--wp--preset--color--light-blue); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: onda 1.5s 1.08s ease-out infinite; opacity: 0; }
.det-red .paq { fill: var(--wp--preset--color--light-blue); }
@keyframes nodo { 0%, 22%, 100% { stroke: #C9D6E4; } 2%, 16% { stroke: var(--wp--preset--color--action); stroke-width: 2.5; } }
@keyframes onda { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.vivo { display: inline-flex; align-items: center; gap: 8px; }
.vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6BA539; animation: vivo 1.6s ease-out infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(107, 165, 57, .6); } 100% { box-shadow: 0 0 0 8px rgba(107, 165, 57, 0); } }
/* Rutas: las barras se mueven sin parar, cada una con su ritmo y su recorrido (nunca quietas, nunca sincronizadas);
   el estado pasa por "Calculando" cada 6 s */
.det-rutas .bars i { transform-origin: bottom; animation: oscila var(--o, 1.8s) ease-in-out var(--od, 0s) infinite alternate; }
.det-rutas .bars i:nth-child(1) { --o: 1.7s; --od: -.4s; --m: .45; }
.det-rutas .bars i:nth-child(2) { --o: 2.3s; --od: -1.1s; --m: .6; }
.det-rutas .bars i:nth-child(3) { --o: 1.5s; --od: -.7s; --m: .35; }
.det-rutas .bars i:nth-child(4) { --o: 2.1s; --od: -1.6s; --m: .55; }
.det-rutas .bars i:nth-child(5) { --o: 1.9s; --od: -.2s; --m: .4; }
.det-rutas .bars i:nth-child(6) { --o: 2.5s; --od: -1.3s; --m: .65; }
@keyframes oscila { from { transform: scaleY(1); } to { transform: scaleY(var(--m, .5)); } }
.det-estado { display: grid; justify-items: end; }
.det-estado span { grid-area: 1 / 1; font-style: normal; font-weight: 500; color: var(--ink); animation: estado-a 6s infinite; }
.det-estado .b { color: var(--blue); animation-name: estado-b; }
@keyframes estado-a { 0%, 68%, 90%, 100% { opacity: 1; } 72%, 86% { opacity: 0; } }
@keyframes estado-b { 0%, 68%, 90%, 100% { opacity: 0; } 72%, 86% { opacity: 1; } }

/* ===== Entrada de todo el sitio: títulos, textos, tarjetas y fotos suben 24 px y se funden al aparecer, una vez, 80 ms
   entre hermanos (--i). Los títulos con fundido, nunca con máscara. estilo.js marca (.ap) y observa; sin JS, con
   "reducir movimiento" o con ?estatico todo se ve quieto. La foto además se asienta desde 1,08 ===== */
.js-ap .ap:not(.visto) { opacity: 0; }
.js-ap .ap.visto { animation: ap var(--t-lenta) var(--e-salida) calc(var(--i, 0) * 80ms) both; }
@keyframes ap { from { opacity: 0; translate: 0 24px; } }
.js-ap .media.ap.visto .media-foto img { animation: ap-foto 1.4s var(--e-salida) calc(var(--i, 0) * 80ms) both; }
@keyframes ap-foto { from { scale: 1.08; } }

/* Entrada al aparecer: sube 24 px y se funde, una vez, 80 ms entre hermanos (--i). La pone estilo.js con .en-vista */
.anima .rv { opacity: 0; transform: translateY(24px); }
.anima.en-vista .rv { animation: rv var(--t-lenta) var(--e-salida) calc(var(--i, 0) * 80ms) forwards; }
@keyframes rv { to { opacity: 1; transform: none; } }
.anima .bars i { transform-origin: bottom; }
.anima.en-vista .bars i { animation: crece var(--t-lenta) var(--e-salida) calc(var(--i, 0) * 60ms) both; }
.anima.en-vista .prog > i { animation: llena .9s .2s var(--e-salida) both; transform-origin: left; }

/* Franja de logos: avanza sola (una vuelta cada 40 s) y se detiene con el mouse encima */
.franja { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.franja-track { display: flex; width: max-content; animation: franja 40s linear infinite; }
.franja:hover .franja-track { animation-play-state: paused; }
.franja-track img { height: 36px; width: auto; margin: 0 28px; }
@keyframes franja { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
	.btn, .btn .i, .link, .mod, .mod *, .media--link .media-foto img, .media--link .detalle, .caso .media-foto img, .flechas span, .dots i { transition: none; }
	.anima .rv, .anima.en-vista .rv { opacity: 1; transform: none; animation: none; }
	.anima.en-vista .bars i, .anima.en-vista .prog > i, .franja-track, .det-rutas .bars i, .det-estado span, .det-red *, .vivo::before { animation: none !important; }
	.det-estado .b { display: none; }
}

@media (max-width: 1100px) {
	.w { padding: 0 40px; }
	.fila { gap: 48px; }
	.tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); column-gap: 48px; }
	.mods { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 781px) {
	.w { padding: 0 20px; }
	.fila { grid-template-columns: 1fr; gap: 32px; }
	.fila--inv .fila-texto { order: 0; }
	.fila + .fila { margin-top: 64px; }
	.detalle { width: 200px; }
	.det-red, .det-rutas { width: 230px; }
	.media:has(.det-red) .media-foto { aspect-ratio: 1; } /* el detalle de soporte es alto: la foto también, para que se siga viendo */
	.detalle--bi { left: 12px; bottom: -24px; }
	.detalle--sd { right: 12px; top: -20px; }
	.ico { width: 48px; height: 48px; }
	.cifra { min-height: 0; gap: 20px; }
	/* Móvil: lo secundario se va. Titular corto + lo esencial; las descripciones largas quedan para escritorio */
	.m-oculto { display: none !important; }
	.btn { width: 100%; }
	.carrusel { grid-auto-columns: 85%; } /* el 15 % de la siguiente asoma: se ve que hay más */
	.verif { grid-template-columns: 1fr; }
	.verif-head { flex-direction: column; align-items: flex-start; gap: 20px; }
	.verif-head .sellos { gap: 16px; }
	.verif-head .sellos img { height: 52px; }
	.hero-c { zoom: .64; }
	/* Tabs: título, mockup, pila y CTA en una columna. En la pila sale la lista: queda la frase del tab */
	.tabs { grid-template-columns: 1fr; row-gap: 24px; }
	.tabs-izq { display: contents; }
	.tabs .btn { order: 3; }
	.pila ul { display: none; }
	.mock-kpis b { font-size: 18px; }
	.mock-zona { aspect-ratio: 1; }
	.pila-head { padding: 14px 14px 14px 20px; font-size: 18px; }
	.pila-head b { width: 38px; height: 38px; font-size: 18px; }
	.pila-body > div { padding: 0 20px; }
	.pila-item.is-open .pila-body > div { padding-top: 2px; padding-bottom: 24px; }
	.pila .pila-lead { font-size: 17px; }
	/* Módulos: carrusel, sin descripción, y la foto queda puesta (sin hover no hay vuelta) */
	.mods { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.mods::-webkit-scrollbar { display: none; }
	.mod { scroll-snap-align: start; min-height: 260px; }
	.mod .mod-foto, .mod .mod-velo { opacity: 1; transform: none; }
	.mods .mod :is(h3, p) { color: #fff; }
	.mods .mod p { display: none; }
	.mod .ico-tile { background: #fff; }
	.carrusel--2 { grid-auto-columns: 85%; }
}
