/* ==========================================================================
   CaviLife — sistema visual v2
   Inter Tight (titulares, neo-grotesca compacta) + Inter (texto). Héroe oscuro degradado,
   acentos por sector, tarjetas con relieve, círculos numerados.
   ========================================================================== */

:root {
  --ink: #061526;
  --ink-mid: #0a2444;
  --ink-soft: #0f3a63;
  --cyan: #3ecfea;
  --cyan-dark: #1aa9c4;
  --navy: #0b3f6d;
  --navy-dark: #082f53;
  --cream: #f4f9fb;
  --cream-d: #e6eef2;
  --white: #ffffff;
  --text: #0a2540;
  --muted: #55707f;
  --muted-on-dark: #9fc0cf;
  --line: #d7e4ea;
  --line-on-dark: #17324f;

  --accent: var(--cyan);
  --accent-dark: var(--cyan-dark);

  --head-h: 84px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --radius-sm: 8px;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "Segoe UI", system-ui, sans-serif;

  --shadow-card: 0 1px 2px rgba(6,21,38,0.04), 0 10px 26px -14px rgba(6,21,38,0.22);
  --shadow-card-hover: 0 4px 10px rgba(6,21,38,0.06), 0 22px 40px -18px rgba(6,21,38,0.32);
}

body[data-sector="industria"] { --accent: #6fb6e8; --accent-dark: #3f8fce; }
body[data-sector="agricultura"] { --accent: #8fd66a; --accent-dark: #4f9c34; }
body[data-sector="piscinas"] { --accent: #3ecfea; --accent-dark: #1aa9c4; }
body[data-sector="hogar"] { --accent: #7cc7dd; --accent-dark: #3496b4; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.14rem);
  line-height: 1.62;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 0.6em;
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 2.6vw + 1.1rem, 3.7rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 1.8vw + 0.9rem, 2.4rem); font-weight: 600; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.1rem, 0.9vw + 0.75rem, 1.35rem); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-family: var(--font-text); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 62ch; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }
section { padding-block: var(--section); }
.lead { font-size: clamp(1.12rem, 0.5vw + 1rem, 1.34rem); color: var(--muted); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-text); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }
.hero .eyebrow, .section--dark .eyebrow, .cta-band .eyebrow { color: var(--accent); }

/* ---------- Cabecera: transparente sobre el héroe, blanca al hacer scroll ---------- */

.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.site-head.is-solid {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 28px -22px rgba(6,21,38,0.35);
}

.site-head__inner { display: flex; align-items: center; gap: 2.2rem; min-height: var(--head-h); transition: min-height 240ms ease; }
.site-head.is-solid .site-head__inner { min-height: 68px; }

.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand__mark { display: inline-flex; align-items: center; }
.brand__logo { display: block; height: 50px; width: auto; transition: height 240ms ease; }
.site-head.is-solid .brand__logo { height: 42px; }

/* dos versiones del logo: clara sobre el vídeo, a color sobre la cabecera blanca */
.site-head .brand__logo--color { display: none; }
.site-head.is-solid .brand__logo--light { display: none; }
.site-head.is-solid .brand__logo--color { display: block; }

.site-foot .brand__logo { height: 50px; }
.site-foot .brand__mark {
  background: rgba(255,255,255,0.95); padding: 0.5rem 0.9rem; border-radius: 10px;
}

.nav { display: flex; gap: 1.8rem; align-items: center; }
.nav a {
  color: rgba(255,255,255,0.92); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  padding-block: 0.45rem; border-bottom: 2px solid transparent; transition: color 140ms ease, border-color 140ms ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--cyan); }
.site-head.is-solid .nav a { color: var(--text); }
.site-head.is-solid .nav a:hover, .site-head.is-solid .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-dark); }
.nav a.btn, .nav a.btn:hover, .site-head.is-solid .nav a.btn, .site-head.is-solid .nav a.btn:hover { color: #fff; border-bottom-color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--navy); color: #fff;
  font-family: var(--font-text); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.005em;
  padding: 0.85rem 1.5rem; border: 1px solid var(--navy); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, color 150ms ease, border-color 150ms ease;
  box-shadow: 0 10px 24px -12px rgba(11,63,109,0.7);
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,0.16); border-color: #fff; transform: translateY(-1px); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--cyan); border-color: var(--cyan); }

/* Botones ghost fuera de fondos oscuros */
.section--paper .btn--ghost, .btn--ghost-on-light {
  color: var(--text); border-color: var(--line); box-shadow: none;
}
.section--paper .btn--ghost:hover, .btn--ghost-on-light:hover {
  background: var(--text); border-color: var(--text); color: var(--white);
}

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm); padding: 0.55rem 0.7rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }
.site-head.is-solid .nav-toggle { border-color: var(--line); }
.site-head.is-solid .nav-toggle span { background: var(--ink); }

@media (max-width: 960px) {
  :root { --head-h: 64px; }
  .site-head.is-solid .site-head__inner { min-height: var(--head-h); }
  .brand__logo, .site-head.is-solid .brand__logo { height: 38px; }
  .nav-toggle { display: block; order: 3; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%); transition: transform 220ms ease;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
    box-shadow: 0 20px 30px -20px rgba(6,21,38,0.2);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a, .site-head.is-solid .nav a { width: 100%; padding-block: 0.9rem; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav .btn { margin-top: 1rem; width: 100%; }
}

/* ---------- Héroe: siempre en tono oscuro degradado ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 560px at 82% -10%, rgba(62,207,234,0.16), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(62,207,234,0.10), transparent 55%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-mid) 55%, var(--ink-soft) 130%);
  color: var(--white);
  padding-block: clamp(3.2rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

/* Héroe a pantalla completa, siempre, sea cual sea el tamaño de pantalla.
   El contenido se centra dentro de esa pantalla; el resto del contenido
   de la página queda debajo y aparece al hacer scroll. */
.hero--full {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; padding-block: calc(var(--head-h) + 1.5rem) 3rem;
}
.hero--full .wrap { width: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 75%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 span { display: block; color: var(--muted-on-dark); font-size: 0.6em; margin-top: 0.3em; }
.hero .lead { color: var(--muted-on-dark); max-width: 46ch; }
.hero p:not(.lead):not(.eyebrow) { color: var(--muted-on-dark); }
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Héroe con fotografía de fondo a sangre (verticales de sector) */
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.hero--single .hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero--single h1 { max-width: 22ch; }
.hero--single .lead, .hero--single .hero__actions { max-width: 52ch; }
.photo-credit {
  position: relative; z-index: 1; display: block; margin-top: 1.6rem;
  font-size: 0.76rem; color: rgba(255,255,255,0.45);
}
.photo-credit a { color: rgba(255,255,255,0.6); }

/* Fotografía enmarcada dentro de una sección de contenido */
.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption {
  font-size: 0.76rem; color: var(--muted); margin-top: 0.6rem;
}
.section--dark .photo-frame figcaption, .section--dark .photo-credit { color: var(--muted-on-dark); }

/* Halo tras las ilustraciones del héroe */
/* ---------- Héroe cinematográfico: fondo animado "bajo el agua" ---------- */

.hero--cinematic h1 { font-size: clamp(2.4rem, 3.2vw + 1.2rem, 4.4rem); line-height: 1.02; letter-spacing: -0.034em; }

.aqua-stage { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.aqua-stage .caustic {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,207,234,0.5), rgba(62,207,234,0) 68%);
  filter: blur(40px); mix-blend-mode: screen; opacity: 0.55;
}
.aqua-stage .c1 { width: 60vw; height: 60vw; left: -10vw; top: -18vw; }
.aqua-stage .c2 { width: 46vw; height: 46vw; right: -8vw; top: 6vw; opacity: 0.4; }
.aqua-stage .c3 { width: 38vw; height: 38vw; left: 18vw; bottom: -20vw; opacity: 0.35; }

.aqua-stage .bubble {
  position: absolute; bottom: -12%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), rgba(180,230,255,0.22) 62%, rgba(180,230,255,0) 76%);
  box-shadow: inset 0 0 6px rgba(255,255,255,0.3);
}

@media (prefers-reduced-motion: no-preference) {
  .aqua-stage .caustic { animation: causticDrift 16s ease-in-out infinite; }
  .aqua-stage .c2 { animation-duration: 20s; animation-delay: -5s; }
  .aqua-stage .c3 { animation-duration: 24s; animation-delay: -11s; }
  .aqua-stage .bubble { animation: bubbleRise linear infinite; }
}
@keyframes causticDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -4%) scale(1.15); }
}
@keyframes bubbleRise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.85; }
  88% { opacity: 0.4; }
  100% { transform: translateY(-128vh) translateX(var(--drift, 24px)); opacity: 0; }
}

/* Tarjeta de vídeo/explicación flotante, estilo "watch" */
.preview-card {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(1.6rem, 4vw, 3rem);
  width: clamp(168px, 18vw, 226px); text-decoration: none;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card-hover);
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform 200ms ease;
}
.preview-card:hover { transform: translateY(-3px); }
.preview-card__thumb { position: relative; aspect-ratio: 16/10; background: var(--ink-mid); }
.preview-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-card__label {
  display: block; background: var(--ink); color: var(--white);
  font-family: var(--font-text); font-weight: 600; font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
}
@media (max-width: 760px) { .preview-card { display: none; } }

.illus-wrap { position: relative; }
.illus-wrap::before {
  content: ""; position: absolute; inset: -8%;
  background: radial-gradient(closest-side, rgba(62,207,234,0.18), transparent 72%);
  z-index: 0;
}
.illus-wrap .illus, .illus-wrap .device { position: relative; z-index: 1; }
.illus-tag {
  position: relative; z-index: 2; display: inline-block; margin-bottom: 0.8rem;
  font-family: var(--font-text); font-size: 0.72rem; color: var(--muted-on-dark);
  border: 1px solid rgba(255,255,255,0.18); padding: 0.3rem 0.65rem; border-radius: 999px;
  letter-spacing: 0.05em;
}

/* Franja de cifras dentro del héroe */
.stats {
  position: relative; z-index: 1;
  display: grid; gap: 1px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius);
  margin-top: clamp(2.4rem, 5vw, 3.5rem); overflow: hidden;
}
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255,255,255,0.035); padding: 1.5rem 1.3rem; text-align: left; }
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--white); letter-spacing: -0.01em;
}
.stat span { font-size: 0.82rem; color: var(--muted-on-dark); }

/* ---------- Dispositivo animado ---------- */

.device { width: 100%; height: auto; }
.device .flow { stroke: var(--cyan); stroke-width: 2; fill: none; opacity: 0.9; }
.device .shell { fill: none; stroke: rgba(255,255,255,0.75); stroke-width: 2.5; }
.device .core { fill: var(--white); }
.device .bubble { fill: var(--cyan); opacity: 0; }
.device .label { font-family: var(--font-text); font-size: 12px; fill: var(--muted-on-dark); }
.device .tick { stroke: rgba(255,255,255,0.25); stroke-width: 1; }

@media (prefers-reduced-motion: no-preference) {
  .device .flow { stroke-dasharray: 26 210; animation: flow 2.8s linear infinite; }
  .device .flow:nth-child(2n) { animation-delay: -0.9s; }
  .device .flow:nth-child(3n) { animation-delay: -1.7s; }
  .device .bubble { animation: implode 2.8s ease-in infinite; }
  .device .bubble:nth-child(2n) { animation-delay: -0.6s; }
  .device .bubble:nth-child(3n) { animation-delay: -1.3s; }
  .device .bubble:nth-child(5n) { animation-delay: -2.1s; }
}
@keyframes flow { to { stroke-dashoffset: -236; } }
@keyframes implode {
  0%   { opacity: 0; transform: scale(0.2); }
  35%  { opacity: 1; transform: scale(1); }
  62%  { opacity: 1; transform: scale(1.1); }
  70%  { opacity: 0; transform: scale(0.1); }
  100% { opacity: 0; transform: scale(0.1); }
}
.device .bubble { transform-box: fill-box; transform-origin: center; }

/* ---------- Secciones ---------- */

.section--paper { background: var(--cream); }
.section--dark {
  background:
    radial-gradient(900px 460px at 90% 0%, rgba(62,207,234,0.10), transparent 55%),
    linear-gradient(175deg, var(--ink) 0%, var(--ink-mid) 100%);
  color: var(--cream);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: var(--muted-on-dark); }
.section--dark a { color: var(--cyan); }
.section--dark .eyebrow { color: var(--cyan); }

.section-head { max-width: 42ch; margin-bottom: clamp(2.6rem, 4vw, 3.6rem); }

/* Filas de sector: índice con jerarquía, no tarjetas sueltas */
.sectors { border-top: 1px solid var(--line); }
.sector {
  display: grid; gap: 0.5rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(1.7rem, 2.8vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  position: relative; transition: padding-left 220ms ease;
}
@media (min-width: 880px) {
  .sector { grid-template-columns: 21rem minmax(0, 1fr) auto; align-items: center; }
}
.sector::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--sector-color, var(--cyan));
  transition: width 260ms ease;
}
.sector:hover, .sector:focus-visible { padding-left: 1.1rem; }
.sector:hover::before, .sector:focus-visible::before { width: 4px; }
.sector h3 { margin: 0; }
.sector p { margin: 0; color: var(--muted); max-width: 52ch; }
.sector__go {
  font-family: var(--font-text); font-weight: 700; font-size: 0.92rem;
  color: var(--sector-color, var(--accent-dark)); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.sector__go::after { content: "→"; transition: transform 200ms ease; }
.sector:hover .sector__go::after { transform: translateX(4px); }

/* Icono pequeño de sector, junto al título de la fila */
.sector__icon {
  width: 46px; height: 46px; flex-shrink: 0; padding: 9px;
  stroke: var(--sector-color, var(--accent-dark)); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, var(--sector-color, var(--accent-dark)) 10%, transparent);
  border-radius: 999px;
}
.sector__head { display: flex; align-items: center; gap: 1rem; }

/* Proceso en pasos: círculo con número */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--four { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem 2.1rem; box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.step:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent-dark) 35%, var(--line)); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--ink); color: var(--cyan);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { margin: 0; font-size: 0.98rem; color: var(--muted); }
.section--dark .step { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.section--dark .step:hover { border-color: rgba(62,207,234,0.4); }
.section--dark .step p { color: var(--muted-on-dark); }
.section--dark .step::before { background: var(--cyan); color: var(--ink); }

/* Dos columnas */
.split { display: grid; gap: clamp(2.2rem, 4vw, 3.8rem); }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, 1fr); } }

/* Iconografía en tarjeta */
.icon {
  width: 26px; height: 26px; flex-shrink: 0;
  stroke: var(--accent-dark); fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.section--dark .icon { stroke: var(--cyan); }

.icon-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .icon-grid--two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .icon-grid--three { grid-template-columns: repeat(3, 1fr); } }
.icon-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.3rem 1.3rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.icon-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-dark) 30%, var(--line)); }
.icon-card .icon {
  background: color-mix(in srgb, var(--accent-dark) 9%, transparent);
  border-radius: 999px; padding: 8px; width: 40px; height: 40px; stroke-width: 1.5;
}
.icon-card h4 { font-family: var(--font-text); font-weight: 700; font-size: 1rem; margin: 0 0 0.3rem; color: var(--text); }
.icon-card p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.section--dark .icon-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.section--dark .icon-card:hover { border-color: rgba(62,207,234,0.4); }
.section--dark .icon-card h4 { color: var(--white); }
.section--dark .icon-card p { color: var(--muted-on-dark); }
.section--dark .icon-card .icon { background: rgba(62,207,234,0.12); }

/* Listas simples con marca (lo que hace / no hace) */
.claim-list { list-style: none; margin: 0; padding: 0; }
.claim-list li { padding: 0.85rem 0 0.85rem 1.7rem; border-bottom: 1px solid var(--line); position: relative; }
.claim-list li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem; width: 9px; height: 9px;
  border-radius: 999px; background: var(--accent-dark);
}
.claim-list--no li::before { background: var(--muted); }
.section--dark .claim-list li { border-color: rgba(255,255,255,0.1); }
.section--dark .claim-list li::before { background: var(--cyan); }
.section--dark .claim-list--no li::before { background: var(--muted-on-dark); }

/* Evidencia / prueba social */
.evidence { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .evidence { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .evidence--two { grid-template-columns: repeat(2, 1fr) !important; max-width: 760px; } }
.evidence article {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--cyan); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.9rem;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.evidence article:hover { transform: translateY(-3px); background: rgba(255,255,255,0.07); border-color: rgba(62,207,234,0.4); }

/* Variante de evidencia sobre fondo claro (testimonios fuera de section--dark) */
.evidence--light article {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--accent-dark);
  box-shadow: var(--shadow-card);
}
.evidence--light article:hover { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-card-hover); }
.evidence--light h3 { color: var(--text); }
.evidence--light p { color: var(--muted); }
.evidence h3 { font-size: 1.1rem; }
.evidence p { font-size: 0.97rem; }
.figure {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -0.02em;
  color: var(--white); display: block; margin-bottom: 0.4rem;
}
.figure small { display: block; font-family: var(--font-text); font-weight: 400; font-size: 0.86rem; color: var(--muted-on-dark); letter-spacing: 0; margin-top: 0.35rem; }
.source-note { font-size: 0.86rem; color: var(--muted-on-dark); max-width: 74ch; margin-top: 2.5rem; }

/* Cita destacada (testimonio) */
.quote { position: relative; margin: 0; padding-left: clamp(1.4rem, 3vw, 2.2rem); border-left: 3px solid var(--accent-dark); }
.quote p {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.3rem, 1.6vw + 0.6rem, 1.8rem); line-height: 1.35;
  color: var(--text); max-width: 34ch;
}
.quote cite { font-style: normal; font-size: 0.9rem; color: var(--muted); }
.section--dark .quote p { color: var(--white); }
.section--dark .quote cite { color: var(--muted-on-dark); }

/* Tabla técnica */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--cream-d); font-family: var(--font-text); font-weight: 700; color: var(--text); }
tbody th { font-family: var(--font-display); font-weight: 600; color: var(--text); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
td.pending { color: var(--muted); font-style: italic; }

/* Tarjetas de producto */
.product-grid { display: grid; gap: 1.4rem; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid--three { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.8rem 2.1rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent-dark) 35%, var(--line)); }
.product-card__badge {
  align-self: flex-start; font-family: var(--font-text); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent-dark) 10%, transparent);
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.product-card svg.icon { width: 44px; height: 44px; stroke-width: 1.4; background: none; padding: 0; }
.product-card h3 { margin: 0; }
.product-card__specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; color: var(--muted); }
.product-card__specs li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.product-card__specs li:first-child { border-top: none; padding-top: 0; }
.product-card__specs strong { color: var(--text); font-weight: 600; }
.product-card__cta { margin-top: auto; font-family: var(--font-text); font-weight: 700; font-size: 0.92rem; color: var(--accent-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.product-card__cta::after { content: "→"; transition: transform 200ms ease; }
.product-card:hover .product-card__cta::after { transform: translateX(4px); }

/* Bandas de cierre */
.cta-band {
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(62,207,234,0.14), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 140%);
  color: var(--white);
}
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: var(--muted-on-dark); }

/* Formulario */
.form-grid { display: grid; gap: 1.2rem; max-width: 760px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-dark) 16%, transparent); outline: none;
}
.form-note { font-size: 0.88rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-size: 0.95rem; }

/* Pie */
.site-foot { background: var(--ink); color: var(--muted-on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.site-foot a { color: var(--cream); text-decoration: none; }
.site-foot a:hover { color: var(--cyan); }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot-grid h4 { font-family: var(--font-text); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; font-size: 0.95rem; }
.foot-legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.85rem; }

/* Ilustraciones demo por sector */
.illus { width: 100%; height: auto; display: block; }

/* Testimonios */
.testimonial-grid { display: grid; gap: 1.4rem; }
@media (min-width: 700px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonial-grid--three { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.testimonial-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent-dark) 30%, var(--line)); }
.testimonial-card .stars { color: #f0a93b; font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-card blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.05rem; line-height: 1.5; color: var(--text);
}
.testimonial-card__meta { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.testimonial-card__avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-text); font-weight: 700; font-size: 0.82rem; flex-shrink: 0;
}
.testimonial-card__meta strong { display: block; font-size: 0.92rem; color: var(--text); }
.testimonial-card__meta span { display: block; font-size: 0.8rem; color: var(--muted); }
.testimonial-card__stat {
  margin-left: auto; text-align: right; font-family: var(--font-display); font-weight: 600;
  color: var(--accent-dark); font-size: 1.15rem; line-height: 1;
}
.testimonial-card__stat small {
  display: block; font-family: var(--font-text); font-weight: 400; font-size: 0.66rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.3rem;
}

/* Vídeos */
.video-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video-card { text-decoration: none; color: inherit; display: block; }
.video-card__thumb {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16/9; background: rgba(255,255,255,0.06);
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 260ms ease; }
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-card__play span {
  width: 42px; height: 42px; border-radius: 999px; background: rgba(6,21,38,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}
.video-card:hover .video-card__play span { background: var(--cyan); transform: scale(1.08); }
.video-card__play svg { width: 15px; height: 15px; fill: var(--white); margin-left: 2px; }
.video-card:hover .video-card__play svg { fill: var(--ink); }
.video-card__title { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted-on-dark); line-height: 1.35; }

/* Pills de características */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.pill {
  font-family: var(--font-text); font-weight: 600; font-size: 0.82rem;
  color: var(--accent-dark); background: color-mix(in srgb, var(--accent-dark) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-dark) 22%, transparent);
  padding: 0.4rem 0.85rem; border-radius: 999px;
}
.section--dark .pill { color: var(--cyan); background: rgba(62,207,234,0.1); border-color: rgba(62,207,234,0.28); }

/* Mini-tiles de aplicaciones (categorías paralelas, no pasos) */
.tile-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.tile {
  background: var(--white); padding: 1.5rem 1.2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.tile .icon { stroke: var(--accent-dark); width: 28px; height: 28px; }
.tile span { font-family: var(--font-text); font-weight: 600; font-size: 0.88rem; color: var(--text); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; z-index: 100; background: var(--white); color: var(--text); padding: 0.6rem 1rem; }

/* ---- Héroes sobre vídeo: sin velo, texto blanco, CTA azul oscuro ---- */
.hero .eyebrow { color: #fff; }
.hero h1 span, .hero .lead, .hero p:not(.lead):not(.eyebrow) { color: #fff; }
.hero h1, .hero .lead, .hero .eyebrow, .hero .btn--ghost { text-shadow: 0 1px 2px rgba(0,0,0,0.30), 0 2px 22px rgba(0,0,0,0.35); }
.site-head:not(.is-solid) .nav a:not(.btn) { text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 2px 14px rgba(0,0,0,0.3); }
.site-head:not(.is-solid) .brand__logo--light { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
.hero--video::after { display: none; }
.hero .stat { background: rgba(6,21,38,0.34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .stat span { color: #fff; }

/* ==========================================================================
   v3 — Rediseño de contenidos (oct. 2026)
   Bloques azules, titulares con barra lateral, tarjetas fotográficas con «Más +»,
   catálogo de productos por categoría, selector de sectores y tarjetas numeradas.
   Los héroes (vídeo / animación) no se modifican.
   ========================================================================== */

:root {
  --blue: #0b3f6d;      /* azul CaviLife (logo) */
  --blue-700: #082f53;
  --blue-900: #061f38;
  --blue-soft: #2aa3db;  /* celeste del logo */
  --sky: #eef5f9;
  --sky-2: #d9e8f1;
  --text: #12324f;
  --muted: #566e80;
  --line: #d5e3eb;
}

body { color: var(--text); }
h2, h3 { color: var(--blue-900); }
h2 { font-weight: 500; letter-spacing: -0.026em; }
.lead { color: var(--muted); }
a { color: var(--blue); }

.btn { border-radius: 999px; box-shadow: none; padding: 0.82rem 1.55rem; font-weight: 600; }
.btn:hover { transform: none; }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--light { color: var(--blue); }
.btn--light:hover { background: var(--sky-2); border-color: var(--sky-2); color: var(--blue-900); }

section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.section--paper { background: var(--sky); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--blue, .section--dark {
  background: var(--blue); color: #fff;
}
.section--dark { background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue) 100%); }
.section--blue h2, .section--blue h3, .section--dark h2, .section--dark h3 { color: #fff; }
.section--blue p, .section--dark p { color: rgba(255,255,255,0.84); }
.section--blue a:not(.btn), .section--dark a:not(.btn) { color: #fff; }

.site-foot { background: var(--blue-900); }

@media (max-width: 1080px) {
  :root { --head-h: 64px; }
  .site-head.is-solid .site-head__inner { min-height: var(--head-h); }
  .brand__logo, .site-head.is-solid .brand__logo { height: 38px; }
  .nav-toggle { display: block; order: 3; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%); transition: transform 220ms ease;
    max-height: calc(100vh - var(--head-h)); overflow-y: auto;
    box-shadow: 0 20px 30px -20px rgba(6,21,38,0.2);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a, .site-head.is-solid .nav a { width: 100%; padding-block: 0.9rem; border-bottom: 1px solid var(--line); color: var(--text); text-shadow: none !important; }
  .nav .btn { margin-top: 1rem; width: 100%; color: #fff !important; }
}
@media (min-width: 1081px) and (max-width: 1220px) { .nav { gap: 1.25rem; } .nav a { font-size: 0.9rem; } }

/* ---------- Titulares con barra lateral ---------- */
.s-head {
  border-left: 3px solid var(--blue);
  padding: 0.15rem 0 0.15rem clamp(1.1rem, 2vw, 1.6rem);
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem); max-width: 50rem;
}
.s-head .eyebrow { margin-bottom: 0.7rem; color: var(--blue); font-size: 0.74rem; }
.s-head .eyebrow::before { display: none; }
.s-head h2 { margin: 0; color: var(--blue); font-size: clamp(1.8rem, 1.9vw + 1rem, 2.7rem); }
.s-head p { margin: 0.9rem 0 0; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.s-head--light { border-color: rgba(255,255,255,0.6); }
.s-head--light .eyebrow { color: rgba(255,255,255,0.8); }
.s-head--light h2 { color: #fff; }
.s-head--light p { color: rgba(255,255,255,0.84); }
.s-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.s-row .s-head { margin-bottom: 0; }

/* ---------- Enlace «Más +» ---------- */
.more {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 0.92rem; color: var(--blue); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.plus {
  width: 22px; height: 22px; border-radius: 50%; background: var(--blue);
  position: relative; flex: none; display: inline-block; transition: transform 260ms ease, background 200ms ease;
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px;
  background: #fff; border-radius: 1px; transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.more:hover .plus, a:hover > .plus { transform: rotate(90deg); }
.more--light { color: #fff; }
.more--light .plus { background: #fff; }
.more--light .plus::before, .more--light .plus::after { background: var(--blue); }

/* ---------- Declaración de entrada ---------- */
.statement { display: grid; gap: 2.4rem; align-items: end; }
@media (min-width: 960px) { .statement { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }
.statement__text {
  border-left: 3px solid var(--blue); padding-left: clamp(1.1rem, 2vw, 1.6rem);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 1.1vw + 0.95rem, 1.75rem); line-height: 1.42; letter-spacing: -0.012em;
  color: var(--blue); max-width: 42ch; margin: 0;
}
.statement__text strong { font-weight: 600; }
.statement__aside { display: flex; flex-direction: column; gap: 1.8rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.facts dt { font-family: var(--font-display); font-size: clamp(1.5rem, 1.4vw + 0.8rem, 2.1rem); font-weight: 500; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.facts dd { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Selector de sectores (panel azul + imagen) ---------- */
.switch { display: grid; background: var(--blue); color: #fff; padding: 0; overflow: hidden; }
@media (min-width: 960px) { .switch { grid-template-columns: 1fr 1fr; min-height: min(90vh, 860px); } }
.switch__panel { padding: clamp(3.2rem, 6vw, 5.5rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 960px) { .switch__panel { padding-right: clamp(2rem, 4vw, 4rem); } }
.switch__intro { border-left: 3px solid var(--blue-soft); padding-left: clamp(1.1rem, 2vw, 1.6rem); margin-bottom: 2.6rem; max-width: 30rem; }
.switch__intro h2 { color: #fff; font-size: clamp(1.9rem, 2vw + 1rem, 2.7rem); margin-bottom: 0.8rem; }
.switch__intro p { color: rgba(255,255,255,0.9); font-size: 1.12rem; margin: 0; }
.switch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; max-width: 22rem; }
.switch__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.72rem 0.8rem 0.72rem 1.1rem; border-radius: 999px; background: transparent; border: 0;
  color: rgba(255,255,255,0.9); font: inherit; font-size: 1rem; cursor: pointer; text-align: left;
  transition: background 220ms ease, color 220ms ease;
}
.switch__btn .plus { background: #fff; }
.switch__btn .plus::before, .switch__btn .plus::after { background: var(--blue); }
.switch__btn:hover, .switch__btn[aria-pressed="true"] { background: #fff; color: var(--blue); }
.switch__btn:hover .plus, .switch__btn[aria-pressed="true"] .plus { background: var(--blue); transform: rotate(90deg); }
.switch__btn:hover .plus::before, .switch__btn:hover .plus::after,
.switch__btn[aria-pressed="true"] .plus::before, .switch__btn[aria-pressed="true"] .plus::after { background: #fff; }
.switch__desc { margin-top: 2rem; max-width: 26rem; min-height: 8.5rem; }
.switch__desc > div[hidden] { display: none; }
.switch__desc p { color: rgba(255,255,255,0.86); font-size: 0.98rem; margin: 0 0 1rem; }
.switch__media { position: relative; min-height: 62vw; background: var(--blue-900); }
@media (min-width: 960px) { .switch__media { min-height: 0; } }
@media (max-width: 959px) { .switch__media { order: -1; } }
.switch__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05); transition: opacity 700ms ease, transform 1400ms ease;
}
.switch__media img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Rejilla de tarjetas fotográficas ---------- */
.media-grid { display: grid; gap: clamp(2.4rem, 4vw, 3.4rem) clamp(1.2rem, 2vw, 1.8rem); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 1100px) { .media-grid--4 { grid-template-columns: repeat(4, 1fr); } .media-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.media-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.media-card__img { aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--sky-2); margin-bottom: 1.4rem; }
.media-card__img--wide { aspect-ratio: 4 / 3; }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.media-card:hover .media-card__img img { transform: scale(1.05); }
.media-card h3 { font-size: clamp(1.35rem, 0.9vw + 1rem, 1.7rem); font-weight: 400; color: var(--blue); margin: 0 0 0.65rem; }
.media-card p { font-size: 0.95rem; color: var(--muted); margin: 0 0 1.5rem; }
.media-card .more { margin-top: auto; }
.media-card__tag { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--blue); margin-bottom: 0.5rem; }

/* ---------- Tarjetas numeradas sobre fotografía ---------- */
.numbered { position: relative; overflow: hidden; color: #fff; background: var(--blue-900) center / cover no-repeat; }
.numbered::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,31,56,0.62) 0%, rgba(6,31,56,0.30) 100%); }
.numbered > .wrap { position: relative; }
.ncards { display: grid; gap: 0; }
@media (min-width: 700px) { .ncards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .ncards { grid-template-columns: repeat(4, 1fr); align-items: start; }
  .ncard:nth-child(1) { margin-top: 5.5rem; }
  .ncard:nth-child(3) { margin-top: 8rem; }
  .ncard:nth-child(4) { margin-top: 2.5rem; }
}
.ncard { min-height: clamp(280px, 28vw, 390px); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; }
.ncard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.ncard h3 { font-size: clamp(1.3rem, 0.9vw + 1rem, 1.6rem); font-weight: 400; color: inherit; margin: 0; max-width: 13ch; }
.ncard__num { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.ncard p { margin: auto 0 0; font-size: 0.95rem; color: inherit; opacity: 0.9; }
.ncard--blue { background: var(--blue); }
.ncard--glass { background: rgba(255,255,255,0.14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ncard--white { background: #fff; color: var(--blue); }
.ncard--white p { color: var(--muted); opacity: 1; }
.ncard--navy { background: var(--blue-900); }

/* ---------- Catálogo de productos ---------- */
.catalog { display: grid; gap: 1.8rem; }
@media (min-width: 960px) { .catalog { grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.8rem, 3vw, 2.8rem); align-items: start; } }
.catalog__nav { background: var(--sky); padding: 1.1rem 1.1rem 1.4rem; border-radius: 4px; }
.section--paper .catalog__nav { background: #fff; }
@media (min-width: 960px) { .catalog__nav { position: sticky; top: 92px; } }
.catalog__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.catalog__nav button {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; width: 100%;
  padding: 0.85rem 0.15rem; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--blue); font: inherit; font-size: 0.95rem; cursor: pointer; text-align: left;
  transition: color 160ms ease, padding 200ms ease;
}
.catalog__nav button small { color: var(--muted); font-size: 0.78rem; }
.catalog__nav button:hover { padding-left: 0.5rem; }
.catalog__nav button[aria-pressed="true"] { font-weight: 700; color: var(--blue-900); padding-left: 0.5rem; box-shadow: inset 3px 0 0 var(--blue); }
@media (max-width: 959px) {
  .catalog__nav { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0 0.6rem; background: none !important; scrollbar-width: none; }
  .catalog__label { display: none; }
  .catalog__nav button { width: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1rem; background: #fff; }
  .catalog__nav button:hover { padding-left: 1rem; }
  .catalog__nav button[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: none; padding-left: 1rem; border-color: var(--blue); }
  .catalog__nav button[aria-pressed="true"] small { color: rgba(255,255,255,0.8); }
}
.catalog__grid { display: grid; gap: 2.2rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.prod { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 1rem; }
.prod[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .prod.is-shown { animation: prodIn 420ms ease both; } }
@keyframes prodIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.prod__img {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 1.4rem; margin-bottom: 1.3rem; overflow: hidden; border-radius: 4px;
}
.section:not(.section--paper) .prod__img, main > section:not(.section--paper) .prod__img { background: var(--sky); }
.prod__img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 500ms ease; }
.prod__img--cover { padding: 0; }
.prod__img--cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.prod:hover .prod__img img { transform: scale(1.05); }
.prod__badge {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 1; background: var(--blue); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: 999px;
}
.prod h3 { font-size: clamp(1.3rem, 0.7vw + 1rem, 1.6rem); font-weight: 400; color: var(--blue); margin: 0 0 0.4rem; }
.prod__cat { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); margin: 0 0 0.9rem; }
.prod p { font-size: 0.92rem; color: var(--muted); margin: 0 0 1.1rem; }
.prod__specs { list-style: none; margin: 0 0 1.4rem; padding: 0; font-size: 0.84rem; display: grid; gap: 0.4rem; color: var(--muted); }
.prod__specs li { display: flex; justify-content: space-between; gap: 0.8rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.4rem; }
.prod__specs strong { color: var(--blue-900); font-weight: 600; text-align: right; }
.prod__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1rem; flex-wrap: wrap; }
.prod__quote { font-size: 0.84rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.prod__quote:hover { color: var(--blue); }

/* ---------- Producto destacado ---------- */
.spotlight { display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .spotlight { grid-template-columns: 1.1fr 1fr; } }
.spotlight__media {
  position: relative; background: #fff; border-radius: 6px; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 3.2rem);
}
main > section:not(.section--paper) .spotlight__media { background: var(--sky); }
.spotlight__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.spotlight h3 { font-size: clamp(1.9rem, 1.6vw + 1.1rem, 2.6rem); font-weight: 400; color: var(--blue); margin: 0 0 0.5rem; }
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; margin: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.spec-list div { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 0.78rem; color: var(--muted); }
.spec-list dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--blue-900); font-size: 0.98rem; }

/* ---------- Banda de cifras ---------- */
.statband { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.2); }
@media (min-width: 900px) { .statband { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.statband > div { background: var(--blue); padding: clamp(1.4rem, 2.5vw, 2.2rem) clamp(1.1rem, 2vw, 1.6rem); }
.section--dark .statband > div { background: #0d2f7a; }
.statband strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 2.6vw + 0.6rem, 3rem); letter-spacing: -0.035em; color: #fff; line-height: 1; }
.statband span { display: block; margin-top: 0.7rem; font-size: 0.9rem; color: rgba(255,255,255,0.84); }

/* ---------- Componentes existentes, versión plana ---------- */
.icon-grid { gap: 0 2.2rem; }
.icon-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 1.4rem 0 1.2rem; }
.icon-card:hover { transform: none; box-shadow: none; border-color: var(--blue); }
.icon-card .icon { stroke: var(--blue); background: var(--sky); }
.section--paper .icon-card .icon { background: #fff; }
.icon-card h4 { color: var(--blue-900); }
.section--blue .icon-card, .section--dark .icon-card { background: transparent; border-color: rgba(255,255,255,0.22); }
.section--blue .icon-card:hover, .section--dark .icon-card:hover { border-color: #fff; }
.section--blue .icon-card .icon, .section--dark .icon-card .icon { stroke: #fff; background: rgba(255,255,255,0.12); }
.section--blue .icon-card h4, .section--dark .icon-card h4 { color: #fff; }
.section--blue .icon-card p, .section--dark .icon-card p { color: rgba(255,255,255,0.8); }

.steps { gap: 1.2rem; }
.step { background: var(--sky); border: 0; border-top: 3px solid var(--blue); border-radius: 0; box-shadow: none; padding: 1.5rem 1.4rem 1.8rem; position: relative; }
.section--paper .step { background: #fff; }
.step:hover { transform: none; box-shadow: none; }
.step::before {
  position: absolute; top: 1.35rem; right: 1.4rem; width: auto; height: auto; margin: 0;
  background: none; color: var(--blue); font-size: 1.35rem; font-weight: 400;
  content: counter(step, decimal-leading-zero) ".";
}
.step h3 { color: var(--blue); font-weight: 500; font-size: 1.22rem; max-width: 72%; margin-bottom: 2.2rem; }
.step p { color: var(--muted); }
.section--blue .step, .section--dark .step { background: rgba(255,255,255,0.08); border-top-color: #fff; }
.section--blue .step::before, .section--dark .step::before { background: none; color: #fff; }
.section--blue .step h3, .section--dark .step h3 { color: #fff; }
.section--blue .step p, .section--dark .step p { color: rgba(255,255,255,0.8); }

.claim-list li { border-color: var(--line); }
.claim-list li::before { background: var(--blue); }
.section--blue .claim-list li, .section--dark .claim-list li { border-color: rgba(255,255,255,0.2); }
.section--blue .claim-list li::before, .section--dark .claim-list li::before { background: #fff; }

.evidence article { border-radius: 4px; border-top-width: 3px; border-top-color: #fff; background: rgba(255,255,255,0.08); }
.evidence article:hover { transform: none; border-color: rgba(255,255,255,0.4); border-top-color: #fff; }
.evidence--light article { background: var(--sky); border: 0; border-top: 3px solid var(--blue); box-shadow: none; }
.evidence--light article:hover { background: var(--sky); box-shadow: none; }
.evidence--light h3 { color: var(--blue); }
.source-note { color: rgba(255,255,255,0.7); }
main > section:not(.section--blue):not(.section--dark) .source-note { color: var(--muted); }

.testimonial-card { background: var(--sky); border: 0; border-radius: 4px; box-shadow: none; }
.section--paper .testimonial-card { background: #fff; }
.testimonial-card:hover { transform: none; box-shadow: none; }
.testimonial-card blockquote { color: var(--blue-900); font-style: normal; font-weight: 400; }
.testimonial-card__avatar { background: var(--blue); color: #fff; }
.testimonial-card__stat { color: var(--blue); }

.quote { border-left-color: var(--blue); }
.quote p { font-style: normal; font-weight: 400; color: var(--blue); }

.photo-frame { border-radius: 6px; box-shadow: none; }
.tile-grid { border-radius: 4px; }
.tile .icon { stroke: var(--blue); }
.pill { color: var(--blue); background: #fff; border-color: var(--line); }
.section--paper .pill { background: #fff; }

.table-wrap { border-radius: 4px; box-shadow: none; }
thead th { background: var(--sky); color: var(--blue-900); }

.video-card__title { color: rgba(255,255,255,0.86); }
.video-card:hover .video-card__play span { background: #fff; }
.video-card:hover .video-card__play svg { fill: var(--blue); }

/* ---------- Logos de distribuidores ---------- */
.logo-row { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.logo-card { background: #fff; border-radius: 4px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; text-decoration: none; color: inherit; border-top: 3px solid transparent; transition: border-color 200ms ease; }
.logo-card:hover { border-top-color: var(--blue); }
.logo-card img { height: 46px; width: auto; object-fit: contain; align-self: flex-start; }
.logo-card h3 { font-size: 1.15rem; margin: 0; color: var(--blue); font-weight: 500; }
.logo-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Cierre comercial ---------- */
.cta-final { display: grid; background: var(--blue); color: #fff; overflow: hidden; border-radius: 6px; }
@media (min-width: 900px) { .cta-final { grid-template-columns: 1.15fr 1fr; } }
.cta-final__body { padding: clamp(2.2rem, 5vw, 4.2rem); display: flex; flex-direction: column; justify-content: center; }
.cta-final__body .eyebrow { color: rgba(255,255,255,0.8); }
.cta-final__body .eyebrow::before { display: none; }
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 2vw + 1rem, 2.7rem); max-width: 18ch; }
.cta-final p { color: rgba(255,255,255,0.86); max-width: 46ch; }
.cta-final__media { min-height: 260px; position: relative; }
.cta-final__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-final .btn-row { margin-top: 0.8rem; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

/* ---------- Bloques de dos columnas con imagen ---------- */
.media-split { display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .media-split { grid-template-columns: 1fr 1fr; } .media-split--rev > :first-child { order: 2; } }
.media-split__img { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky-2); }
.media-split__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-split__img--contain { background: #fff; display: flex; align-items: center; justify-content: center; padding: clamp(1.2rem, 3vw, 2.4rem); }
main > section:not(.section--paper) .media-split__img--contain { background: var(--sky); }
.section--blue .media-split__img--contain, .section--dark .media-split__img--contain { background: rgba(255,255,255,0.06); }
.media-split__img--contain img { object-fit: contain; }

/* ---------- Héroe de página interior (sin vídeo) ---------- */
.hero--page {
  background: radial-gradient(900px 480px at 85% -20%, rgba(42,163,219,0.32), transparent 60%), linear-gradient(120deg, var(--blue-900) 0%, var(--blue) 100%);
  padding-block: calc(var(--head-h) + clamp(2.6rem, 6vw, 4.5rem)) clamp(2.8rem, 6vw, 4.5rem);
}
.hero--page::after { display: none; }
.hero--page h1 { font-size: clamp(2.2rem, 3.2vw + 0.8rem, 3.6rem); max-width: 20ch; }
.hero--page .lead { color: rgba(255,255,255,0.88); max-width: 56ch; }
.crumbs { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 1.4rem; }
.crumbs a { color: #fff; text-decoration: none; }

/* ---------- Formulario ---------- */
.form-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.form-card { background: #fff; border-radius: 6px; padding: clamp(1.6rem, 4vw, 2.8rem); border-top: 3px solid var(--blue); }
.form-card .form-grid { max-width: none; }
.form-aside { background: var(--blue); color: #fff; border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.4rem); }
@media (min-width: 1000px) { .form-aside { position: sticky; top: 92px; } }
.form-aside h3 { color: #fff; font-weight: 500; font-size: 1.3rem; }
.form-aside p, .form-aside li { color: rgba(255,255,255,0.86); font-size: 0.95rem; }
.form-aside ol { padding-left: 1.2rem; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.form-aside hr { border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 1.6rem 0; }
.field input, .field select, .field textarea { border-radius: 6px; background: var(--sky); border-color: transparent; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--blue); }

/* ---------- Aparición al hacer scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.7,.2,1); }
  html.js .reveal.is-in { opacity: 1; transform: none; }
}
.form-layout > *, .form-card .form-grid > * { min-width: 0; }
.form-card .form-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .form-card .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
@media (max-width: 600px) { .prod__img { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   Tecnología animada (home) — corte interior del filtro, 3 pasos (15 oct. 2026)
   ========================================================================== */
.tech { background: #fff; overflow: hidden; }
.tech .s-row { margin-bottom: clamp(1rem, 2vw, 1.6rem); }
.tech__stage { --dur: 5200ms; }
.tech__frame { position: relative; overflow: hidden; }
.tech__visual { position: relative; width: 100%; max-width: 1180px; margin-inline: auto; }
.tech__visual > img { display: block; width: 100%; height: auto; }

/* Foco: oscurece el interior salvo la zona activa */
@property --cx { syntax: "<percentage>"; inherits: true; initial-value: 31%; }
.tech__visual { --cx: 31%; transition: --cx 900ms cubic-bezier(.4,0,.2,1); }
.tech__visual[data-step="2"] { --cx: 50%; }
.tech__visual[data-step="3"] { --cx: 66%; }
.tech__veil {
  position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(22% 42.9%, 26.4% 42.9%, 37.7% 33.9%, 60.9% 33.9%, 72.1% 42.9%, 77.3% 42.9%, 77.3% 74.1%, 72.1% 74.1%, 60.9% 83%, 37.7% 83%, 26.4% 74.1%, 22% 74.1%);
  background: radial-gradient(ellipse 10% 26% at var(--cx) 59%, rgba(3,18,42,0) 0%, rgba(3,18,42,0) 55%, rgba(3,18,42,0.55) 100%);
  opacity: 0; transition: opacity 700ms ease;
}
.tech.is-playing .tech__veil, .tech__visual.is-focus .tech__veil { opacity: 1; }

/* Rótulos de entrada / salida */
.tech__io {
  position: absolute; top: 31%; font-size: 0.82rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
}
.tech__io--in { left: 0.5%; }
.tech__io--out { right: 0.5%; }
.tech__io::after {
  content: ""; width: 22px; height: 2px; background: var(--blue-soft); border-radius: 2px;
  box-shadow: 6px 0 0 -0px transparent;
}
.tech__io--in::after { order: 0; }

/* Flujo de agua en las tuberías exteriores */
.tech__flow { position: absolute; top: 47%; height: 23%; width: 10.5%; overflow: hidden; mix-blend-mode: screen; pointer-events: none; }
.tech__flow--in { left: 0; }
.tech__flow--out { right: 0; }
.tech__flow i {
  position: absolute; left: 0; height: 2px; width: 45%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.95));
  transform: translateX(-120%); opacity: 0.9;
}
.tech__flow i:nth-child(1) { top: 12%; } .tech__flow i:nth-child(2) { top: 28%; }
.tech__flow i:nth-child(3) { top: 44%; } .tech__flow i:nth-child(4) { top: 58%; }
.tech__flow i:nth-child(5) { top: 72%; } .tech__flow i:nth-child(6) { top: 88%; }

/* Partículas que atraviesan el interior */
.tech__particles { position: absolute; left: 22%; width: 57%; top: 41%; height: 34%; mix-blend-mode: screen; pointer-events: none; }
.tech__particles i {
  position: absolute; left: 0; top: var(--y); width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 2px rgba(140,225,255,0.9); opacity: 0;
}
.tech__particles i:nth-child(1)  { --y: 8%;  --y2: 14%; }
.tech__particles i:nth-child(2)  { --y: 22%; --y2: 30%; }
.tech__particles i:nth-child(3)  { --y: 36%; --y2: 44%; }
.tech__particles i:nth-child(4)  { --y: 50%; --y2: 56%; }
.tech__particles i:nth-child(5)  { --y: 64%; --y2: 70%; }
.tech__particles i:nth-child(6)  { --y: 78%; --y2: 86%; }
.tech__particles i:nth-child(7)  { --y: 92%; --y2: 90%; }
.tech__particles i:nth-child(8)  { --y: 15%; --y2: 24%; }
.tech__particles i:nth-child(9)  { --y: 43%; --y2: 36%; }
.tech__particles i:nth-child(10) { --y: 70%; --y2: 62%; }
.tech__particles i:nth-child(11) { --y: 29%; --y2: 78%; }
.tech__particles i:nth-child(12) { --y: 85%; --y2: 20%; }

/* Zonas activas */
.tech__zone { position: absolute; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; }
.tech__zone--1 { left: 31%;  top: 59%; }
.tech__zone--2 { left: 50%;  top: 59.5%; width: 20%; }
.tech__zone--3 { left: 66%;  top: 59%; }
.tech__glow {
  position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(190,240,255,0.95) 0%, rgba(90,200,255,0.55) 32%, rgba(40,140,255,0) 68%);
  transition: opacity 600ms ease;
}
.tech__ring, .tech__orbit { position: absolute; inset: 18%; border-radius: 50%; opacity: 0; }
.tech__ring { border: 3px solid #fff; box-shadow: 0 0 14px 2px rgba(150,230,255,0.9), inset 0 0 10px rgba(150,230,255,0.7); mix-blend-mode: normal; }
.tech__orbit { inset: 12%; border: 3px dashed #fff; filter: drop-shadow(0 0 6px rgba(150,230,255,0.9)); transition: opacity 600ms ease; }

.tech__visual[data-step="1"] .tech__zone--1 .tech__glow,
.tech__visual[data-step="2"] .tech__zone--2 .tech__glow,
.tech__visual[data-step="3"] .tech__zone--3 .tech__glow { opacity: 1; }
.tech__visual[data-step="3"] .tech__zone--3 .tech__orbit { opacity: 1; }

/* Marcadores numerados con línea guía */
.tech__pin {
  position: absolute; top: 0; bottom: 52%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--blue-900);
  opacity: 0.45; transition: opacity 400ms ease;
}
.tech__pin--1 { left: 31%; }
.tech__pin--2 { left: 50%; bottom: 56%; }
.tech__pin--3 { left: 66%; bottom: 56%; }
.tech__num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: #fff; color: var(--blue); border: 2px solid var(--blue);
  transition: background 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.tech__label { font-family: var(--font-display); font-weight: 500; font-size: clamp(0.9rem, 0.6vw + 0.6rem, 1.15rem); line-height: 1.15; text-align: center; letter-spacing: -0.01em; }
.tech__line { flex: 1; width: 2px; background: var(--blue); position: relative; transform-origin: top; transform: scaleY(0.25); transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.tech__line::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); background: #fff; border: 2px solid var(--blue); box-shadow: 0 0 0 4px rgba(255,255,255,0.35); }
.tech__pin.is-active { opacity: 1; }
.tech__pin.is-active .tech__num { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(42,163,219,0.18); }
.tech__pin.is-active .tech__line { transform: scaleY(1); }
.tech__pin:hover { opacity: 1; }

/* Tarjetas de pasos */
.tech__steps { list-style: none; margin: clamp(1.6rem, 3vw, 2.6rem) 0 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 860px) { .tech__steps { grid-template-columns: repeat(3, 1fr); gap: 0; } .tech__steps li + li { border-left: 1px solid var(--line); } }
.tech__step {
  position: relative; width: 100%; height: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.5rem clamp(1rem, 2vw, 1.8rem) 1.8rem; background: none; border: 0; font: inherit; color: var(--text);
  opacity: 0.55; transition: opacity 400ms ease, background 400ms ease;
}
@media (max-width: 859px) { .tech__step { background: var(--sky); border-radius: 4px; } }
.tech__step[aria-pressed="true"] { opacity: 1; }
@media (min-width: 860px) { .tech__step[aria-pressed="true"] { background: linear-gradient(180deg, var(--sky) 0%, rgba(238,245,249,0) 100%); } }
.tech__step:hover { opacity: 1; }
.tech__icon { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; }
.tech__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tech__icon svg circle { fill: var(--blue-soft); stroke: none; }
.tech__step[data-go="2"] .tech__icon svg circle:first-child { fill: none; stroke: var(--blue); }
.tech__step-body { display: flex; flex-direction: column; gap: 0.3rem; }
.tech__step-n { font-family: var(--font-display); font-size: 0.85rem; color: var(--blue-soft); font-weight: 600; }
.tech__step strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 0.6vw + 0.9rem, 1.3rem); color: var(--blue-900); letter-spacing: -0.015em; line-height: 1.15; }
.tech__step-body > span:last-child { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.tech__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sky-2); overflow: hidden; }
.tech__bar::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.tech__step[aria-pressed="true"] .tech__bar::after { transform: scaleX(1); }

/* Banda de beneficios */
.tech__benefits {
  list-style: none; margin: clamp(2.2rem, 4vw, 3.4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--sky); border-radius: 6px; overflow: hidden;
}
@media (min-width: 960px) { .tech__benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tech__benefits li { display: flex; gap: 0.9rem; align-items: flex-start; padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1rem, 2vw, 1.5rem); }
.tech__benefits li + li { border-left: 1px solid var(--sky-2); }
@media (max-width: 959px) {
  .tech__benefits li:nth-child(3) { border-left: 0; }
  .tech__benefits li:nth-child(n+3) { border-top: 1px solid var(--sky-2); }
}
.tech__benefits svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tech__benefits strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue-900); }
.tech__benefits span { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.4; margin-top: 0.2rem; }

/* Móvil: el filtro se amplía y solo se ven los números */
@media (max-width: 759px) {
  .tech__visual { width: 150%; max-width: none; margin-left: -25%; }
  .tech__io, .tech__flow, .tech__label { display: none; }
  .tech__pin { top: 16%; gap: 0.2rem; }
  .tech__num { width: 30px; height: 30px; font-size: 0.9rem; }
  .tech__benefits { grid-template-columns: 1fr; }
  .tech__benefits li + li { border-left: 0; border-top: 1px solid var(--sky-2); }
}

/* Animaciones (solo si el usuario no pide reducir movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .tech.is-playing .tech__flow i { animation: techStreak 1.4s linear infinite; }
  .tech.is-playing .tech__flow i:nth-child(2n) { animation-duration: 1.1s; animation-delay: -0.5s; }
  .tech.is-playing .tech__flow i:nth-child(3n) { animation-duration: 1.7s; animation-delay: -0.9s; }
  .tech.is-playing .tech__particles i { animation: techTravel 3.4s cubic-bezier(.45,.05,.55,.95) infinite; }
  .tech.is-playing .tech__particles i:nth-child(2)  { animation-delay: -0.3s; }
  .tech.is-playing .tech__particles i:nth-child(3)  { animation-delay: -0.6s; animation-duration: 3s; }
  .tech.is-playing .tech__particles i:nth-child(4)  { animation-delay: -0.9s; }
  .tech.is-playing .tech__particles i:nth-child(5)  { animation-delay: -1.2s; animation-duration: 3.8s; }
  .tech.is-playing .tech__particles i:nth-child(6)  { animation-delay: -1.5s; }
  .tech.is-playing .tech__particles i:nth-child(7)  { animation-delay: -1.8s; animation-duration: 3.1s; }
  .tech.is-playing .tech__particles i:nth-child(8)  { animation-delay: -2.1s; }
  .tech.is-playing .tech__particles i:nth-child(9)  { animation-delay: -2.4s; animation-duration: 3.6s; }
  .tech.is-playing .tech__particles i:nth-child(10) { animation-delay: -2.7s; }
  .tech.is-playing .tech__particles i:nth-child(11) { animation-delay: -3s; animation-duration: 2.9s; }
  .tech.is-playing .tech__particles i:nth-child(12) { animation-delay: -3.2s; }
  .tech.is-playing .tech__visual[data-step="1"] .tech__zone--1 .tech__glow,
  .tech.is-playing .tech__visual[data-step="2"] .tech__zone--2 .tech__glow,
  .tech.is-playing .tech__visual[data-step="3"] .tech__zone--3 .tech__glow { animation: techPulse 1.8s ease-in-out infinite; }
  .tech.is-playing .tech__visual[data-step="2"] .tech__ring { animation: techShock 1.8s cubic-bezier(.2,.6,.3,1) infinite; }
  .tech.is-playing .tech__visual[data-step="2"] .tech__ring:nth-of-type(3) { animation-delay: 0.6s; }
  .tech.is-playing .tech__visual[data-step="2"] .tech__ring:nth-of-type(4) { animation-delay: 1.2s; }
  .tech.is-playing .tech__orbit { animation: techSpin 6s linear infinite; }
  .tech.is-auto .tech__step[aria-pressed="true"] .tech__bar::after { animation: techBar var(--dur) linear both; }
  .tech.is-paused .tech__step[aria-pressed="true"] .tech__bar::after { animation-play-state: paused; }
  .tech.is-playing .tech__pin.is-active .tech__num { animation: techPin 1.8s ease-in-out infinite; }
}
@keyframes techStreak { from { transform: translateX(-120%); } to { transform: translateX(260%); } }
@keyframes techTravel {
  0%   { left: 0;    top: var(--y);  opacity: 0; transform: scale(0.6); }
  12%  { opacity: 1; }
  48%  { left: 49%;  top: 50%; opacity: 1; transform: scale(1.5); }
  56%  { opacity: 0.4; transform: scale(0.5); }
  88%  { opacity: 1; transform: scale(0.9); }
  100% { left: 100%; top: var(--y2); opacity: 0; transform: scale(0.7); }
}
@keyframes techPulse { 0%, 100% { opacity: 0.75; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes techShock { 0% { opacity: 0.95; transform: scale(0.15); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes techSpin { to { transform: rotate(360deg); } }
@keyframes techBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes techPin { 0%, 100% { box-shadow: 0 0 0 6px rgba(42,163,219,0.18); } 50% { box-shadow: 0 0 0 11px rgba(42,163,219,0.06); } }

/* ---------- Banda «Hazte distribuidor» (piscinas) ---------- */
.dist-band { margin-top: clamp(1.8rem, 3vw, 2.6rem); background: #fff; border-left: 3px solid var(--blue); border-radius: 4px; padding: clamp(1.4rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2.2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.dist-band h3 { margin: 0 0 0.35rem; color: var(--blue); font-weight: 500; }
.dist-band p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 58ch; }

/* ---------- Formulario: selector de perfil ---------- */
.form-card [hidden], .form-aside [hidden] { display: none !important; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--blue-900); margin-bottom: 0.9rem; padding: 0; }
.choice__grid { display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .choice__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice__opt {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; cursor: pointer;
  background: var(--sky); border: 2px solid transparent; border-radius: 6px; padding: 1.1rem 1.1rem 1.2rem 1.1rem;
  transition: border-color 200ms ease, background 200ms ease;
}
.choice__opt:hover { border-color: var(--sky-2); }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--blue); background: #fff;
  margin-bottom: 0.35rem; box-sizing: border-box; transition: box-shadow 200ms ease;
}
.choice__opt:has(input:checked) { background: #fff; border-color: var(--blue); }
.choice__opt:has(input:checked)::before { box-shadow: inset 0 0 0 3px #fff; background: var(--blue); }
.choice__opt:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.choice__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; color: var(--blue-900); }
.choice__sub { font-size: 0.86rem; line-height: 1.45; color: var(--muted); }
.form-block, .form-common { padding: 0; }
#campos-sector { padding: 0; }

.dist-pick { background: var(--sky); border-radius: 6px; padding: 1.1rem 1.2rem; }
.dist-pick__title { margin: 0 0 0.8rem; font-weight: 600; font-size: 0.9rem; color: var(--blue-900); }
.dist-pick__row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.8rem; }
.dist-pick__row a { background: #fff; border-radius: 4px; padding: 0.6rem 0.9rem; display: grid; place-items: center; border: 1px solid transparent; transition: border-color 200ms ease; }
.dist-pick__row a:hover { border-color: var(--blue); }
.dist-pick__row img { height: 32px; width: auto; display: block; }
.dist-pick .form-note { margin: 0; }

.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.aside-list li { color: rgba(255,255,255,0.86); font-size: 0.95rem; padding-left: 1rem; border-left: 2px solid rgba(255,255,255,0.35); }
.aside-list strong { color: #fff; }

/* Fichas de producto: CTA a ancho completo, igual en todas las fichas */
.prod__actions { flex-direction: column; align-items: stretch; gap: 0.9rem; }
.prod__actions .more { align-self: flex-start; }
.prod__quote {
  display: block; text-align: center; text-decoration: none; color: var(--blue); font-size: 0.88rem; font-weight: 600;
  border: 1.5px solid var(--blue); border-radius: 999px; padding: 0.6rem 1rem; transition: background 200ms ease, color 200ms ease;
}
.prod__quote:hover { background: var(--blue); color: #fff; }

/* ==========================================================================
   Cabecera v4 (15 oct.): logo más grande y menú legible sobre vídeo
   ========================================================================== */
:root { --head-h: 110px; }
.site-head__inner { gap: 2rem; }
.brand__logo { height: 76px; }
.site-head.is-solid .site-head__inner { min-height: 80px; }
.site-head.is-solid .brand__logo { height: 56px; }
.site-foot .brand__logo { height: 46px; }

/* Velo degradado solo detrás de la cabecera (no oscurece el resto del vídeo) */
.site-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,22,44,0.62) 0%, rgba(4,22,44,0.34) 45%, rgba(4,22,44,0.10) 75%, rgba(4,22,44,0) 100%);
  transition: opacity 240ms ease;
}
.site-head.is-solid::before { opacity: 0; }

/* Menú en cápsula de cristal esmerilado sobre el vídeo (escritorio) */
@media (min-width: 1081px) {
  .nav {
    padding: 0.38rem 0.4rem 0.38rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
    transition: background 240ms ease, border-color 240ms ease;
  }
  .site-head:not(.is-solid) .nav {
    background: rgba(6,31,56,0.30);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    border-color: rgba(255,255,255,0.18);
  }
  .site-head:not(.is-solid) .nav a:not(.btn) { color: #fff; text-shadow: none; }
  .nav a.btn { padding: 0.7rem 1.4rem; }
}

@media (max-width: 1080px) {
  :root { --head-h: 80px; }
  .brand__logo, .site-head.is-solid .brand__logo { height: 54px; }
  .site-head.is-solid .site-head__inner { min-height: var(--head-h); }
  .site-head:not(.is-solid) .nav-toggle { background: rgba(6,31,56,0.30); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(255,255,255,0.25); }
}
@media (max-width: 420px) {
  .brand__logo, .site-head.is-solid .brand__logo { height: 48px; }
}

/* Cifras del héroe: 2 columnas en móvil (antes 1, ocupaban varias pantallas) */
@media (max-width: 699px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.1rem 1rem; }
}

/* ---------- Selector de idioma compacto (5 idiomas) — 18 nov ---------- */
.lang-switch { position: relative; display: flex; align-items: center; padding-left: 1.1rem; border-left: 1px solid rgba(255,255,255,0.35); }
.site-head.is-solid .lang-switch { border-left-color: var(--line); }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  font: 600 0.8rem/1 var(--font-text); letter-spacing: 0.06em; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
  padding: 0.42rem 0.6rem 0.42rem 0.55rem; transition: background 160ms ease, border-color 160ms ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.lang-switch__btn:hover, .lang-switch[data-open="true"] .lang-switch__btn { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.7); }
.lang-switch__btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lang-switch__btn svg { width: 15px; height: 15px; flex: none; }
.lang-switch__btn .chev { width: 10px; height: 10px; transition: transform 180ms ease; opacity: 0.8; }
.lang-switch[data-open="true"] .lang-switch__btn .chev { transform: rotate(180deg); }
.site-head.is-solid .lang-switch__btn { color: var(--text); background: transparent; border-color: var(--line); text-shadow: none; }
.site-head.is-solid .lang-switch__btn:hover, .site-head.is-solid .lang-switch[data-open="true"] .lang-switch__btn { border-color: var(--navy); background: rgba(11,63,109,0.05); }

.lang-switch__menu {
  position: absolute; top: calc(100% + 0.7rem); right: 0; z-index: 60; min-width: 12.5rem;
  margin: 0; padding: 0.4rem; list-style: none; background: #fff; border-radius: 14px;
  border: 1px solid rgba(6,31,56,0.08); box-shadow: 0 22px 48px -18px rgba(6,21,38,0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms;
}
.lang-switch[data-open="true"] .lang-switch__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease, transform 160ms ease; }
.nav .lang-switch__menu a, .site-head.is-solid .nav .lang-switch__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.62rem 0.75rem; border: 0; border-radius: 9px; opacity: 1;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0; color: var(--text); text-shadow: none;
}
.nav .lang-switch__menu a:hover { background: #eef5f9; color: var(--ink); }
.lang-switch__menu .ls-code { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.nav .lang-switch__menu a[aria-current="true"] { color: var(--navy); font-weight: 650; background: #eef5f9; }
.nav .lang-switch__menu a[aria-current="true"] .ls-code { color: var(--navy); }
.nav .lang-switch__menu a[aria-current="true"] .ls-code::before { content: "✓  "; color: #2aa3db; }

/* Móvil / tableta (menú desplegado): fila compacta de códigos, sin botón */
@media (max-width: 1080px) {
  .lang-switch { width: 100%; padding: 1.1rem 0 0; border-left: 0; }
  .lang-switch__btn { display: none; }
  .lang-switch__menu, .lang-switch[data-open="true"] .lang-switch__menu {
    position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; padding: 0;
    background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav .lang-switch__menu a, .site-head.is-solid .nav .lang-switch__menu a {
    width: auto; padding: 0.5rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  }
  .lang-switch__menu .ls-name { display: none; }
  .lang-switch__menu .ls-code { font-size: 0.82rem; color: var(--text); }
  .nav .lang-switch__menu a[aria-current="true"] { background: var(--navy); border-color: var(--navy); }
  .nav .lang-switch__menu a[aria-current="true"] .ls-code { color: #fff; }
  .nav .lang-switch__menu a[aria-current="true"] .ls-code::before { content: none; }
}
@media (min-width: 1081px) and (max-width: 1220px) { .lang-switch { padding-left: 0.7rem; } }
.nav a.btn { white-space: nowrap; }
/* Ajustes de especificidad del selector (cabecera transparente / móvil) */
.site-head .nav .lang-switch__menu a .ls-name { color: var(--text); text-shadow: none; }
.site-head .nav .lang-switch__menu a[aria-current="true"] .ls-name { color: var(--navy); }
@media (max-width: 1080px) {
  .site-head .nav .lang-switch__menu a[aria-current="true"], .site-head.is-solid .nav .lang-switch__menu a[aria-current="true"] { background: var(--navy); border-color: var(--navy); }
  .site-head .nav .lang-switch__menu a[aria-current="true"] .ls-code { color: #fff; }
}

/* Páginas legales */
.legal { max-width: 46rem; margin: 0 auto; line-height: 1.7; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 0.8rem; }
.legal h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: #0d3a6e; text-decoration: underline; word-break: break-word; }
mark.pendiente { background: #ffe58a; color: #5a4300; padding: 0 0.25em; border-radius: 3px; font-weight: 600; }
.foot-legal a { color: inherit; text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }
.form-legal { font-size: 0.78rem; line-height: 1.5; opacity: 0.85; margin-top: 0.6rem; }
.form-legal a { color: inherit; text-decoration: underline; }

/* WhatsApp: botón flotante (enlace directo wa.me, sin scripts ni cookies de terceros) */
.wa-float {
  position: fixed; z-index: 55;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 0.6rem;
  height: 56px; min-width: 56px; padding: 0 1.15rem 0 1rem; border-radius: 999px;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-float:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.26); }
.wa-float:focus-visible { outline: 3px solid #0d3a6e; outline-offset: 3px; }
@media (max-width: 899px) {
  .wa-float { padding: 0; justify-content: center; width: 56px; }
  .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
body:has(#nav[data-open="true"]) .wa-float { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
@media print { .wa-float { display: none; } }

/* ---- 18 nov · Legibilidad del texto pequeño sobre los vídeos del héroe ----
   Sin velo sobre el vídeo: el texto pequeño va en piezas de cristal esmerilado,
   el mismo lenguaje que la miniatura de vídeo (.vcard). */
.hero--video .eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem; margin-bottom: 1.4rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; color: #fff;
  background: rgba(6, 31, 56, 0.42); border: 1px solid rgba(255,255,255,0.26); border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  text-shadow: none;
}
.hero--video .eyebrow::before {
  width: 8px; height: 8px; border-radius: 50%; background: #3ecfea;
  box-shadow: 0 0 0 4px rgba(62,207,234,0.22);
}
.hero--video .lead {
  width: fit-content; max-width: 52ch; margin-top: 1.5rem;
  padding: 1.05rem 1.35rem 1.1rem 1.25rem;
  font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.18rem); font-weight: 500; line-height: 1.55; color: #fff;
  background: rgba(6, 31, 56, 0.44); border: 1px solid rgba(255,255,255,0.2); border-left: 3px solid #3ecfea;
  border-radius: 6px 16px 16px 6px;
  backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.6);
  text-shadow: none;
}
/* Subtítulo del h1 de portada: un punto más de contraste */
.hero--video h1 span { text-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 4px 26px rgba(0,0,0,0.45); }
/* Sin la franja de cifras, el bloque respira mejor algo más abajo del centro */
.hero--video .hero__actions { margin-top: 1.8rem; }
/* Navegadores sin backdrop-filter: fondo algo más opaco */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero--video .eyebrow, .hero--video .lead { background: rgba(6, 31, 56, 0.72); }
}
@media (max-width: 600px) {
  .hero--video .lead { width: auto; padding: 0.9rem 1rem 0.95rem; font-size: 1rem; }
  .hero--video .eyebrow { font-size: 0.68rem; }
}
