@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* =========================================================
   Agua TRÜ – estilos
   Compatibilidad: cada medida en cqw lleva antes su equivalente en vw
   para navegadores antiguos (Safari < 16) que no soportan cqw.
   Las medidas en "cqw" son proporcionales al ancho del diseño
   móvil (390 px = 100cqw), así la web se ve igual que en Figma
   y escala de forma proporcional en pantallas grandes.
   ========================================================= */

:root {
  --azul-oscuro: #072a5c;
  --azul-marca: #0b4d9b;
  --azul-medio: #1f5fb5;
  --azul-texto: #0063ad;
  --celeste: #86d3e7;
  --cian: #1face3;
  --blanco: #ffffff;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--azul-oscuro);
  color: var(--blanco);
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--celeste); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blanco); color: var(--azul-marca);
  padding: 10px 14px; border-radius: 8px; font-weight: 900; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Menú ---------- */
.site-nav ul {
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; margin: 0; padding: 0 6vw 0 8.5vw; padding: 0 6cqw 0 8.5cqw;
}
.site-nav a {
  color: var(--blanco); text-decoration: none; text-transform: uppercase;
  font-weight: 900; font-size: 3.2vw; font-size: 3.2cqw; letter-spacing: 0.01em;
  text-shadow: 0 0.2vw 1vw rgba(0, 0, 0, 0.25); text-shadow: 0 0.2cqw 1cqw rgba(0, 0, 0, 0.25);
  padding: 1.5vw 0; padding: 1.5cqw 0; display: inline-block;
}
.site-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 1vw; text-underline-offset: 1cqw; text-decoration-thickness: 0.5vw; text-decoration-thickness: 0.5cqw; }
.site-nav a:hover { color: var(--celeste); }
.col > .site-nav { padding-top: 3.4vw; padding-top: 3.4cqw; }

/* ---------- Home: slider ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; justify-content: center;
  background: var(--azul-oscuro);
}
.hero__backdrop {
  position: absolute; inset: -60px;
  background-size: cover; background-position: center;
  filter: blur(36px) brightness(0.65); transform: scale(1.1);
}
.hero__stage {
  position: relative;
  width: min(100%, calc(100vh * 390 / 429));
  width: min(100%, calc(100svh * 390 / 429));
  aspect-ratio: 390 / 429;
  container-type: inline-size;
  overflow: hidden;
}
.hero__track {
  position: absolute; inset: 0;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 28, 66, 0.55) 0%, rgba(6, 28, 66, 0) 30%);
}
.site-nav--hero { position: absolute; top: 3.4vw; top: 3.4cqw; left: 0; right: 0; z-index: 3; }

.hero__title { position: absolute; left: 7.5vw; left: 7.5cqw; top: 15vw; top: 15cqw; width: 40vw; width: 40cqw; margin: 0; z-index: 2; pointer-events: none; }
.hero__title img { width: 100%; height: auto; filter: drop-shadow(0 0.4vw 1vw rgba(0, 0, 0, 0.2)); filter: drop-shadow(0 0.4cqw 1cqw rgba(0, 0, 0, 0.2)); }

.hero-copy {
  position: absolute; left: 51vw; left: 51cqw; width: 46vw; width: 46cqw; top: 14.5vw; top: 14.5cqw; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-copy p { margin: 0; }
.hero-copy__top { font-weight: 500; font-size: 2.7vw; font-size: 2.7cqw; margin-bottom: 1.2vw !important; margin-bottom: 1.2cqw !important; text-shadow: 0 0.2vw 0.8vw rgba(0, 0, 0, 0.3); text-shadow: 0 0.2cqw 0.8cqw rgba(0, 0, 0, 0.3); }
.sparkle { font-size: 0.9em; margin-right: 0.6vw; margin-right: 0.6cqw; }
.pill { border-radius: 2.2vw; border-radius: 2.2cqw; line-height: 1.05; }
.pill--light { background: var(--celeste); color: var(--azul-texto); font-weight: 900; padding: 1.3vw 2.6vw; padding: 1.3cqw 2.6cqw; }
.pill--caps { text-transform: uppercase; font-size: 2.4vw; font-size: 2.4cqw; width: 45vw; width: 45cqw; padding: 1.2vw 1.4vw; padding: 1.2cqw 1.4cqw; letter-spacing: -0.01em; }
.pill--dark { background: var(--azul-medio); color: var(--blanco); font-weight: 500; font-size: 2.25vw; font-size: 2.25cqw; padding: 1.1vw 3vw; padding: 1.1cqw 3cqw; margin-top: 1.4vw !important; margin-top: 1.4cqw !important; width: 46vw; width: 46cqw; }
.pill--question { font-size: 2.1vw; font-size: 2.1cqw; width: 43vw; width: 43cqw; padding: 1.4vw 3vw; padding: 1.4cqw 3cqw; }
.hero-copy__lead, .hero-copy__desc { font-weight: 900; font-size: 2.9vw; font-size: 2.9cqw; text-shadow: 0 0.3vw 1.2vw rgba(0, 0, 0, 0.35); text-shadow: 0 0.3cqw 1.2cqw rgba(0, 0, 0, 0.35); }
.hero-copy__lead { margin-top: 2.4vw !important; margin-top: 2.4cqw !important; }
.pill--number { background: var(--cian); color: var(--blanco); font-weight: 900; font-size: 4.3vw; font-size: 4.3cqw; padding: 0.4vw 5.5vw; padding: 0.4cqw 5.5cqw; border-radius: 1vw; border-radius: 1cqw; margin-top: 1vw !important; margin-top: 1cqw !important; }
.hero-copy__desc { line-height: 1; margin-top: 1.4vw !important; margin-top: 1.4cqw !important; max-width: 40vw; max-width: 40cqw; }

.hero__badge { position: absolute; z-index: 2; height: auto; }
.hero__badge--left { left: 2vw; left: 2cqw; bottom: 3.5vw; bottom: 3.5cqw; width: 21vw; width: 21cqw; }
.hero__badge--right { right: 2vw; right: 2cqw; bottom: 5vw; bottom: 5cqw; width: 13vw; width: 13cqw; }

.hero__dots { position: absolute; left: 0; right: 0; bottom: 2.4vw; bottom: 2.4cqw; z-index: 3; display: flex; justify-content: center; gap: 1.6vw; gap: 1.6cqw; }
.hero__dots button {
  width: 2.2vw; width: 2.2cqw; height: 2.2vw; height: 2.2cqw; min-width: 10px; min-height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer;
}
.hero__dots button[aria-current='true'] { background: var(--blanco); }

/* ---------- Secciones azules (Contador / Cómo sumarse) ---------- */
.blue-section {
  display: flex; justify-content: center; overflow: hidden;
  background: #2563b3 url('../img/fondo-contador.webp') center top / cover no-repeat;
}
.blue-section--sumarse { background-image: url('../img/fondo-como-sumarse.webp'); }
.col { width: min(100%, 600px); container-type: inline-size; }
.col > :last-child { margin-bottom: 9vw; margin-bottom: 9cqw; }

/* Contador */
.contador__title {
  text-align: center; font-weight: 900; text-transform: uppercase;
  font-size: 4.9vw; font-size: 4.9cqw; margin: 6vw 0 2.5vw; margin: 6cqw 0 2.5cqw; letter-spacing: 0.01em;
}
.flip { display: flex; justify-content: center; gap: 1.4vw; gap: 1.4cqw; padding: 0 6vw; padding: 0 6cqw; }
.flip__card {
  flex: 1 1 0; max-width: 14.3vw; max-width: 14.3cqw; aspect-ratio: 55 / 88;
  container-type: inline-size;
  display: grid; place-items: center; position: relative; overflow: hidden;
  font-weight: 900; line-height: 1; color: var(--azul-marca); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 47%, #c9c9c9 50%, #fbfbfb 53%, #e4e4e4 100%);
  border-radius: 0.8vw; border-radius: 0.8cqw; box-shadow: 0 1vw 1.6vw rgba(0, 0, 0, 0.35); box-shadow: 0 1cqw 1.6cqw rgba(0, 0, 0, 0.35);
}
/* el número se ajusta al ancho de cada tarjeta (sirve también si el contador pasa de 5 dígitos) */
.flip__card > span { font-size: 18vw; font-size: 125cqw; position: relative; z-index: 1; }
.flip__card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: rgba(0, 0, 0, 0.22); z-index: 2;
}

.stats { position: relative; margin-top: 4.5vw; margin-top: 4.5cqw; min-height: 64vw; min-height: 64cqw; }
.stats__product {
  position: absolute; left: 1.5vw; left: 1.5cqw; top: -1vw; top: -1cqw; width: 31vw; width: 31cqw; height: auto; z-index: 2;
  filter: drop-shadow(0 2vw 2vw rgba(0, 0, 0, 0.3)); filter: drop-shadow(0 2cqw 2cqw rgba(0, 0, 0, 0.3));
}
.stats p { margin: 0; }
.stats__goal { margin-left: 36vw; margin-left: 36cqw; width: 56vw; width: 56cqw; text-align: center; }
.stats__goal-line { font-weight: 900; line-height: 1; }
.stats__de { font-size: 4.7vw; font-size: 4.7cqw; }
.stats__meta { font-size: 8.3vw; font-size: 8.3cqw; color: var(--cian); -webkit-text-stroke: 0.9vw var(--blanco); -webkit-text-stroke: 0.9cqw var(--blanco); paint-order: stroke fill; }
.stats__goal-label { font-weight: 900; font-size: 4.7vw; font-size: 4.7cqw; line-height: 1; margin: 0.6vw 0 3vw !important; margin: 0.6cqw 0 3cqw !important; }
.people { display: flex; justify-content: center; gap: 0.7vw; gap: 0.7cqw; }
.people img { width: 3.4vw; width: 3.4cqw; height: auto; opacity: 0.35; }
.people img.is-on { opacity: 1; }
.stats__bar {
  position: relative; z-index: 1;
  margin: 3.5vw 2.5vw 0 27vw; margin: 3.5cqw 2.5cqw 0 27cqw; padding: 2vw 2vw 2.2vw 6vw; padding: 2cqw 2cqw 2.2cqw 6cqw;
  background: var(--cian); border-radius: 2vw; border-radius: 2cqw; text-align: center;
}
.stats__bar-number { font-weight: 900; font-size: 4.6vw; font-size: 4.6cqw; line-height: 1.1; }
.stats__bar-label { font-weight: 400; font-size: 2.85vw; font-size: 2.85cqw; }
.stats__glass { display: flex; align-items: center; gap: 1.5vw; gap: 1.5cqw; margin: 3.5vw 0 0 40vw; margin: 3.5cqw 0 0 40cqw; }
.stats__glass img { width: 5vw; width: 5cqw; height: auto; }
.stats__glass p { display: flex; flex-direction: column; line-height: 1.15; }
.stats__glass span { font-weight: 400; font-size: 2.1vw; font-size: 2.1cqw; }
.stats__glass strong { font-weight: 900; font-size: 3vw; font-size: 3cqw; }

/* Cómo sumarse */
.sumarse__title { width: 72vw; width: 72cqw; margin: 5vw auto 0; margin: 5cqw auto 0; }
.sumarse__title img { width: 100%; height: auto; }
.sumarse__subtitle {
  width: fit-content; margin: 4vw auto 0; margin: 4cqw auto 0; padding: 1.8vw 7vw; padding: 1.8cqw 7cqw;
  background: var(--celeste); color: var(--azul-texto); border-radius: 1.6vw; border-radius: 1.6cqw;
  font-weight: 900; font-size: 3.7vw; font-size: 3.7cqw;
}
.sumarse__text { width: 86vw; width: 86cqw; margin: 4vw auto 0; margin: 4cqw auto 0; text-align: center; font-weight: 900; font-size: 3.1vw; font-size: 3.1cqw; line-height: 1.18; }
.sumarse__photo { width: 56vw; width: 56cqw; aspect-ratio: 196 / 133; margin: 4vw auto 0; margin: 4cqw auto 0; border-radius: 0 8vw 0 8vw; border-radius: 0 8cqw 0 8cqw; overflow: hidden; }
.sumarse__photo { position: relative; }
.sumarse__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.video { position: relative; z-index: 1; width: 78vw; width: 78cqw; aspect-ratio: 16 / 9; margin: 5vw auto 0; margin: 5cqw auto 0; background: #000; overflow: hidden; }
.video img, .video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video video { object-fit: contain; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 13vw; width: 13cqw; height: 13vw; height: 13cqw; min-width: 48px; min-height: 48px;
  padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.2s;
}
.video__play:hover { transform: scale(1.08); }
.video__play svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }

/* ---------- Bloque informativo ---------- */
.info { background: #0b3f86; padding: 48px 20px 56px; }
.info__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.info__title { font-weight: 900; font-size: clamp(22px, 5.5vw, 30px); margin: 0 0 14px; }
.info__text { font-size: 16px; line-height: 1.6; }
.info__text p { margin: 0 0 12px; }
.info__text a { color: var(--celeste); }
.info__cta {
  display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 999px;
  background: var(--celeste); color: var(--azul-oscuro); font-weight: 900; font-size: 15px; text-decoration: none;
}
.info__cta:hover { background: var(--blanco); }

/* ---------- Pie de página ---------- */
.footer { background: var(--azul-oscuro); }
.footer__inner { max-width: 960px; margin: 0 auto; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand img { height: 64px; width: auto; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer__links a { text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: 13px; }
.footer__links a:hover { color: var(--celeste); }
.footer__copy { margin: 0; font-size: 12px; opacity: 0.7; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 20px; }
.notfound h1 { font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  .hero__track { scroll-behavior: auto; }
}
