/* ==========================================================================
   RECAPT — Refresh 2026
   Sistema de acomodos y efectos tomado de grupocantec.com, con la paleta de
   Recapt: rojo de marca #A4150B, azul de marca #18359B y negro.
   ========================================================================== */

:root {
  /* Marca (del logo; no se tocan) */
  --rojo-marca:   #A4150B;
  --azul-marca:   #18359B;

  /* El rojo de marca sobre negro se queda corto de contraste para texto:
     para titulares y detalles sobre fondo oscuro se usa su versión luminosa,
     del mismo tono. Los botones sí van en el rojo de marca. */
  --acento:       #E3392B;
  --acento-suave: #EE5C4F;
  --acento-rgb:   227, 57, 43;
  --azul-vivo:    #3B5BD9;

  --fondo:        #070708;
  --fondo-2:      #101013;
  --fondo-3:      #18181C;
  --texto:        #FFFFFF;
  --texto-suave:  #A9A9B2;
  --linea:        rgba(255, 255, 255, .10);
  --linea-fuerte: rgba(255, 255, 255, .22);
  --lienzo:       #070708;
  --contra:       #0C0C0F;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-hero:  clamp(2.75rem, 1.2rem + 6.2vw, 6.5rem);
  --t-h1:    clamp(2.25rem, 1.2rem + 4.4vw, 4.75rem);
  --t-h2:    clamp(2.1rem, 1.2rem + 3.4vw, 4.25rem);
  --t-h3:    clamp(1.45rem, 1.05rem + 1.6vw, 2.4rem);
  --t-lead:  clamp(1.05rem, .98rem + .5vw, 1.35rem);
  --t-body:  clamp(.98rem, .95rem + .18vw, 1.075rem);
  --t-small: .875rem;
  --t-micro: .75rem;

  --pad-x:     clamp(1.25rem, .5rem + 4.5vw, 6rem);
  --section-y: clamp(4.5rem, 2rem + 9vw, 9.5rem);
  --maxw:      1440px;
  --arc:       14rem 14rem 14rem 1.25rem;
  --radius:    .875rem;
  --radius-s:  .5rem;
  --ring:      0 0 0 3px rgba(var(--acento-rgb), .45);
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --curva-claro: clamp(26px, 3vw, 54px);
  --cabecera:  5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-s); }
::selection { background: var(--acento); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--rojo-marca); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- La malla de fondo ---------- */
.malla {
  position: fixed; inset: 0; z-index: -1;
  display: block; width: 100%; height: 100%; pointer-events: none;
}

/* ---------- Secciones claras con curva ---------- */
.claro {
  --fondo:        #FFFFFF;
  --fondo-2:      #FBF7F6;
  --fondo-3:      #F5ECEA;
  --texto:        #16161F;
  --texto-suave:  #3D3D47;
  --linea:        #F1C9C4;
  --linea-fuerte: rgba(22, 22, 31, .28);
  --linea-tarjeta: #E4A49C;
  --acento:       #A4150B;          /* sobre blanco, el rojo de marca tal cual */
  position: relative;
  background: var(--fondo);
  color: var(--texto);
  overflow: hidden;
  border-bottom-left-radius: 50% var(--curva-claro);
  border-bottom-right-radius: 50% var(--curva-claro);
  padding-block: calc(var(--curva-claro) + clamp(1rem, 2.5vw, 2rem));
}
.claro::before {
  content: "";
  position: absolute; left: -1px; right: -1px; top: -1px;
  height: var(--curva-claro);
  background: var(--lienzo);
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  pointer-events: none;
  z-index: 2;
}
.claro.section { padding-block: calc(var(--curva-claro) + var(--section-y) * .6); }
main > .claro:first-child::before {
  height: calc(var(--cabecera) + var(--curva-claro));
  border-bottom-left-radius: 50% var(--curva-claro);
  border-bottom-right-radius: 50% var(--curva-claro);
}
main > .claro:first-child { padding-top: calc(var(--cabecera) + var(--curva-claro) + clamp(2rem, 5vw, 4rem)); }
.malla-clara { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.claro > *:not(.malla-clara) { position: relative; z-index: 1; }
.claro ::selection { background: var(--rojo-marca); color: #fff; }

/* ---------- Luz que acompaña al scroll ---------- */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(36% 40% at var(--luz-x, 50%) var(--luz-y, 50%),
                              rgba(var(--acento-rgb), .17), rgba(var(--acento-rgb), 0) 72%);
  pointer-events: none; z-index: -1;
  opacity: 0; transform: scale(.88);
  transition: opacity 1.5s var(--ease), transform 2.2s var(--ease);
}
.glow.is-iluminada::before { opacity: 1; transform: none; }
.glow--izq  { --luz-x: 28%; }
.glow--der  { --luz-x: 72%; }
.glow--alta { --luz-y: 32%; }
.glow--azul::before {
  background: radial-gradient(36% 40% at var(--luz-x, 50%) var(--luz-y, 50%),
                              rgba(24, 53, 155, .32), rgba(24, 53, 155, 0) 72%);
}

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
  display: inline-flex; align-items: center;
  gap: clamp(.6rem, .5rem + .4vw, .95rem);
  font-family: var(--font-display);
  font-size: clamp(.75rem, .66rem + .36vw, 1rem);
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--acento); margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: clamp(1.75rem, 1.4rem + 1.1vw, 2.75rem); height: 2px;
  background: currentColor; border-radius: 2px;
}
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--texto-suave); max-width: 62ch; text-wrap: balance; }
.lead strong { color: var(--texto); font-weight: 600; }
.hl { color: var(--acento); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--rojo-marca);
  --btn-fg: #FFFFFF;
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.75rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-size: var(--t-small); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { --btn-bg: #C41E12; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__arrow { width: .95em; height: .95em; flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--texto); border-color: var(--linea-fuerte); }
.btn--ghost:hover { --btn-bg: var(--texto); --btn-fg: var(--fondo); border-color: var(--texto); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Logotipo ---------- */
.brand { display: flex; align-items: center; flex: none; }
.brand svg { width: clamp(124px, 11vw, 158px); height: auto; }
.brand__simbolo { fill: var(--rojo-marca); }
.brand__word { fill: var(--texto); transition: fill .3s var(--ease); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.header.is-stuck {
  background: rgba(7, 7, 8, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--linea);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--cabecera); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.nav__link {
  position: relative;
  font-family: var(--font-display); font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  color: var(--texto-suave); padding-block: .4rem;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--acento); border-radius: 999px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--texto); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__cta { flex: none; padding: .62rem 1.3rem; }

.burger {
  display: none; width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--linea-fuerte); border-radius: 999px; cursor: pointer; flex: none;
}
.burger span { display: block; position: relative; width: 1.1rem; height: 1.5px; background: var(--texto); transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--texto);
  transition: transform .35s var(--ease), top .25s var(--ease);
}
.burger span::before { top: -.4rem; }
.burger span::after  { top: .4rem; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--cabecera) 0 0 0; z-index: 99;
  background: var(--fondo);
  padding: 2rem var(--pad-x) 3rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease), opacity .35s, visibility .45s;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a, .mobile-nav summary {
  font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 500;
  letter-spacing: -.02em; padding-block: .55rem; border-bottom: 1px solid var(--linea);
}
.mobile-nav a:hover, .mobile-nav summary:hover { color: var(--acento); }
.mobile-nav .btn { margin-top: 2rem; align-self: flex-start; font-size: var(--t-small); border-bottom: 0; }
.mobile-nav .btn:hover { color: var(--btn-fg); }
.menu-grupo summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
.menu-grupo summary::-webkit-details-marker { display: none; }
.menu-grupo summary::after {
  content: ""; width: .34em; height: .34em; margin-right: .18em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-.12em) rotate(45deg); opacity: .5;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.menu-grupo[open] summary::after { transform: translateY(.06em) rotate(-135deg); opacity: 1; }
.menu-grupo__lista { display: flex; flex-direction: column; margin: .4rem 0 .9rem .25rem; padding-left: 1rem; border-left: 1px solid var(--linea); }
.mobile-nav .menu-grupo__lista a { font-size: clamp(1.05rem, 4.2vw, 1.4rem); font-weight: 400; color: var(--texto-suave); padding-block: .42rem; border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid; align-items: center;
  padding-top: 8rem; padding-bottom: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--fondo) 8%, rgba(7,7,8,.72) 48%, rgba(7,7,8,.35) 100%),
    linear-gradient(to top, var(--fondo) 2%, transparent 45%);
}
.hero__bg--pleno img, .hero__bg--pleno video { opacity: 1; object-position: 60% 40%; }
.hero__bg--pleno::after {
  background:
    linear-gradient(100deg, rgba(7,7,8,.96) 0%, rgba(7,7,8,.86) 30%, rgba(7,7,8,.5) 58%, rgba(7,7,8,.22) 100%),
    linear-gradient(to top, rgba(7,7,8,.92) 0%, rgba(7,7,8,0) 46%),
    linear-gradient(to bottom, rgba(7,7,8,.78) 0%, rgba(7,7,8,0) 22%);
}
@media (max-aspect-ratio: 3/2) {
  .hero__bg--pleno::after {
    background:
      linear-gradient(to top, rgba(7,7,8,.84) 0%, rgba(7,7,8,.84) 62%, rgba(7,7,8,.57) 80%, rgba(7,7,8,.32) 100%),
      linear-gradient(to bottom, rgba(7,7,8,.80) 0%, rgba(7,7,8,0) 18%);
  }
}
.hero__sun {
  position: absolute; z-index: 0; right: -14vw; top: 18%;
  width: min(58vw, 620px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--acento-rgb), .5), rgba(var(--acento-rgb), .12) 55%, rgba(var(--acento-rgb), 0) 72%);
  filter: blur(12px); pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%;
}
.hero__title { font-size: var(--t-hero); font-weight: 500; letter-spacing: -.04em; margin-bottom: 1.25rem; }
/* La portada de Recapt tiene un titular más largo que el de Cantec: más ancho y un punto menos de cuerpo, para que quede en dos líneas */
@media (min-width: 1081px) { .hero--home .hero__inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, .4fr); } }
.hero--home .hero__title { font-size: clamp(2.6rem, 1rem + 5vw, 5.75rem); }
/* El asesor del vídeo está al centro: se corre a la derecha para que el titular no le caiga encima */
@media (min-aspect-ratio: 4/3) {
  .hero--home .hero__bg video {
    transform: translateX(24%) scale(1.06); transform-origin: right center;
    /* El borde izquierdo del vídeo se funde con el fondo: sin esto se ve el corte en pantallas anchas */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 12%, #000 34%);
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 12%, #000 34%);
  }
  /* El fondo bajo el vídeo es el mismo negro del velo, para que no haya dos tonos */
  .hero--home .hero__bg { background: var(--fondo); }
}
.hero__lead {
  font-size: var(--t-lead); color: var(--texto-suave); max-width: 38ch;
  margin-top: clamp(1.25rem, 2.5vw, 2rem); margin-bottom: clamp(1.75rem, 3vw, 2.5rem); text-wrap: balance;
}
.hero__lead strong { color: var(--texto); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* El titular entra palabra a palabra */
.hero__title .palabra { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.hero__title.is-visible .palabra { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: .75rem 1.25rem; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: var(--t-micro); letter-spacing: .2em; text-transform: uppercase;
  color: var(--texto-suave); transition: color .3s var(--ease);
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--acento); }
.scroll-cue__line {
  width: 1px; height: 2.75rem;
  background: linear-gradient(to bottom, var(--acento), rgba(var(--acento-rgb), 0));
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
.hero--page { min-height: auto; padding-top: 11rem; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero--page .hero__inner { grid-template-columns: 1fr; }
.hero--page .hero__title { font-size: var(--t-h1); }
.hero--page .hero__lead { max-width: 56ch; }
.hero--centrado .hero__inner { text-align: center; }
.hero--centrado .hero__title, .hero--centrado .hero__lead { margin-inline: auto; }
.hero--centrado .hero__actions { justify-content: center; }

/* ---------- Cabeceras de sección ---------- */
.cabecera { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cabecera h2 { margin: 0; }
.cabecera .lead { margin-top: clamp(1rem, 2vw, 1.5rem); max-width: 56ch; }

/* ---------- Fichas de soluciones ---------- */
.carrusel { display: flex; flex-direction: column; gap: clamp(.9rem, 2vh, 1.5rem); min-height: 0; }
.carrusel__pista {
  display: flex; gap: clamp(.75rem, 1.4vw, 1.25rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-x); scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.ficha {
  position: relative; flex: 1 1 0;
  min-width: clamp(240px, 24vw, 420px);
  height: min(52svh, 480px); min-height: 340px;
  display: grid; grid-template-rows: 1fr;
  overflow: hidden; border-radius: clamp(16px, 1.5vw, 26px);
  background: var(--contra); scroll-snap-align: start; isolation: isolate;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease) var(--dl, 0s), transform .7s var(--ease) var(--dl, 0s), box-shadow .5s var(--ease);
}
.is-visible .ficha { opacity: 1; transform: none; }
.carrusel__pista .ficha:nth-child(1) { --dl: .10s; }
.carrusel__pista .ficha:nth-child(2) { --dl: .20s; }
.carrusel__pista .ficha:nth-child(3) { --dl: .30s; }
.carrusel__pista .ficha:nth-child(4) { --dl: .40s; }
.ficha__medio { grid-area: 1 / 1; position: relative; min-height: 0; overflow: hidden; }
.ficha__medio img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ficha__medio::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 66%;
  background: linear-gradient(to bottom, rgba(12,12,15,0) 0%, rgba(12,12,15,.14) 30%, rgba(12,12,15,.42) 55%, rgba(12,12,15,.78) 76%, rgba(12,12,15,.9) 100%);
  pointer-events: none;
}
/* Cada solución conserva el color que tenía su tarjeta en el sitio anterior,
   ahora como un filo de luz en la base de la foto */
.ficha::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
  background: var(--ficha-color, var(--rojo-marca));
  transform: scaleX(.18); transform-origin: left; transition: transform .7s var(--ease);
}
.ficha:hover::after { transform: scaleX(1); }
.ficha--cobranza { --ficha-color: var(--rojo-marca); }
.ficha--salud    { --ficha-color: var(--azul-marca); }
.ficha--bto      { --ficha-color: #FFFFFF; }
/* Las fotos de soluciones son verticales con la cara en el tercio superior: se encuadran desde arriba */
.ficha__medio img { object-position: 50% 22%; }
.ficha__cabeza {
  grid-area: 1 / 1; align-self: end; position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: clamp(.6rem, 1vw, .9rem);
  padding: clamp(1.1rem, 1.6vw, 1.6rem) clamp(1.2rem, 1.8vw, 2rem) clamp(1.3rem, 1.9vw, 2rem);
}
.ficha__rotulo { flex: 1 1 auto; min-width: 0; transform-origin: left center; transition: transform .8s var(--ease); }
.ficha__titulo { margin: 0; font-size: clamp(1.3rem, 1.8vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.ficha__apoyo { margin: .5rem 0 0; font-size: clamp(.88rem, .98vw, 1rem); line-height: 1.45; color: #C9C9D1; max-width: 36ch; }
.ficha:hover .ficha__medio img, .ficha:has(.ficha__abrir:focus-visible) .ficha__medio img { transform: scale(1.05); }
.ficha:hover .ficha__rotulo { transform: scale(1.04); }
.ficha:hover { box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .7); }
.ficha__abrir { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.ficha__abrir:focus-visible { outline: 2px solid var(--acento); outline-offset: -3px; }
.ficha__cruz {
  position: relative; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255, 255, 255, .92); transition: background .3s var(--ease), transform .3s var(--ease);
}
.ficha__cruz::before, .ficha__cruz::after { content: ""; position: absolute; left: 50%; top: 50%; background: #0C0C0F; border-radius: 2px; transition: background .3s var(--ease); }
.ficha__cruz::before { width: .95rem; height: 2px; margin: -1px 0 0 -.475rem; }
.ficha__cruz::after  { width: 2px; height: .95rem; margin: -.475rem 0 0 -1px; }
.ficha:hover .ficha__cruz { background: var(--rojo-marca); transform: scale(1.08) rotate(90deg); }
.ficha:hover .ficha__cruz::before, .ficha:hover .ficha__cruz::after { background: #fff; }
.carrusel__mandos { display: flex; justify-content: flex-end; gap: .6rem; }
.carrusel__mandos[hidden] { display: none; }
.carrusel__flecha {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--linea); background: var(--fondo-2); color: var(--texto); cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.carrusel__flecha svg { width: 1.15rem; height: 1.15rem; }
.carrusel__flecha:hover:not(:disabled) { background: var(--rojo-marca); border-color: var(--rojo-marca); }
.carrusel__flecha:disabled { opacity: .3; cursor: default; }

/* ---------- Marquesina de logotipos ---------- */
.marquee {
  overflow: hidden; padding-block: 1rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: slide 46s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__item { flex: none; display: grid; place-items: center; transition: transform .4s var(--ease); }
.marquee__item:hover { transform: translateY(-4px); }
.marquee__item img { height: clamp(48px, 6vw, 84px); width: auto; max-width: 260px; object-fit: contain; opacity: .78; transition: opacity .4s var(--ease); }
.marquee__item:hover img { opacity: 1; }
.marquee__item--alto img { height: clamp(68px, 8vw, 116px); }
.logo-band { padding-block: clamp(1rem, 2vw, 1.75rem); overflow: hidden; display: grid; gap: clamp(.5rem, 2vh, 1.5rem); }

/* ---------- Constelación de cifras ---------- */
.cn3d { display: grid; gap: clamp(1.25rem, 3vh, 2.25rem); }
.cn3d__orbita {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(.9rem, 2.4vh, 1.8rem) clamp(1rem, 3.4vw, 3.6rem);
  align-items: center;
}
.cn3d__ficha--ai { grid-area: 1 / 1 / 2 / 2; }
.cn3d__ficha--ad { grid-area: 1 / 3 / 2 / 4; }
.cn3d__ficha--bi { grid-area: 2 / 1 / 3 / 2; }
.cn3d__ficha--bd { grid-area: 2 / 3 / 3 / 4; }
.cn3d__nucleo    { grid-area: 1 / 2 / 3 / 3; }
.cn3d__tubos {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(var(--acento-rgb), .45));
}
.cn3d__tubo-aura  { opacity: .22; }
.cn3d__tubo-luz   { opacity: .9; transform: translateY(-3px); }
.cn3d__tubo-pulso use { stroke-dasharray: 9 91; stroke-linecap: round; opacity: .95; animation: cn3d-pulso 2.8s linear infinite; }
.cn3d__tubo-pulso use:nth-child(2) { animation-delay: .35s; }
.cn3d__tubo-pulso use:nth-child(3) { animation-delay: .7s; }
.cn3d__tubo-pulso use:nth-child(4) { animation-delay: 1.05s; }
@keyframes cn3d-pulso { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.cn3d__cubos rect { fill: url(#cn3d-cubo); animation: cn3d-cubo 2.8s ease-in-out infinite; }
.cn3d__cubos rect:nth-child(even) { animation-delay: 1.4s; }
@keyframes cn3d-cubo { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }

.cn3d__ficha, .cn3d__barra, .cn3d__nucleo-cuerpo { position: relative; }
.cn3d__ficha {
  display: flex; align-items: center; align-self: stretch;
  padding: clamp(1.1rem, 2.6vh, 1.8rem) clamp(1.2rem, 2vw, 2rem);
  border-radius: clamp(14px, 1.2vw, 20px);
  background: #fff; border: 1px solid rgba(164, 21, 11, .22);
  box-shadow: 0 10px 24px -8px rgba(150, 70, 60, .26), 0 1px 2px rgba(150, 70, 60, .12);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cn3d__ficha::before, .cn3d__barra::before {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -17px; top: 20%;
  border-radius: clamp(18px, 1.7vw, 28px);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FFFCFB 34%, #FAF1EF 72%, #F0E1DE 100%);
  box-shadow: 0 30px 46px -16px rgba(150, 70, 60, .3), inset 0 1px 0 rgba(255,255,255,.95);
  z-index: -2;
}
.cn3d__ficha::after, .cn3d__barra::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -17px; height: 7px;
  border-radius: 0 0 clamp(14px, 1.3vw, 22px) clamp(14px, 1.3vw, 22px);
  background: linear-gradient(90deg, rgba(221,190,184,0), rgba(221,190,184,.85) 22%, rgba(221,190,184,.85) 78%, rgba(221,190,184,0));
  z-index: -1;
}
.cn3d__ficha:hover { transform: translateY(-4px); box-shadow: 0 26px 52px rgba(150, 70, 60, .22); }
.cn3d__texto { flex: 1 1 auto; min-width: 0; }
/* Las de la izquierda miran hacia el núcleo: van alineadas a la derecha */
.cn3d__ficha--ai .cn3d__texto, .cn3d__ficha--bi .cn3d__texto { text-align: right; }
.cn3d__ficha--ai .cn3d__cabeza, .cn3d__ficha--bi .cn3d__cabeza { justify-content: flex-end; }
.cn3d__ficha--ai .cn3d__desc, .cn3d__ficha--bi .cn3d__desc { margin-left: auto; }
.cn3d__cabeza { display: flex; align-items: center; gap: clamp(.55rem, .9vw, .8rem); margin-bottom: clamp(.5rem, 1.4vh, .9rem); }
.cn3d__disco {
  flex: none; display: grid; place-items: center;
  width: clamp(2.3rem, 3.2vw, 3.1rem); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(160deg, #fff, #FBF0EE);
  box-shadow: inset 0 2px 4px rgba(255,255,255,.9), inset 0 -3px 6px rgba(190,120,110,.22), 0 8px 16px rgba(150,70,60,.18);
}
.cn3d__ico { width: 52%; height: auto; color: var(--azul-marca); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cn3d__rotulo {
  margin: 0; padding: .15rem 0 .15rem clamp(.55rem, .9vw, .8rem);
  border-left: 1px solid rgba(164, 21, 11, .4);
  font-family: var(--font-display); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #6B5D5B;
}
.cn3d__num {
  margin: 0; font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 3.25rem);
  font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--rojo-marca); font-variant-numeric: tabular-nums;
}
.cn3d__desc { margin: .45rem 0 0; max-width: 24ch; font-size: var(--t-body); line-height: 1.35; color: #6B5D5B; }

.cn3d__nucleo { position: relative; display: grid; place-items: center; justify-self: center; width: min(100%, clamp(13rem, 24vw, 20rem)); aspect-ratio: 1; }
.cn3d__base, .cn3d__diamante { position: absolute; inset: 14%; border-radius: clamp(22px, 2.8vw, 40px); }
.cn3d__base {
  transform: rotate(45deg) translate(13px, 13px);
  background: linear-gradient(150deg, #F0675B 0%, #C41E12 48%, #A4150B 100%);
  box-shadow: 0 0 46px rgba(var(--acento-rgb), .85), 0 0 110px rgba(var(--acento-rgb), .45);
}
.cn3d__diamante {
  transform: rotate(45deg);
  background: linear-gradient(150deg, #FFFFFF 0%, #FFFBFA 52%, #FBE7E4 100%);
  box-shadow: inset 0 0 0 1px rgba(164, 21, 11, .25), inset 0 2px 14px rgba(255,255,255,.95), 0 6px 18px rgba(164, 21, 11, .16);
}
.cn3d__nucleo::before {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 92, 79, .38), rgba(238, 92, 79, 0) 72%);
  pointer-events: none; animation: cn3d-respira 2.8s ease-in-out infinite;
}
@keyframes cn3d-respira { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.07); opacity: 1; } }
.cn3d__nucleo-cuerpo { display: grid; justify-items: center; text-align: center; padding: 0 12%; }
.cn3d__ico--grande { width: clamp(1.8rem, 2.8vw, 2.6rem); color: var(--azul-marca); stroke-width: 1.7; margin-bottom: .35rem; }
.cn3d__nucleo .cn3d__rotulo { border-left: 0; padding: 0; color: var(--azul-marca); letter-spacing: .26em; }
.cn3d__num--grande { font-size: clamp(2.6rem, 5vw, 4.4rem); color: #1E1414; margin-top: .1rem; }
.cn3d__nucleo .cn3d__desc { color: #5D3A35; font-weight: 500; max-width: none; margin-inline: auto; }

.cn3d__barra {
  display: flex; align-items: center; justify-self: center; max-width: 100%;
  gap: clamp(.9rem, 2.4vw, 2.2rem);
  padding: clamp(.7rem, 1.8vh, 1.15rem) clamp(1rem, 2.4vw, 2.2rem);
  border-radius: 999px; background: #fff; border: 1px solid rgba(164, 21, 11, .22);
  box-shadow: 0 10px 24px -8px rgba(150, 70, 60, .26);
}
.cn3d__barra::before { border-radius: 999px; }
.cn3d__barra::after { border-radius: 0 0 999px 999px; }
.cn3d__barra-txt {
  margin: 0; padding-right: clamp(.9rem, 2.4vw, 2.2rem); border-right: 1px solid rgba(164, 21, 11, .3);
  font-family: var(--font-display); font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 700; line-height: 1.15; color: #1E1414;
}
.cn3d__sellos { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.9rem, 2.2vw, 2rem); }
/* Los sellos vienen en blanco: sobre la barra clara se pasan a tinta */
.cn3d__sellos img { height: clamp(1.9rem, 3vw, 2.9rem); width: auto; filter: brightness(0) saturate(100%); opacity: .82; }

[data-secuencia] .cn3d__ficha, [data-secuencia] .cn3d__nucleo, [data-secuencia] .cn3d__barra {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease) var(--dl, 0s), transform .6s var(--ease) var(--dl, 0s), box-shadow .45s var(--ease);
}
.is-visible .cn3d__ficha, .is-visible .cn3d__nucleo, .is-visible .cn3d__barra { opacity: 1; transform: none; }
.cn3d__nucleo    { --dl: 0s; }
.cn3d__ficha--ai { --dl: .12s; }
.cn3d__ficha--ad { --dl: .2s; }
.cn3d__ficha--bi { --dl: .28s; }
.cn3d__ficha--bd { --dl: .36s; }
.cn3d__barra     { --dl: .46s; }
/* Los tubos se dibujan al entrar la sección; el pulso de luz espera a que terminen */
[data-secuencia] .cn3d__tubos g:not(.cn3d__tubo-pulso) use { stroke-dasharray: 100; stroke-dashoffset: 100; }
.is-visible .cn3d__tubos g:not(.cn3d__tubo-pulso) use { animation: cn3d-tubo 1.1s var(--ease) .35s forwards; }
[data-secuencia] .cn3d__tubo-pulso { opacity: 0; transition: opacity .4s ease 1.4s; }
.is-visible .cn3d__tubo-pulso { opacity: 1; }
[data-secuencia] .cn3d__cubos { opacity: 0; transition: opacity .5s ease 1.2s; }
.is-visible .cn3d__cubos { opacity: 1; }
@keyframes cn3d-tubo { to { stroke-dashoffset: 0; } }
@media (max-width: 1000px) {
  .cn3d__orbita { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn3d__ficha--ai, .cn3d__ficha--ad, .cn3d__ficha--bi, .cn3d__ficha--bd { grid-area: auto; }
  .cn3d__nucleo { grid-area: auto; grid-column: 1 / -1; grid-row: 1; width: min(100%, 17rem); }
  .cn3d__tubos { display: none; }
  .cn3d__ficha .cn3d__texto { text-align: left !important; }
  .cn3d__ficha .cn3d__cabeza { justify-content: flex-start !important; }
  .cn3d__ficha .cn3d__desc { margin-left: 0 !important; }
}
@media (max-width: 620px) {
  .cn3d__orbita { grid-template-columns: minmax(0, 1fr); }
  .cn3d__barra { flex-direction: column; border-radius: 22px; text-align: center; }
  .cn3d__barra::before, .cn3d__barra::after { display: none; }
  .cn3d__barra-txt { border-right: 0; padding-right: 0; }
  .cn3d__sellos { justify-content: center; }
}

/* ---------- Banda de cifras ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--fondo); padding: clamp(1.5rem, 3vw, 2.5rem); transition: background .4s var(--ease); }
.stat:hover { background: var(--fondo-2); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--acento); margin-bottom: .6rem; }
.stat__desc { font-size: .95rem; color: var(--texto-suave); margin: 0; }
.stat > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) var(--dl, 0s), transform .6s var(--ease) var(--dl, 0s); }
.is-visible .stat > * { opacity: 1; transform: none; }
.stats .stat:nth-child(2) { --dl: .09s; }
.stats .stat:nth-child(3) { --dl: .18s; }
.stats .stat:nth-child(4) { --dl: .27s; }

/* ---------- Misión y visión ---------- */
.grid { display: grid; gap: clamp(1rem, .6rem + 1.6vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.declaraciones { position: relative; row-gap: clamp(2.75rem, 7vw, 4rem); --hueco: clamp(2rem, 5vw, 5.5rem); column-gap: var(--hueco); --relleno-ficha: clamp(1.75rem, 3.2vw, 3rem); }
.declaracion {
  position: relative; z-index: 1; padding: var(--relleno-ficha);
  background: var(--fondo-2); border: 1px solid var(--linea); border-radius: var(--radius);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.declaracion:hover { border-color: var(--linea-tarjeta); box-shadow: 0 18px 46px rgba(120, 40, 30, .08); }
.declaracion__num {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  margin: 0 0 clamp(1.1rem, 2.2vw, 1.6rem); border-radius: 50%;
  background: rgba(164, 21, 11, .12); color: var(--rojo-marca);
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .04em;
}
.declaracion__cabeza { display: flex; align-items: flex-start; gap: clamp(.75rem, 1.5vw, 1.1rem); }
.declaracion__icono { flex: none; width: clamp(2rem, 2.6vw, 2.5rem); margin-top: .12em; color: var(--azul-marca); }
.declaracion__icono svg { width: 100%; height: auto; }
.declaracion__titulo { margin: 0; }
.declaracion__titulo::after {
  content: ""; display: block; width: 4rem; height: 4px; border-radius: 2px; background: var(--rojo-marca);
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.25rem, 2.4vw, 1.75rem);
}
.declaracion .lead { max-width: 46ch; }
.declaraciones__union { display: none; }
@media (min-width: 820px) {
  .declaraciones { --desnivel: clamp(2.25rem, 4.5vw, 4rem); }
  .declaraciones .declaracion:nth-child(2) { margin-top: var(--desnivel); }
  .declaraciones__union {
    display: block; position: absolute; left: 50%;
    top: calc(var(--relleno-ficha) + 1.375rem);
    width: var(--hueco); height: var(--desnivel); margin-left: calc(var(--hueco) / -2);
    color: var(--rojo-marca); pointer-events: none;
  }
  .declaraciones__union svg { width: 100%; height: 100%; overflow: visible; }
  .declaraciones__union::before, .declaraciones__union::after {
    content: ""; position: absolute; width: .45rem; height: .45rem; border-radius: 50%;
    background: currentColor; transform: translate(-50%, -50%); opacity: 0; transition: opacity .45s var(--ease);
  }
  .declaraciones__union::before { left: 0; top: 0; }
  .declaraciones__union::after  { left: 100%; top: 100%; }
  .declaraciones__union path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .1s; }
  .declaraciones__union.is-visible path { stroke-dashoffset: 0; }
  .declaraciones__union.is-visible::before { opacity: 1; transition-delay: .15s; }
  .declaraciones__union.is-visible::after  { opacity: 1; transition-delay: 1.05s; }
}

/* ---------- Únete ---------- */
.unete__rejilla { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.unete .hero__title { font-size: var(--t-h1); font-weight: 600; }
.unete__cta { margin-top: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; gap: clamp(.6rem, 1.2vw, 1rem); }
.arc-media { position: relative; border-radius: clamp(16px, 1.5vw, 26px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--fondo-3); margin: 0; }
.arc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arc-media:hover img { transform: scale(1.04); }
.arc-media--ancha { aspect-ratio: 5 / 4; }
.arc-media__nota {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  background: rgba(12, 12, 15, .78); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: .9rem 1.2rem; color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.arc-media__num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: #EE5C4F; line-height: 1; }
.arc-media__txt { font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: #C9C9D1; margin-top: .35rem; }
@media (max-width: 900px) { .unete__rejilla { grid-template-columns: 1fr; } }

/* ---------- Formularios ---------- */
.contacto__caja {
  max-width: 52rem; margin-inline: auto; padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid rgba(var(--acento-rgb), .45); border-radius: var(--radius);
  background: rgba(16, 16, 19, .72); backdrop-filter: blur(10px);
}
.claro .contacto__caja { border-color: var(--linea-tarjeta); background: var(--fondo); backdrop-filter: none; box-shadow: 0 30px 70px rgba(120, 40, 30, .08); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem clamp(1rem, 2vw, 1.6rem); }
.form > .field--ancho, .form > div:not(.field), .form > p { grid-column: 1 / -1; }
.field { display: grid; gap: .5rem; align-content: start; }
.field__label { font-family: var(--font-display); font-size: var(--t-small); font-weight: 500; letter-spacing: .02em; }
.field__label .req { color: var(--acento); }
.field__opcional { color: var(--texto-suave); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: .9rem 1.1rem; background: transparent;
  border: 1px solid var(--linea-fuerte); border-radius: var(--radius-s); color: var(--texto);
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--texto-suave); opacity: .8; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--acento); background: var(--fondo-3); box-shadow: var(--ring); }
.claro .field input:focus, .claro .field textarea:focus, .claro .field select:focus { background: var(--fondo-2); box-shadow: 0 0 0 3px rgba(164, 21, 11, .18); }
.field textarea { resize: vertical; min-height: 8rem; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E3392B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
.claro .field select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A4150B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.field select option { background: var(--fondo-2); color: var(--texto); }
.field__error { font-size: var(--t-small); color: #FF8A80; display: none; margin: 0; }
.claro .field__error { color: #B3261E; }
.field.has-error input, .field.has-error textarea, .field.has-error select, .field.has-error .servicio { border-color: #FF8A80; }
.claro .field.has-error input, .claro .field.has-error select, .claro .field.has-error .servicio { border-color: #B3261E; }
.field.has-error .field__error { display: block; }
.fecha { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: .75rem; }
.field--servicios { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--servicios legend { padding: 0; margin-bottom: .5rem; }
.servicios { display: flex; flex-wrap: wrap; gap: .6rem; }
.servicio {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.05rem; border: 1px solid var(--linea); border-radius: 999px;
  font-size: var(--t-body); font-weight: 500; color: var(--texto-suave); cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.field .servicio input {
  appearance: none; -webkit-appearance: none; flex: none; width: 1.05rem; height: 1.05rem; margin: 0; padding: 0;
  border: 1px solid var(--linea-fuerte); border-radius: 50%; background: transparent; cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.servicio:hover { border-color: var(--linea-fuerte); color: var(--texto); }
.field .servicio input:focus { box-shadow: none; background-color: transparent; }
.field .servicio input:checked {
  border-color: var(--rojo-marca);
  background: var(--rojo-marca) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / .72rem no-repeat;
}
.servicio:has(input:checked) { border-color: var(--acento); background: rgba(var(--acento-rgb), .12); color: var(--texto); }
.claro .servicio:has(input:checked) { background: rgba(164, 21, 11, .07); }
.servicio:has(input:focus-visible) { outline: 3px solid var(--acento); outline-offset: 3px; }
.form__note { font-size: var(--t-small); color: var(--texto-suave); }
.form-status { display: none; padding: 1rem 1.25rem; border-radius: var(--radius-s); font-size: .95rem; }
.form-status.is-ok  { display: block; background: rgba(var(--acento-rgb), .12); border: 1px solid rgba(var(--acento-rgb), .4); }
.form-status.is-err { display: block; background: rgba(255,138,128,.12); border: 1px solid rgba(255,138,128,.4); }
.claro .form-status.is-err { background: rgba(179,38,30,.08); border-color: rgba(179,38,30,.45); }
@media (max-width: 620px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--linea); padding-block: clamp(2.75rem, 4.5vw, 4rem) 1.75rem; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--linea);
}
.footer__brand svg { width: 168px; height: auto; margin-bottom: 1.5rem; }
.footer__tagline { color: var(--texto-suave); font-size: .95rem; max-width: 36ch; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1.75rem; }
.footer__heading { font-family: var(--font-display); font-size: var(--t-micro); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--acento); margin-bottom: 1.1rem; }
.footer__list { display: grid; gap: .6rem; }
.footer__list a { font-size: .92rem; color: var(--texto-suave); transition: color .25s var(--ease); }
.footer__list a:hover { color: var(--texto); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2rem; }
.footer__legal { font-size: .8rem; color: var(--texto-suave); margin: 0; max-width: 62ch; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--acento); }
.footer [data-secuencia] > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.footer [data-secuencia].is-visible > * { opacity: 1; transform: none; }
.footer [data-secuencia].is-visible > *:nth-child(2) { transition-delay: .11s; }
.footer [data-secuencia].is-visible > *:nth-child(3) { transition-delay: .22s; }

/* ---------- Texto legal ---------- */
.legal { max-width: 78ch; font-size: 1rem; line-height: 1.8; }
.hero--page .hero__sun { top: -30%; }
.legal h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--linea); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.15rem; letter-spacing: -.01em; margin-top: 2rem; color: var(--acento); }
.legal p { color: var(--texto-suave); }
.legal strong { color: var(--texto); }
.legal ul { display: grid; gap: .6rem; margin-block: 1.25rem 1.75rem; }
.legal li { position: relative; padding-left: 1.5rem; color: var(--texto-suave); }
.legal li::before { content: ""; position: absolute; left: 0; top: .7em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--acento); }
.legal__firma { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--linea); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.split__sticky { position: sticky; top: 7.5rem; }
.legal-toc { display: grid; gap: .55rem; padding: 1.5rem; background: var(--fondo-2); border: 1px solid var(--linea); border-radius: var(--radius); }
.legal-toc a { font-size: .88rem; color: var(--texto-suave); transition: color .25s var(--ease); }
.legal-toc a:hover { color: var(--acento); }

/* ---------- Apariciones ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* Red de seguridad: main.js pone la clase `animado` al arrancar. Si el archivo
   no llega (pasó al publicar) o falla, todo lo que nace oculto se muestra tal cual,
   sin animación, en vez de dejar la página en negro. */
html:not(.animado) .reveal,
html:not(.animado) .ficha,
html:not(.animado) .stat > *,
html:not(.animado) .footer [data-secuencia] > *,
html:not(.animado) [data-secuencia] .cn3d__ficha,
html:not(.animado) [data-secuencia] .cn3d__nucleo,
html:not(.animado) [data-secuencia] .cn3d__barra,
html:not(.animado) [data-secuencia] .cn3d__tubo-pulso,
html:not(.animado) [data-secuencia] .cn3d__cubos { opacity: 1 !important; transform: none !important; }
html:not(.animado) .cn3d__tubos use,
html:not(.animado) .declaraciones__union path { stroke-dashoffset: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .carrusel__pista { flex-direction: column; overflow: visible; scroll-snap-type: none; }
  .ficha { flex: none; min-width: 0; height: auto; min-height: 0; }
  .ficha__medio { aspect-ratio: 4 / 3; }
  .carrusel__mandos { display: none; }
  .claro { padding-block: calc(var(--curva-claro) + var(--section-y) * .7); }
  .lead { font-size: clamp(1rem, .95rem + .4vw, 1.25rem); line-height: 1.5; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  :root { --arc: 8rem 8rem 8rem 1rem; }
}

/* ---------- Pantallas: el scroll salta de sección en sección (escritorio) ---------- */
@media (min-width: 901px) and (min-height: 620px) {
  /* Solo en páginas armadas por pantallas (Home, Nosotros). Si no, el único punto de anclaje sería el pie y el scroll se quedaría pegado abajo */
  html:has(main > .pantalla) { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  .pantalla { min-height: 100svh; scroll-snap-align: start; }
  .pantalla--centro { display: flex; flex-direction: column; justify-content: center; padding-block: var(--cabecera); }
  .hero.pantalla { height: 100svh; padding-top: var(--cabecera); padding-bottom: clamp(1rem, 3vh, 2.5rem); }
  .footer.pantalla { min-height: 0; scroll-snap-align: end; }
  .cabecera .lead { font-size: min(var(--t-lead), 2.6vh); }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .ficha, .stat > *, .hero__title .palabra { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .glow::before { display: none; }
}
/* Modo captura (?captura): cada pantalla mide 900 px para poder revisar la página entera en una sola imagen */
.captura, .captura body { scroll-snap-type: none !important; }
.captura .pantalla { min-height: 900px !important; }
.captura .hero.pantalla { height: 900px !important; }

@media print {
  .header, .mobile-nav, .scroll-cue, .marquee, .malla { display: none; }
  body { background: #fff; color: #000; }
}
