/* ============================================================
   COLORES Y MEDIDAS — estilo corporativo sobrio.
   --brand, --brand-dark y --accent son los 3 colores reales de marca.
   El amarillo (--accent) se reserva para los botones de acción clave;
   el resto de la página trabaja con blanco, grises y azul.
   ============================================================ */
/* Inter (licencia SIL Open Font License), subconjunto latino, pesos 400–700 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0b1220;
  --ink-2: #475467;
  --ink-3: #5d6679;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;

  --brand: #0015ac;
  --brand-dark: #000348;
  --brand-light: #4d5bc5;
  --brand-soft: #eef0fb;
  --accent: #ffdd00;
  --navy: #0b1220;

  /* Superficies y textos que cambian con el modo oscuro */
  --surface: #ffffff;          /* tarjetas, formulario, menú */
  --photo: #ffffff;            /* fondo de las fotos de producto (siempre blanco) */
  --header-bg: rgba(255, 255, 255, .94);
  --brand-text: #0015ac;       /* azul para textos e íconos sobre el fondo */
  --dot: rgba(0, 21, 172, .16);
  --footer-bg: #0b1220;
  --btn-primary: #0015ac;
  --btn-primary-hover: #000348;
  --nav-text: #475467;
  --nav-hover-bg: #f6f7f9;
  --nav-active-text: #0015ac;
  --nav-active-bg: #eef0fb;
  --rif: #5d6679;

  /* Verde de WhatsApp: es la marca de ese canal, no la de la empresa —
     se usa solo en el botón flotante para que siga siendo reconocible. */
  --whatsapp: #0e7c66;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .07);
  --max: 1160px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Modo oscuro: se activa solo si el equipo del visitante lo usa ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --bg-soft: #0f172a;
    --ink: #e8edf6;
    --ink-2: #b3bdcd;
    --ink-3: #94a0b4;
    --line: #1e293b;
    --line-strong: #334155;
    --brand-soft: #18213f;
    --surface: #111a2e;
    --header-bg: rgba(10, 15, 28, .9);
    --brand-text: #a5b0ff;
    --dot: rgba(165, 176, 255, .14);
    --footer-bg: #060a13;
    --btn-primary: #2b3fe0;
    --btn-primary-hover: #3d50f0;
    --nav-text: #d3dae7;
    --nav-hover-bg: rgba(255, 255, 255, .08);
    --nav-active-text: #fff;
    --nav-active-bg: #26346e;
    --rif: #c0c7d4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .4);
  }
  .brands { border-block: 1px solid var(--line); }

}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

html { color-scheme: light dark; }
::selection { background: var(--brand); color: #fff; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.3rem; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: .975rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn--primary { background: var(--btn-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--btn-primary-hover); }
.btn--ghost { border-color: var(--line-strong); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--bg-soft); }
.btn--light { background: var(--accent); color: var(--brand-dark); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Barra superior (contacto rápido, solo escritorio) ---------- */
.topbar { display: none; background: var(--navy); color: #c0c7d4; font-size: .82rem; }
@media (min-width: 1000px) { .topbar { display: block; } }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 40px; }
.topbar ul { display: flex; gap: 1.5rem; }
.topbar li { display: flex; align-items: center; gap: .45rem; }
.topbar .icon { width: .95rem; height: .95rem; color: #98a2b3; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar a:focus-visible { outline-color: #fff; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(16, 24, 40, .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

/* Logo con el RIF debajo (obligatorio) */
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; text-decoration: none; }
.brand__logo { display: block; height: 36px; width: auto; }
.brand__rif { font-size: .72rem; font-weight: 600; letter-spacing: .06em; line-height: 1; color: var(--rif); white-space: nowrap; }
.brand picture { display: block; }

.nav { display: flex; align-items: center; gap: 2rem; }
/* Menú: enlaces en forma de píldora; el de la sección que se está leyendo
   queda resaltado (main.js le pone aria-current) */
.nav__list { display: flex; gap: .25rem; }
.nav__list a {
  position: relative; display: block; padding: .5rem .85rem; border-radius: 999px;
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--nav-text);
  transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: var(--ink); background: var(--nav-hover-bg); }
.nav__list a[aria-current="location"] { color: var(--nav-active-text); background: var(--nav-active-bg); font-weight: 600; }

.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}

@media (max-width: 999px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; display: none;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: .5rem 1.25rem 1.25rem; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(16, 24, 40, .08);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__list a { padding: .85rem 1rem; border-radius: 10px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; scroll-margin-top: var(--header-h); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section:not(.section--soft) + .section:not(.section--soft) { padding-top: 0; }
.section__head { max-width: 42rem; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }

h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.lead { margin-top: 1rem; font-size: 1.1rem; color: var(--ink-2); }

/* ---------- Portada ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; } }
.hero__text .lead { max-width: 36rem; font-size: 1.15rem; }
.hero__text h1 { max-width: 15em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
/* En móvil los botones de la portada ocupan todo el ancho (fáciles de tocar) */
@media (max-width: 520px) { .hero__cta .btn { width: 100%; } }
/* Trama de puntos de fondo (Dot Pattern de MagicUI): se desvanece hacia
   la izquierda para no competir con el titular */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 78% 42%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 75% at 78% 42%, #000 20%, transparent 75%);
}

/* Vitrina en movimiento (3D Marquee de MagicUI): tres columnas de equipos en
   un plano inclinado que se desplazan sin parar, alternando el sentido.
   Solo se anima transform; se pausa al pasar el mouse y fuera de pantalla. */
.vitrina {
  position: relative; height: clamp(340px, 44vw, 540px); overflow: hidden;
  perspective: 1400px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent),
                      linear-gradient(to right, transparent, #000 10%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent),
              linear-gradient(to right, transparent, #000 10%, #000 88%, transparent);
  mask-composite: intersect;
}
.vitrina__plano {
  position: absolute; top: -18%; bottom: -18%; left: 2%; right: -6%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  transform: rotateX(16deg) rotateY(-12deg) rotateZ(8deg);
  transform-style: preserve-3d;
}
.vitrina__col { animation: vitrina-sube 34s linear infinite; will-change: transform; }
.vitrina__col--baja { animation-name: vitrina-baja; animation-duration: 38s; }
.vitrina__col:nth-child(3) { animation-duration: 30s; }
.vitrina:hover .vitrina__col, .vitrina.is-pausada .vitrina__col { animation-play-state: paused; }
/* Cada columna tiene la lista dos veces: al mover -50% el bucle no se nota */
.vitrina__grupo { display: grid; gap: 1rem; padding-bottom: 1rem; }
.vitrina__item {
  padding: .6rem .6rem .7rem; background: var(--photo); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 14px 28px -8px rgba(16, 24, 40, .14);
}
.vitrina__item img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; }
.vitrina__item span { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 600; color: #475467; text-align: center; line-height: 1.3; }
@keyframes vitrina-sube { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes vitrina-baja { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (max-width: 959px) {
  .vitrina { height: 360px; margin-inline: -1.25rem; }
  .vitrina__plano { gap: .7rem; left: 4%; right: -4%; }
  .vitrina__grupo { gap: .7rem; padding-bottom: .7rem; }
  .vitrina__item span { font-size: .72rem; }
}

/* Cifras de confianza bajo la portada */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { padding: 1.6rem 1.25rem 1.8rem 0; }
.stats li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
@media (max-width: 859px) {
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.stats strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.2; }
.stats span { display: block; margin-top: .25rem; font-size: .9rem; color: var(--ink-3); line-height: 1.4; }

/* ---------- Carruseles de fotos (portada, impresoras fiscales y productos) ---------- */
/* main.js los anima: "desplazar" corre las fotos hacia un lado (portada) y
   "fundido" las cambia con una transición suave (tarjetas). Sin JavaScript o
   con "reducir movimiento" se ve la primera foto. */
.carrusel { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--photo); }
.carrusel__pista { position: relative; height: 100%; }
.carrusel__slide { margin: 0; }
.carrusel__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }

.carrusel--desplazar .carrusel__pista { display: flex; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.carrusel--desplazar .carrusel__slide { position: relative; flex: 0 0 100%; height: 100%; }

.carrusel--fundido .carrusel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
/* Antes de que arranque el JavaScript (o sin él) se ve la primera foto */
.carrusel--fundido .carrusel__slide:first-child { position: relative; opacity: 1; }
.carrusel--fundido.is-listo .carrusel__slide { opacity: 0; }
.carrusel--fundido.is-listo .carrusel__slide.is-activa { opacity: 1; z-index: 1; }

.carrusel__leyenda {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  padding: .45rem .8rem; border-radius: 6px; background: rgba(11, 18, 32, .82); color: #fff;
  font-size: .85rem; font-weight: 500;
}
.carrusel__flecha {
  position: absolute; top: 50%; z-index: 3; display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: -20px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #0b1220; cursor: pointer; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .2s, background-color .2s;
}
.carrusel__flecha .icon { width: 1.1rem; height: 1.1rem; }
.carrusel__flecha--prev { left: .75rem; }
.carrusel__flecha--prev .icon { transform: rotate(180deg); }
.carrusel__flecha--next { right: .75rem; }
.carrusel:hover .carrusel__flecha, .carrusel:focus-within .carrusel__flecha { opacity: 1; }
.carrusel__flecha:hover { background: #fff; }
@media (hover: none) { .carrusel__flecha { opacity: 1; } }
/* En las tarjetas el carrusel llena exactamente el recuadro de la foto */
.card__media, .product__media { position: relative; }
.card__media > .carrusel, .product__media > .carrusel { position: absolute; inset: 0; }
/* En tarjetas pequeñas: sin flechas */
.card__media .carrusel__flecha, .product__media .carrusel__flecha { display: none; }

/* Botón para pausar todas las animaciones (WCAG 2.2.2) */
.vitrina-marco { position: relative; }
.pausa {
  position: absolute; right: .25rem; bottom: -.25rem; z-index: 5;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: .3rem .75rem .3rem .55rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font: 500 .78rem var(--font); cursor: pointer; box-shadow: var(--shadow-sm);
}
.pausa:hover { color: var(--ink); }
.pausa .icon { width: .9rem; height: .9rem; stroke-width: 2.4; }
.pausa__icono-play, .sin-animacion .pausa__icono-pausa { display: none; }
.sin-animacion .pausa__icono-play { display: block; }
.sin-animacion .vitrina__col, .sin-animacion .marquee__track { animation-play-state: paused !important; }

/* ---------- Franja de marcas (banner deslizante) ---------- */
/* Fondo oscuro a propósito: los logos de marcas van en blanco. */
.brands { background: var(--navy); padding: 1.75rem 0 1.5rem; }
.brands__label { text-align: center; margin-bottom: 1.1rem; font-weight: 600; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #98a2b3; }
.brands__list { align-items: center; gap: 3rem; padding: 0 3rem; }
.brands__list img { display: block; height: 26px; width: auto; opacity: .92; }
/* La altura de cada logo se ajusta desde el panel de administración (va como style en línea) */

/* ---------- Servicios: filas alternadas foto + texto ---------- */
.servicios { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.servicio { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .servicio { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; }
  .servicio:nth-child(even) .servicio__media { order: 2; }
}
.servicio__media {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: var(--photo); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.servicio__media > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.servicio__media > .carrusel { position: absolute; inset: 0; }
/* Las cajas de A2 traen su propio fondo degradado gris: el marco usa ese tono */
.servicio__media--a2, .servicio__media--a2 .carrusel { background: #ededed; }
.servicio__texto h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -.02em; }
.servicio__para { margin-top: .35rem; font-size: .95rem; font-weight: 600; color: var(--brand-text); }
.servicio__texto > p:not(.servicio__para) { margin-top: 1rem; color: var(--ink-2); max-width: 36rem; }
.servicio__accion {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.6rem;
  font-weight: 600; color: var(--brand-text); text-decoration: none;
}
.servicio__accion .icon { width: 1.05rem; height: 1.05rem; transition: transform .2s; }
.servicio__accion:hover { text-decoration: underline; text-underline-offset: 4px; }
.servicio__accion:hover .icon { transform: translateX(3px); }

/* Productos: 3 + 3 en escritorio, 2 + 2 + 2 en tablet, 1 por fila en móvil */
.products { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, 1fr); } }
/* 8 fichas: 4 + 4 en pantallas anchas */
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product {
  display: flex; flex-direction: column; padding: .75rem .75rem 1.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, border-color .25s;
}
.product:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.product h3 { margin: 1.1rem 0 .3rem; padding-inline: .75rem; }
.product p { padding-inline: .75rem; color: var(--ink-2); font-size: .95rem; }
.product__media {
  display: grid; place-items: center; aspect-ratio: 6 / 5; border-radius: 8px;
  background: var(--photo); overflow: hidden;
}
.product__media > img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Sin foto: el ícono sobre fondo suave, del mismo tamaño que las fotos */
.product__media--icono { background: var(--bg-soft); color: var(--brand-text); }
.product__media--icono .icon { width: 3rem; height: 3rem; stroke-width: 1.4; }

.checklist { display: grid; gap: .6rem; margin-top: 1.25rem; }
@media (min-width: 560px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; color: var(--ink-2); font-size: .95rem; }
.checklist .icon { width: 1.1rem; height: 1.1rem; margin-top: .22rem; color: var(--brand-text); stroke-width: 2.4; }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1.05fr .95fr; gap: 5rem; } }
.about__text p { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.05rem; }
.about__text .btn { margin-top: 2rem; }
/* Autorizaciones: solo texto con su escudo (sin documentos) */
.autorizaciones { display: grid; gap: .6rem; margin-top: 1.75rem; }
.autorizaciones li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.autorizaciones .icon { width: 1.25rem; height: 1.25rem; color: var(--brand-text); }

/* Cómo trabajamos: 3 pasos en orden (el número sí informa la secuencia) */
.pasos-bloque { padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pasos-bloque__titulo { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 1.5rem; }
.pasos li { position: relative; padding-left: 3.25rem; counter-increment: paso; }
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: -.1rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--btn-primary); color: #fff; font-weight: 700; font-size: .95rem;
}
.pasos li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.4rem; bottom: -1.3rem; width: 2px; background: var(--line-strong);
}
.pasos h4 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 600; }
.pasos p { color: var(--ink-2); font-size: .95rem; }

/* Testimonios y galería: listos para cuando haya material real (hoy comentados en el HTML) */
.testimonios { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.testimonio { margin: 0; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.testimonio blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); }
.testimonio figcaption { margin-top: 1.25rem; font-size: .9rem; color: var(--ink-3); }
.testimonio figcaption strong { display: block; color: var(--ink); }
.galeria { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.galeria figure { margin: 0; }
.galeria img { display: block; width: 100%; height: auto; border-radius: 12px; }
.galeria figcaption { margin-top: .5rem; font-size: .85rem; color: var(--ink-3); }

/* ---------- Clientes (banner deslizante) ---------- */
/* Logos sueltos, sin tarjetas, todos en el mismo gris (brightness(0) los
   vuelve una silueta y la opacidad la aclara); a color al pasar el mouse. */
.clients { align-items: center; gap: 3.5rem; padding: .5rem 1.5rem; }
.clients li { flex: none; display: flex; align-items: center; min-height: 48px; }
.clients img {
  display: block; height: 30px; width: auto;
  filter: brightness(0); opacity: .45; transition: filter .25s, opacity .25s;
}
.clients li:hover img { filter: none; opacity: 1; }
/* Logos blancos (p. ej. Grupo Canaima): a color no se verían sobre fondo claro,
   así que siguen en gris al pasar el mouse. Se marca en el panel de administración. */
.clients li:hover img.is-mono { filter: brightness(0); opacity: .8; }
/* Clientes sin logo: el nombre escrito, sobrio y legible (contraste AA) */
.clients__name {
  font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink-3); transition: color .25s;
}
.clients li:hover .clients__name { color: var(--ink); }
/* Segunda fila (solo nombres): separada de la de logos por una línea fina */
.clients-row2 { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.clients-row2 .clients { gap: 2.75rem; }
.clients-row2 li { min-height: 0; }

/* ---------- Banner deslizante (lo usan Marcas y Clientes) ---------- */
/* main.js duplica el contenido de .marquee__track para que el loop sea perfecto. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Variante que se desliza hacia el otro lado (2.ª fila de Clientes) */
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 1rem 5rem; }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; align-items: start; } .faq .section__head { position: sticky; top: calc(var(--header-h) + 2rem); } }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 48px; padding: 1.25rem 0; font-size: 1.05rem; font-weight: 600; cursor: pointer; list-style: none;
  transition: color .2s;
}
.faq__item summary:hover { color: var(--brand-text); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: .35rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__item p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); }

/* ---------- Llamado a la acción ---------- */
.cta { background: var(--brand-dark); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22em; }
.cta p { margin-top: .6rem; color: #c7cdf0; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 5rem; } }
/* WhatsApp como acción principal: verde oficial con texto oscuro (contraste AA) */
.btn--whatsapp {
  margin-top: 2rem; min-height: 60px; padding: .8rem 1.5rem .8rem 1.2rem; gap: .8rem;
  background: #25d366; color: #0b1220; font-size: 1.05rem; text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 8px 18px -6px rgba(16, 24, 40, .25);
}
.btn--whatsapp:hover { background: #1fbd5a; }
.btn--whatsapp .icon { width: 1.75rem; height: 1.75rem; }
.btn--whatsapp small { display: block; font-size: .85rem; font-weight: 500; }
.contact__datos { display: grid; margin-top: 2rem; border-top: 1px solid var(--line); }
.contact__datos li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .85rem 0;
  border-bottom: 1px solid var(--line); font-size: .95rem;
}
.contact__datos li > span { color: var(--ink-3); }
.contact__datos a { color: var(--brand-text); text-decoration: none; overflow-wrap: anywhere; }
.contact__datos a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__datos strong { font-weight: 500; }
@media (max-width: 480px) { .contact__datos li { grid-template-columns: 1fr; gap: .15rem; } }
.mapa { margin-top: 2rem; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
.mapa__cargar {
  display: grid; place-items: center; align-content: center; gap: .35rem; width: 100%; height: 100%;
  border: 0; background: radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--bg-soft);
  color: var(--ink); font: inherit; cursor: pointer;
}
.mapa__cargar .icon { width: 2rem; height: 2rem; color: var(--brand-text); }
.mapa__cargar span { font-weight: 600; }
.mapa__cargar small { color: var(--ink-3); font-size: .8rem; }
.mapa__cargar:hover span { text-decoration: underline; text-underline-offset: 3px; }
.mapa__enlace { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; font-size: .9rem; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.mapa__enlace .icon { width: 1rem; height: 1rem; }
.mapa__enlace:hover { text-decoration: underline; }

.form {
  padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
}
.form h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 500; font-size: .9rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 21, 172, .12);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #b91c1c; }
.form__note { margin-top: .9rem; font-size: .85rem; color: var(--ink-3); text-align: center; }

/* ---------- Pie de página ---------- */
.footer { background: var(--footer-bg); color: #c0c7d4; padding-top: 4rem; font-size: .95rem; }
.footer a:focus-visible { outline-color: #fff; }
.footer__inner { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 3rem; } }
.brand--light { color: #fff; }
.footer__brand .brand { align-items: flex-start; }
.footer__brand .brand__logo { border-radius: 8px; outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 0; }
.footer__brand .brand__rif { margin-top: .35rem; color: #c0c7d4; }
.footer__brand p { margin-top: 1rem; max-width: 24rem; }
.footer__titulo { margin-bottom: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer__links { display: grid; gap: .55rem; }
.footer__links a, .footer__contacto a { text-decoration: none; }
.footer__links a:hover, .footer__contacto a:hover { color: #fff; text-decoration: underline; }
.footer__contacto { display: grid; gap: .7rem; }
.footer__contacto li { display: flex; align-items: flex-start; gap: .6rem; }
.footer__contacto .icon { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: #98a2b3; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid #344054; transition: background-color .2s, border-color .2s, color .2s;
}
.footer__social a:hover { background: #fff; border-color: #fff; color: var(--navy); }
.footer__legal p { margin-bottom: .5rem; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__legal-links a, .enlace-pie { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__legal-links a:hover, .enlace-pie:hover { color: #fff; }
.footer__legal { margin-top: 3rem; padding: 1.25rem 0 5rem; border-top: 1px solid #1d2939; font-size: .85rem; color: #98a2b3; }

/* ---------- Botón flotante de WhatsApp ---------- */
/* Verde oficial de WhatsApp (#25D366) para que se reconozca al instante */
.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: .6rem; height: 58px; padding: 0 .95rem;
  border-radius: 999px; background: #25d366; color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; box-shadow: 0 2px 6px rgba(16, 24, 40, .18), 0 10px 24px -6px rgba(16, 24, 40, .3);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(16, 24, 40, .2), 0 14px 28px -6px rgba(16, 24, 40, .35); }
.wa-float .icon { width: 1.9rem; height: 1.9rem; }
.wa-float__texto { display: none; color: #0b1220; }
@media (min-width: 760px) { .wa-float { padding: 0 1.2rem 0 1rem; } .wa-float__texto { display: inline; } }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Ticket de soporte (animación al contactar) ---------- */
.ticket-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1.5rem; }
.ticket-modal[hidden] { display: none; }
.ticket-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); animation: ticket-fade .2s ease; }
.ticket-modal__card {
  position: relative; z-index: 1; width: min(100%, 300px);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.5rem; text-align: center; animation: ticket-pop .25s ease;
}
.ticket-modal__close {
  position: absolute; top: .5rem; right: .5rem; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 8px; border: none;
  background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s;
}
.ticket-modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.ticket-modal__title { margin-top: 1.4rem; font-weight: 700; color: var(--ink); }
.ticket-modal__note { margin-top: .3rem; font-size: .88rem; color: var(--ink-2); }

.printer { position: relative; width: 128px; height: 150px; margin: 0 auto; }
.printer__slot-wrap { position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%); width: 76px; height: 90px; overflow: hidden; }
.printer__ticket {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 104px;
  background: #fff; border: 1px solid var(--line); border-radius: 2px 2px 0 0;
  padding: .55rem .5rem .6rem; box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
  transform: translateY(100%);
}
.ticket-modal.is-printing .printer__ticket { transition: transform 1.1s cubic-bezier(.22, .85, .3, 1); transform: translateY(-8%); }
.printer__line { display: block; height: 5px; margin: 6px auto; border-radius: 2px; background: #cbd5e1; }
.printer__line:nth-child(1) { width: 68%; }
.printer__line:nth-child(2) { width: 84%; }
.printer__line--short { width: 52%; }
.printer__thanks { display: block; margin-top: .35rem; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-text); }
.printer__slot { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); width: 86px; height: 12px; background: #0a0f2e; border-radius: 2px; z-index: 2; }
.printer__body {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 110px; height: 50px;
  border-radius: 0 0 12px 12px; background: linear-gradient(160deg, var(--brand), var(--brand-dark)); z-index: 3;
}
.printer__light { position: absolute; top: 10px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #64748b; }
.ticket-modal.is-printing .printer__light { animation: ticket-blink .5s steps(1) 3; }

@keyframes ticket-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ticket-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ticket-blink { 50% { background: var(--accent); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product, .wa-float, .servicio__accion .icon { transition: none; }
  .carrusel__pista, .carrusel__slide { transition: none !important; }
  .vitrina__col { animation: none; }
  .vitrina__plano { transform: none; }
  .wa-float:hover { transform: none; }
  .card__media img, .product__media img { transition: none; transform: none !important; }
  .ticket-modal__backdrop, .ticket-modal__card { animation: none; }
  .ticket-modal.is-printing .printer__ticket { transition: none; }
  .ticket-modal.is-printing .printer__light { animation: none; }
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 1.25rem; }
}
/* Sin movimiento y en teléfono: los clientes van en una fila que se desliza
   con el dedo, en lugar de una lista larguísima */
@media (prefers-reduced-motion: reduce) and (max-width: 559px) {
  #clientes .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: thin; }
  #clientes .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-bottom: .5rem; }
}


/* ---------- Página de aviso de privacidad ---------- */
.legal { max-width: 46rem; }
.legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.3rem; }
.legal p, .legal__lista li { color: var(--ink-2); }
.legal p + p { margin-top: .9rem; }
.legal a { color: var(--brand-text); }
.legal__lista { display: grid; gap: .6rem; padding-left: 1.2rem; list-style: disc; }

/* ---------- Ajustes de modo oscuro que dependen de reglas anteriores ---------- */
@media (prefers-color-scheme: dark) {
  .header .brand__logo { border-radius: 8px; outline: 2px solid rgba(255, 255, 255, .85); }
  /* Logos de clientes: silueta clara (a color, los logos oscuros se perderían) */
  .clients img { filter: brightness(0) invert(1); opacity: .7; }
  .clients li:hover img, .clients li:hover img.is-mono { filter: brightness(0) invert(1); opacity: 1; }
  /* Franja final: se separa del fondo con un borde sutil */
  .cta { background: linear-gradient(160deg, #0d1a6b, #060b33); border-block: 1px solid #1f2b6b; }
  .btn--ghost { border-color: #475569; }
  .btn--ghost:hover { background: rgba(255, 255, 255, .06); }
  .nav-toggle { border-color: #475569; }
}

/* ---------- Teléfono: página más corta ---------- */
@media (max-width: 559px) {
  .section { padding: 3.25rem 0; }
  .section__head { margin-bottom: 1.75rem; }
  .servicios { gap: 2.75rem; }
  .servicio { gap: 1.25rem; }
  .servicio__media { aspect-ratio: 16 / 10; }
  /* Productos en 2 columnas */
  .products { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product { padding: .5rem .5rem 1rem; }
  .product h3 { margin-top: .7rem; padding-inline: .35rem; font-size: 1rem; }
  .product p { padding-inline: .35rem; font-size: .85rem; line-height: 1.45; }
  .pasos { gap: 1.1rem; }
  .pasos-bloque { padding: 1.5rem 1.25rem; }
  .cta { padding: 2.5rem 0; }
  /* Pie: el menú ya está arriba; se ocultan los enlaces repetidos */
  .footer nav[aria-label="Secciones"], .footer__inner > div:last-child { display: none; }
  .footer { padding-top: 2.5rem; }
  .vitrina { height: 300px; }
  .hero__grid { gap: 2rem; }
  /* El mapa se abre directo en Google Maps con el enlace de abajo */
  .mapa { display: none; }
  .contact { gap: 2.5rem; }
  .footer__inner { gap: 1.75rem; }
}
