/* ============================================================================
   MADVER TRANSFORMADORES — Sistema de diseño
   Tokens al inicio. Mobile-first. Sin dependencias.
   Paleta derivada del logo oficial (azul #2E6692 / navy #104C83).
   ============================================================================ */

:root {
  /* ---- Marca ---- */
  --navy-900: #091326;   /* base hero / footer */
  --navy-800: #0c223d;
  --navy-700: #103356;
  --brand-800: #104c83;  /* azul profundo del logo */
  --brand-700: #175a94;
  --brand-600: #2e6692;  /* AZUL PRIMARIO (relleno del logo) */
  --brand-500: #3d7cb0;
  --brand-400: #5b9bc9;  /* azul acento (paneles catálogo) */
  --brand-300: #8fbcdd;
  --brand-200: #c2dbee;

  /* ---- Neutros ---- */
  --ink: #14202e;        /* texto principal */
  --ink-soft: #47586c;   /* texto secundario */
  --ink-faint: #7688a0;
  --line: #dde7f1;       /* bordes */
  --line-soft: #eaf1f8;
  --steel-100: #e7eef5;
  --steel-50: #f4f8fc;
  --white: #ffffff;

  /* ---- Semánticos ---- */
  --bg: #ffffff;
  --bg-alt: var(--steel-50);
  --focus: #2e6692;

  /* ---- Tipografía ---- */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-eyebrow: 0.18em;

  /* ---- Escala fluida ---- */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.10rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.75vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.75rem + 2.75vw, 4rem);

  /* ---- Layout ---- */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  /* ---- Sombras ---- */
  --shadow-sm: 0 1px 2px rgba(9, 19, 38, 0.06), 0 2px 8px rgba(9, 19, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(9, 19, 38, 0.10), 0 2px 6px rgba(9, 19, 38, 0.06);
  --shadow-lg: 0 24px 60px rgba(9, 19, 38, 0.18);
  --shadow-brand: 0 18px 44px rgba(16, 76, 131, 0.28);

  --ring: 0 0 0 3px rgba(46, 102, 146, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============================================================================
   Reset / base
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-600); }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; color: var(--navy-800); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }

ul { padding: 0; list-style: none; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

::selection { background: var(--brand-400); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand-700); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================================
   Utilidades de layout
   ============================================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--navy {
  background: var(--navy-900);
  background-image: url("../assets/img/lowpoly-navy.svg");
  background-size: cover; background-position: center;
  color: #dbe6f2;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b7c7db; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6ch;
  font-size: var(--step--1); font-weight: 700;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brand-400); display: inline-block;
}
.section--navy .eyebrow { color: var(--brand-300); }
.section--navy .eyebrow::before { background: var(--brand-400); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head p { margin-top: 0.9rem; font-size: var(--step-1); color: var(--ink-soft); }
.section--navy .section-head p { color: #b7c7db; }

.lead { font-size: var(--step-1); color: var(--ink-soft); }

/* ============================================================================
   Botones
   ============================================================================ */
.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6ch;
  font: inherit; font-weight: 700; font-size: var(--step-0);
  line-height: 1; text-align: center; cursor: pointer;
  padding: 0.95em 1.5em; border: 1.5px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  will-change: transform;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn--primary { --btn-bg: linear-gradient(135deg, var(--brand-600), var(--brand-800)); box-shadow: var(--shadow-md); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-700);
  border-color: var(--line); background: #fff;
}
.btn--ghost:hover { --btn-fg: var(--brand-800); border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.btn--on-navy { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--on-navy:hover { --btn-fg: var(--navy-900); }
.btn--outline-navy {
  --btn-bg: transparent; --btn-fg: #e6eef8; border-color: rgba(255,255,255,0.35);
}
.btn--outline-navy:hover { --btn-fg: #fff; border-color: #fff; box-shadow: none; }
.btn--lg { padding: 1.1em 1.8em; font-size: var(--step-1); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Enlace con flecha */
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5ch; font-weight: 700; color: var(--brand-700);
}
.arrow-link svg { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ============================================================================
   Header / navegación
   ============================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 72px;
}
.nav__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 40px; width: auto; }

.nav__menu { display: none; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__links { display: flex; align-items: center; gap: 0.3rem; }
.nav__link {
  position: relative; padding: 0.55rem 0.85rem; border-radius: 8px;
  font-weight: 600; font-size: var(--step--1); color: var(--ink);
  transition: color 0.15s, background 0.15s;
}
.nav__link:hover { color: var(--brand-700); background: var(--steel-50); }
.nav__link[aria-current="page"] { color: var(--brand-700); }

/* dropdown productos */
.nav__item { position: relative; }
.nav__dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.6rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__drop-link { display: flex; flex-direction: column; padding: 0.6rem 0.8rem; border-radius: 9px; }
.nav__drop-link:hover { background: var(--steel-50); }
.nav__drop-link b { color: var(--navy-800); font-size: 0.95rem; }
.nav__drop-link span { color: var(--ink-faint); font-size: 0.8rem; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; width: 100%; background: var(--navy-800); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 72px 0 0 0; z-index: 90;
  background: #fff; padding: 1.5rem var(--gutter) 3rem;
  transform: translateX(100%); transition: transform 0.3s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column; gap: 0.3rem;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a { padding: 1rem 0.5rem; font-size: 1.15rem; font-weight: 600; color: var(--navy-800); border-bottom: 1px solid var(--line-soft); }
.mobile-menu a:hover { color: var(--brand-700); }
.mobile-menu .btn { margin-top: 1.25rem; }
.mobile-menu__label { margin-top: 1rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

@media (min-width: 960px) {
  .nav__menu { display: flex; }
  .nav__toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ============================================================================
   Hero
   ============================================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900);
  background-image: url("../assets/img/lowpoly-navy.svg");
  background-size: cover; background-position: center;
  color: #dce7f3;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 78% 40%, rgba(91,155,201,0.22), transparent 55%),
              linear-gradient(180deg, rgba(9,19,38,0.15), rgba(9,19,38,0.55));
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__eyebrow { color: var(--brand-300); margin-bottom: 1.1rem; }
.hero__eyebrow::before { background: var(--brand-400); }
.hero h1 {
  color: #fff; font-size: var(--step-4); letter-spacing: -0.02em; max-width: 15ch;
}
.hero h1 .accent { color: var(--brand-300); }
.hero__sub { margin-top: 1.4rem; font-size: var(--step-1); color: #b9c9dd; max-width: 46ch; }
.hero .btn-row { margin-top: 2rem; }

.hero__figure { position: relative; display: grid; place-items: center; }
.hero__figure::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(143,188,221,0.35), transparent 66%);
  filter: blur(8px);
}
.hero__figure img {
  position: relative; width: min(100%, 560px);
  filter: drop-shadow(0 40px 55px rgba(0,0,0,0.5));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero__figure img { animation: none; } }

/* Barra de estadísticas del hero */
.hero__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__stat { background: transparent; padding: 1.25rem var(--gutter); }
.hero__stat b { display: block; font-size: clamp(1.4rem, 3vw, 2.1rem); color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.hero__stat > span { font-size: var(--step--1); color: #9fb4cc; }

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================================
   Marquee de clientes / confianza
   ============================================================================ */
.trust {
  background: var(--white); border-block: 1px solid var(--line-soft);
  padding-block: 1.6rem;
}
.trust__label { text-align: center; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; }
.trust__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.trust__logo { font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.35rem); letter-spacing: 0.02em; color: #9aa9bd; opacity: 0.9; white-space: nowrap; transition: color 0.2s; }
.trust__logo:hover { color: var(--brand-600); }

/* Carrusel de logos de clientes */
.marquee {
  margin-top: 1.4rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; align-items: center; width: max-content; animation: marqueeScroll 55s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__logo {
  flex: 0 0 auto; height: clamp(52px, 7.5vw, 84px); width: auto;
  margin-right: clamp(3rem, 7vw, 6rem);
  filter: grayscale(1); opacity: 0.62;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.marquee__logo:hover { filter: none; opacity: 1; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: clamp(1.5rem, 4vw, 3rem); }
  .marquee__track .marquee__logo:nth-child(n+13) { display: none; }  /* ocultar el grupo duplicado */
  .marquee__logo { margin-right: 0; }
}

/* ============================================================================
   Empresa (Nosotros / Misión / Visión)
   ============================================================================ */
.about { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.stat-card b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { font-size: var(--step--1); color: var(--ink-soft); }

.mv-grid { display: grid; gap: 1.25rem; }
.mv-card {
  padding: 1.6rem 1.7rem; border-radius: var(--radius); color: #eaf2fb;
  background: linear-gradient(150deg, var(--brand-600), var(--brand-800));
  box-shadow: var(--shadow-brand);
}
.mv-card:nth-child(2) { background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); }
.mv-card h3 { color: #fff; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6ch; }
.mv-card p { color: #cddcec; }

@media (min-width: 900px) {
  .about { grid-template-columns: 1.1fr 0.9fr; }
}

/* ============================================================================
   Por qué MADVER — diferenciadores
   ============================================================================ */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.why-card {
  position: relative; padding: 1.8rem 1.7rem 1.7rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.why-card__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-800)); color: #fff; margin-bottom: 1.1rem;
}
.why-card__num svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.why-card p { font-size: var(--step-0); }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================================
   Buscador de productos (filtros)
   ============================================================================ */
.finder {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem;
  margin-bottom: 1.8rem; padding: 1rem 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.finder__chips { display: flex; gap: 0.45rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1 1 auto; padding-block: 2px; }
.finder__chips::-webkit-scrollbar { display: none; }
.finder__chip {
  flex-shrink: 0; font: inherit; font-size: var(--step--1); font-weight: 700; cursor: pointer;
  color: var(--ink-soft); background: var(--steel-50); border: 1.5px solid var(--line);
  padding: 0.5rem 1rem; border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.finder__chip:hover { border-color: var(--brand-400); color: var(--brand-800); }
.finder__chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  border-color: transparent; color: #fff;
}
.finder__kva { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.finder__kva label { font-size: var(--step--1); font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.finder__kva input {
  font: inherit; font-size: var(--step--1); width: 110px;
  padding: 0.55rem 0.8rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--steel-50);
}
.finder__kva input:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: var(--ring); }
.finder__count { flex-basis: 100%; font-size: var(--step--1); color: var(--ink-faint); font-weight: 600; }
.finder__count b { color: var(--brand-800); }

.product-card.is-hidden { display: none; }
.finder-empty {
  display: none; text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg); color: var(--ink-soft);
}
.finder-empty.is-visible { display: block; }
.finder-empty b { display: block; font-size: var(--step-1); color: var(--navy-800); margin-bottom: 0.4rem; }

/* ============================================================================
   Productos — grid de tarjetas
   ============================================================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.4rem;
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.product-card__media {
  position: relative; height: clamp(200px, 20vw, 250px); display: grid; place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  padding: 1.3rem; overflow: hidden;
}
.product-card__media img {
  position: absolute; inset: 1.1rem;
  width: calc(100% - 2.2rem); height: calc(100% - 2.2rem);
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__tag {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-800); background: rgba(255,255,255,0.9); border: 1px solid var(--line);
  padding: 0.3rem 0.6rem; border-radius: 999px;
}
.product-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card__body h3 { font-size: 1.2rem; }
.product-card__spec { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.1rem; }
.product-card__spec span { display: inline-flex; align-items: center; gap: 0.4ch; }
.product-card__spec b { color: var(--navy-800); font-weight: 700; }
.product-card__foot { margin-top: auto; padding-top: 0.9rem; }
.product-card__link { position: absolute; inset: 0; z-index: 1; }
.product-card .arrow-link { position: relative; z-index: 2; }

/* ============================================================================
   Banda de capacidades / especificaciones técnicas
   ============================================================================ */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.spec-tile {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 1.5rem; backdrop-filter: blur(2px);
}
.spec-tile .spec-icon { width: 42px; height: 42px; color: var(--brand-300); margin-bottom: 0.9rem; }
.spec-tile h3 { font-size: 1.05rem; color: #fff; margin-bottom: 0.4rem; }
.spec-tile p { font-size: var(--step--1); color: #a9bcd2; }
.spec-tile ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.spec-tile li { font-size: 0.75rem; font-weight: 600; color: #cbdcec; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); padding: 0.25rem 0.6rem; border-radius: 999px; }

.norm-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.norm-chip { display: inline-flex; align-items: center; gap: 0.5ch; font-size: var(--step--1); font-weight: 700; color: #dbe8f5;
  background: rgba(91,155,201,0.14); border: 1px solid rgba(91,155,201,0.35); padding: 0.5rem 0.9rem; border-radius: 999px; }
.norm-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300); }

/* ============================================================================
   Servicios
   ============================================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.1rem; }
.service {
  display: flex; gap: 1rem; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.service:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service__icon {
  flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-800)); color: #fff;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.service p { font-size: var(--step--1); }

/* ============================================================================
   Sectores
   ============================================================================ */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0.9rem; }
.sector {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center;
  padding: 1.5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sector svg { width: 34px; height: 34px; color: var(--brand-600); }
.sector span { font-weight: 600; font-size: var(--step--1); color: var(--navy-800); }

/* ============================================================================
   Carrusel "Proyectos": cinta continua y lenta (mismo patrón que el marquee
   de clientes: margen por slide + grupo duplicado + translateX(-50%))
   ============================================================================ */
.carrusel-label { text-align: center; margin-top: clamp(2rem, 5vw, 3.5rem); }
.carrusel { position: relative; margin-top: 1.4rem; }
.carrusel__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.carrusel__track {
  display: flex; width: max-content;
  /* fallback sin JS; con JS la cinta corre por Web Animations API a velocidad constante */
  animation: carruselDrift 160s linear infinite;
}
.carrusel:hover .carrusel__track,
.carrusel:focus-within .carrusel__track { animation-play-state: paused; }

.carrusel__btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(9, 19, 38, 0.55); color: #fff;
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s var(--ease);
}
.carrusel__btn:hover, .carrusel__btn:focus-visible { background: rgba(9, 19, 38, 0.82); }
.carrusel__prev { left: clamp(0.6rem, 2vw, 1.6rem); }
.carrusel__next { right: clamp(0.6rem, 2vw, 1.6rem); }
.carrusel__slide {
  position: relative;
  flex: 0 0 auto; margin: 0 2rem 0 0;
  height: clamp(340px, 66vh, 700px);
  /* ancho determinista vía aspect-ratio (inline por slide): el layout no
     depende de que la imagen haya cargado (Safari colapsaba a 0 con lazy) */
  aspect-ratio: var(--ar, 4 / 3);
  max-width: min(86vw, 1200px);
  overflow: hidden; border-radius: var(--radius-lg);
  background: var(--steel-100); cursor: zoom-in;
}
.carrusel__slide img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: scale 0.6s var(--ease), filter 0.6s var(--ease);
}
.carrusel__slide:hover img { scale: 1.03; filter: contrast(1.04); }
.carrusel__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.6rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(7, 15, 30, 0.72));
  color: #fff; font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.14em; text-transform: uppercase;
  pointer-events: none;
}

@keyframes carruselDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.sc-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 640px) {
  .carrusel__track { animation-duration: 120s; }
  .carrusel__slide { height: clamp(280px, 52vh, 460px); max-width: 92vw; margin-right: 1rem; }
  .carrusel__btn { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* ============================================================================
   Lightbox del showcase
   ============================================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.9);
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox__img {
  max-width: 92vw; max-height: 92vh; object-fit: contain;
  border-radius: var(--radius);
  transform: scale(0.96); transition: transform 0.3s var(--ease);
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255, 255, 255, 0.28); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }

@media (prefers-reduced-motion: reduce) {
  /* cinta detenida: scroll manual (las flechas también desplazan, vía JS),
     sin duplicados, sin máscara de borde */
  .carrusel__viewport { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .carrusel__track { animation: none; }
  .carrusel__slide--dup { display: none; }
  .carrusel__slide img { transition: none; }
  .carrusel__slide:hover img { scale: none; filter: none; }
  .lightbox, .lightbox__img { transition: none; }
  .lightbox__img { transform: none; }
}

/* ============================================================================
   Calidad / pruebas
   ============================================================================ */
.quality { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.quality__list { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-top: 1.5rem; }
.quality__item { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 500; color: var(--ink); }
.quality__item svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand-600); margin-top: 2px; }
.quality__panel {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.quality__panel h3 { color: #fff; }
.quality__steps { counter-reset: step; margin-top: 1.4rem; display: grid; gap: 0.9rem; }
.quality__step { display: flex; gap: 0.9rem; align-items: flex-start; }
.quality__step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  flex-shrink: 0; font-weight: 800; font-size: 0.85rem; color: var(--brand-300);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1.5px solid rgba(91,155,201,0.4); border-radius: 50%;
}
.quality__step b { color: #fff; display: block; }
.quality__step span { color: #aec1d6; font-size: var(--step--1); }

@media (min-width: 900px) { .quality { grid-template-columns: 1fr 1fr; } .quality__list { grid-template-columns: 1fr 1fr; } }

/* ============================================================================
   CTA band
   ============================================================================ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--brand-700), var(--navy-800));
  color: #fff; padding: clamp(2.4rem, 6vw, 4rem);
  display: grid; gap: 1.5rem; align-items: center;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../assets/img/lowpoly-navy.svg") center/cover; opacity: 0.35; mix-blend-mode: overlay; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #cddcec; max-width: 52ch; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ============================================================================
   FAQ
   ============================================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit;
  font-weight: 700; font-size: var(--step-1); color: var(--navy-800);
  padding: 1.35rem 3rem 1.35rem 0; position: relative;
}
.faq__q::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 14px; height: 14px;
  border-right: 2.5px solid var(--brand-600); border-bottom: 2.5px solid var(--brand-600);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq__item[data-open="true"] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { overflow: hidden; height: 0; transition: height 0.28s var(--ease); }
.faq__a-inner { padding-bottom: 1.4rem; color: var(--ink-soft); }

/* ============================================================================
   Contacto
   ============================================================================ */
.contact { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
.contact__info { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--brand-600); margin-top: 2px; }
.contact-item b { display: block; color: var(--navy-800); }
.contact-item a { color: var(--ink-soft); }
.contact-item a:hover { color: var(--brand-700); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 700; color: var(--navy-800); }
.field label .req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--steel-50);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); background: #fff; box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-weight: 600; font-size: var(--step--1); }

@media (min-width: 900px) { .contact { grid-template-columns: 0.85fr 1.15fr; } }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  background: var(--navy-900);
  background-image: url("../assets/img/lowpoly-navy.svg");
  background-size: cover; background-position: center;
  color: #a9bcd2; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer__brand img {
  /* logo original con transparencia, integrado al fondo marino;
     width:auto anula el hint del atributo width y conserva la proporción */
  height: 52px; width: auto;
  margin-bottom: 1.1rem;
}
.footer__brand p { color: #92a6be; max-width: 34ch; font-size: var(--step--1); }
.footer__tag { display: inline-flex; align-items: center; gap: 0.5ch; margin-top: 1rem; font-weight: 700; color: var(--brand-300); font-size: var(--step--1); letter-spacing: 0.05em; }
.footer-col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: #a9bcd2; font-size: var(--step--1); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: #7f93ac;
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 0.5ch; }
.footer-bottom .made b { color: #cdddec; }

@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ============================================================================
   Breadcrumb + páginas de producto
   ============================================================================ */
.breadcrumb { font-size: var(--step--1); color: var(--ink-faint); padding-top: 1.5rem; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb span { margin-inline: 0.4rem; }

.p-hero { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); }
.p-hero__media { position: relative; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 20%, #fff, var(--steel-100)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); min-height: 320px; }
.p-hero__media img { width: min(100%, 460px); object-fit: contain; filter: drop-shadow(0 24px 40px rgba(9,19,38,0.22)); }
.p-hero__media.photo { padding: 0; overflow: hidden; }
.p-hero__media.photo img { width: 100%; height: 100%; border-radius: var(--radius-lg); filter: none; }
.p-hero h1 { font-size: var(--step-3); margin-block: 0.9rem 1rem; }
.p-hero .eyebrow { color: var(--brand-600); }
.p-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.meta-chip { font-size: var(--step--1); font-weight: 700; color: var(--brand-800); background: var(--steel-100); border: 1px solid var(--line); padding: 0.4rem 0.85rem; border-radius: 999px; }
@media (min-width: 860px) { .p-hero { grid-template-columns: 1fr 1fr; } }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 0.9rem 1.1rem; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; background: var(--steel-50); color: var(--navy-800); font-weight: 700; vertical-align: top; }
.spec-table td { color: var(--ink-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.feature-list { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-top: 1.5rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink); }
.feature-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--brand-600); margin-top: 3px; }
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } }

.two-col { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1.15fr 0.85fr; } }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; }
.related-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.related-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.related-card img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.related-card b { display: block; color: var(--navy-800); font-size: 0.95rem; }
.related-card span { font-size: 0.8rem; color: var(--ink-faint); }

/* ============================================================================
   Reveal on scroll
   ============================================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger: los hijos de grids revelados entran en secuencia (comunica orden de lectura) */
.reveal > .product-card, .reveal > .why-card, .reveal > .service,
.reveal > .sector, .reveal > .spec-tile {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible > .product-card, .reveal.is-visible > .why-card, .reveal.is-visible > .service,
.reveal.is-visible > .sector, .reveal.is-visible > .spec-tile { opacity: 1; transform: none; }
.reveal.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.reveal.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal.is-visible > *:nth-child(6) { transition-delay: 0.35s; }
.reveal.is-visible > *:nth-child(n+7) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================================
   Helpers
   ============================================================================ */
/* ============================================================================
   HERO FILM — video cinematográfico de fondo con póster
   ============================================================================ */
.hero--film { display: flex; flex-direction: column; min-height: max(560px, 82vh); }
.hero--film .hero__inner { margin-block: auto; padding-block: clamp(3rem, 7vw, 5.5rem); grid-template-columns: 1fr; }
.hero--film .hero__content { max-width: 60ch; }

.hero__media { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero__media .hero__poster,
.hero__media .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__media .hero__video { opacity: 0; transition: opacity 1.1s var(--ease); }
.hero--film.has-video .hero__video { opacity: 1; }

/* Scrim: legibilidad del texto sobre el video/póster */
.hero--film::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 15, 30, 0.86) 0%, rgba(7, 15, 30, 0.62) 44%, rgba(7, 15, 30, 0.28) 74%, rgba(7, 15, 30, 0.18) 100%),
              linear-gradient(0deg, rgba(7, 15, 30, 0.72) 0%, transparent 30%),
              linear-gradient(180deg, rgba(7, 15, 30, 0.35) 0%, transparent 18%);
}
.hero--film .hero__inner, .hero--film .hero__stats { position: relative; z-index: 3; }

.hero--film .hero__title {
  font-size: clamp(2.2rem, 1.55rem + 2.8vw, 3.8rem);
  margin-top: 0.9rem; max-width: 18ch;
}

/* Botón de sonido del hero (fijo, abajo-izquierda; se oculta al salir el hero) */
.hero__sound {
  position: fixed; left: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60; display: inline-flex; align-items: center; gap: 0; overflow: hidden;
  height: 46px; width: 46px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  color: #eaf2fb; background: rgba(9, 19, 38, 0.5); border: 1.5px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap;
  font: inherit; font-weight: 700; font-size: var(--step--1);
  transition: width 0.28s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.hero__sound:hover { width: 128px; background: rgba(9, 19, 38, 0.72); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.hero__sound svg { width: 20px; height: 20px; flex-shrink: 0; }
.hero__sound-label { max-width: 0; opacity: 0; margin-left: 0; transition: max-width 0.28s var(--ease), opacity 0.2s, margin-left 0.28s var(--ease); }
.hero__sound:hover .hero__sound-label { max-width: 70px; opacity: 1; margin-left: 8px; }
/* Estados de icono: por defecto muestra "activar" (off tachado) */
.hero__sound .hero__sound-on { display: none; }
.hero__sound .hero__sound-off { display: block; }
.hero__sound[aria-pressed="true"] .hero__sound-on { display: block; }
.hero__sound[aria-pressed="true"] .hero__sound-off { display: none; }
.hero__sound[aria-pressed="true"] { border-color: rgba(91, 155, 201, 0.7); }
.hero__sound.is-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .hero__sound { transition: opacity 0.2s; } }

/* ============================================================================
   HERO CINEMATOGRÁFICO (v4, legado) — reglas conservadas para .hero--cine
   ============================================================================ */
/* Altura natural: el contenido manda; nunca se recorta bajo el header sticky */
.hero--cine .hero__inner { padding-block: clamp(2.5rem, 5.5vw, 4.25rem) clamp(2.75rem, 6vw, 4.75rem); }
.hero--cine .hero__title { font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.5rem); margin-top: 0.9rem; }

/* Escenario 3D detrás del contenido */
.hero__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__stage canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.9s var(--ease); }
.hero--cine.is-3d .hero__stage canvas { opacity: 1; }
.hero--cine .hero__inner, .hero--cine .hero__stats { position: relative; z-index: 3; }

/* Vignette de legibilidad cuando la escena 3D está activa */
.hero--cine.is-3d::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 15, 30, 0.78) 0%, rgba(7, 15, 30, 0.35) 42%, transparent 62%),
              linear-gradient(0deg, rgba(7, 15, 30, 0.55) 0%, transparent 26%);
}

/* El póster se desvanece cuando la escena 3D toma su lugar */
.hero--cine .hero__figure { transition: opacity 0.9s var(--ease); }
.hero--cine.is-3d .hero__figure { opacity: 0; }

/* Overlay de intro (Escena 1: negro + pulso eléctrico) */
.hero__intro {
  position: absolute; inset: 0; z-index: 5; background: #04070d;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.hero__pulse {
  position: absolute; top: 50%; left: 0; width: 26%; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, #6fb3e8 30%, #eaf6ff 50%, #6fb3e8 70%, transparent);
  box-shadow: 0 0 18px 3px rgba(111, 179, 232, 0.65), 0 0 60px 12px rgba(46, 102, 146, 0.35);
  border-radius: 999px;
}

/* Botón saltar intro */
.hero__skip {
  position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 7;
  font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  color: #c9dcee; background: rgba(9, 19, 38, 0.55); border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__skip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.55); }

/* Título por líneas / palabras */
.hero__title .hero__line { display: block; }
.hero__title .hero__w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .hero__w > i { display: inline-block; font-style: normal; will-change: transform; }

/* Brillo metálico discreto en "eléctrica" */
.hero__metal {
  font-style: normal;
  background: linear-gradient(105deg, #a9cbe8 0%, #eef7ff 22%, #7fa9cd 42%, #d5e8f7 58%, #8fb8dc 78%, #a9cbe8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: metalShine 7s linear infinite;
}
@keyframes metalShine { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }

.hero__micro { margin-top: 1.1rem; font-size: var(--step--1); color: #9fb4cc; }
.hero__micro-link { color: #cdddec; font-weight: 700; }
.hero__micro-link:hover { color: #fff; }

/* Entrada cinematográfica ligera (móvil / sin WebGL): CSS puro */
@keyframes cineLineUp { from { opacity: 0; transform: translateY(0.55em); } to { opacity: 1; transform: none; } }
@keyframes cineFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero--cine.is-mobile-cine .hero__line { animation: cineLineUp 0.7s var(--ease) both; }
.hero--cine.is-mobile-cine .hero__line:nth-child(2) { animation-delay: 0.09s; }
.hero--cine.is-mobile-cine .hero__line:nth-child(3) { animation-delay: 0.18s; }
.hero--cine.is-mobile-cine .hero__line:nth-child(4) { animation-delay: 0.27s; }
.hero--cine.is-mobile-cine [data-cine-fade] { animation: cineFade 0.7s var(--ease) both; }
.hero--cine.is-mobile-cine [data-cine-fade]:nth-of-type(2) { animation-delay: 0.4s; }
.hero--cine.is-mobile-cine .btn-row[data-cine-fade] { animation-delay: 0.5s; }
.hero--cine.is-mobile-cine .hero__micro[data-cine-fade] { animation-delay: 0.62s; }
.hero--cine.is-mobile-cine .hero__stats .hero__stat { animation: cineFade 0.7s var(--ease) both; animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .hero__metal { animation: none; }
  .hero--cine.is-mobile-cine .hero__line,
  .hero--cine.is-mobile-cine [data-cine-fade],
  .hero--cine.is-mobile-cine .hero__stats .hero__stat { animation: none; }
}

/* ============================================================================
   Microinteracciones de botones (magnetic + ripple)
   ============================================================================ */
.btn[data-magnetic] { position: relative; overflow: hidden; }
.btn .btn__ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: 0.14; transform: scale(0);
  animation: btnRipple 0.55s var(--ease) forwards;
}
@keyframes btnRipple { to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .btn .btn__ripple { animation: none; display: none; } }

/* ============================================================================
   Botón flotante de WhatsApp
   ============================================================================ */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 80; display: inline-flex; align-items: center; gap: 0; overflow: hidden;
  height: 60px; width: 60px; padding: 0 18px; border-radius: 999px;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.42);
  transition: width 0.28s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap; font-weight: 700;
}
.wa-float svg { width: 30px; height: 30px; flex-shrink: 0; }
.wa-float span { max-width: 0; opacity: 0; margin-left: 0; transition: max-width 0.28s var(--ease), opacity 0.2s var(--ease), margin-left 0.28s var(--ease); }
.wa-float:hover, .wa-float:focus-visible {
  color: #fff; width: 205px; transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}
.wa-float:hover span, .wa-float:focus-visible span { max-width: 140px; opacity: 1; margin-left: 10px; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70%,100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } .wa-float { transition: none; } }
@media (max-width: 600px) { .wa-float:hover, .wa-float:focus-visible { width: 60px; } .wa-float:hover span, .wa-float:focus-visible span { max-width: 0; opacity: 0; margin-left: 0; } }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
