/* ============================================================
   TRIBUone — hoja de estilos principal
   ============================================================ */

/* ---------- Tipografía: Creato Display (local, licencia OFL) ---------- */
@font-face {
  font-family: "Creato Display";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/CreatoDisplay-Light.woff2") format("woff2"),
       url("../assets/fonts/CreatoDisplay-Light.woff") format("woff");
}
@font-face {
  font-family: "Creato Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/CreatoDisplay-Regular.woff2") format("woff2"),
       url("../assets/fonts/CreatoDisplay-Regular.woff") format("woff");
}
@font-face {
  font-family: "Creato Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/CreatoDisplay-Medium.woff2") format("woff2"),
       url("../assets/fonts/CreatoDisplay-Medium.woff") format("woff");
}
@font-face {
  font-family: "Creato Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/CreatoDisplay-Bold.woff2") format("woff2"),
       url("../assets/fonts/CreatoDisplay-Bold.woff") format("woff");
}

/* ---------- Tokens ---------- */
:root {
  --azul: #5AA9DC;
  --azul-hover: #4A97CA;
  --gris: #808285;
  --noche: #081726;
  --noche-2: #0e2f4d;
  --claro: #f4f7fa;
  --blanco: #ffffff;
  --tinta: #0c1a26;

  /* Una sola familia en todo el sitio; la jerarquía la da el peso */
  --font-display: "Creato Display", system-ui, sans-serif;
  --font-body: "Creato Display", system-ui, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 10px 40px rgba(8, 23, 38, .10);
  --shadow-card: 0 18px 50px rgba(8, 23, 38, .18);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--noche);
  line-height: 1.6;
  /* clip evita el scroll horizontal sin crear contexto de scroll (no rompe position:sticky) */
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* ---------- Accesibilidad: foco visible ---------- */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.8rem;
  border-radius: 40px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn__icon {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn--primary {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 10px 30px rgba(90, 169, 220, .35);
}
.btn--primary:hover { background: var(--azul-hover); transform: translateY(-3px); }
.btn--ghost {
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(90, 169, 220, .35);
  color: #12283d;
}
.btn--ghost:hover { background: #fff; border-color: var(--azul); color: var(--azul-hover); transform: translateY(-3px); }

/* ============================================================
   NAV — logo suelto a la izquierda + cápsula glass a la derecha
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  padding-block: 16px;
  pointer-events: none; /* solo logo y cápsula capturan clics; el resto deja ver el hero */
}
/* Fondo esmerilado de la barra tras el scroll, en un pseudo-elemento.
   Arriba del todo es totalmente transparente: solo se ve el hero. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  box-shadow: 0 2px 20px rgba(18, 40, 61, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease,
              -webkit-backdrop-filter .3s ease, backdrop-filter .3s ease;
}
.nav[data-state="scrolled"]::before {
  background: rgba(255, 255, 255, .72);
  border-bottom-color: rgba(90, 169, 220, .16);
  box-shadow: 0 2px 20px rgba(18, 40, 61, .05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav__bar {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__capsule {
  position: relative;
  pointer-events: auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0 8px 0 24px;
  border-radius: 50px;
  transition: height .4s var(--ease);
}
/* Capa de cristal de la cápsula, en un pseudo-elemento */
.nav__capsule::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(90, 169, 220, .18);
  box-shadow: 0 10px 34px rgba(90, 169, 220, .18);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

/* Estado tras scroll: algo más opaco para legibilidad */
.nav[data-state="scrolled"] .nav__capsule { height: 52px; }
.nav[data-state="scrolled"] .nav__capsule::before {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(90, 169, 220, .24);
  box-shadow: 0 12px 40px rgba(90, 169, 220, .22);
}

/* Logo suelto (sin fondo ni borde): protagonista de la barra */
.nav__logo {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 52px;
  width: auto;
  transition: height .4s var(--ease);
}
.nav[data-state="scrolled"] .nav__logo-img { height: 46px; }

.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .94rem;
  color: #40515f;
  padding: .3rem 0;
  transition: color .3s var(--ease);
}
.nav__link:hover { color: #12283d; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

/* Grupo derecho: botón + hamburguesa */
.nav__actions { display: flex; align-items: center; gap: .5rem; }

/* Botón CTA azul con ícono de mensaje */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--azul);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  padding: .55rem 1.15rem;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(90, 169, 220, .35);
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav__cta:hover {
  background: var(--azul-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(90, 169, 220, .45);
}
.nav__cta-icon {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Hamburguesa glass (tema claro) */
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(90, 169, 220, .1);
  border: 1px solid rgba(90, 169, 220, .22);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease);
}
.nav__toggle:hover { background: rgba(90, 169, 220, .18); }
.nav__toggle span {
  display: block;
  width: 20px; height: 2px;
  background: #12283d;
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}

/* ---------- Menú: Eventos destacado (azul, con ícono de destellos) ---------- */
.nav__link--destacado {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #2f7fb8;
}
.nav__link--destacado:hover { color: #12283d; }
.nav__link-icon {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Menú móvil a pantalla completa (hasta 820 px) ---------- */
/* La fila de arriba se centra en la hamburguesa (--my lo pone el JS): la X queda en su mismo lugar */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff;
  padding: 0 24px calc(24px + env(safe-area-inset-bottom, 0px));
  scroll-padding-top: calc(var(--my, 44px) + 44px); /* alto de la barra fija: el enlace con foco no queda debajo de ella */
  background-color: var(--noche);
  background-image: radial-gradient(rgba(143, 199, 232, .10) 1px, transparent 1.3px);
  background-size: 22px 22px;
  clip-path: circle(0px at var(--mx, 90%) var(--my, 44px));
  visibility: hidden;
  transition: clip-path .6s cubic-bezier(.7, 0, .25, 1) .2s, visibility 0s linear .8s;
}
.mmenu.is-open {
  clip-path: circle(160vmax at var(--mx, 90%) var(--my, 44px));
  visibility: visible;
  transition: clip-path .8s cubic-bezier(.7, 0, .25, 1), visibility 0s;
}
/* Barra de arriba (logo + X): queda fija al deslizar el menú, con su mismo fondo para que los enlaces pasen por debajo.
   Lleva el margen de arriba y de los lados del menú, y abajo un espacio de 16px que se le resta a la lista: sin deslizar, nada se mueve.
   content-box: min-height sigue siendo el alto de la fila */
.mmenu__top {
  position: sticky;
  top: 0;
  z-index: 1;
  box-sizing: content-box;
  margin: 0 -24px;
  padding: calc(var(--my, 44px) - 28px) 24px 16px;
  background: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.mmenu__logo { display: inline-flex; flex-shrink: 0; }
.mmenu__logo img { height: 46px; width: auto; }
.mmenu__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .26);
}
.mmenu__close span {
  grid-area: 1 / 1;
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(0);
  transition: transform .5s var(--ease);
}
.mmenu.is-open .mmenu__close span { transform: rotate(45deg); transition-delay: .35s; }
.mmenu.is-open .mmenu__close span + span { transform: rotate(-45deg); }
.mmenu__nav { display: flex; flex-direction: column; margin-top: calc(clamp(28px, 7vh, 64px) - 16px); } /* 16px van en la barra de arriba */
.mmenu__nav a { position: relative; display: flex; align-items: baseline; gap: 18px; padding: 16px 0; }
/* orden de entrada de cada enlace */
.mmenu__nav a:nth-child(1) { --i: 0; }
.mmenu__nav a:nth-child(2) { --i: 1; }
.mmenu__nav a:nth-child(3) { --i: 2; }
.mmenu__nav a:nth-child(4) { --i: 3; }
.mmenu__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .14);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.mmenu.is-open .mmenu__nav a::after { transform: none; transition: transform .9s var(--ease) calc(.35s + var(--i) * .07s); }
.mmenu__n {
  flex: none;
  width: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #8FC7E8;
  opacity: 0;
  transition: opacity .2s;
}
.mmenu.is-open .mmenu__n { opacity: 1; transition: opacity .6s calc(.45s + var(--i) * .07s); }
.mmenu__t { display: block; overflow: hidden; padding-bottom: .06em; }
.mmenu__t > span {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  font-size: clamp(34px, 10.5vw, 54px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  transform: translateY(115%);
  transition: transform .35s var(--ease), color .3s var(--ease);
}
.mmenu.is-open .mmenu__t > span { transform: none; transition: transform .9s var(--ease) calc(.3s + var(--i) * .07s), color .3s var(--ease); }
/* destellos de "Eventos", al final del texto */
.mmenu__t svg {
  width: .55em; height: .55em;
  fill: none;
  stroke: #8FC7E8;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mmenu__nav a:hover .mmenu__t > span { color: #8FC7E8; }
.mmenu__foot { margin-top: auto; padding-top: 36px; opacity: 0; transform: translateY(18px); transition: opacity .25s, transform .25s; }
.mmenu.is-open .mmenu__foot { opacity: 1; transform: none; transition: opacity .7s .6s, transform .9s var(--ease) .6s; }
.mmenu__q { margin: 0 0 18px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.mmenu__q em { font-style: normal; color: #8FC7E8; }
.mmenu__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  padding: 0 8px 0 26px;
  border-radius: 50px;
  background: var(--azul);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: background .3s var(--ease);
}
.mmenu__cta:hover { background: var(--azul-hover); }
.mmenu__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--noche); }
.mmenu__ic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mmenu__ic svg.fill { width: 20px; height: 20px; fill: #fff; stroke: none; }
.mmenu__cta--ghost { margin-top: 12px; background: transparent; border: 1px solid rgba(255, 255, 255, .28); }
.mmenu__cta--ghost:hover { background: rgba(255, 255, 255, .06); }
.mmenu__cta--ghost .mmenu__ic { background: rgba(255, 255, 255, .1); }
/* menú abierto: la página no se desplaza y los botones flotantes se esconden */
.menu-open { overflow: hidden; }
.menu-open .floats { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mmenu, .mmenu.is-open { clip-path: none; transition: opacity .2s, visibility 0s; }
  .mmenu { opacity: 0; }
  .mmenu.is-open { opacity: 1; }
  .mmenu__t > span, .mmenu__nav a::after, .mmenu__foot { transform: none !important; transition: none !important; }
  .mmenu__foot, .mmenu__n { opacity: 1; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: #f7fafc;
  color: var(--tinta);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: calc(var(--nav-h) + 30px) 90px;
  overflow: hidden;
}
/* Rejilla de puntos */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(90, 169, 220, 0.25) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}
/* Degradado radial que desvanece los puntos hacia los bordes */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 78% 68% at 50% 42%,
              rgba(247, 250, 252, 0) 0%,
              rgba(247, 250, 252, 0) 45%,
              #f7fafc 86%);
  pointer-events: none;
}
/* Ondas azules animadas en la parte inferior */
.hero__waves {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 45%;
  z-index: 2;
  pointer-events: none;
}

/* Rejilla del hero: texto a la izquierda, fotografía a la derecha.
   Alineación por la base: el borde inferior de la foto coincide con el de los botones */
.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Etiqueta sobre el titular: mismo estilo limpio que los eyebrow de sección */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #4A97CA;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  margin-top: .9rem;
  margin-bottom: 1rem;
}
.hero__badge-icon {
  width: 16px; height: 16px;
  fill: none;
  stroke: #4A97CA;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.7vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #12283d;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title-accent { color: var(--azul); }
.hero__subtitle {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #40515f;
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
/* Botones del hero: versión compacta (los del formulario mantienen su tamaño) */
.hero__actions .btn { padding: 12px 22px; font-size: 14.5px; }
.hero__actions .btn__icon { width: 15px; height: 15px; }
.hero__actions .btn--primary { box-shadow: 0 5px 14px rgba(90, 169, 220, .3); }
.hero__subtitle { animation-delay: .38s; }

/* Panel de la fotografía del equipo */
.hero__media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(90, 169, 220, .16);
  box-shadow: 0 14px 34px rgba(90, 169, 220, .18);
}
.hero__media picture { display: block; }
/* Misma proporción que el original (3:2): la foto se ve completa, sin recorte */
.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* Aparición suave al cargar: fade + subida escalonada */
.hero__content > *,
.hero__media {
  opacity: 0;
  animation: heroIn .9s var(--ease) both;
}
.hero__badge { animation-delay: .1s; }
.hero__title { animation-delay: .25s; }
.hero__actions { animation-delay: .45s; }
.hero__media { animation-delay: .3s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding-block: clamp(72px, 10vw, 130px); position: relative; scroll-margin-top: 96px; }
.section--light { background: var(--claro); color: var(--tinta); }
.section--dark { background: var(--noche); color: #fff; }
.section--dark .section__lead { color: rgba(255, 255, 255, .7); }

.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
/* Etiqueta de sección: ícono + texto en azul, sin fondo ni borde */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #4A97CA;
  margin: 0 0 1rem;
}
.eyebrow__icon {
  width: 16px; height: 16px;
  fill: none;
  stroke: #4A97CA;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.section__lead { font-size: 1.1rem; color: #5a6672; margin-top: 1rem; }

/* ============================================================
   EXPERIENCIA — frase con revelado al scroll + tarjetas de cifras
   ============================================================ */
/* Cabecera más ancha para el bloque de texto */
.experience .section__head { max-width: 900px; }

/* Bloque unificado (título + descripción) que se oscurece palabra por palabra */
.exp-reveal {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: -1px;
  max-width: 900px;
  margin: 0;
  color: #12283d;                 /* respaldo sin JS / movimiento reducido */
}
.exp-reveal__word { color: #c8d3de; }  /* inicial claro; el JS lo oscurece */

/* Tarjetas de cifras */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.counter {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 1.8rem 1.6rem;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.counter:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(8, 23, 38, .10); }

/* Fondos suaves, distintos por tarjeta, todos en tonos de marca */
.counter--a { background: rgba(90, 169, 220, 0.10); border-color: rgba(90, 169, 220, 0.22); }
.counter--b { background: rgba(128, 130, 133, 0.10); border-color: rgba(128, 130, 133, 0.20); }
.counter--c { background: rgba(90, 169, 220, 0.16); border-color: rgba(90, 169, 220, 0.30); }
.counter--d { background: rgba(18, 40, 61, 0.06);  border-color: rgba(18, 40, 61, 0.12); }

.counter__head { display: flex; flex-direction: column; gap: .35rem; }
.counter__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--azul);
}
.counter__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .98rem;
  line-height: 1.25;
  color: #4a5a68;
}
.counter__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .9rem;
  line-height: 1.45;
  color: #5f6e7d;
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 40, 61, 0.08);
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
/* La tarjeta de eventos es clicable entera: el enlace la cubre y su foco se dibuja por dentro */
.card__enlace {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  outline-offset: -4px;
}
.card {
  position: relative;
  padding: 2.2rem 1.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(90, 169, 220, .5);
  background: rgba(90, 169, 220, .07);
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(90, 169, 220, .14);
  color: var(--azul);
  margin-bottom: 1.3rem;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.card:hover .card__icon { background: var(--azul); color: #04121f; transform: rotate(-6deg); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.18rem; font-weight: 500; margin-bottom: .5rem; }
.card__text { color: rgba(255, 255, 255, .62); font-size: .96rem; margin: 0; }

/* ============================================================
   PROCESO — columnas + línea de progreso anclada al scroll (pinning)
   ============================================================ */
.process {
  position: relative;
  background: var(--claro);
  color: var(--tinta);
  scroll-margin-top: 0;
}
.process__spacer { position: relative; }
.process__panel { padding-block: clamp(72px, 10vw, 130px); }

/* Encabezado centrado */
.process .section__head {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}

.process__viz { position: relative; }

/* Rejilla de 3 columnas */
.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* Columnas: número, título y descripción de arriba a abajo (sin caja) */
.step {
  position: relative;
  padding: 0 clamp(1.2rem, 2.6vw, 2.4rem) clamp(3rem, 5vw, 4rem);
}
/* Divisorias verticales entre columnas: bajan y conectan con la línea base */
.step + .step { border-left: 1px solid rgba(90, 169, 220, 0.15); }

.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;                    /* discreto, no domina la columna */
  line-height: 1;
  letter-spacing: 1px;
  color: var(--azul);                 /* estático (sin JS): encendido */
  transition: color .55s var(--ease);
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 1.6rem 0 0.7rem;
  color: #12283d;                     /* estático: encendido */
  transition: color .55s var(--ease);
}
.step__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: #5f6e7d;                     /* estático: encendido */
  transition: color .55s var(--ease);
}

/* Línea base horizontal: piso de la rejilla, de extremo a extremo */
.process__rail {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 3px;
  transform: translateY(50%);
  background: rgba(90, 169, 220, 0.2);
  border-radius: 3px;
  z-index: 1;
}
/* Relleno azul que se dibuja de izquierda a derecha con el scroll */
.process__rail-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%;                        /* estático: llena */
  height: 100%;
  background: linear-gradient(90deg, #5AA9DC, #8FC7E8);
  border-radius: inherit;
  box-shadow: 0 0 14px rgba(90, 169, 220, 0.55);
}

/* Nodos: al inicio (borde izq.) de cada columna, sentados sobre la línea */
.step__node {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  background: var(--azul);            /* estático: encendido */
  border: 3px solid var(--claro);
  box-shadow: 0 0 0 5px rgba(90, 169, 220, 0.18),
              0 0 22px 4px rgba(90, 169, 220, 0.5);
  z-index: 3;
  transition: background .55s var(--ease), border-color .55s var(--ease),
              box-shadow .55s var(--ease), transform .55s var(--ease);
}

/* ---- Estado animado (JS activo): arranca apagado ---- */
.process.is-anim .process__rail-fill { width: calc(var(--p, 0) * 100%); }
.process.is-anim .step__num { color: #c3d9ea; }
.process.is-anim .step__title { color: #9fb2c4; }
.process.is-anim .step__text { color: #a8b6c4; }
.process.is-anim .step__node {
  background: var(--claro);
  border-color: rgba(90, 169, 220, 0.4);
  box-shadow: 0 0 0 5px var(--claro);
  transform: translate(-50%, 50%) scale(0.82);
}

/* ---- Encendido cuando el relleno alcanza el nodo ---- */
.process.is-anim .step.is-on .step__num { color: var(--azul); }
.process.is-anim .step.is-on .step__title { color: #12283d; }
.process.is-anim .step.is-on .step__text { color: #5f6e7d; }
.process.is-anim .step.is-on .step__node {
  background: var(--azul);
  border-color: var(--claro);
  box-shadow: 0 0 0 5px rgba(90, 169, 220, 0.18),
              0 0 22px 4px rgba(90, 169, 220, 0.5);
  transform: translate(-50%, 50%) scale(1);
}

/* Nodo de cierre: cierra la línea en el extremo derecho (borde de la 3ª columna) */
.process__node-end {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  transform: translate(50%, -50%);
  background: var(--azul);            /* estático: encendido */
  border: 3px solid var(--claro);
  box-shadow: 0 0 0 5px rgba(90, 169, 220, 0.18),
              0 0 22px 4px rgba(90, 169, 220, 0.5);
  z-index: 3;
  transition: background .55s var(--ease), border-color .55s var(--ease),
              box-shadow .55s var(--ease), transform .55s var(--ease);
}
/* Apagado hasta que el relleno llega al 100% */
.process.is-anim .process__node-end {
  background: var(--claro);
  border-color: rgba(90, 169, 220, 0.4);
  box-shadow: 0 0 0 5px var(--claro);
  transform: translate(50%, -50%) scale(0.82);
}
.process.is-anim .process__node-end.is-on {
  background: var(--azul);
  border-color: var(--claro);
  box-shadow: 0 0 0 5px rgba(90, 169, 220, 0.18),
              0 0 22px 4px rgba(90, 169, 220, 0.5);
  transform: translate(50%, -50%) scale(1);
}

/* Pinning: solo en escritorio y con animación activa */
@media (min-width: 861px) {
  .process.is-anim .process__spacer { height: 280vh; }
  .process.is-anim .process__panel {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 0;
  }
}

/* Móvil/tablet: sin pin; columnas apiladas y línea vertical con scroll normal */
@media (max-width: 860px) {
  .process__grid {
    --gutter: 44px;
    grid-template-columns: 1fr;
    padding-left: var(--gutter);
  }
  .step { padding: 2rem 0 2.4rem; }
  .step + .step { border-left: none; }
  .step__title { margin-top: 1rem; }

  /* Rail vertical en el canal izquierdo */
  .process__rail {
    left: calc(var(--gutter) / 2 - 1.5px);
    right: auto;
    top: 0; bottom: 0;
    width: 3px; height: auto;
    transform: none;
  }
  .process__rail-fill { width: 100%; height: 100%; }
  .process.is-anim .process__rail-fill { width: 100%; height: calc(var(--p, 0) * 100%); }

  /* Nodos al inicio (arriba) de cada paso, sobre el rail */
  .step__node {
    left: calc(var(--gutter) / -2);
    top: 0; bottom: auto;
    transform: translate(-50%, -50%);
  }
  .process.is-anim .step__node { transform: translate(-50%, -50%) scale(0.82); }
  .process.is-anim .step.is-on .step__node { transform: translate(-50%, -50%) scale(1); }

  /* Nodo de cierre: al final (abajo) del rail vertical */
  .process__node-end {
    right: auto; left: 50%;
    top: auto; bottom: 0;
    transform: translate(-50%, 50%);
  }
  .process.is-anim .process__node-end { transform: translate(-50%, 50%) scale(0.82); }
  .process.is-anim .process__node-end.is-on { transform: translate(-50%, 50%) scale(1); }
}

/* ============================================================
   EVENTOS — bloque enmarcado con foto que lleva a eventos.html
   ============================================================ */
.events-teaser { padding-top: clamp(8px, 2vw, 24px); }
.ev-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 52vw, 640px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--noche);
  box-shadow: var(--shadow-card);
  color: #fff;
}
.ev-card__media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  transform: scale(1.1);
  transition: transform 2.2s var(--ease);
}
.ev-card.is-visible .ev-card__media img { transform: scale(1); }
.ev-card__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 23, 38, .94) 0%, rgba(8, 23, 38, .82) 34%, rgba(8, 23, 38, .25) 70%, rgba(8, 23, 38, .05) 100%),
    linear-gradient(0deg, rgba(8, 23, 38, .6) 0%, rgba(8, 23, 38, 0) 35%);
}
.ev-card__body {
  max-width: 680px;
  padding: clamp(32px, 5.5vw, 72px);
}
.ev-card .eyebrow { color: #8FC7E8; }
.ev-card .eyebrow__icon { stroke: #8FC7E8; }
.ev-card .section__title { color: #fff; }
.ev-card .section__lead { color: rgba(255, 255, 255, .78); }
.ev-card__types {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 1.7rem 0 2.2rem;
}
.ev-card__types li {
  padding: .45rem 1rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .88rem;
  font-weight: 500;
}
.ev-card__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn--glass {
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}
.btn--glass:hover { background: #fff; border-color: #fff; color: #12283d; transform: translateY(-3px); }
.ev-card__services {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: clamp(22px, 3vw, 36px);
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.ev-card__services li + li::before { content: "·"; margin-right: 1rem; color: var(--azul); }

@media (max-width: 960px) {
  .ev-card__services { display: none; }
}
@media (max-width: 720px) {
  .ev-card { align-items: flex-end; min-height: 0; border-radius: 22px; }
  .ev-card__media img { object-position: 70% 30%; }
  .ev-card__shade {
    background: linear-gradient(0deg, rgba(8, 23, 38, .97) 0%, rgba(8, 23, 38, .9) 52%, rgba(8, 23, 38, .35) 78%, rgba(8, 23, 38, .1) 100%);
  }
  .ev-card__body { padding: 230px 24px 28px; }
  .ev-card__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-card__media img { transform: none; transition: none; }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { overflow: hidden; }

/* Aura difuminada decorativa (profundidad, detrás del contenido) */
.contact__aura {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 169, 220, .18), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- Columna izquierda: datos ---------- */
.contact__data { margin-top: 2.6rem; display: grid; gap: 1.4rem; }
.contact__data li { display: flex; align-items: center; gap: .9rem; }
.contact__data-ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(90, 169, 220, .14);
  border: 1px solid rgba(90, 169, 220, .22);
  display: grid;
  place-items: center;
}
.contact__data-ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--azul);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__data-txt { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.contact__data-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10.5px;
  color: #5f7d96;
  font-weight: 500;
}
.contact__value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem .5rem;
  font-size: 14px;
  font-weight: 500;
  color: #e2ecf5;
}
.contact__sep { color: rgba(226, 236, 245, .35); }
.contact__value a { color: inherit; transition: color .3s var(--ease); }
.contact__value a:hover { color: var(--azul); }

/* Redes como pills */
.contact__social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.contact__pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: #e2ecf5;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.contact__pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__pill:hover {
  border-color: rgba(90, 169, 220, .5);
  background: rgba(90, 169, 220, .1);
  transform: translateY(-2px);
}
/* pill sin enlace: mantiene el aspecto pero sin señales de clic */
span.contact__pill { cursor: default; }
span.contact__pill:hover {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  transform: none;
}

/* ---------- Columna derecha: formulario sin caja ---------- */
.form { position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.field label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #8aa4bb;
  margin-bottom: .55rem;
}

/* Campos tipo "línea": solo borde inferior */
.field input {
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(90, 169, 220, .3);
  border-radius: 0;
  padding: .5rem .1rem;
  transition: border-color .3s var(--ease);
}
.field input:hover { border-bottom-color: rgba(90, 169, 220, .55); }
.field input:focus { border-bottom-color: var(--azul); outline: none; }

/* Textarea: borde completo redondeado */
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(90, 169, 220, .25);
  border-radius: 10px;
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease);
  resize: vertical;
}
.field textarea:hover { border-color: rgba(90, 169, 220, .45); }
.field textarea:focus { border-color: var(--azul); outline: none; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field.is-invalid input { border-bottom-color: #ff6b6b; }
.field.is-invalid textarea { border-color: #ff6b6b; }
.field__error {
  color: #ff8f8f;
  font-size: .8rem;
  min-height: 1em;
  margin-top: .3rem;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  font-size: .9rem;
  color: rgba(255, 255, 255, .72);
  margin-top: .4rem;
  cursor: pointer;
}
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box {
  width: 22px; height: 22px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  margin-top: 1px;
}
.checkbox__box::after {
  content: "";
  width: 6px; height: 11px;
  border: solid #04121f;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease);
  margin-bottom: 2px;
}
.checkbox input:checked + .checkbox__box { background: var(--azul); border-color: var(--azul); }
.checkbox input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__box { outline: 3px solid var(--azul); outline-offset: 3px; }
.checkbox a { color: var(--azul); text-decoration: underline; }

.form__submit {
  margin-top: 1.6rem;
  width: 100%;
  justify-content: center;
  color: #081726;
  box-shadow: 0 12px 28px rgba(90, 169, 220, .28);
}
.form__submit:hover { transform: translateY(-2px); color: #081726; }
.form__status { margin: 1rem 0 0; font-size: .92rem; min-height: 1.2em; }
.form__status.is-ok { color: #6ee7a8; }
.form__status.is-err { color: #ff8f8f; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #050f1a; color: #fff; padding-top: clamp(3rem, 6vw, 5rem); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 2.6rem;
  align-items: start;
}

/* ---------- Columna de marca ---------- */
.footer__logo { height: 40px; width: auto; margin-bottom: 1.1rem; }
.footer__phrase {
  max-width: 300px;
  margin: 0;
  color: #8aa4bb;
  font-size: 12px;
  line-height: 1.6;
}
.footer__social { display: flex; gap: .5rem; margin-top: 1.3rem; }
.footer__social-item {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #8aa4bb;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.footer__social-item svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.footer__social-item:hover {
  background: rgba(90, 169, 220, .16);
  border-color: rgba(90, 169, 220, .35);
  color: #fff;
}

/* ---------- Columnas de enlaces ---------- */
.footer__head {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--azul);
  margin: 0 0 1.1rem;
}
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__list li { font-size: 12.5px; line-height: 1.5; color: #c3d3e0; }
.footer__list a { color: inherit; transition: color .3s var(--ease); }
.footer__list a:hover { color: var(--azul); }
.footer__sep { color: #6d8298; margin-inline: .3rem; }

/* ---------- Barra inferior ---------- */
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  /* El extra inferior deja libre la esquina de los botones flotantes */
  padding: 1.7rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px;
  color: #6d8298;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a { color: inherit; transition: color .3s var(--ease); }
.footer__legal a:hover { color: #fff; }

/* ============================================================
   REVELADOS AL SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Retardo escalonado en grillas */
.cards .card:nth-child(2), .counters .counter:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3), .counters .counter:nth-child(3) { transition-delay: .16s; }
.cards .card:nth-child(4), .counters .counter:nth-child(4) { transition-delay: .24s; }
.cards .card:nth-child(5) { transition-delay: .10s; }
.cards .card:nth-child(6) { transition-delay: .18s; }
.cards .card:nth-child(7) { transition-delay: .10s; }
.cards .card:nth-child(8) { transition-delay: .18s; }
.cards .card:nth-child(9) { transition-delay: .26s; }

/* ============================================================
   BOTONES FLOTANTES — WhatsApp y volver arriba
   ============================================================ */
/* z-index por debajo del nav (100) y del menú móvil: siempre quedan por encima de los botones */
.floats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

/* ---------- Volver arriba ---------- */
.to-top {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(18, 40, 61, .12);
  opacity: 0;
  transform: translateY(12px) scale(.85);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .3s var(--ease);
}
/* Aparece tras bajar del umbral (lo marca el JS) */
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top.is-visible:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 26px rgba(18, 40, 61, .18);
}
/* Anillo de progreso de lectura: se rellena con el porcentaje de scroll */
.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  fill: none;
  pointer-events: none;
}
.to-top__ring-bg { stroke: rgba(90, 169, 220, .18); stroke-width: 2.5; }
.to-top__ring-fill {
  stroke: var(--azul);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset .15s linear;
}
.to-top__arrow {
  width: 17px; height: 17px;
  fill: none;
  stroke: #12283d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- WhatsApp ---------- */
.wa {
  position: relative;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  height: 54px;
  border-radius: 40px;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: box-shadow .38s cubic-bezier(.2, .7, .3, 1);
}
.wa__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
}
.wa__icon svg { width: 26px; height: 26px; fill: currentColor; }
/* La etiqueta vive colapsada: el botón es un círculo hasta el hover */
.wa__label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  transition: max-width .38s cubic-bezier(.2, .7, .3, 1),
              opacity .38s cubic-bezier(.2, .7, .3, 1),
              margin-right .38s cubic-bezier(.2, .7, .3, 1);
}
/* Anillo de pulso: llama la atención sin tapar nada */
.wa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse {
  0%       { transform: scale(1);    opacity: .7; }
  70%, 100% { transform: scale(1.22); opacity: 0; }
}
/* Con teclado la etiqueta también se despliega */
.wa:focus-visible .wa__label {
  max-width: 210px;
  opacity: 1;
  margin-right: 22px;
}
/* La expansión solo donde hay puntero real: en táctil queda circular */
@media (hover: hover) and (pointer: fine) {
  .wa:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, .5); }
  .wa:hover .wa__label {
    max-width: 210px;
    opacity: 1;
    margin-right: 22px;
  }
  .wa:hover::before { animation: none; opacity: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 34px; }
}

/* Hero apilado: primero el texto (centrado), luego la fotografía */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__content { align-items: center; text-align: center; }
  .hero__title { max-width: 18ch; margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
}

/* Colapso del nav: la cápsula solo lleva la hamburguesa y el menú se abre a pantalla completa */
@media (max-width: 820px) {
  .nav__menu { display: none; }
  .nav__cta--bar { display: none; }
  .nav__toggle { display: flex; }
  /* La cápsula solo contiene la hamburguesa: se vuelve un botón circular */
  .nav__capsule { gap: 0; padding: 0 8px; }
  .nav__logo-img,
  .nav[data-state="scrolled"] .nav__logo-img { height: 46px; }
}

@media (max-width: 720px) {
  .form__row { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__phrase { max-width: 100%; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 560px) {
  .floats { right: 16px; bottom: 16px; gap: 10px; }
  .wa { height: 50px; }
  .wa__icon { width: 50px; height: 50px; }
  .wa__icon svg { width: 24px; height: 24px; }
  .to-top { width: 44px; height: 44px; }
  .to-top__arrow { width: 16px; height: 16px; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
}

/* ============================================================
   MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__content > *,
  .hero__media { opacity: 1; animation: none; }
  /* Sin pulso ni entrada animada en los botones flotantes */
  .wa::before { animation: none; opacity: 0; }
  .to-top { transition: none; }
}

/* ============================================================
   Formulario: campo oculto
   ============================================================ */
/* Campo trampa contra robots: fuera de la pantalla, no con display:none (algunos robots lo saltan) */
.form__trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
