/* ==========================================================================
   BÁSCULAS RODRÍGUEZ — Hoja de estilos principal
   Identidad: azul marino, gris oscuro, negro, blanco y gris claro.
   ========================================================================== */

:root {
  --navy-950: #060f1d;
  --navy-900: #0a1a30;
  --navy-800: #0f2544;
  --navy-700: #16345e;
  --navy-600: #1f4a85;
  --blue-500: #2a64ad;
  --blue-400: #5b9be0;
  --blue-300: #9cc3ef;
  --ink: #0d1117;
  --gray-900: #161b22;
  --gray-800: #1f2933;
  --gray-700: #3a4553;
  --gray-600: #4f5b69;
  --gray-400: #8a96a5;
  --gray-300: #c9d1db;
  --gray-200: #dfe5ec;
  --gray-100: #eef2f6;
  --gray-50: #f6f8fb;
  --white: #ffffff;
  --wa: #1fa855;
  --wa-dark: #0e7a3c;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --ok-bg: #e9f6ee;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 48, .06), 0 1px 3px rgba(10, 26, 48, .08);
  --shadow: 0 4px 10px rgba(10, 26, 48, .06), 0 12px 28px rgba(10, 26, 48, .08);
  --shadow-lg: 0 18px 50px rgba(6, 15, 29, .28);
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --section-y: clamp(56px, 8vw, 104px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* <picture> (AVIF/WebP con respaldo JPG/PNG) no altera la distribución: el <img> se comporta como hijo directo. */
picture { display: contents; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }
ul, ol { padding-left: 1.2em; }
code { font-family: var(--mono); font-size: .9em; background: var(--gray-100); padding: .1em .35em; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--white); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; box-shadow: var(--shadow); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.icon--xl { width: 64px; height: 64px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--muted { background: var(--gray-50); border-block: 1px solid var(--gray-100); }
.section--dark {
  background: radial-gradient(1200px 500px at 85% 0%, rgba(42, 100, 173, .35), transparent 60%),
              linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--gray-300);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
/* Columnas explícitas por rango: 1 → 2 → 3. En el rango de 2 columnas, una tarjeta impar final ocupa la fila
   completa (sin huecos), y un grupo de exactamente 3 tarjetas pasa antes a 3 columnas. */
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 680px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 840px) {
  .grid-3:has(> :last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3:has(> :last-child:nth-child(3)) > :last-child { grid-column: auto; }
}
@media (min-width: 1012px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
}
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); }
.split--center { align-items: center; }
.split--reverse > :first-child { order: 2; }
.center-row { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Tipografía de sección ---------- */
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-600); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--blue-300); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--gray-600); }
.lead--light { color: var(--gray-300); }
.mini-title { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); margin: 1.4em 0 .8em; display: flex; align-items: center; gap: 8px; }
.mini-title:first-child { margin-top: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-decoration: none; line-height: 1.2;
  text-align: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--navy-600)); color: var(--white); box-shadow: 0 6px 18px rgba(31, 74, 133, .35); }
.btn-primary:hover { color: var(--white); box-shadow: 0 10px 24px rgba(31, 74, 133, .45); }
.btn-secondary { background: var(--white); color: var(--navy-800); border-color: var(--gray-300); }
.btn-secondary:hover { color: var(--navy-900); border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { color: var(--navy-900); background: var(--white); border-color: var(--white); }
.btn-ghost-light { color: var(--blue-300); border-color: transparent; padding-inline: 12px; }
.btn-ghost-light:hover { color: var(--white); }
.btn-whatsapp { background: var(--wa-dark); color: var(--white); box-shadow: 0 6px 18px rgba(18, 140, 69, .3); }
.btn-whatsapp:hover { color: var(--white); background: #0f7a3c; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 26, 48, .97); color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s var(--ease), background-color .25s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(10, 26, 48, .88); backdrop-filter: saturate(140%) blur(10px); }
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex: none; }
.brand:hover { color: var(--white); }
/* Logotipo oficial (PNG 16:9): se fija la altura y el ancho se calcula para conservar la proporción. */
.brand-logo { height: 56px; width: auto; aspect-ratio: 16 / 9; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.brand--footer .brand-logo { height: 100px; }
.brand:hover .brand-logo { filter: brightness(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 900; letter-spacing: .14em; font-size: 1.02rem; }
.brand-sub { font-weight: 600; letter-spacing: .32em; font-size: .7rem; color: var(--blue-300); margin-top: 5px; }
.nav-panel { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--gray-200); text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border-radius: 8px; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--blue-400); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[data-active="true"] { color: var(--white); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link[data-active="true"]::after { transform: scaleX(1); }
.sub-toggle {
  display: inline-grid; place-items: center; width: 32px; height: 44px; margin-left: -8px;
  background: none; border: 0; color: var(--gray-300); border-radius: 8px;
}
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-toggle:hover { color: var(--white); }
.sub-menu { list-style: none; margin: 0; padding: 8px; }
.sub-link {
  display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: var(--gray-800); font-weight: 600; font-size: .93rem; white-space: nowrap;
}
.sub-link:hover { background: var(--gray-100); color: var(--navy-900); }
.sub-link[aria-current="page"] { color: var(--navy-600); background: var(--gray-100); box-shadow: inset 3px 0 0 var(--blue-500); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-contact { display: flex; gap: 6px; }
.icon-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--gray-200); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .2s, color .2s, border-color .2s;
}
.icon-link .icon { width: 18px; height: 18px; }
.icon-link:hover { color: var(--white); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.icon-link--whatsapp:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.lang-current, .lang-option { display: inline-grid; place-items: center; min-width: 38px; height: 32px; border-radius: 999px; }
.lang-current { background: var(--white); color: var(--navy-900); }
.lang-option { color: var(--gray-200); text-decoration: none; }
.lang-option:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.header-quick { display: none; align-items: center; gap: 10px; margin-left: auto; }
/* v13 · Botón del menú: tres líneas de distinto largo que se transforman en «X» (la línea central se recoge
   y las exteriores giran sobre el centro). */
.nav-toggle {
  position: relative; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(156, 195, 239, .22);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); color: var(--white); cursor: pointer;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.nav-toggle:hover { border-color: rgba(156, 195, 239, .45); background-color: rgba(255, 255, 255, .06); }
.nav-toggle[aria-expanded="true"] { border-color: var(--blue-400); background-color: rgba(42, 100, 173, .28); box-shadow: 0 0 0 4px rgba(42, 100, 173, .18); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars { top: 50%; right: 13px; width: 13px; margin-top: -1px; transition: transform .3s var(--ease), opacity .2s, width .3s var(--ease); }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; right: 0; width: 20px; transition: transform .35s cubic-bezier(.6, -.2, .3, 1.3), width .3s var(--ease); }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); width: 16px; }
.nav-toggle:hover .nav-toggle-bars { width: 20px; }
.nav-toggle:hover .nav-toggle-bars::after { width: 20px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { width: 20px; background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { width: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { width: 20px; transform: rotate(-45deg); }
.nav-sheet-label { display: none; }
@media (min-width: 1100px) { .nav-sheet { display: contents; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--gray-200);
  min-height: min(88vh, 820px); display: flex; align-items: center;
  padding-block: clamp(56px, 9vw, 120px);
  background: linear-gradient(120deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  /* Para usar una fotografía real, agregue al final de "background":
     , url(../assets/images/hero.webp) center / cover no-repeat  (ver README) */
}
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 480px at 80% 30%, rgba(42, 100, 173, .38), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(91, 155, 224, .14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { color: var(--white); font-size: clamp(2.3rem, 1.2rem + 5vw, 4.6rem); font-weight: 900; letter-spacing: .02em; margin-bottom: .25em; }
.hero-phrase { font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); color: var(--blue-300); font-weight: 600; margin-bottom: .9em; }
.hero-desc { max-width: 620px; color: var(--gray-300); font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-anim { animation: fade-up .8s var(--ease) both; }
  .hero-anim:nth-child(2) { animation-delay: .08s; }
  .hero-anim:nth-child(3) { animation-delay: .16s; }
  .hero-anim:nth-child(4) { animation-delay: .24s; }
  .hero-anim:nth-child(5) { animation-delay: .32s; }
  .hero-visual.hero-anim { animation-delay: .3s; }
  /* El título y la frase solo se desplazan (sin opacidad 0) para no retrasar el LCP. */
  .hero-title.hero-anim, .hero-phrase.hero-anim { animation-name: rise; animation-delay: 0s; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* Indicador digital decorativo */
.indicator {
  width: min(100%, 400px); padding: 18px; border-radius: 20px;
  background: linear-gradient(160deg, #1d2a3b, #0d141e); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.indicator-top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; letter-spacing: .2em; color: var(--gray-400); font-weight: 700; margin-bottom: 12px; }
.indicator-led { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.indicator-screen {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; padding: 18px 20px; border-radius: 12px;
  background: linear-gradient(180deg, #06121f, #0a1b2e); border: 1px solid rgba(91, 155, 224, .25);
  font-family: var(--mono); color: #8fd3ff; text-shadow: 0 0 14px rgba(143, 211, 255, .55);
}
.indicator-value { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.2rem); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.indicator-unit { font-size: 1.1rem; color: var(--blue-300); }
.indicator-status { display: flex; gap: 14px; margin-top: 12px; font-size: .68rem; letter-spacing: .14em; font-weight: 700; color: #475569; }
.indicator-status .is-on { color: #3ddc84; }
.indicator-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.indicator-keys span { height: 26px; border-radius: 7px; background: linear-gradient(180deg, #2a3647, #1a2330); border: 1px solid rgba(255, 255, 255, .06); }
@media (prefers-reduced-motion: no-preference) {
  .indicator-led { animation: blink 2.4s ease-in-out infinite; }
}
@keyframes blink { 50% { opacity: .35; } }
.truck-scale { width: min(100%, 440px); height: auto; }
.ts-platform { fill: #3a4a60; }
.ts-foot { fill: #243042; }
.ts-truck { fill: none; stroke: var(--blue-300); stroke-width: 2.5; stroke-linejoin: round; }
.ts-window { fill: rgba(156, 195, 239, .15); stroke: var(--blue-300); stroke-width: 1.5; }
.ts-wheel { fill: var(--navy-950); stroke: var(--blue-300); stroke-width: 2.5; }
.ts-line { stroke: rgba(156, 195, 239, .35); stroke-width: 1.5; }

/* ---------- Encabezado de página interna ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--gray-300);
  padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(42, 100, 173, .35), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.page-hero-text { max-width: 760px; }
.page-title { color: var(--white); font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); }
.page-hero-icon {
  flex: none; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 32px;
  color: var(--blue-300); background: linear-gradient(145deg, rgba(91, 155, 224, .18), rgba(91, 155, 224, .04));
  border: 1px solid rgba(156, 195, 239, .25);
}
.page-hero-icon .icon { width: 72px; height: 72px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gray-600); }
.breadcrumb a { color: var(--blue-300); }
.breadcrumb [aria-current] { color: var(--gray-300); }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gray-300); }
.card p { color: var(--gray-600); }
.card-title { font-size: 1.15rem; margin-bottom: .5em; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  color: var(--white); background: linear-gradient(135deg, var(--navy-600), var(--navy-900));
  box-shadow: 0 6px 16px rgba(15, 37, 68, .25);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon--lg { width: 64px; height: 64px; border-radius: 16px; margin: 0; }
.card-icon--lg .icon { width: 32px; height: 32px; }
.card-icon--whatsapp { background: linear-gradient(135deg, var(--wa), var(--wa-dark)); }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--navy-600); padding-top: 8px; min-height: 44px; }
.card-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }
.grid--dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.grid--dark .card p { color: var(--gray-300); }
.grid--dark .card-icon { background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); }

/* Pilares */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: center; }
.pillar { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--gray-200); }
.pillar > .icon { width: 30px; height: 30px; color: var(--navy-600); margin-top: 2px; }
.pillar strong { display: block; color: var(--navy-900); font-size: 1.02rem; }
.pillar span { font-size: .92rem; color: var(--gray-600); }

/* Listas */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; margin-top: 3px; color: var(--white); background: var(--navy-600); stroke-width: 3; }
.check-list--accent .icon { background: var(--blue-500); }
.check-list--light li { color: var(--gray-200); }
.check-list--light .icon { background: var(--blue-500); }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--gray-200); font-weight: 600; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.chip-list .icon { color: var(--navy-600); width: 18px; height: 18px; }
.num-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--gray-700); background: var(--gray-50); border: 1px solid var(--gray-200); border-left: 3px solid var(--blue-500); padding: 12px 14px; border-radius: var(--radius-sm); }
.note .icon { color: var(--navy-600); margin-top: 2px; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: #eef4fb; border: 1px solid #cfe0f3; color: var(--navy-800); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 28px; }
.notice .icon { color: var(--navy-600); margin-top: 3px; }
.notice--warn { background: #fff7e6; border-color: #f5d9a0; color: #5c3d00; }
.notice--warn .icon { color: #8a5a00; }

/* Paneles */
.feature-panel {
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); color: var(--white);
  background: radial-gradient(500px 260px at 100% 0%, rgba(91, 155, 224, .35), transparent 70%), linear-gradient(145deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow);
}
.feature-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-panel-grid > div { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-weight: 700; letter-spacing: .04em; }
.feature-panel-grid .icon { width: 38px; height: 38px; color: var(--blue-300); }
.feature-panel--icon { display: grid; place-items: center; min-height: 260px; }
.feature-panel--icon .icon { width: 120px; height: 120px; color: var(--blue-300); stroke-width: 1.2; }
.stat-panel { display: grid; gap: 16px; align-content: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); color: var(--gray-300); box-shadow: var(--shadow); }
.stat { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.stat-value { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 900; color: var(--white); line-height: 1; min-width: 2.4ch; }
.stat-label { font-weight: 600; }

/* Ticket y etiqueta (ejemplos ilustrativos) */
.showcase { display: flex; justify-content: center; }
.showcase--pair { gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.ticket, .label-mock { margin: 0; background: #fdfdfb; color: #1b1f24; font-family: var(--mono); box-shadow: var(--shadow-lg); }
.ticket { width: min(100%, 300px); padding: 22px 20px 16px; border-radius: 6px; transform: rotate(-1.5deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
  mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 16px 100% repeat-x; padding-bottom: 26px; }
.ticket-head { text-align: center; border-bottom: 1px dashed #9aa3ad; padding-bottom: 10px; margin-bottom: 10px; }
.ticket-head strong { display: block; font-size: .95rem; letter-spacing: .06em; }
.ticket-head span { font-size: .72rem; letter-spacing: .18em; color: #59636e; }
.ticket-rows { margin: 0; font-size: .82rem; }
.ticket-rows div { display: flex; justify-content: space-between; padding: 3px 0; }
.ticket-rows dt { color: #59636e; }
.ticket-rows dd { margin: 0; font-weight: 700; }
.ticket-total { border-top: 1px dashed #9aa3ad; margin-top: 6px; padding-top: 8px !important; font-size: 1rem; }
.barcode { height: 42px; margin: 14px 0 8px; background: repeating-linear-gradient(90deg, #1b1f24 0 2px, transparent 2px 4px, #1b1f24 4px 5px, transparent 5px 8px, #1b1f24 8px 11px, transparent 11px 12px); }
.barcode--sm { height: 30px; }
.ticket figcaption, .label-mock figcaption { font-size: .66rem; text-align: center; color: #6b7480; letter-spacing: .08em; text-transform: uppercase; }
.label-mock { width: min(100%, 220px); padding: 14px; border-radius: 10px; border: 2px solid #1b1f24; transform: rotate(2deg); font-size: .8rem; }
.label-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #e3e6ea; }
.label-row--title { font-weight: 800; font-size: .95rem; border-bottom: 2px solid #1b1f24; }

/* Mapa */
.map-figure { margin: 0; }
.map-figure figcaption { font-size: .85rem; color: var(--gray-600); margin-top: 10px; text-align: center; }
/* v14 · Mapa de cobertura con las 32 entidades: relieve (sombra desplazada), bordes finos entre estados,
   Jalisco resaltado con brillo y etiqueta con colores propios (legible en ambos temas). */
.map-figure--lg { position: relative; isolation: isolate; }
.map-figure--lg::before { content: ""; position: absolute; inset: 4% -4% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 155, 224, .22), transparent 75%); pointer-events: none; }
.mx-map { width: 100%; height: auto; display: block; overflow: visible; }
.mx-states { filter: drop-shadow(5px 9px 0 rgba(10, 26, 48, .2)); }
.mx-state { stroke: rgba(176, 210, 245, .55); stroke-width: .9; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mx-state--hq { fill: url(#covmap-hq); stroke: #ffffff; stroke-width: 1.6;
  filter: drop-shadow(0 0 10px rgba(127, 182, 239, .75)); }
.map-arc { fill: none; stroke: #b9d6f6; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 6; opacity: .8; vector-effect: non-scaling-stroke; }
.map-dot { fill: #e6f0fb; stroke: #2a64ad; stroke-width: 1.5; }
.map-hq { fill: #ffffff; stroke: #f2b705; stroke-width: 4; }
.map-pulse { fill: rgba(242, 183, 5, .45); transform-box: fill-box; transform-origin: center; }
.map-tag rect { fill: #0a1a30; stroke: rgba(242, 183, 5, .85); stroke-width: 1.5; }
.map-tag text { font: 800 24px var(--font); letter-spacing: .1em; fill: #ffffff; }
:root[data-theme="dark"] .mx-states { filter: drop-shadow(5px 9px 0 rgba(0, 0, 0, .4)); }
@media (prefers-reduced-motion: no-preference) {
  .map-pulse { animation: pulse 2.4s var(--ease) infinite; }
  .map-arc { animation: dash 22s linear infinite; }
}
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -300; } }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; color: var(--gray-700); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; background: #9cc3ef; border: 2px solid var(--navy-600); }
.legend-dot--hq { background: #fff; border: 4px solid var(--blue-500); }
.states { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.states li { padding: 10px 14px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-weight: 600; color: var(--navy-800); }

/* Banda de eslogan y CTA */
.slogan-band { padding-block: clamp(48px, 7vw, 80px); background: linear-gradient(90deg, var(--navy-700), var(--navy-900)); text-align: center; }
.slogan { margin: 0; font-size: clamp(1.4rem, 1rem + 2.4vw, 2.6rem); font-weight: 900; letter-spacing: .04em; color: var(--white); text-wrap: balance; }
.slogan--sm { font-size: 1.05rem; color: var(--blue-300); letter-spacing: .06em; }
.cta-band { padding-block: clamp(48px, 6vw, 72px); background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: var(--gray-300); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-title { color: var(--white); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin-bottom: .3em; }
.cta-inner p { margin: 0; }
.cta-inner .btn-row { margin-top: 0; }

/* ---------- Servicios ---------- */
.service-index { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding-block: 20px; }
.service-index ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--gray-200); text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--navy-800); }
.service-index a:hover { border-color: var(--navy-600); }
.service-index .icon { width: 16px; height: 16px; color: var(--navy-600); }
.services-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 36px); }
.service-detail { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.service-detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.service-detail-head .eyebrow { margin-bottom: .3em; }
.service-detail-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 0; }
.service-detail-desc { font-size: 1.05rem; color: var(--gray-700); max-width: 900px; }
.service-detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; margin-top: 18px; }
.compare-card dl { margin: 0; }
.compare-card dt { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-600); margin-top: 12px; }
.compare-card dd { margin: 4px 0 0; color: var(--gray-700); }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px 20px; }
.step p { color: var(--gray-600); font-size: .95rem; margin: 0; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: var(--white); font-weight: 800; margin-bottom: 14px; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); font-weight: 600; font-size: .9rem; color: var(--navy-800); transition: background-color .2s, color .2s, border-color .2s; }
.filter-btn:hover { border-color: var(--navy-600); }
.filter-btn[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.gallery-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item.is-entering { opacity: 0; transform: scale(.97); }
.gallery-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-trigger:hover img { transform: scale(1.04); }
.gallery-thumb--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--blue-300); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(145deg, var(--navy-800), var(--navy-950)); }
.gallery-thumb--placeholder .icon { width: 56px; height: 56px; stroke-width: 1.3; }
.gallery-caption { padding: 18px 20px 22px; }
.gallery-caption h3 { font-size: 1.05rem; margin-bottom: .35em; }
.gallery-caption p { font-size: .92rem; color: var(--gray-600); margin: 0; }
.gallery-cat { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-600); margin-bottom: 6px; }

/* Lightbox */
.lightbox { width: min(100% - 24px, 1000px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--navy-950); color: var(--gray-200); box-shadow: var(--shadow-lg); overflow: visible; }
.lightbox::backdrop { background: rgba(3, 8, 16, .82); }
.lightbox-inner { position: relative; display: flex; align-items: center; }
.lightbox-figure { flex: 1; margin: 0; padding: 20px; min-width: 0; }
.lightbox-media { aspect-ratio: 16 / 10; max-height: 70vh; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: var(--navy-900); }
.lightbox-media img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-media .gallery-thumb--placeholder { width: 100%; height: 100%; aspect-ratio: auto; }
.lightbox-media .gallery-thumb--placeholder .icon { width: 96px; height: 96px; }
.lightbox figcaption { padding: 16px 4px 0; }
.lightbox-title { color: var(--white); font-size: 1.2rem; margin-bottom: .3em; }
.lightbox-desc { margin: 0 0 6px; color: var(--gray-300); }
.lightbox-count { margin: 0; font-size: .85rem; color: var(--gray-400); }
.lightbox-btn { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--white); margin: 0 10px; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox-close { position: absolute; top: -18px; right: -18px; margin: 0; background: var(--white); color: var(--navy-900); z-index: 2; }
.lightbox-close:hover { background: var(--gray-200); }

/* ---------- Formularios ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }

fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--navy-900); padding: 0; margin-bottom: 16px; width: 100%; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
legend .icon { color: var(--navy-600); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.req { color: var(--danger); margin-left: 4px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--gray-400); border-radius: 10px; background: var(--white);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray-600) 50%), linear-gradient(135deg, var(--gray-600) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(42, 100, 173, .18); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; background-color: #fffafa; }

.quote-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 22px; }
.aside-card p { margin: 0; font-size: .95rem; color: var(--gray-700); }
.aside-card--dark { background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); border-color: transparent; }
.aside-card--dark .mini-title { color: var(--blue-300); }

/* Videos: indicador de foco visible dentro del marco (el contenedor recorta lo que sobresale). */
video:focus, video:focus-visible { outline: 3px solid var(--blue-400); outline-offset: -3px; }

/* Contacto y mapa */
.contact-card { align-items: flex-start; }
.contact-card .card-title { font-size: 1.1rem; }
.contact-value { font-weight: 700; color: var(--navy-900) !important; word-break: break-word; }
.contact-card .btn { width: 100%; }
.contact-actions { display: grid; gap: 8px; width: 100%; margin-top: auto; }
.contact-actions .contact-value { margin: 4px 0 0; }
.map-msg { position: absolute; left: 50%; top: 42%; z-index: 3; transform: translate(-50%, -50%); width: min(90%, 420px); margin: 0; padding: 14px 18px;
  border-radius: 14px; background: rgba(10, 26, 48, .94); color: #fff; font-size: .92rem; line-height: 1.45; text-align: center; box-shadow: var(--shadow); }
.map-embed { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.map-embed iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; overflow: auto;
  background: linear-gradient(rgba(10, 26, 48, .04) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(10, 26, 48, .04) 1px, transparent 1px) 0 0 / 28px 28px, var(--gray-50); }
.map-consent > .icon { color: var(--navy-600); margin-bottom: 8px; }
.map-consent p { font-size: .92rem; color: var(--gray-700); max-width: 440px; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; min-height: 56px; cursor: pointer; font-weight: 700; color: var(--navy-900); list-style: none; border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy-600); }
.faq-icon { width: 22px; height: 22px; color: var(--navy-600); transition: transform .25s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; color: var(--gray-700); }
.faq-answer p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-answer { animation: fade-up .3s var(--ease); }
}

/* Legal */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; font-size: .92rem; }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal-body { max-width: 820px; }
.legal-section { padding-bottom: 12px; }
.legal-section h2 { font-size: 1.35rem; margin-top: 1.2em; }
mark.pending { background: #fff1c2; color: #5c3d00; padding: .05em .3em; border-radius: 4px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.data-table th { background: var(--gray-50); color: var(--navy-900); }
.data-table tr:last-child td { border-bottom: 0; }
.status-msg { font-weight: 600; color: #134e2a; min-height: 1.6em; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-950); color: var(--gray-400); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.2fr; gap: 40px; padding-block: clamp(48px, 7vw, 80px); }
.footer-brand p { margin-top: 18px; }
.footer-slogan { color: var(--blue-300); font-weight: 800; letter-spacing: .04em; }
.footer-title { color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links--cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.site-footer a { color: var(--gray-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact a { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--gray-300); text-decoration: none; word-break: break-word; }
.footer-contact a:hover { color: var(--white); }
.footer-contact .icon { color: var(--blue-300); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; font-size: .88rem; }
.footer-bottom-inner p { margin: 0; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Flotantes ---------- */
/* WhatsApp: círculo con el logotipo; al pasar el cursor (o con el foco del teclado) se expande hacia la
   izquierda para mostrar el texto. Es fijo: su expansión no desplaza ningún otro elemento. */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; flex-direction: row-reverse; align-items: center; height: 58px; min-width: 58px; padding: 0; border-radius: 999px; overflow: hidden;
  background: var(--wa-dark); color: var(--white); text-decoration: none; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 30px -6px rgba(18, 140, 69, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: box-shadow .3s var(--ease), background-color .25s, transform .3s var(--ease);
}
.wa-float .icon { flex: none; width: 30px; height: 30px; margin: 0 14px; }
.wa-float-label { display: block; max-width: 0; opacity: 0; padding-left: 0; overflow: hidden; font-size: .95rem; letter-spacing: .01em;
  transition: max-width .45s cubic-bezier(.3, .7, .2, 1), opacity .25s ease, padding-left .45s cubic-bezier(.3, .7, .2, 1); }
.wa-float:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(18, 140, 69, .6); }
.wa-float:focus-visible .wa-float-label { max-width: 260px; opacity: 1; padding-left: 22px; }
@media (hover: hover) {
  .wa-float:hover { color: var(--white); background: #0f7a3c; box-shadow: 0 16px 34px -6px rgba(18, 140, 69, .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
  .wa-float:hover .wa-float-label { max-width: 260px; opacity: 1; padding-left: 22px; transition-delay: 0s, .08s, 0s; }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float-label { transition: none; } }
.wa-float::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before { animation: wa-ring 3.5s ease-out 2s 3; }
}
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(31, 168, 85, 0); } }

/* ---------- Animación progresiva ---------- */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- Página raíz / 404 ---------- */
.root-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: var(--gray-300); text-align: center; padding: 24px; }
.root-choice img { margin: 0 auto 16px; border-radius: 16px; width: min(320px, 80vw); height: auto; }
.root-choice h1 { color: var(--white); letter-spacing: .08em; }
.root-choice .btn { margin: 6px; }

/* ==========================================================================
   v2 — Interactividad, fotografías y escena de pesaje
   ========================================================================== */

/* Barra de avance de lectura bajo el encabezado */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.scroll-progress-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); transform: scaleX(0); transform-origin: left; }

/* Regla técnica en la parte superior de las secciones oscuras */
.section--dark { position: relative; }
.section--dark::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(156, 195, 239, .22) 0 1px, transparent 1px 12px) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(156, 195, 239, .45) 0 1px, transparent 1px 60px) top / 100% 12px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* Entradas escalonadas */
.reveal-in { transition-delay: calc(var(--i, 0) * 80ms); }
.reveal--clip.reveal-pending { opacity: 1; transform: none; }
.reveal--clip.reveal-pending .photo-frame { clip-path: inset(0 100% 0 0 round 18px); }
.reveal--clip.reveal-pending .photo-frame img { transform: scale(1.15); }
.reveal--clip.reveal-in .photo-frame { clip-path: inset(0 0 0 0 round 18px); transition: clip-path 1s var(--ease) calc(var(--i, 0) * 120ms); }
.reveal--clip.reveal-in .photo-frame img { transition: transform 1.4s var(--ease); }

/* Tarjetas: línea superior, reflejo que sigue al cursor e icono con microinteracción */
.card::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(42, 100, 173, .11), transparent 60%);
}
.grid--dark .card::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 195, 239, .12), transparent 60%); }
.card.is-hover::after { opacity: 1; }
.card-icon { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover .card-icon { transform: translateY(-3px) rotate(-5deg); box-shadow: 0 10px 22px rgba(15, 37, 68, .35); }
.card { will-change: auto; }
.service-detail { position: relative; transition: box-shadow .3s var(--ease), border-color .3s; }
.service-detail:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }

/* Botones: brillo, flecha y pulsación */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-whatsapp::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .75s var(--ease);
}
.btn-primary:hover::after, .btn-whatsapp:hover::after { transform: translateX(120%); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-row--center { justify-content: center; }

/* Encabezado de páginas internas: profundidad */
.page-hero-icon { transition: transform .25s ease-out; }

/* ---------- Inicio: fotografía real, indicador interactivo ---------- */
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 15, 29, .94) 0%, rgba(6, 15, 29, .78) 55%, rgba(6, 15, 29, .55) 100%);
}
/* Fotografía «principal» (cuadrada): el encuadre se ajusta al ancho para conservar camión, plataforma y caseta. */
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; opacity: .6; filter: saturate(.85); }
@media (max-aspect-ratio: 1/1) { .hero-photo { object-position: 40% 50%; } }
.hero-visual { touch-action: pan-y; }
.indicator-keys span { display: grid; place-items: center; font-size: .6rem; font-weight: 700; letter-spacing: .08em; color: var(--gray-300); }
.indicator-status [data-st="motion"].is-on { color: #f2b705; }
.indicator-note { margin: 0; font-size: .8rem; color: var(--gray-400); text-align: center; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px;
  color: var(--gray-300); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; font-weight: 700;
}
.hero-scroll:hover { color: var(--white); }
.hero-scroll .icon { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll .icon { animation: nudge 1.8s ease-in-out infinite; }
}
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ---------- Escena de pesaje ---------- */
.weigh-scene { position: relative; height: 320vh; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: var(--gray-300); }
.weigh-sticky {
  position: sticky; top: var(--header-h); display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  contain: layout paint; /* los cambios de la lectura no recalculan el resto de la página */
}
.weigh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; padding-top: clamp(16px, 3.5vh, 44px); }
.weigh-head .section-title { color: var(--white); margin-bottom: .3em; }
.weigh-head .eyebrow { margin-bottom: .6em; }
.ws-lead { max-width: 560px; margin: 0; font-size: 1.02rem; }
.ws-stage { position: relative; flex: 1; min-height: 0; }
.ws-svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; display: block; transition: opacity .9s ease, visibility 0s linear .9s; }
/* Escena 3D (js/truck3d.js): aparece sobre la ilustración SVG, que queda como respaldo. */
.ws-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.weigh-scene.has-3d .ws-canvas { opacity: 1; }
.weigh-scene.has-3d .ws-svg { opacity: 0; visibility: hidden; }
.weigh-scene.has-3d .ws-stage::before,
.weigh-scene.has-3d .ws-stage::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.weigh-scene.has-3d .ws-stage::before { top: 0; height: 18%; background: linear-gradient(180deg, var(--navy-900), rgba(11, 22, 38, 0)); }
.weigh-scene.has-3d .ws-stage::after { bottom: 0; height: 12%; background: linear-gradient(0deg, var(--navy-950), rgba(6, 13, 24, 0)); }
.ws-display {
  flex: none; width: min(100%, 340px); padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(160deg, #1d2a3b, #0d141e); border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg);
}
.ws-display-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .62rem; letter-spacing: .16em; color: var(--gray-400); font-weight: 700; margin-bottom: 10px; }
.ws-led { width: 9px; height: 9px; border-radius: 50%; background: #f2b705; box-shadow: 0 0 10px #f2b705; flex: none; }
.weigh-scene.is-stable .ws-led { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.ws-screen {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #06121f, #0a1b2e); border: 1px solid rgba(91, 155, 224, .25);
  font-family: var(--mono); color: #8fd3ff; text-shadow: 0 0 14px rgba(143, 211, 255, .5);
}
.ws-value { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); font-weight: 700; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.ws-unit { color: var(--blue-300); }
.weigh-scene.is-stable .ws-screen { color: #b8f5d0; text-shadow: 0 0 14px rgba(61, 220, 132, .45); }
.weigh-scene.flash .ws-screen { animation: ws-flash .7s ease-out; }
@keyframes ws-flash { from { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } to { box-shadow: 0 0 0 16px rgba(61, 220, 132, 0); } }
.ws-flags { display: flex; gap: 14px; margin-top: 10px; font-size: .66rem; letter-spacing: .14em; font-weight: 700; color: #475569; }
.ws-flags .is-on[data-ws-flag="zero"] { color: var(--blue-300); }
.ws-flags .is-on[data-ws-flag="motion"] { color: #f2b705; }
.ws-flags .is-on[data-ws-flag="stable"] { color: #3ddc84; }
.ws-bar { height: 6px; margin-top: 10px; border-radius: 3px; background: #0b1626; overflow: hidden; }
.ws-bar span, .ws-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; }
.ws-bar span { background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); }
.ws-note { margin: 8px 0 0; font-size: .7rem; color: var(--gray-400); }
.ws-foot { padding-block: 10px 16px; }
.ws-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ws-steps li {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem; font-weight: 600; color: var(--gray-400); transition: color .3s, background-color .3s, border-color .3s;
}
.ws-step-num { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #1b2a40; font-size: .75rem; color: var(--gray-200); transition: background-color .3s; }
.ws-steps li.is-active { color: var(--white); border-color: rgba(91, 155, 224, .6); background: rgba(42, 100, 173, .18); }
.ws-steps li.is-active .ws-step-num { background: var(--blue-500); color: var(--white); }
.ws-steps li.is-done { color: var(--gray-300); }
.ws-steps li.is-done .ws-step-num { background: #18763f; color: var(--white); }
.ws-progress { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ws-progress span { background: var(--blue-400); }
.ws-cell { fill: #2a3a52; }
.ws-cell-glow { fill: #5b9be0; opacity: 0; }
.ws-lamp { fill: #ffe9a8; }
/* Semáforo: verde para subir a la báscula; rojo cuando el camión queda detenido en posición. */
.ws-red { fill: #3b1d1d; transition: fill .3s; }
.ws-green { fill: #3ddc84; transition: fill .3s; }
.weigh-scene.is-stopped .ws-red { fill: #ff4d4d; }
.weigh-scene.is-stopped .ws-green { fill: #1d3b2a; }
.weigh-scene.is-static { height: auto; }
.weigh-scene.is-static .weigh-sticky { position: relative; top: auto; height: auto; min-height: 620px; }

/* ---------- Fotografías ---------- */
.photo { margin: 0; }
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy-900); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.photo-frame:hover img { transform: scale(1.04); }
.photo-frame::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 60%);
}
.photo-frame.is-hover::after { opacity: 1; }
.photo figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .9rem; color: var(--gray-600); }
.photo figcaption::before { content: ""; width: 22px; height: 2px; flex: none; background: var(--blue-500); }
.section--dark .photo figcaption { color: var(--gray-300); }
.photo figcaption::before { align-self: flex-start; margin-top: .7em; }
.photo-credit { display: block; margin-top: 3px; font-size: .74rem; line-height: 1.45; color: var(--gray-600); }
.photo-credit a { color: inherit; }
.section--dark .photo-credit { color: var(--gray-400); }
.photo--side { float: right; width: min(340px, 38%); margin: 0 0 16px 32px; }
.service-detail::after { content: ""; display: block; clear: both; }
.photo--plataforma .photo-frame img { object-position: 60% 30%; }
.photo--tall img { aspect-ratio: 4 / 5; object-position: 50% 60%; }
.photo--wide { margin: 6px 0 20px; }
.photo--wide .photo-frame img { aspect-ratio: 16 / 7; object-position: 50% 65%; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.about-media { position: relative; }
.stat-panel--float { position: absolute; right: -16px; bottom: -28px; width: min(330px, 85%); padding: 22px; gap: 12px; }
.stat-panel--float .stat { padding-bottom: 12px; }
.stat-panel--float .stat-value { font-size: 2.4rem; }

/* ---------- Anatomía de una báscula ---------- */
.anatomy-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.anatomy-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: var(--gray-200); font-weight: 600;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.anatomy-btn:hover { border-color: var(--blue-300); color: var(--white); }
.anatomy-btn[aria-pressed="true"] { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.anatomy-btn[aria-pressed="true"] .anatomy-num { background: rgba(6, 15, 29, .32); }
.anatomy-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--white); font-size: .75rem; font-weight: 800; }
.anatomy-desc { margin: 20px 0 0; min-height: 3.4em; padding-left: 14px; border-left: 3px solid var(--blue-400); color: var(--gray-200); }
.anatomy-figure > svg { width: 100%; height: auto; display: block; }
.an-part { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.an-part rect:not([fill]) { fill: #3a4a60; stroke: #9cc3ef; stroke-width: 1.2; }
.an-part[data-part="cells"] rect { fill: #2a64ad; }
.anatomy.has-active .an-part { opacity: .35; }
.anatomy.has-active .an-part.is-active { opacity: 1; filter: drop-shadow(0 0 10px rgba(91, 155, 224, .75)); }
.an-markers circle { fill: var(--blue-500); stroke: #fff; stroke-width: 2; }
.an-markers text { fill: #fff; }

/* ==========================================================================
   v3 — Básculas ferroviarias, demostración de ticket y temas principales
   ========================================================================== */

/* Temas principales (Inicio) */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.topic-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 22px 22px 22px 20px; text-decoration: none; color: inherit; }
.topic-card .card-icon { margin: 0; flex: none; width: 46px; height: 46px; border-radius: 12px; }
.topic-card .card-icon .icon { width: 22px; height: 22px; }
.topic-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.topic-card .card-title { margin: 0; font-size: 1.04rem; color: var(--navy-900); font-weight: 800; line-height: 1.3; }
.topic-desc { color: var(--gray-600); font-size: .93rem; line-height: 1.55; }
.topic-arrow { flex: none; width: 20px; height: 20px; margin-left: auto; margin-top: 4px; color: var(--gray-400); transition: transform .25s var(--ease), color .25s; }
.topic-card:hover .topic-arrow, .topic-card:focus-visible .topic-arrow { color: var(--navy-600); transform: translateX(4px); }
.topic-card:hover .card-title { color: var(--navy-600); }

/* Bloque ferroviario */
.photo-stack { position: relative; padding-bottom: 48px; }
.photo-stack .photo--tall .photo-frame img { aspect-ratio: 4 / 4.4; }
.photo--inset { position: absolute; right: -14px; bottom: 0; width: min(280px, 58%); }
.photo--inset .photo-frame { border: 4px solid var(--navy-900); box-shadow: var(--shadow-lg); }
.photo--inset figcaption { display: none; }
.rail-feature .photo figcaption { color: var(--gray-300); }

/* ---------- Demostración: pesaje e impresión de ticket ---------- */
.td {
  margin-top: clamp(32px, 5vw, 56px); padding: clamp(18px, 3vw, 34px); border-radius: 24px; color: var(--gray-300);
  background: radial-gradient(700px 300px at 85% 0%, rgba(42, 100, 173, .3), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg);
}
.td-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.td-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); }
.td-title { margin: 0; color: var(--white); font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); }
.td-stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(70px, 120px) minmax(0, 1fr); align-items: end;
  min-height: 400px; padding: 28px 24px 24px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .06);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #0b1a2f, #07101d);
  overflow: hidden;
}
.td-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(180deg, #121e30, #0a121e); border-top: 1px solid rgba(156, 195, 239, .18); }
.td-scale, .td-printer, .td-link { position: relative; z-index: 1; }
.td-scale { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 26px; }
.td-display {
  width: min(100%, 230px); padding: 10px 12px; border-radius: 12px; background: linear-gradient(160deg, #1d2a3b, #0d141e);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.td-display-top { display: flex; justify-content: space-between; align-items: center; font-size: .58rem; letter-spacing: .16em; font-weight: 700; color: var(--gray-400); margin-bottom: 6px; }
.td-led { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.td-screen {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; padding: 8px 10px; border-radius: 8px;
  background: linear-gradient(180deg, #06121f, #0a1b2e); border: 1px solid rgba(91, 155, 224, .25);
  font-family: var(--mono); color: #8fd3ff; text-shadow: 0 0 12px rgba(143, 211, 255, .5);
}
.td-value { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.td-unit { color: var(--blue-300); font-size: .9rem; }
.td-flags { display: flex; gap: 10px; margin-top: 6px; font-size: .58rem; font-weight: 700; letter-spacing: .14em; color: #475569; }
.td-flags .is-on[data-td-flag="zero"] { color: var(--blue-300); }
.td-flags .is-on[data-td-flag="motion"] { color: #f2b705; }
.td-flags .is-on[data-td-flag="stable"] { color: #3ddc84; }
.td-column { width: 10px; height: 54px; background: linear-gradient(90deg, #5c6774, #c9d1db 45%, #5c6774); }
.td-platform { position: relative; width: min(100%, 300px); }
.td-plate {
  position: relative; z-index: 1; height: 14px; border-radius: 4px; transition: transform .25s ease .55s;
  background: linear-gradient(180deg, #eef2f6, #a9b4c2 60%, #7d8896); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #4f5b69;
}
.td-base { position: relative; height: 22px; margin: 0 6%; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #2b3542, #161c24); }
.td-base span { position: absolute; bottom: -6px; width: 18px; height: 6px; border-radius: 0 0 3px 3px; background: #0d1117; }
.td-base span:first-child { left: 10%; }
.td-base span:last-child { right: 10%; }
.td-product {
  position: absolute; left: 50%; bottom: 14px; z-index: 0; width: 46%; max-width: 132px; aspect-ratio: 4 / 3; transform: translateX(-50%);
  border-radius: 4px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #d9ac6c, #b5843f); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .35);
}
.td-product-tape { position: absolute; left: 0; right: 0; top: 24%; height: 10px; background: rgba(255, 255, 255, .25); }
.td-product-label { position: relative; padding: 3px 6px; border-radius: 3px; background: #fdfdfb; color: #1b1f24; font: 700 .58rem/1.2 var(--mono); text-align: center; max-width: 88%; }
.td.js-ready .td-product { opacity: 0; transform: translate(-50%, -150px); transition: transform .85s cubic-bezier(.3, 1.35, .55, 1), opacity .3s ease; }
.td.js-ready.is-placed .td-product { opacity: 1; transform: translate(-50%, 0); }
.td.is-placed .td-plate { transform: translateY(2px); }
.td-link { align-self: center; margin-bottom: 70px; }
/* Cable serial RS-232: conectores tipo D-sub (de uso común en RS-232) unidos a cada equipo; el cable
   cuelga entre ellos con una curva natural y su trazo se recalcula si los equipos se mueven. */
.td-stage::after { z-index: 0; }
.td-scale, .td-printer { z-index: 2; }
.td-display { position: relative; }
.td-port { position: absolute; top: 58%; width: 6px; height: 22px; margin-top: -11px; border-radius: 2px; background: linear-gradient(90deg, #7d8896, #d5dbe2, #7d8896); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.td-port--out { right: -6px; }
.td-port--in { left: -6px; top: 70px; }
.td-port-tag { position: absolute; top: -15px; left: -2px; font: 700 .5rem/1 var(--mono); letter-spacing: .08em; color: var(--gray-300); }
.td-plug { position: absolute; top: -4px; width: 14px; height: 30px; border-radius: 3px; background: linear-gradient(180deg, #4b5665, #2a323d 55%, #1d242d); box-shadow: 0 4px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15); }
.td-port--out .td-plug { left: 6px; }
.td-port--in .td-plug { right: 6px; }
.td-plug-screw { position: absolute; left: 4px; width: 6px; height: 5px; border-radius: 2px; background: linear-gradient(90deg, #9aa5b2, #e6eaee, #9aa5b2); }
.td-plug-screw:first-child { top: -4px; }
.td-plug-screw:nth-child(2) { bottom: -4px; }
.td-plug-boot { position: absolute; top: 8px; width: 9px; height: 14px; background: linear-gradient(180deg, #2b333d, #161b21); }
.td-port--out .td-plug-boot { left: 14px; border-radius: 0 5px 5px 0; }
.td-port--in .td-plug-boot { right: 14px; border-radius: 5px 0 0 5px; }
.td-wire { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.td-wire path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.td-wire-shadow { stroke: rgba(0, 0, 0, .38); stroke-width: 7; transform: translate(0, 4px); }
.td-cable { stroke: #2a394d; stroke-width: 5; }
.td-cable-hi { stroke: rgba(160, 190, 225, .28); stroke-width: 1.4; transform: translate(0, -1.2px); }
.td-data { stroke: #8fd3ff; stroke-width: 2.4; stroke-dasharray: 3 12; opacity: 0; transition: opacity .3s; }
.td.is-sending .td-data { opacity: 1; animation: td-flow .5s linear infinite; }
@keyframes td-flow { to { stroke-dashoffset: -30; } }
.td-wire-label {
  position: absolute; z-index: 3; left: 0; top: 0; padding: 3px 7px; border-radius: 5px; transform: translate(-50%, -100%);
  background: rgba(10, 20, 34, .88); border: 1px solid rgba(255, 255, 255, .12); font: 700 .58rem/1 var(--mono); letter-spacing: .1em; color: var(--gray-300);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s;
}
.td-wire-label.is-placed { opacity: 1; }
.td.is-sending .td-wire-label { color: #8fd3ff; border-color: rgba(143, 211, 255, .4); }
.td.is-sending .td-led { animation: td-blink .3s steps(2) infinite; }
.td-printer { display: flex; flex-direction: column; align-items: center; padding-bottom: 26px; }
.td-printer-body {
  position: relative; z-index: 2; width: min(100%, 210px); height: 104px; border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, #33404f, #19212b); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}
.td-printer-lid { position: absolute; left: 10px; right: 10px; top: 14px; height: 34px; border-radius: 10px; background: linear-gradient(180deg, #45546a, #2b3644); }
.td-printer-led { position: absolute; right: 18px; top: 60px; width: 8px; height: 8px; border-radius: 50%; background: #2a3a52; }
.td.is-sending .td-printer-led, .td.is-printing .td-printer-led { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.td.is-sending .td-printer-led { animation: td-blink .3s steps(2) infinite; }
.td-printer-name { position: absolute; left: 16px; top: 60px; font: 700 .55rem/1 var(--font); letter-spacing: .16em; color: var(--gray-300); }
.td-slot { position: absolute; left: 22px; right: 22px; top: 4px; height: 6px; border-radius: 3px; background: #05080c; box-shadow: inset 0 1px 2px #000; }
.td.is-printing .td-printer-body { animation: td-buzz .12s linear infinite; }
@keyframes td-blink { 50% { opacity: .2; } }
@keyframes td-buzz { 50% { transform: translateY(.6px); } }
.td-paper-window { position: relative; z-index: 1; order: -1; display: flex; align-items: flex-end; width: min(84%, 176px); height: 270px; margin-bottom: -6px; overflow: hidden; }
.td-paper { width: 100%; }
.td-paper {
  padding: 14px 12px 22px; background: #fdfdfb; color: #1b1f24; font-family: var(--mono); font-size: .7rem; line-height: 1.45;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35); will-change: transform;
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 12px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 12px 100% repeat-x;
}
.td-paper p { margin: 0; text-align: center; }
.td-paper-brand { font-weight: 800; letter-spacing: .04em; font-size: .78rem; }
.td-paper-sub { font-size: .6rem; letter-spacing: .18em; color: #59636e; padding-bottom: 6px; border-bottom: 1px dashed #9aa3ad; margin-bottom: 6px !important; }
.td-paper-rows { margin: 0; }
.td-paper-rows div { display: flex; justify-content: space-between; gap: 8px; }
.td-paper-rows dt { color: #59636e; }
.td-paper-rows dd { margin: 0; font-weight: 700; text-align: right; }
.td-paper-rows [data-td-field="weight"] { font-size: .85rem; }
.td-paper .barcode { margin: 8px 0 4px; height: 24px; }
.td-paper-foot { font-size: .52rem; color: #6b7480; letter-spacing: .06em; text-transform: uppercase; }
.td-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.td-steps li {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem; font-weight: 600; color: var(--gray-400); transition: color .3s, background-color .3s, border-color .3s;
}
.td-step-num { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #1b2a40; color: var(--gray-300); font-size: .7rem; transition: background-color .3s; }
.td-steps li.is-active { color: var(--white); border-color: rgba(91, 155, 224, .6); background: rgba(42, 100, 173, .18); }
.td-steps li.is-active .td-step-num { background: var(--blue-500); color: var(--white); }
.td-steps li.is-done { color: var(--gray-300); }
.td-steps li.is-done .td-step-num { background: #1f8f4e; color: var(--white); }
.td-status { margin: 14px 0 0; min-height: 1.6em; font-weight: 600; color: var(--gray-200); }
.td-note { margin: 4px 0 0; font-size: .78rem; color: var(--gray-400); }
.ticket-intro { align-items: start; }

/* Escena del camión: detalles añadidos */
.ws-cone { fill: url(#ws-cone-g); }
.ws-beacon { opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .ws-beacon { animation: td-blink 1.6s steps(2) infinite; } }
.ws-booth-val { fill: #8fd3ff; }
.weigh-scene.is-stable .ws-booth-val { fill: #3ddc84; }
.ws-flags .ws-axles { margin-left: auto; color: var(--gray-400); }

/* Mapa de Contacto: visible de inmediato; al tocarlo se elige Google Maps o Waze */
.map-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 14px; border: 0; background: transparent; cursor: pointer; transition: background-color .25s;
}
.map-overlay:hover, .map-overlay:focus-visible { background: rgba(10, 26, 48, .12); }
.map-overlay-hint {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(10, 26, 48, .9); color: var(--white); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow);
  transition: transform .25s var(--ease);
}
.map-overlay:hover .map-overlay-hint { transform: translateY(-2px); }
.map-embed.is-choosing .map-overlay { background: rgba(6, 15, 29, .55); }
.map-choices {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90%, 320px);
  padding: 22px 20px 20px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); text-align: center;
}
.map-choices-title { margin: 0 0 14px; padding: 0 30px; font-weight: 800; line-height: 1.3; color: var(--navy-900); }
.map-choices-actions { display: grid; gap: 10px; }
.map-choices-actions .btn { width: 100%; }
.map-choices-close {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--gray-100); color: var(--navy-900);
}
.map-choices-close:hover { background: var(--gray-200); }
.btn-waze { background: #0a6fa8; color: var(--white); box-shadow: 0 6px 18px rgba(10, 111, 168, .3); }
.btn-waze:hover { color: var(--white); background: #085b8a; }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- v4: Animación de fabricación ---------- */
.service-detail .fab { margin: 8px 0 24px; }
.fab-stage { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); background: #0a1322; }
.fab-svg { display: block; width: 100%; height: auto; }
.fab-face-top, .fab-face-x, .fab-face-y { stroke: rgba(0, 0, 0, .28); stroke-width: .6; stroke-linejoin: round; }
.fab-steel.fab-face-top { fill: #93a1b3; }
.fab-steel.fab-face-x { fill: #56657a; }
.fab-steel.fab-face-y { fill: #3c4a5c; }
.fab-plate.fab-face-top { fill: #b3bdc9; }
.fab-plate.fab-face-x { fill: #66717f; }
.fab-plate.fab-face-y { fill: #4e5966; }
.fab-tread { fill: rgba(255, 255, 255, .22); stroke: none; }
.fab-cell.fab-face-top { fill: #3478c8; }
.fab-cell.fab-face-x { fill: #1f4a85; }
.fab-cell.fab-face-y { fill: #16345e; }
.fab-part { transition: transform 1.1s cubic-bezier(.45, .05, .25, 1), opacity .6s ease; }
.fab-cell { transition: opacity .5s ease; }
.fab-bead { fill: #8d99a8; stroke: rgba(0, 0, 0, .3); stroke-width: .6; transition: fill 1.8s ease, opacity .2s; }
.fab.js-ready .fab-bead { opacity: 0; }
.fab.js-ready .fab-bead.is-hot { opacity: 1; fill: #fff1c4; transition: fill .1s; }
.fab.js-ready .fab-bead.is-hot.is-cool { fill: #a3aebb; transition: fill 1.8s ease; }
.fab-dim { opacity: 0; pointer-events: none; transition: opacity .25s; }
.fab.is-welding .fab-dim { opacity: .45; }
.fab-arc, .fab-pool { opacity: 0; pointer-events: none; transition: opacity .12s; }
.fab.is-welding .fab-pool { opacity: 1; }
.fab.is-welding .fab-arc { opacity: 1; animation: fab-flicker .09s steps(2) infinite; }
@keyframes fab-flicker { 50% { opacity: .72; } }
.fab-spark { stroke-width: 1.6; opacity: 0; }
.fab-torch { opacity: 0; transition: transform .45s cubic-bezier(.3, .7, .3, 1), opacity .3s; }
.fab.js-ready .fab-torch { opacity: 1; }
.fab-cam { transform-box: view-box; transform-origin: 50% 50%; transition: transform 4.5s cubic-bezier(.2, .7, .2, 1); }
.fab-label { transition: opacity .8s ease; }
.fab-label text { font: 800 13px var(--font); letter-spacing: .16em; fill: #9cc3ef; }
.fab.no-anim *, .fab.no-anim { transition: none !important; }
.fab-steps { grid-template-columns: repeat(6, 1fr); }
/* v5: materiales más definidos, indicador, tarima y montacargas */
.fab-steel.fab-face-top, .fab-plate.fab-face-top { stroke: rgba(255, 255, 255, .28); }
.fab-wood.fab-face-top { fill: #c4935a; } .fab-wood.fab-face-x { fill: #9a6d3c; } .fab-wood.fab-face-y { fill: #7f5a32; }
.fab-load.fab-face-top { fill: #d9b98a; } .fab-load.fab-face-x { fill: #b5915e; } .fab-load.fab-face-y { fill: #9c7a4b; }
.fab-wrap { fill: rgba(255, 255, 255, .22); stroke: none; }
.fab-fork.fab-face-top { fill: #5c6774; } .fab-fork.fab-face-x { fill: #3a4553; } .fab-fork.fab-face-y { fill: #2b333d; }
.fab-mast.fab-face-top { fill: #6b7685; } .fab-mast.fab-face-x { fill: #4f5b69; } .fab-mast.fab-face-y { fill: #3a4553; }
.fab-fl.fab-face-top { fill: #ffd34d; } .fab-fl.fab-face-x { fill: #e0a800; } .fab-fl.fab-face-y { fill: #b98a00; }
.fab-cw.fab-face-top { fill: #4f5b69; } .fab-cw.fab-face-x { fill: #2b333d; } .fab-cw.fab-face-y { fill: #1f262f; }
.fab-seat.fab-face-top { fill: #2b333d; } .fab-seat.fab-face-x { fill: #161c24; } .fab-seat.fab-face-y { fill: #0d1117; }
.fab-guard.fab-face-top { fill: #33404f; } .fab-guard.fab-face-x { fill: #1b2430; } .fab-guard.fab-face-y { fill: #11161d; }
.fab-tire { fill: #0b0e12; stroke: #2b333d; stroke-width: 1; }
.fab-hub { fill: #8a96a5; stroke: #5c6774; stroke-width: .8; }
.fab-hubcap { fill: #d5dbe2; }
/* v9: perfiles en «C», detalles del montacargas y antorcha MIG/MAG */
.fab-web { fill: #2c3848; }
.fab-edge { fill: #c9d3df; opacity: .55; }
.fab-mastin.fab-face-top { fill: #8a96a5; } .fab-mastin.fab-face-x { fill: #5c6774; } .fab-mastin.fab-face-y { fill: #47515e; }
.fab-rod.fab-face-top { fill: #e6eaee; } .fab-rod.fab-face-x { fill: #b8c1cc; } .fab-rod.fab-face-y { fill: #8a96a5; }
.fab-beacon.fab-face-top { fill: #ffb547; } .fab-beacon.fab-face-x { fill: #e98a00; } .fab-beacon.fab-face-y { fill: #c06f00; }
.fab-steer { fill: none; stroke: #0d1117; stroke-width: 2.4; }
.fab-steer-col { fill: #161c24; }
.fab-torch-cable { fill: none; stroke: #10151c; stroke-width: 6; stroke-linecap: round; }
.fab-torch-cable-hi { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; transform: translate(-1px, -1.5px); }
.fab-torch-neck { fill: none; stroke: #4a5563; stroke-width: 6.5; stroke-linecap: round; }
.fab-torch-handle { fill: #1c232c; stroke: #0b0f14; stroke-width: 1; }
.fab-torch-grip { fill: none; stroke: #39434f; stroke-width: 1.6; stroke-linecap: round; }
.fab-torch-trigger { fill: #2e3843; }
.fab-torch-nozzle { fill: #c58a52; stroke: #7a5131; stroke-width: .8; }
.fab-torch-nozzle-hi { fill: none; stroke: rgba(255, 236, 200, .7); stroke-width: 1.4; stroke-linecap: round; }
.fab-torch-tip { stroke: #e9c27e; stroke-width: 2; stroke-linecap: round; }
.fab-torch-body { transition: transform .2s ease; }
.fab.is-welding .fab-torch-body { transform: translate(-1px, 1px); }
.fab-cable { fill: none; stroke: #1b2430; stroke-width: 3.5; stroke-linecap: round; }
.fab-ind { opacity: 0; transition: opacity .45s ease; }
.fab.ind-visible .fab-ind, .fab:not(.js-ready) .fab-ind { opacity: 1; }
.fab-ind-body { fill: #2b3542; stroke: rgba(156, 195, 239, .5); stroke-width: 1.2; }
.fab-ind-screen { fill: #06121f; stroke: rgba(91, 155, 224, .35); transition: fill .3s; }
.fab-ind-val { font: 700 21px var(--mono); fill: #1b2a40; transition: fill .3s; }
.fab-ind-unit { font: 700 12px var(--mono); fill: #1b2a40; transition: fill .3s; }
.fab-ind-st { font: 800 9px var(--font); letter-spacing: .14em; fill: #475569; }
.fab-ind-led { fill: #2a3a52; transition: fill .3s; }
.fab.ind-on .fab-ind-val, .fab:not(.js-ready) .fab-ind-val { fill: #8fd3ff; }
.fab.ind-on .fab-ind-unit { fill: #9cc3ef; }
.fab.ind-on .fab-ind-st { fill: #9cc3ef; }
.fab[data-ind="zero"] .fab-ind-led { fill: #5b9be0; }
.fab[data-ind="motion"] .fab-ind-led { fill: #f2b705; }
.fab[data-ind="motion"] .fab-ind-st { fill: #f2b705; }
.fab[data-ind="stable"] .fab-ind-led { fill: #3ddc84; }
.fab[data-ind="stable"] .fab-ind-val { fill: #b8f5d0; }
.fab[data-ind="stable"] .fab-ind-st { fill: #3ddc84; }
.fab.js-ready .fab-lift-group, .fab.js-ready .fab-pallet { opacity: 0; transition: opacity .4s ease; }
.fab.js-ready.fl-on .fab-lift-group, .fab.js-ready.fl-on .fab-pallet { opacity: 1; }
.fab.js-ready.fl-on.fl-gone .fab-lift-group { opacity: 0; transition-duration: .6s; }
.fab.is-final .fab-ind-head { filter: drop-shadow(0 0 14px rgba(61, 220, 132, .55)); }
.fab.is-final .fab-pallet { filter: drop-shadow(0 0 10px rgba(156, 195, 239, .35)); }

/* ---------- v4: Vista explotada de componentes ---------- */
.anatomy-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.anatomy-figure { position: relative; border-radius: 20px; padding: 12px; background: radial-gradient(500px 280px at 50% 40%, rgba(91, 155, 224, .14), transparent 70%), rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06); }
.anatomy-toolbar { position: absolute; top: 14px; right: 14px; z-index: 2; }
.anatomy-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 26, 48, .8); color: var(--gray-200); font-size: .72rem; font-weight: 800; letter-spacing: .1em;
}
.anatomy-toggle:hover { border-color: var(--blue-300); color: var(--white); }
.an-part { cursor: pointer; transition: transform .9s cubic-bezier(.3, .8, .25, 1), opacity .35s ease, filter .35s ease; }
.an-part:focus { outline: none; }
.fab-foot.fab-face-top { fill: #5c6774; } .fab-foot.fab-face-x { fill: #3a4553; } .fab-foot.fab-face-y { fill: #2b333d; }
.fab-jbox.fab-face-top { fill: #c9d1db; } .fab-jbox.fab-face-x { fill: #8a96a5; } .fab-jbox.fab-face-y { fill: #6b7685; }
.an-wire { fill: none; stroke: #5b9be0; stroke-width: 2; stroke-linecap: round; }
.an-ind { fill: #2b3542; stroke: #9cc3ef; stroke-width: 1; }
.an-ind-t { font: 700 15px var(--mono); fill: #8fd3ff; }
.an-label { opacity: .55; transition: opacity .3s; }
.an-leader { stroke: #9cc3ef; stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.an-dot { fill: #9cc3ef; }
.an-num { fill: var(--navy-800); stroke: #9cc3ef; stroke-width: 1.5; }
.an-num-t { font: 800 11px var(--font); fill: #fff; text-anchor: middle; }
.an-text { font: 700 12.5px var(--font); fill: var(--gray-200); }
.anatomy:not(.is-exploded) .an-label { opacity: 0; }
.anatomy.is-exploded .an-part.is-active .an-label { opacity: 1; }
.anatomy.is-exploded .an-part.is-active .an-num { fill: var(--blue-500); }
.anatomy.has-active .an-part { opacity: .5; }
.anatomy.has-active .an-part.is-active { opacity: 1; filter: drop-shadow(0 0 10px rgba(91, 155, 224, .7)); }
.anatomy-side { display: grid; gap: 18px; }
.anatomy-card { padding: 20px 22px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--blue-400); }
.anatomy-card-num { margin: 0 0 4px; font: 800 .8rem var(--mono); color: var(--blue-300); letter-spacing: .1em; }
.anatomy-card-title { margin: 0 0 4px; color: var(--white); font-size: 1.25rem; }
.anatomy-card-fn { margin: 0 0 8px; font-weight: 700; color: var(--blue-300); }
.anatomy-card .anatomy-desc { margin: 0; padding: 0; border: 0; min-height: 0; color: var(--gray-300); }

/* ---------- v4: Videos, antes/después y galería ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px)); justify-content: center; gap: 28px; }
.video-card { margin: 0; }
.video-frame { position: relative; overflow: hidden; border-radius: 20px; background: #000; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.video-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 26, 48, .85); color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.video-badge .icon { width: 14px; height: 14px; color: #f2b705; }
.video-play { position: absolute; top: 0; right: 0; bottom: 56px; left: 0; z-index: 2; border: 0; background: rgba(6, 15, 29, .25); cursor: pointer; }
.video-play .play-badge { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.video-play .play-badge::after { left: 31px; top: 23px; border-width: 15px 0 15px 23px; }
.video-card figcaption { display: grid; gap: 4px; margin-top: 14px; font-size: .92rem; color: var(--gray-300); }
.video-card figcaption strong { color: var(--white); font-size: 1rem; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 22px; }
.ba-item { position: relative; }
.ba-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(10, 26, 48, .88); color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ba-tag--after { background: var(--blue-500); }
.gallery-item--video .gallery-thumb { position: relative; }
.gallery-item--video .gallery-thumb img { object-position: 50% 35%; }
.play-badge { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(10, 26, 48, .78); border: 2px solid rgba(255, 255, 255, .85); transition: transform .25s var(--ease), background-color .25s; }
.play-badge::after { content: ""; position: absolute; left: 26px; top: 19px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #fff; }
.gallery-trigger:hover .play-badge, .gallery-trigger:focus-visible .play-badge { transform: scale(1.08); background: var(--blue-500); }
.lightbox-media.is-video { aspect-ratio: auto; background: #000; }
.lightbox-video { display: block; width: auto; max-width: 100%; height: 66vh; max-height: 640px; aspect-ratio: 9 / 16; margin: 0 auto; object-fit: contain; background: #000; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; }
.filter-btn .icon { width: 16px; height: 16px; }
.filter-count { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(10, 26, 48, .1); font-size: .72rem; }
.filter-btn[aria-pressed="true"] .filter-count { background: rgba(255, 255, 255, .2); }

/* ---------- v4: Contacto ---------- */
.contact-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 120px); color: var(--gray-300); background: var(--navy-950); }
.contact-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .5; }
.contact-hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 15, 29, .96) 0%, rgba(6, 15, 29, .8) 50%, rgba(6, 15, 29, .45) 100%); }
.contact-hero-inner { max-width: var(--container); }
.contact-hero .lead { max-width: 640px; }
.contact-channels { margin-top: clamp(-70px, -6vw, -40px); padding-top: 0; position: relative; z-index: 2; }
.channel-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.channel {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 20px; background: var(--white);
  border: 1px solid var(--gray-200); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-300); }
.channel-grid > .channel:last-child { grid-column: 1 / -1; }
.channel--featured { grid-row: auto; background: radial-gradient(420px 220px at 100% 0%, rgba(31, 168, 85, .22), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-color: transparent; color: var(--gray-300); }
.channel-head { display: flex; align-items: flex-start; gap: 14px; }
.channel-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); color: var(--white); box-shadow: 0 8px 18px rgba(15, 37, 68, .25); transition: transform .3s var(--ease); }
.channel-icon .icon { width: 24px; height: 24px; }
.channel:hover .channel-icon { transform: rotate(-6deg) scale(1.05); }
.channel--featured .channel-icon { background: linear-gradient(135deg, var(--wa), var(--wa-dark)); width: 60px; height: 60px; border-radius: 16px; }
.channel--featured .channel-icon .icon { width: 30px; height: 30px; }
.channel-title { margin: 0 0 4px; font-size: 1.15rem; }
.channel--featured .channel-title { color: var(--white); font-size: 1.5rem; }
.channel-sub { margin: 0; font-size: .92rem; color: var(--gray-600); }
.channel--featured .channel-sub { color: var(--gray-300); }
.channel-list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 10px; }
.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); }
.channel--featured .channel-row { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); padding: 8px 8px 8px 16px; }
/* v14 · La tarjeta de WhatsApp ya no ocupa dos filas: su lista va justo debajo del encabezado (sin hueco). */
.channel--featured { gap: 14px; padding-block: 16px; }
.channel--featured .channel-list { margin-top: 0; gap: 8px; }
.channel-num { font: 700 .98rem var(--mono); color: var(--navy-900); word-break: break-word; min-width: 0; }
.channel-num--mail { font-family: var(--font); font-size: .9rem; }
.channel--featured .channel-num { color: var(--white); font-size: 1.12rem; }
.channel-action {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 8px 14px; border-radius: 10px;
  background: var(--navy-800); color: var(--white); font-weight: 700; font-size: .85rem; text-decoration: none; transition: background-color .2s, transform .2s var(--ease);
}
.channel-action .icon { width: 16px; height: 16px; }
.channel-action:hover { color: var(--white); background: var(--blue-500); transform: translateX(2px); }
.channel-action--wa { background: var(--wa-dark); }
.channel-action--wa:hover { background: #0f7a3c; }
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.location-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.location-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--gray-200); }
.location-list .icon { width: 22px; height: 22px; color: var(--navy-600); margin-top: 2px; }
.location-list span { display: grid; gap: 2px; color: var(--gray-700); }
.location-list strong { color: var(--navy-900); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.location-map { border-radius: 22px; overflow: hidden; background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }
.map-card-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--navy-900); color: var(--white); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.map-card-head .icon { color: var(--blue-300); }
.location-map .map-embed { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }

/* ---------- v4: Cotizaciones ---------- */
.page-hero--quote .page-hero-inner { align-items: center; }
.quote-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: qf; flex: none; width: min(100%, 320px); }
.quote-flow li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--white); font-weight: 600; }
.flow-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(91, 155, 224, .2); color: var(--blue-300); }
.quote-section { background: linear-gradient(180deg, var(--gray-50), var(--white) 40%); }

.btn-lg { min-height: 54px; padding-inline: 26px; font-size: .92rem; }

.field input:not([type="checkbox"]), .field select, .field textarea { border-radius: 12px; background-color: var(--gray-50); }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { background-color: var(--white); }
.field label { font-size: .92rem; }

/* ---------- Pulido general ---------- */
/* Encabezado: filo luminoso inferior y foco visible en enlaces del menú */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(156, 195, 239, .35), transparent); pointer-events: none; }
.nav-link:focus-visible, .sub-toggle:focus-visible, .icon-link:focus-visible, .lang-option:focus-visible { outline-offset: 1px; }
/* Tarjetas enlace: foco equivalente al hover (teclado y pantallas táctiles) */
a.card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy-600); }
/* Títulos de sección con mejor ritmo vertical */
.section-head .lead { margin-bottom: 0; }
.section-title { margin-bottom: .45em; }
/* Formularios: estados más claros */
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--gray-600); }
.field input::placeholder, .field textarea::placeholder { color: #677385; }
fieldset { padding: clamp(16px, 2.5vw, 24px); border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); }
legend { float: left; margin-bottom: 18px; }
legend + * { clear: both; }

/* Datos técnicos (listas de verificación y tarjetas de comparación) */
.compare-card dd { line-height: 1.55; }
.check-list li span { line-height: 1.55; }
/* Pie de página: regla técnica superior */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(156, 195, 239, .18) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat,
              repeating-linear-gradient(90deg, rgba(156, 195, 239, .35) 0 1px, transparent 1px 60px) top / 100% 10px no-repeat;
}
.footer-title { position: relative; padding-bottom: 10px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--blue-500); }
/* Iconos con transición en enlaces de contacto */
.footer-contact a .icon, .icon-link .icon { transition: transform .25s var(--ease); }
.footer-contact a:hover .icon, .icon-link:hover .icon { transform: scale(1.12); }

/* ---------- Compatibilidad ---------- */
/* Navegadores sin :focus-visible (Safari < 15.4): foco visible con :focus */
@supports not selector(:focus-visible) {
  :focus { outline: 3px solid var(--blue-400); outline-offset: 3px; }
}
/* Safari requiere el prefijo para el desenfoque del encabezado */
@supports (-webkit-backdrop-filter: blur(8px)) and (not (backdrop-filter: blur(8px))) {
  .site-header { background: rgba(10, 26, 48, .88); -webkit-backdrop-filter: saturate(140%) blur(10px); }
}
/* Navegadores sin aspect-ratio: altura mínima razonable para fotos */
@supports not (aspect-ratio: 1 / 1) {
  .photo-frame img, .gallery-thumb img { height: 260px; }
  .td-product { height: 90px; }
}
/* ---------- v7: Nuestros trabajos — galerías por tema ---------- */
.works { padding-top: clamp(28px, 4vw, 52px); }
/* Filtros: botones tipo píldora; en pantallas angostas se desplazan horizontalmente dentro de su franja. */
.gfilters-wrap { position: relative; margin: 0 0 clamp(22px, 3vw, 34px); scroll-margin-top: calc(var(--header-h) + 16px); }
.gfilters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; overscroll-behavior-x: contain; scrollbar-width: none; }
.gfilters::-webkit-scrollbar { display: none; }
.gfilter {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: var(--white); color: var(--navy-800); font-size: .9rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(10, 26, 48, .05); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.gfilter:hover { border-color: var(--navy-600); transform: translateY(-1px); }
.gfilter[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); box-shadow: 0 8px 18px -10px rgba(10, 26, 48, .7); }
.gfilter:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.gfilter-n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(10, 26, 48, .07); font-size: .72rem; font-weight: 700; text-align: center; }
.gfilter[aria-pressed="true"] .gfilter-n { background: rgba(255, 255, 255, .18); }
.masonry { transition: opacity .18s ease; }
.masonry.is-fading { opacity: 0; }
/* Cuadrícula tipo masonry: cada foto conserva su proporción original, sin huecos ni recortes. */
.masonry { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 18px; }
.m-item { display: block; padding-bottom: 18px; break-inside: avoid; -webkit-column-break-inside: avoid; }
.is-animated .m-item { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.is-animated .m-item.is-in { opacity: 1; transform: none; }
.m-trigger, .m-video {
  position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate; border-radius: 14px; background: var(--gray-100);
  box-shadow: 0 1px 2px rgba(10, 26, 48, .06), 0 10px 26px -16px rgba(10, 26, 48, .45);
}
.m-trigger { padding: 0; border: 0; cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.m-trigger img { display: block; width: 100%; height: auto; transition: transform .9s var(--ease); }
.m-trigger::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 15, 29, 0) 55%, rgba(6, 15, 29, .38)); opacity: 0; transition: opacity .4s var(--ease); }
.m-trigger::before {
  content: ""; position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1a30' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) {
  .m-trigger:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10, 26, 48, .08), 0 22px 40px -18px rgba(10, 26, 48, .55); }
  .m-trigger:hover img { transform: scale(1.045); }
  .m-trigger:hover::after, .m-trigger:hover::before { opacity: 1; }
  .m-trigger:hover::before { transform: none; }
}
.m-trigger:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.m-trigger:focus-visible::before { opacity: 1; transform: none; }
.m-video { background: #000; }
.m-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
/* Visor ampliado: la fotografía es la protagonista, sin títulos visibles. */
.lightbox--clean { background: rgba(6, 13, 24, .96); }
.lightbox--clean .lightbox-media { position: relative; aspect-ratio: auto; height: min(76vh, 900px); max-height: none; background: transparent; }
.lightbox--clean .lightbox-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.lightbox--clean .lightbox-media img.is-swapping { opacity: 0; transform: scale(.98); }
.lightbox--clean figcaption { padding-top: 12px; text-align: center; }

/* ---------- v7: Venta de fleje (plástico y acero) ---------- */
.strap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(18px, 2.4vw, 28px); max-width: 1040px; margin: 0 auto; }
.strap-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(10, 26, 48, .05), 0 18px 40px -26px rgba(10, 26, 48, .45); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.strap-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-900); }
.strap-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
/* La foto original es vertical: el encuadre muestra los rollos y deja fuera la marca de agua de la cámara. */
.strap-media--fleje-de-acero img { object-position: 50% 32%; }
.strap-media--icon { display: grid; place-items: center; color: var(--blue-300); background: radial-gradient(120% 90% at 30% 20%, var(--navy-700), var(--navy-950)); }
.strap-media--icon .icon { width: 96px; height: 96px; stroke-width: 1.2; }
.strap-body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 28px); }
.strap-body p { color: var(--gray-600); }
.strap-body .btn-row { margin-top: auto; padding-top: 6px; }
@media (hover: hover) {
  .strap-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10, 26, 48, .06), 0 26px 50px -26px rgba(10, 26, 48, .55); }
  .strap-card:hover .strap-media img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .m-trigger, .m-trigger img, .strap-card, .strap-media img, .lightbox--clean .lightbox-media img { transition: none; }
  .m-trigger:hover, .strap-card:hover { transform: none; }
  .m-trigger:hover img, .strap-card:hover .strap-media img { transform: none; }
}

/* ---------- v9: Misión, Visión y Valores (Nosotros) ---------- */
.mvv { position: relative; overflow: hidden; background:
  radial-gradient(60% 70% at 10% 0%, rgba(91, 155, 224, .10), transparent 70%),
  radial-gradient(50% 60% at 95% 100%, rgba(242, 183, 5, .08), transparent 70%), var(--white); }
.mvv-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-bottom: clamp(30px, 4vw, 46px); }
.mvv-pillar {
  position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px); border-radius: 20px; color: var(--gray-200);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 50px -30px rgba(10, 26, 48, .8); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.mvv-pillar::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 155, 224, .22), transparent 70%); transition: transform .8s var(--ease); pointer-events: none; }
.mvv-pillar-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px;
  background: rgba(91, 155, 224, .16); color: var(--blue-300); border: 1px solid rgba(143, 211, 255, .25); }
.mvv-pillar-icon .icon { width: 26px; height: 26px; }
.mvv-pillar-title { margin: 0 0 .45em; color: var(--white); font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); }
.mvv-pillar p { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--gray-300); max-width: 52ch; }
.mvv-values-title { margin: 0 0 18px; text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-600); }
.mvv-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mvv-value {
  position: relative; padding: 20px 18px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(10, 26, 48, .04), 0 14px 30px -24px rgba(10, 26, 48, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.mvv-value::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--blue-500), #f2b705); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.mvv-value-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px;
  background: var(--gray-100); color: var(--navy-700); transition: background-color .35s, color .35s, transform .35s var(--ease); }
.mvv-value-icon .icon { width: 22px; height: 22px; }
.mvv-value-title { margin: 0 0 .35em; font-size: 1.02rem; color: var(--navy-900); }
.mvv-value p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--gray-600); }
@media (hover: hover) {
  .mvv-pillar:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(10, 26, 48, .9); }
  .mvv-pillar:hover::after { transform: scale(1.25); }
  .mvv-value:hover { transform: translateY(-4px); border-color: rgba(91, 155, 224, .45); box-shadow: 0 2px 4px rgba(10, 26, 48, .05), 0 22px 40px -24px rgba(10, 26, 48, .5); }
  .mvv-value:hover::before { transform: scaleX(1); }
  .mvv-value:hover .mvv-value-icon { background: var(--navy-800); color: var(--white); transform: rotate(-6deg) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .mvv-pillar, .mvv-value, .mvv-value-icon, .mvv-value::before, .mvv-pillar::after { transition: none; }
  .mvv-pillar:hover, .mvv-value:hover, .mvv-value:hover .mvv-value-icon { transform: none; }
}

/* ---------- v11: sección principal (hero) ---------- */
.hero { min-height: min(92vh, 880px); }
/* v13 · Composición: la fotografía ocupa el lado derecho (el tractocamión queda entre el texto y la
   tarjeta del indicador, no detrás del título) y se funde hacia la izquierda; el velo oscuro se concentra
   solo detrás del texto. Sin capas oscuras dobles: .hero::before se desactiva en la portada. */
.hero::before { content: none; }
.hero .hero-photo {
  left: 26%; width: 74%; object-position: 50% 52%;
  opacity: 1; filter: saturate(1.06) contrast(1.06) brightness(.94); transform: scale(1.04); transform-origin: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-photo { animation: hero-zoom 14s cubic-bezier(.2, .6, .2, 1) both; }
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }
/* Velo: firme detrás del texto (legibilidad AA), abierto sobre la fotografía; franjas suaves arriba (encabezado)
   y abajo (transición a la siguiente sección). La retícula técnica solo se dibuja sobre la zona del texto. */
.hero .hero-bg {
  background:
    linear-gradient(90deg, rgba(6, 13, 24, .95) 0%, rgba(6, 13, 24, .9) 30%, rgba(6, 13, 24, .55) 46%, rgba(6, 13, 24, .14) 64%, rgba(6, 13, 24, .1) 82%, rgba(6, 13, 24, .34) 100%),
    linear-gradient(0deg, rgba(6, 13, 24, .92) 0%, rgba(6, 13, 24, 0) 24%),
    linear-gradient(180deg, rgba(6, 13, 24, .5) 0%, rgba(6, 13, 24, 0) 16%),
    radial-gradient(600px 380px at 82% 40%, rgba(42, 100, 173, .16), transparent 70%);
  -webkit-mask-image: none; mask-image: none;
}
.hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 48px 48px,
              linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 55%);
}
.hero .hero-desc, .hero .hero-phrase { text-shadow: 0 1px 14px rgba(6, 13, 24, .85); }
/* Tabletas y celulares: el contenido se apila; la fotografía se luce como banda superior detrás del título,
   encuadrada en el frente del tractocamión, y se funde hacia el azul marino donde empiezan la descripción y la tarjeta. */
@media (max-width: 1024px) {
  .hero .hero-photo {
    left: 0; width: 100%; bottom: auto; height: min(100%, max(560px, 118vw));
    object-position: 34% 42%; transform-origin: 40% 40%;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  }
  .hero .hero-bg {
    background:
      linear-gradient(180deg, rgba(6, 13, 24, .7) 0%, rgba(6, 13, 24, .62) 16%, rgba(6, 13, 24, .8) 36%, rgba(6, 13, 24, .92) 62%, rgba(6, 13, 24, .96) 100%),
      radial-gradient(500px 340px at 80% 20%, rgba(42, 100, 173, .14), transparent 70%);
  }
  .hero .hero-bg::after { -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 80%); mask-image: linear-gradient(180deg, transparent 40%, #000 80%); }
  .hero .hero-title, .hero .hero-badge { text-shadow: 0 2px 18px rgba(6, 13, 24, .8); }
  /* Sobre la fotografía, la frase y la insignia usan tonos más claros de la misma gama azul (contraste AA). */
  .hero .hero-phrase { color: #d3e5fa; }
  .hero .hero-desc { color: var(--gray-200); }
  .hero .hero-badge { color: #e3eefb; background: rgba(6, 13, 24, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
/* Teléfonos en horizontal: banda completa con velo lateral (el texto va a la izquierda). */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 560px) {
  .hero .hero-photo { height: 100%; bottom: 0; object-position: 50% 50%; -webkit-mask-image: none; mask-image: none; }
  .hero .hero-bg { background: linear-gradient(90deg, rgba(6, 13, 24, .92) 0%, rgba(6, 13, 24, .84) 55%, rgba(6, 13, 24, .45) 100%), linear-gradient(0deg, rgba(6, 13, 24, .85) 0%, rgba(6, 13, 24, 0) 30%); }
}
.hero-sheen { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-sheen::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(156, 195, 239, .08), transparent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-sheen::before { animation: hero-sheen 2.6s cubic-bezier(.3, .6, .2, 1) .6s both; }
}
@keyframes hero-sheen { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(560%) skewX(-18deg); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(10, 26, 48, .55); border: 1px solid rgba(156, 195, 239, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--blue-300); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.hero-badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
@media (prefers-reduced-motion: no-preference) { .hero-badge-dot { animation: badge-pulse 2.4s ease-out infinite; } }
@keyframes badge-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
.hero .hero-title { line-height: .98; letter-spacing: .01em; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero-title-a, .hero-title-b { display: inline-block; }
.hero-title-b { background: linear-gradient(100deg, #ffffff 0%, #cfe3fb 45%, var(--blue-300) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-phrase { position: relative; padding-left: 18px; }
.hero .hero-phrase::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--blue-400), #f2b705); }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(156, 195, 239, .16); }
.hero-trust li { display: flex; align-items: center; gap: 10px; color: var(--gray-300); font-size: .88rem; line-height: 1.25; }
.hero-trust li .icon { width: 30px; height: 30px; padding: 6px; flex: none; border-radius: 9px; color: var(--blue-300); background: rgba(91, 155, 224, .12); border: 1px solid rgba(143, 211, 255, .18); }
.hero-trust strong { display: block; color: var(--white); font-size: .95rem; }
/* Tarjeta del indicador y la báscula: vidrio esmerilado con profundidad. */
.hero-card {
  position: relative; width: min(100%, 470px); padding: clamp(18px, 2.4vw, 26px); border-radius: 26px;
  background: linear-gradient(160deg, rgba(20, 38, 64, .72), rgba(8, 17, 31, .78)); border: 1px solid rgba(156, 195, 239, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero-card::before { content: ""; position: absolute; inset: -40px -30px auto; height: 220px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 155, 224, .28), transparent); filter: blur(10px); pointer-events: none; }
.hero-card .indicator { width: 100%; }
/* Báscula del encabezado: única zona interactiva para cambiar la lectura. */
.truck-scale { width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 100%); }
.ts-ground { stroke: rgba(156, 195, 239, .28); stroke-width: 2; }
.ts-deck { fill: url(#ts-deck-g); stroke: rgba(156, 195, 239, .4); stroke-width: 1; }
.ts-beam { fill: #1f3a5c; }
.ts-joints { stroke: rgba(6, 13, 24, .6); stroke-width: 1.5; }
.ts-cells rect { fill: #243246; stroke: rgba(156, 195, 239, .25); }
.ts-led { fill: #3a4a60; transition: fill .3s; }
.ts-glow { fill: var(--blue-400); opacity: 0; transition: opacity .35s; }
.truck-scale.is-active .ts-glow, .truck-scale.is-moving .ts-glow { opacity: .75; }
.truck-scale.is-moving .ts-led { fill: #f2b705; }
.truck-scale:not(.is-moving) .ts-led { fill: #3ddc84; }
.ts-trailer { fill: url(#ts-trailer-g); stroke: var(--blue-300); stroke-width: 2; }
.ts-cab { fill: rgba(156, 195, 239, .12); stroke: var(--blue-300); stroke-width: 2.2; stroke-linejoin: round; }
.ts-window { fill: rgba(156, 195, 239, .22); stroke: var(--blue-300); stroke-width: 1.4; }
.ts-chassis { fill: rgba(156, 195, 239, .35); }
.ts-stack { stroke: var(--blue-300); stroke-width: 3.5; stroke-linecap: round; }
.ts-grille { stroke: var(--blue-300); stroke-width: 1.5; }
.ts-line { stroke: rgba(156, 195, 239, .28); stroke-width: 1.4; }
.ts-wheel circle { fill: var(--navy-950); stroke: var(--blue-300); stroke-width: 2.4; }
.ts-wheel .ts-hub { fill: rgba(156, 195, 239, .35); stroke: none; }
.ts-truck-g { will-change: transform; }
.ts-hint { font: 700 10px var(--font); letter-spacing: .14em; text-transform: uppercase; fill: var(--gray-400); transition: opacity .3s; }
.truck-scale.is-active .ts-hint { opacity: 0; }
.truck-scale:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 4px; border-radius: 8px; }

/* ---------- v11: escena 3D — imagen fija y estado de carga (sin la ilustración 2D anterior) ---------- */
.ws-stage { background: radial-gradient(120% 90% at 50% 100%, #1b2a3c, #0b1626 70%); }
.ws-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 62%;
  opacity: .5; filter: blur(3px) saturate(.85); transform: scale(1.03); transition: opacity .9s ease, filter .9s ease, visibility 0s linear .9s; }
.weigh-scene.no-3d .ws-poster { opacity: 1; filter: none; transform: none; }
.weigh-scene.has-3d .ws-poster { opacity: 0; visibility: hidden; }
.ws-loader { position: absolute; left: 50%; top: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
  transform: translate(-50%, -50%); border-radius: 999px; background: rgba(6, 13, 24, .72); border: 1px solid rgba(156, 195, 239, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--gray-300); font-size: .82rem; font-weight: 600; transition: opacity .4s ease; }
.ws-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(156, 195, 239, .25); border-top-color: var(--blue-300); }
@media (prefers-reduced-motion: no-preference) { .ws-spinner { animation: ws-spin .9s linear infinite; } }
@keyframes ws-spin { to { transform: rotate(360deg); } }
.weigh-scene.has-3d .ws-loader, .weigh-scene.no-3d .ws-loader { opacity: 0; visibility: hidden; pointer-events: none; }
.weigh-scene.is-static .weigh-sticky { min-height: 0; }
.weigh-scene.is-static .ws-stage { min-height: clamp(260px, 42vw, 560px); }

/* ---------- v11: cobertura nacional con mapa de la ubicación ---------- */
.coverage-map { max-width: 1040px; margin: 0 auto; }
.coverage-map .map-embed { aspect-ratio: 16 / 8; border-radius: 22px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
  background: linear-gradient(100deg, var(--gray-100) 30%, #eef2f6 50%, var(--gray-100) 70%) 0 0 / 220% 100%; }
@media (prefers-reduced-motion: no-preference) { .coverage-map .map-embed:not(.is-loaded) { animation: br-shimmer 1.6s linear infinite; } }
@media (max-width: 760px) { .coverage-map .map-embed { aspect-ratio: 4 / 5; } }

/* ---------- v11: promesa de tiempo de respuesta ---------- */
.promise { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .32); color: var(--navy-800); font-size: .9rem; font-weight: 700; line-height: 1.3; }
.promise .icon { width: 20px; height: 20px; flex: none; color: #1f9d55; }
.promise--light, .thanks-card .promise, .aside-card--dark .promise, .contact-hero .promise { color: #d9f7e6; background: rgba(61, 220, 132, .12); border-color: rgba(61, 220, 132, .35); }
.promise--light .icon, .thanks-card .promise .icon, .aside-card--dark .promise .icon, .contact-hero .promise .icon { color: #3ddc84; }
.promise--center { margin-inline: auto; }
/* Nota discreta con el horario de atención, debajo del mensaje de atención garantizada (siempre sobre fondo oscuro). */
.promise-note { margin: -8px 0 18px; padding-left: 4px; font-size: .8rem; line-height: 1.4; color: #b8c4d3; }
.promise-note--center { text-align: center; padding-left: 0; }

/* ---------- v11: página de agradecimiento ---------- */
.thanks { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 8vw, 110px);
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.thanks-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 10%, rgba(61, 220, 132, .14), transparent 70%),
    linear-gradient(rgba(156, 195, 239, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(156, 195, 239, .045) 1px, transparent 1px) 0 0 / 44px 44px; }
.thanks-inner { display: flex; justify-content: center; }
.thanks-card { width: min(100%, 720px); padding: clamp(28px, 5vw, 56px); border-radius: 26px; text-align: center; color: var(--gray-300);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(156, 195, 239, .18);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); display: flex; flex-direction: column; align-items: center; }
.thanks-check { width: 92px; height: 92px; margin-bottom: 18px; }
.thanks-check-ring { fill: rgba(61, 220, 132, .12); stroke: #3ddc84; stroke-width: 3; stroke-dasharray: 202; stroke-dashoffset: 0; }
.thanks-check-mark { fill: none; stroke: #3ddc84; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .thanks-check-ring { animation: thanks-ring .8s cubic-bezier(.3, .7, .2, 1) both; }
  .thanks-check-mark { animation: thanks-mark .5s cubic-bezier(.3, .7, .2, 1) .55s both; }
  .thanks-check { animation: thanks-pop .6s cubic-bezier(.3, 1.4, .5, 1) .9s both; }
}
@keyframes thanks-ring { from { stroke-dashoffset: 202; } }
@keyframes thanks-mark { from { stroke-dashoffset: 48; } }
@keyframes thanks-pop { 50% { transform: scale(1.08); } }
.thanks-title { margin: 0 0 .4em; color: var(--white); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); text-wrap: balance; }
.thanks-lead { margin: 0 0 18px; font-size: 1.08rem; color: var(--gray-200); }
.thanks-action { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; text-align: left;
  background: rgba(31, 168, 85, .14); border: 1px solid rgba(61, 220, 132, .3); color: #e3fbee; font-weight: 600; }
.thanks-action .icon { width: 22px; height: 22px; flex: none; color: #3ddc84; margin-top: 1px; }
.thanks-steps-title { margin: 8px 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); }
.thanks-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; }
.thanks-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(156, 195, 239, .12); }
.thanks-step-num { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-500); color: var(--white); font-size: .82rem; font-weight: 800; }
.thanks-buttons { justify-content: center; }
.thanks-note { margin: 18px 0 0; font-size: .82rem; color: var(--gray-400); max-width: 56ch; }

/* ---------- v11: frase comercial ---------- */
.slogan-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 5.5vw, 76px);
  background: radial-gradient(120% 140% at 50% 120%, #12305a 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.slogan-light { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 60% at 50% 40%, rgba(91, 155, 224, .22), transparent 70%),
    linear-gradient(rgba(156, 195, 239, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(156, 195, 239, .04) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent); }
.slogan-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.slogan--feature { position: relative; display: flex; flex-direction: column; gap: .08em; font-size: clamp(1.5rem, .95rem + 2.5vw, 2.95rem); line-height: 1.08;
  font-weight: 900; letter-spacing: -.01em; color: var(--white); text-wrap: balance; }
.slogan-line { display: block; }
.sw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > span { display: inline-block; }
.sw--em > span { background: linear-gradient(100deg, #f2b705 0%, #ffd866 35%, #9cc3ef 75%, #ffffff 100%); background-size: 220% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.slogan-line:last-child { position: relative; }
.slogan-sign { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .7rem; font-weight: 800; letter-spacing: .3em; color: var(--blue-300); }
.slogan-sign span { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-300)); }
.slogan-sign span:last-child { transform: scaleX(-1); }
/* Animación al entrar en pantalla (solo si JavaScript la activa y el usuario no pidió reducir movimiento). */
@media (prefers-reduced-motion: no-preference) {
  .slogan--feature.is-armed .sw > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w, 0) * 70ms); }
  .slogan--feature.is-armed.is-in .sw > span { transform: none; }
  .slogan--feature.is-armed.is-in .sw--em > span { animation: slogan-shine 2.8s ease 1.1s both; }
  .slogan--feature.is-armed ~ .slogan-sign { opacity: 0; transform: translateY(8px); transition: opacity .8s ease 1s, transform .8s ease 1s; }
  .slogan--feature.is-armed.is-in ~ .slogan-sign { opacity: 1; transform: none; }
}
@keyframes slogan-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- v10: página independiente de Misión, Visión y Valores ---------- */
.mvv--page { position: relative; isolation: isolate; color: var(--gray-200); padding-block: clamp(56px, 7vw, 104px);
  background: linear-gradient(180deg, #0a1628 0%, #071121 100%); }
/* Fondo industrial discreto: retícula técnica, perfiles diagonales y luz cenital. */
.mvv-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(91, 155, 224, .18), transparent 70%),
    radial-gradient(35% 40% at 92% 85%, rgba(242, 183, 5, .07), transparent 70%),
    linear-gradient(rgba(156, 195, 239, .045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(156, 195, 239, .045) 1px, transparent 1px) 0 0 / 44px 44px; }
.mvv-bg::before, .mvv-bg::after { content: ""; position: absolute; width: 140%; height: 46px; left: -20%;
  background: repeating-linear-gradient(90deg, rgba(156, 195, 239, .06) 0 2px, transparent 2px 56px), linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(156, 195, 239, .08); border-bottom: 1px solid rgba(156, 195, 239, .08); transform: rotate(-8deg); }
.mvv-bg::before { top: 18%; }
.mvv-bg::after { bottom: 14%; transform: rotate(-8deg) translateX(8%); opacity: .7; }
.mvv--page .mvv-pillar {
  background: linear-gradient(150deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(156, 195, 239, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: clamp(28px, 3.4vw, 44px);
}
.mvv-num { position: absolute; right: 22px; top: 10px; font: 800 clamp(3.2rem, 2.4rem + 3vw, 5.2rem)/1 var(--font); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(156, 195, 239, .22); pointer-events: none; transition: -webkit-text-stroke-color .4s, transform .6s var(--ease); }
.mvv--page .mvv-pillar-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.mvv--page .mvv-pillar p { font-size: clamp(1.02rem, .98rem + .2vw, 1.12rem); color: var(--gray-300); }
.mvv-values-head { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.mvv-rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(156, 195, 239, .35), transparent); }
.mvv--page .mvv-values-title { margin: 0; color: var(--blue-300); }
.mvv--page .mvv-value { background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); border-color: rgba(156, 195, 239, .14);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .9); }
.mvv--page .mvv-value-icon { background: rgba(91, 155, 224, .14); color: var(--blue-300); border: 1px solid rgba(143, 211, 255, .2); }
.mvv--page .mvv-value-title { color: var(--white); }
.mvv--page .mvv-value p { color: var(--gray-400); }
@media (hover: hover) {
  .mvv--page .mvv-pillar:hover { border-color: rgba(143, 211, 255, .35); }
  .mvv--page .mvv-pillar:hover .mvv-num { -webkit-text-stroke-color: rgba(143, 211, 255, .5); transform: translateY(-4px); }
  .mvv--page .mvv-value:hover { border-color: rgba(143, 211, 255, .4); box-shadow: 0 26px 46px -28px rgba(0, 0, 0, .95), 0 0 0 1px rgba(143, 211, 255, .1); }
  .mvv--page .mvv-value:hover .mvv-value-icon { background: var(--blue-500); color: var(--white); }
}
@media (prefers-reduced-motion: reduce) { .mvv-num { transition: none; } }

/* ---------- v8: estados de carga, error y conexión ---------- */
/* Cargando: fondo tipo skeleton y aparición suave de la foto al llegar. */
.m-trigger img, .strap-media img { transition: opacity .45s var(--ease), transform .9s var(--ease); }
.is-loading { background: linear-gradient(100deg, var(--gray-100) 30%, #f4f6f8 50%, var(--gray-100) 70%) 0 0 / 220% 100%; animation: br-shimmer 1.5s linear infinite; }
.is-loading img { opacity: 0; }
@keyframes br-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* Falló: la foto conserva su espacio y un panel sobrio la sustituye. */
.has-media-fallback { position: relative; min-height: 160px; }
img.is-failed { visibility: hidden; }
.media-fallback {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; border-radius: inherit; color: var(--navy-700);
  background: linear-gradient(160deg, var(--gray-50), var(--gray-100)); border: 1px dashed var(--gray-300);
  animation: br-fade-in .35s var(--ease) both;
}
.m-item > .media-fallback { bottom: 18px; border-radius: 14px; }
.media-fallback-icon .icon, .media-fallback-icon svg { width: 34px; height: 34px; color: var(--navy-600); opacity: .8; }
.media-fallback-msg { margin: 0; max-width: 26ch; font-size: .86rem; line-height: 1.4; color: var(--gray-700); }
.media-fallback-btn {
  min-height: 38px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--navy-800); background: var(--white);
  color: var(--navy-800); font-size: .82rem; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s;
}
.media-fallback-btn:hover:not(:disabled) { background: var(--navy-800); color: var(--white); }
.media-fallback-btn:disabled { opacity: .6; cursor: progress; }
.media-fallback-btn:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
/* Video: el panel queda sobre la miniatura, con velo oscuro (nunca un rectángulo negro sin explicación). */
.media-fallback--video { background: rgba(6, 15, 29, .72); border: 0; color: var(--white); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.media-fallback--video .media-fallback-icon svg { color: var(--white); }
.media-fallback--video .media-fallback-msg { color: var(--gray-200); }
.media-fallback--video .media-fallback-btn { background: var(--white); border-color: var(--white); }
.section--dark .media-fallback:not(.media-fallback--video), .rail-feature .media-fallback { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-color: rgba(255, 255, 255, .18); }
.section--dark .media-fallback:not(.media-fallback--video) .media-fallback-msg { color: var(--gray-300); }
.section--dark .media-fallback:not(.media-fallback--video) svg { color: var(--blue-300); }
@keyframes br-fade-in { from { opacity: 0; } to { opacity: 1; } }
/* Aviso de conexión: discreto, abajo a la izquierda, sin bloquear la página. */
.net-toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 32px));
  padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--navy-900); color: var(--gray-200);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.net-toast.is-visible { opacity: 1; transform: none; }
.net-toast-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(242, 183, 5, .14); color: #f2b705; }
.net-toast.is-ok .net-toast-icon { background: rgba(61, 220, 132, .14); color: #3ddc84; }
.net-toast-icon svg { width: 20px; height: 20px; }
.net-toast-text { display: grid; gap: 2px; min-width: 0; font-size: .84rem; line-height: 1.35; }
.net-toast-text strong { color: var(--white); font-size: .9rem; }
.net-toast-text span:empty { display: none; }
.net-toast-btn { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 0; background: var(--white); color: var(--navy-900); font-size: .8rem; font-weight: 700; cursor: pointer; }
.net-toast-btn:disabled { opacity: .6; cursor: progress; }
.net-toast-close { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--gray-400); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.net-toast-close:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.net-toast button:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }
/* Imagen indicada en TEXTOS-DEL-SITIO.txt que no existe: recuadro con el mismo espacio del contenedor. */
.img-missing {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 4 / 3; padding: 16px;
  border-radius: inherit; border: 1px dashed var(--gray-300); background: linear-gradient(160deg, var(--gray-50), var(--gray-100));
  color: var(--gray-600); font-size: .86rem; font-weight: 600; text-align: center;
}
.img-missing svg { width: 36px; height: 36px; color: var(--navy-600); opacity: .75; }
.photo--tall .img-missing { aspect-ratio: 4 / 5; }
.photo--wide .img-missing { aspect-ratio: 16 / 7; }
.photo-stack .photo--tall .img-missing { aspect-ratio: 4 / 4.4; }
.m-item--missing { padding-bottom: 18px; }
.m-item--missing .img-missing { aspect-ratio: 3 / 4; border-radius: 14px; }
.strap-media .img-missing { height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.section--dark .img-missing, .rail-feature .img-missing { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-color: rgba(255, 255, 255, .18); color: var(--gray-300); }
.section--dark .img-missing svg, .rail-feature .img-missing svg { color: var(--blue-300); }
/* Escena 3D no disponible: aviso discreto sobre la ilustración de respaldo. */
.ws-notice {
  position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  padding: 8px 8px 8px 14px; border-radius: 999px; transform: translateX(-50%);
  background: rgba(6, 13, 24, .82); border: 1px solid rgba(255, 255, 255, .12); color: var(--gray-200); font-size: .8rem;
  animation: br-fade-in .4s var(--ease) both;
}
.ws-notice button { flex: none; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 0; background: var(--white); color: var(--navy-900); font-size: .76rem; font-weight: 700; cursor: pointer; }
.ws-notice button:disabled { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  .is-loading { animation: none; }
  .net-toast, .media-fallback, .ws-notice { transition: none; animation: none; }
}

/* Dispositivos táctiles: no depender de hover para mostrar acciones */
@media (hover: none) {
  .card::before { transform: scaleX(1); opacity: .6; }
  .topic-arrow { color: var(--navy-600); }
}

/* ==========================================================================
   v11: TEMA CLARO / OSCURO
   En el tema oscuro, las superficies claras usan una paleta azul profunda propia (no una inversión
   automática); las secciones que ya son oscuras (encabezado, hero, escena 3D, pie, eslogan…) conservan
   sus colores originales.
   ========================================================================== */
.theme-toggle {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; flex: none; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: var(--gray-200); cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
}
.theme-toggle:hover { color: var(--white); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); }
.theme-icon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .45s var(--ease), opacity .3s; }
.theme-icon .icon { width: 18px; height: 18px; }
.theme-icon--moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-icon--sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-icon--moon { opacity: 1; transform: none; color: #ffd866; }
.header-lang { display: flex; align-items: center; gap: 10px; }
:root.theme-switching, :root.theme-switching *, :root.theme-switching *::before, :root.theme-switching *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #0f1d30; --gray-50: #0c1828; --gray-100: #142539; --gray-200: #213650; --gray-300: #2f4869; --gray-400: #8d9cb1;
  --gray-600: #a9b6c7; --gray-700: #c4cfdc; --gray-800: #d7dfe9; --gray-900: #eef2f7; --ink: #f3f6fa;
  --navy-900: #eef3fa; --navy-800: #dce7f4; --navy-700: #c3d5eb; --navy-600: #9cc3ef; --navy-950: #f5f8fc;
  --danger: #ff8a80; --danger-bg: #3a1714; --ok-bg: #0f2e1d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .3);
  --shadow: 0 6px 14px rgba(0, 0, 0, .3), 0 16px 32px rgba(0, 0, 0, .3);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] body { background: #0a1524; color: var(--gray-800); }
/* Componentes oscuros por diseño: recuperan la paleta original. */
:root[data-theme="dark"] :is(.site-header, .hero, .page-hero, .section--dark, .weigh-scene, .site-footer, .cta-band, .slogan-band, .td, .fab,
  .rail-feature, .mvv--page, .thanks, .contact-hero, .aside-card--dark, .net-toast, .lightbox, .stat-panel, .channel--featured,
  .map-card-head, .video-frame, .ws-notice, .wa-float, .anatomy, .root-page, .nf-page) {
  --white: #ffffff; --gray-50: #f6f8fb; --gray-100: #eef2f6; --gray-200: #dfe5ec; --gray-300: #c9d1db; --gray-400: #8a96a5;
  --gray-600: #4f5b69; --gray-700: #3a4553; --gray-800: #1f2933; --gray-900: #161b22; --ink: #0d1117;
  --navy-950: #060f1d; --navy-900: #0a1a30; --navy-800: #0f2544; --navy-700: #16345e; --navy-600: #1f4a85;
  --danger: #b42318; --danger-bg: #fdecea; --ok-bg: #e9f6ee;
}
/* Menú desplegable de escritorio: oscuro también en el tema oscuro. */
@media (min-width: 1100px) {
  :root[data-theme="dark"] .site-header .sub-menu {
    --white: #0f1d30; --gray-100: #17304d; --gray-200: #22395a; --navy-900: #eef3fa; --navy-800: #dce7f4; --navy-600: #9cc3ef; --gray-700: #c4cfdc; --gray-800: #d7dfe9;
  }
}
:root[data-theme="dark"] .section--muted { background: #0c1828; border-color: #142539; }
:root[data-theme="dark"] a:hover { color: #c7defa; }
:root[data-theme="dark"] .btn-primary { box-shadow: 0 10px 24px -10px rgba(42, 100, 173, .8); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background-color: #0b1727; border-color: #2f4869; color: var(--gray-900); }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #7f8ea4; }
:root[data-theme="dark"] .promise:not(.promise--light) { color: #d9f7e6; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .strap-card, :root[data-theme="dark"] .service-detail { box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, var(--shadow-sm); }
:root[data-theme="dark"] .m-trigger, :root[data-theme="dark"] .m-video { box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .gfilter[aria-pressed="true"] { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
:root[data-theme="dark"] .gfilter[aria-pressed="true"] .gfilter-n { background: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .img-missing, :root[data-theme="dark"] .media-fallback:not(.media-fallback--video) { background: linear-gradient(160deg, #13233a, #0d1a2c); }
/* Texto blanco sobre fondos de color (botones, etiquetas, insignias): conserva el blanco en el tema oscuro. */
:root[data-theme="dark"] :is(.btn-primary, .btn-whatsapp, .btn-waze, .ba-tag, .card-icon, .step-num, .channel-icon, .play-badge,
  .video-badge, .thanks-step-num, .ws-step-num, .td-step-num, .filter-count, .chip-list .icon, .map-overlay-hint, .channel-action--wa) { --white: #ffffff; }
/* v13 · Rellenos azul marino con íconos o números blancos: en el tema oscuro los tokens --navy-* se aclaran
   (para textos), lo que dejaba íconos blancos sobre azul claro (casi invisibles). Estos componentes recuperan
   el azul marino original y, para destacar sobre las tarjetas oscuras, usan el degradado azul de la marca. */
:root[data-theme="dark"] :is(.btn-primary, .card-icon, .check-list .icon, .step-num, .channel-icon, .channel-action,
  .filter-btn[aria-pressed="true"], .mvv-value:hover .mvv-value-icon, .media-fallback-btn:hover) {
  --navy-950: #060f1d; --navy-900: #0a1a30; --navy-800: #0f2544; --navy-700: #16345e; --navy-600: #1f4a85; --white: #ffffff;
}
:root[data-theme="dark"] :is(.card-icon:not(.card-icon--whatsapp), .channel-icon, .step-num) {
  background: linear-gradient(135deg, var(--blue-500), #1f4a85); box-shadow: 0 8px 18px -8px rgba(42, 100, 173, .7), inset 0 1px 0 rgba(255, 255, 255, .14);
}
:root[data-theme="dark"] .channel--featured .channel-icon { background: linear-gradient(135deg, var(--wa), var(--wa-dark)); }
:root[data-theme="dark"] .check-list .icon { background: var(--blue-500); }
:root[data-theme="dark"] .gfilter-n { background: rgba(255, 255, 255, .1); color: var(--gray-800); }
:root[data-theme="dark"] .gfilter[aria-pressed="true"] .gfilter-n { color: #fff; background: rgba(6, 15, 29, .28); }
:root[data-theme="dark"] .req, .section--dark .req { color: #ff9a90; }
/* Campos de formulario: borde visible (≥ 3:1 respecto a la tarjeta) en el tema oscuro. */
:root[data-theme="dark"] :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) { border-color: #5b7499; }
:root[data-theme="dark"] :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):hover { border-color: #7d95b8; }

/* ---------- v11: pie de página ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; color: var(--gray-400); font-size: .95rem;
  background: linear-gradient(180deg, #081426 0%, var(--navy-950) 60%); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--blue-400) 30%, #f2b705 70%, transparent); opacity: .8; }
.footer-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 15% 0%, rgba(42, 100, 173, .22), transparent 70%),
    linear-gradient(rgba(156, 195, 239, .03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(156, 195, 239, .03) 1px, transparent 1px) 0 0 / 44px 44px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr 1.15fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(52px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.footer-brand .brand--footer { display: inline-flex; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(156, 195, 239, .12); }
.footer-brand .brand--footer .brand-logo { height: 92px; width: auto; }
.footer-brand p { margin: 18px 0 0; line-height: 1.6; }
.footer-slogan { margin-top: 14px !important; color: var(--blue-300); font-weight: 800; letter-spacing: .01em; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--gray-200);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(156, 195, 239, .16); transition: background-color .25s, border-color .25s, transform .25s var(--ease), color .25s; }
.footer-icon .icon { width: 18px; height: 18px; }
.footer-icon:hover { color: var(--white); background: var(--blue-500); border-color: var(--blue-500); transform: translateY(-2px); text-decoration: none !important; }
.footer-icon--whatsapp:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-title { color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; padding-bottom: 10px; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; border-radius: 2px; background: var(--blue-400); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .footer-links a { color: var(--gray-300); text-decoration: none; transition: color .2s, padding-left .25s var(--ease); }
.site-footer .footer-links a:hover { color: var(--white); padding-left: 4px; text-decoration: none; }
.footer-contact-card { padding: 22px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(156, 195, 239, .14); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .fc-row { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px; color: var(--gray-200); text-decoration: none; word-break: break-word; transition: background-color .2s; }
.site-footer .fc-row:hover { background: rgba(255, 255, 255, .06); color: var(--white); text-decoration: none; }
.fc-row small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); }
.fc-ico { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(91, 155, 224, .14); color: var(--blue-300); }
.fc-ico .icon { width: 18px; height: 18px; margin: 0; }
.fc-ico--wa { background: rgba(31, 168, 85, .18); color: #3ddc84; }
.site-footer .fc-row--static { margin-block: 0; cursor: default; }
.site-footer .fc-row--static:hover { background: none; color: var(--gray-200); }
.footer-bottom { border-top: 1px solid rgba(156, 195, 239, .1); background: rgba(0, 0, 0, .18); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px; font-size: .86rem; }
.site-footer .footer-legal a { color: var(--gray-400); text-decoration: none; }
.site-footer .footer-legal a:hover { color: var(--white); }
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-row: auto; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; padding-bottom: 88px; }
}
/* v13 · Solo teléfonos (≤ 600 px): pie más compacto, con la misma información y enlaces cómodos de pulsar.
   Marca y redes en una fila; navegación en dos columnas con menos separación; contacto en dos columnas. */
@media (max-width: 600px) {
  .footer-top { gap: 22px; padding-block: 30px 20px; }
  .footer-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .footer-brand .brand--footer { padding: 6px 8px; border-radius: 12px; grid-row: span 1; }
  .footer-brand .brand--footer .brand-logo { height: 58px; }
  .footer-brand p { grid-column: 1 / -1; margin: 12px 0 0; font-size: .86rem; line-height: 1.5; }
  .footer-slogan { margin-top: 6px !important; font-size: .9rem; }
  .footer-social { grid-column: 2; grid-row: 1; margin-top: 0; gap: 8px; justify-content: flex-end; }
  .footer-nav { gap: 18px 14px; }
  .footer-title { font-size: .7rem; margin-bottom: 8px; padding-bottom: 7px; }
  .footer-links { gap: 0; }
  .site-footer .footer-links a { display: inline-block; padding-block: 4px; font-size: .9rem; line-height: 1.35; }
  .footer-contact-card { padding: 14px 14px 10px; border-radius: 16px; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
  .footer-contact > li:last-child, .footer-contact > .fc-li--wide { grid-column: 1 / -1; }
  .site-footer .fc-row { gap: 9px; padding: 6px; margin: 0 -6px; font-size: .86rem; align-items: flex-start; }
  .fc-row small { font-size: .62rem; }
  .fc-ico { width: 30px; height: 30px; border-radius: 9px; }
  .fc-ico .icon { width: 16px; height: 16px; }
  .footer-bottom-inner { gap: 6px; padding-block: 12px; padding-bottom: 80px; font-size: .8rem; }
  .footer-legal { gap: 4px 18px; }
  .site-footer .footer-legal a { display: inline-block; padding-block: 4px; }
}
@media (max-width: 360px) {
  .footer-contact { grid-template-columns: 1fr; }
}

/* ---------- v11: página 404 ---------- */
.nf-page { margin: 0; min-height: 100vh; background: var(--navy-950); color: var(--gray-300); }
:root[data-theme="light"] .nf-page { background: linear-gradient(180deg, #f6f8fb, #e7edf4); color: #3a4553; }
.nf { position: relative; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px 20px 60px; text-align: center; overflow: hidden; }
.nf-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 40% at 50% 30%, rgba(91, 155, 224, .22), transparent 70%),
    linear-gradient(rgba(156, 195, 239, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(156, 195, 239, .05) 1px, transparent 1px) 0 0 / 44px 44px; }
.nf-logo img { height: 74px; width: auto; }
:root[data-theme="light"] .nf-logo { padding: 8px 14px; border-radius: 14px; background: var(--navy-900); }
.nf-scale { display: flex; flex-direction: column; align-items: center; margin: 10px 0 8px; }
.nf-display { width: min(88vw, 360px); padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #1d2a3b, #0d141e);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.nf-display-top { display: flex; justify-content: space-between; align-items: center; font-size: .66rem; letter-spacing: .2em; font-weight: 700; color: #8a96a5; margin-bottom: 10px; }
.nf-led { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 10px #ff5a4f; }
.nf-screen { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #06121f, #0a1b2e); border: 1px solid rgba(91, 155, 224, .25); font-family: var(--mono); }
.nf-code { font-size: clamp(3.6rem, 2.6rem + 5vw, 5.4rem); font-weight: 800; line-height: 1; letter-spacing: .08em; color: #8fd3ff; text-shadow: 0 0 22px rgba(143, 211, 255, .55); }
.nf-unit { font-size: 1.1rem; font-weight: 700; color: #ff8a80; letter-spacing: .1em; }
.nf-flags { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: .62rem; letter-spacing: .16em; font-weight: 700; color: #f2b705; }
.nf-column { width: 12px; height: 46px; background: linear-gradient(90deg, #5c6774, #c9d1db 45%, #5c6774); }
.nf-platform { position: relative; width: min(80vw, 320px); height: 16px; border-radius: 4px; background: linear-gradient(180deg, #eef2f6, #a9b4c2 60%, #7d8896); box-shadow: 0 2px 0 #4f5b69, 0 18px 30px -12px rgba(0, 0, 0, .6); }
.nf-platform span { position: absolute; left: 6%; right: 6%; top: 16px; height: 18px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #2b3542, #161c24); }
@media (prefers-reduced-motion: no-preference) {
  .nf-code { animation: nf-flicker 3.2s ease-in-out infinite; }
  .nf-led { animation: blink 1.6s ease-in-out infinite; }
}
@keyframes nf-flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: 1; } 97% { opacity: .7; } }
.nf-title { margin: 22px 0 4px; color: var(--white); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
:root[data-theme="light"] .nf-title { color: #0a1a30; }
.nf-title span { color: var(--blue-300); font-weight: 700; }
:root[data-theme="light"] .nf-title span { color: #1f4a85; }
.nf-text { margin: 0; max-width: 52ch; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.nf-en { color: var(--blue-300); font-weight: 600; }
:root[data-theme="light"] .nf-en { color: #1f4a85; }
:root[data-theme="dark"] body.nf-page { background: #060f1d; color: #c9d1db; }

/* ---------- v14: cotizador guiado de tres preguntas (Cotización) ---------- */

.qq { position: relative; max-width: 980px; margin: 0 auto; padding: clamp(22px, 4vw, 40px); border-radius: 24px;
  background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow); }
.qq::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--blue-500), var(--wa)); }
.qq-head { margin-bottom: 18px; }
.qq-title { margin: 0 0 6px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); color: var(--navy-900); }
.qq-lead { margin: 0 0 16px; color: var(--gray-700); }
.qq-progress { height: 6px; border-radius: 3px; background: var(--gray-100); overflow: hidden; }
.qq-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--wa)); transform: scaleX(.33); transform-origin: left; transition: transform .4s var(--ease); }
.qq-stepnum { margin: 8px 0 0; font-size: .85rem; font-weight: 700; letter-spacing: .04em; color: var(--gray-600); }
.qq-step { border: 0; margin: 0; padding: 0; min-width: 0; background: none; box-shadow: none; }
.qq-step > legend { float: none; width: 100%; padding: 0; border: 0; }
.qq-step > legend + * { clear: none; }
.qq-q { display: block; margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; color: var(--navy-900); outline: none; }
.qq-q:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 4px; border-radius: 6px; }
.qq-hint { margin: 0 0 14px; font-size: .92rem; color: var(--gray-600); }
.qq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 10px; }
.qq-card { position: relative; display: block; cursor: pointer; }
.qq-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qq-card-body { display: flex; align-items: center; gap: 10px; min-height: 56px; height: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--gray-300); background: var(--gray-50); color: var(--navy-900); font-weight: 600; font-size: .95rem; line-height: 1.25;
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.qq-card-body .icon { flex: none; width: 22px; height: 22px; color: var(--blue-500); }
.qq-card:hover .qq-card-body { border-color: var(--blue-400); transform: translateY(-1px); }
.qq-card input:focus-visible + .qq-card-body { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.qq-card input:checked + .qq-card-body { border-color: var(--blue-500); background: rgba(42, 100, 173, .1); box-shadow: inset 0 0 0 1px var(--blue-500); }
.qq-card input:checked + .qq-card-body::after { content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; border-radius: 50%;
  background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.qq-other { margin-top: 12px; max-width: 420px; }
.qq-other label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.qq-other input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--gray-400); border-radius: 12px; background: var(--white); font-size: 1rem; }
.qq-loc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qq-error { min-height: 1.4em; margin: 10px 0 0; color: var(--danger); font-weight: 600; font-size: .92rem; }
.qq-error:empty { min-height: 0; margin: 0; }
.qq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.qq-nav [data-qq-next] { margin-left: auto; }
.qq-dl { display: grid; gap: 10px; margin: 12px 0 14px; }
.qq-dl > div { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); }
.qq-dl dt { font-weight: 700; color: var(--gray-700); font-size: .9rem; }
.qq-dl dd { margin: 0; color: var(--navy-900); font-weight: 600; }
.qq-edit { min-height: 36px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--gray-300); background: var(--white); color: var(--navy-800); font-weight: 700; font-size: .85rem; cursor: pointer; }
.qq-edit:hover { border-color: var(--blue-500); }
.qq-note { margin: 0 0 14px; font-size: .9rem; color: var(--gray-600); }
.qq-send { width: 100%; justify-content: center; }
.qq-alt { margin: 18px 0 0; text-align: center; font-size: .92rem; color: var(--gray-700); }
@media (prefers-reduced-motion: no-preference) {
  .qq-step.is-entering { animation: qq-in .35s var(--ease) both; }
}
@keyframes qq-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .qq-loc { grid-template-columns: 1fr; }
  .qq-grid { grid-template-columns: 1fr 1fr; }
  .qq-dl > div { grid-template-columns: 1fr auto; }
  .qq-dl dt { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .qq-grid { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .qq-card-body .icon { color: var(--blue-300); }

/* ---------- v15: Guías y consejos (tres recuadros informativos) ---------- */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.tip-box { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 30px); border-radius: 20px; background: var(--white); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.tip-box::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--navy-600), #22a35a); }
.tip-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: rgba(42, 100, 173, .12); color: var(--navy-800); }
.tip-icon .icon { width: 24px; height: 24px; }
.tip-title { margin: 0 0 12px; font-size: clamp(1.15rem, 1.02rem + .45vw, 1.32rem); line-height: 1.3; color: var(--navy-900); }
.tip-box p { margin: 0 0 12px; line-height: 1.7; color: var(--gray-700); }
.tip-box > :last-child { margin-bottom: 0; }
.tip-box strong { color: var(--navy-900); }
.tip-list { margin: 0 0 14px; padding-left: 1.5em; display: grid; gap: 10px; line-height: 1.65; color: var(--gray-700); }
.tip-list li::marker { font-weight: 800; color: var(--navy-600); }
:root[data-theme="dark"] .tip-box::before { background: linear-gradient(90deg, #5b9be0, #3ccf7f); }
:root[data-theme="dark"] .tip-icon { background: rgba(91, 155, 224, .18); color: var(--blue-300); }
/* v14 · Contraste: nota del horario dentro de tarjetas oscuras. */
.aside-card .promise-note, .contact-hero .promise-note, .thanks-card .promise-note { color: #b8c4d3; }
.quote-main .qq { max-width: none; margin: 0; }
.quote-aside .footer-contact { grid-template-columns: 1fr; }
