/* ============================================================
   METABROS — fondo blanco / tinta oscura / azul Meta
   Tipografía 100% gratuita (Google Fonts):
   Display: Bebas Neue · Subtítulos: DM Sans · Body/UI: Inter
   ============================================================ */

:root {
  --bg: #ffffff; /* fondo claro */
  --ink: #0a0a14; /* tinta: texto y líneas sobre blanco */
  --blue: #0064e0; /* azul Meta */
  --blue-light: #0ab8ff; /* azul Meta claro (gradientes) */
  --shopify: #96bf48; /* verde Shopify */
  --ink-dim: rgba(10, 10, 20, 0.58);
  --line: rgba(10, 10, 20, 0.14);

  --font-display: "Bebas Neue", "Arial Black", sans-serif;
  --font-subtitle: "DM Sans", sans-serif;
  --font-body: "Inter", sans-serif;

  --pad: clamp(1.25rem, 4vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Luz ambiental: auroras azules muy tenues que rompen el negro plano
   (patrón de Lusion / Active Theory: fondo oscuro con color en movimiento) */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(36% 30% at 16% 20%, rgba(0, 100, 224, 0.16), transparent 70%),
    radial-gradient(30% 26% at 84% 62%, rgba(10, 184, 255, 0.09), transparent 70%),
    radial-gradient(48% 40% at 55% 110%, rgba(0, 100, 224, 0.13), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes aurora {
  to { transform: translate3d(5%, -4%, 0) scale(1.12) rotate(2deg); }
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

/* El PNG del logo tiene fondo blanco: multiply lo hace transparente
   sobre cualquier fondo claro, dejando solo las líneas y el infinito */
.nav__logo img,
.final__logo,
.footer__logo,
.hero__fallback img {
  mix-blend-mode: multiply;
}

/* El nombre METABROS completo va en tipografía estilo Meta (Poppins,
   la aproximación libre a su fuente propietaria Optimistic).
   "META" azul gradiente + "BROS" tinta: proporción idéntica siempre. */
.brand-word {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Marca: "Meta" siempre en azul Meta (gradiente), "Bros" en tinta */
.brand-meta {
  background: linear-gradient(100deg, var(--blue) 20%, var(--blue-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tipografía display: brutal, ancha, pesada */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

/* ============ BIENVENIDA ============ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(0, 100, 224, 0.1), transparent 70%),
    var(--bg);
}

body.intro-open {
  overflow: hidden;
}

.intro__logo {
  width: clamp(90px, 14vw, 140px);
  animation: breathe 5s ease-in-out infinite;
}

.intro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 4.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.intro__hint {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.intro__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* ============ CONTROL DE MÚSICA ============ */
.sound-toggle {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sound-toggle svg {
  width: 24px;
  height: 24px;
}

.sound-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.06);
}

.sound-toggle__slash {
  display: none;
}

.sound-toggle.is-muted .sound-toggle__wave {
  display: none;
}

.sound-toggle.is-muted .sound-toggle__slash {
  display: block;
}

/* ============ MODO DORMIDO (12am-6am Colombia) ============
   Paleta estricta: #000000 / #FFFFFF / #0066FF
   Cielo nocturno a pantalla completa: luna creciente, estrellas
   titilando, el logo durmiendo arropado por una cobija que va de
   borde a borde, como una cama vista de frente. Igual de ancho y
   dramático en celular y en PC. */
.sleepmode {
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(130% 80% at 50% 118%, rgba(0, 102, 255, 0.16), transparent 55%),
    #020308;
}

body.is-sleeping {
  overflow: hidden;
}

/* Estrellas: parpadean con delays aleatorios (inline desde JS) */
.sleep-star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: startwinkle 3.2s ease-in-out infinite;
}

@keyframes startwinkle {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.85; }
}

/* Luna creciente: un círculo cuya sombra dibuja la media luna */
.sleep-moon {
  position: absolute;
  top: clamp(2.5rem, 8vh, 5rem);
  left: clamp(2rem, 9vw, 7rem);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 15px 9px 0 0 #e8efff;
  transform: rotate(-14deg);
  filter: drop-shadow(0 0 26px rgba(160, 190, 255, 0.4));
}

/* El logo (Logo 2: transparente, líneas negras): invertido a líneas
   blancas con el infinito devuelto al azul. Medio cuerpo queda bajo
   la cobija; la mitad de la cabeza asoma. */
.sleep-logo-wrap {
  --logo: min(46vw, 250px);
  position: absolute;
  z-index: 1;
  left: 50%;
  top: calc(46vh - var(--logo) * 0.58);
  transform: translateX(-50%);
  width: var(--logo);
}

.sleep-logo {
  width: 100%;
  display: block;
  filter: invert(1) hue-rotate(180deg) saturate(1.6)
    drop-shadow(0 0 18px rgba(0, 102, 255, 0.25));
}

.sleep-z {
  position: absolute;
  z-index: 2;
  color: #0066ff;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 102, 255, 0.6);
}

.sleep-z--sm { font-size: 0.9rem; top: 8%; right: -6%; }
.sleep-z--md { font-size: 1.25rem; top: -2%; right: -13%; }
.sleep-z--lg { font-size: 1.7rem; top: -14%; right: -19%; }

/* La cobija: de borde a borde, una sola curva suave de tela.
   El doblez superior (::before) con costura punteada es lo que la
   hace leerse como cobija; los rombos de acolchado van sutiles. */
.sleep-blanket {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 46vh;
  bottom: 0;
  display: flex;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 74px 60px 0 0;
  background-color: #0c142e;
  background-image:
    repeating-linear-gradient(45deg, rgba(0, 102, 255, 0.08) 0 2px, transparent 2px 42px),
    repeating-linear-gradient(-45deg, rgba(0, 102, 255, 0.08) 0 2px, transparent 2px 42px);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
}

/* Doblez: franja de tela doblada, más clara, con costura azul */
.sleep-blanket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(34px, 6.5vh, 52px);
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: linear-gradient(180deg, #22315f, #141d3f);
  border-bottom: 2px dashed rgba(0, 102, 255, 0.5);
  box-shadow: 0 7px 14px -6px rgba(0, 0, 0, 0.6);
}

/* Sombra lateral: la tela cae por los costados de la "cama" */
.sleep-blanket::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.35));
}

.sleep-blanket__content {
  position: relative;
  z-index: 1;
  margin: auto;
  max-width: 680px;
  padding: clamp(50px, 9vh, 76px) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

/* Reloj de nochero: reposa sobre el doblez, titila en reposo,
   y crece para sonar 3 segundos antes de ir a WhatsApp */
.sleep-clock {
  position: absolute;
  z-index: 2;
  top: clamp(44px, 8vh, 64px);
  right: clamp(1.5rem, 11vw, 9rem);
  width: clamp(56px, 7vw, 84px);
  transform-origin: 50% 85%;
}

.sleep-clock svg {
  width: 100%;
  height: auto;
  display: block;
}

.sleep-clock-led {
  animation: clockled 2.4s ease-in-out infinite;
}

@keyframes clockled {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* Tipografía del sueño: grande, con brillo, con carácter */
.sleepmode__title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.sleepmode__title-line {
  display: block;
  overflow: hidden;
}

.sleepmode__title .brand-word {
  font-size: 0.9em;
  filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.45));
}

.sleep-bros {
  color: #ffffff;
}

.sleepmode__text {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  max-width: 460px;
}

.sleepmode__badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 3, 8, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(0.74rem, 1.4vw, 0.84rem);
  color: rgba(255, 255, 255, 0.78);
}

.sleepmode__badge strong {
  color: #ffffff;
  font-weight: 700;
}

.sleepmode__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0066ff;
  flex-shrink: 0;
  animation: statusdot 2.2s ease-in-out infinite;
}

/* ============ ESTADO DEL EQUIPO (solo de día) ============ */
.team-status {
  position: fixed;
  left: 1.5rem;
  bottom: 5.75rem; /* encima del control de música */
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(300px, 62vw);
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-dim);
  pointer-events: none;
}

.team-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0066ff;
  flex-shrink: 0;
  animation: statusdot 2.2s ease-in-out infinite;
}

@keyframes statusdot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.45); }
  60% { box-shadow: 0 0 0 6px rgba(0, 102, 255, 0); }
}

/* Mientras duermen, no hay reporte del equipo */
body.is-sleeping .team-status {
  display: none;
}

@media (max-width: 768px) {
  .team-status {
    font-size: 0.66rem;
    max-width: 58vw;
  }
}

/* ============ CAPA SINÁPTICA (estela del cursor y ripples) ============ */
.synapse-layer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

/* ============ CURSOR PERSONALIZADO ============ */
.cursor {
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff; /* con difference sobre blanco se ve oscuro */
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease,
      background-color 0.25s ease, opacity 0.25s ease;
    mix-blend-mode: difference;
  }

  .cursor.is-hover {
    width: 44px;
    height: 44px;
    background: var(--blue);
    mix-blend-mode: normal;
    opacity: 0.85;
  }

  .cursor.is-cta {
    opacity: 0;
    width: 4px;
    height: 4px;
  }

  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor label {
    cursor: none;
  }
}

/* ============ BOTONES ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease,
    transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  color: var(--blue);
  border-color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ink);
}

.btn--blue {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(100deg, var(--blue), var(--blue-light));
  box-shadow: 0 8px 30px rgba(0, 100, 224, 0.35);
}

.btn--blue:hover,
.btn--blue:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 100, 224, 0.55);
}

.btn--ghost {
  border-color: var(--line);
  font-size: 0.85rem;
  padding: 0.75rem 1.75rem;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

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

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav__logo span {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav__cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  transition: background 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease, transform 0.35s ease;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: linear-gradient(100deg, var(--blue), var(--blue-light));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 28px rgba(0, 100, 224, 0.45);
  transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  /* El logo 3D ocupa la mitad superior; el texto vive abajo, sin superponerse */
  padding-bottom: 13vh;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Fallback sin WebGL: logo animado en CSS */
.hero__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.hero__fallback.is-active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}

.hero__fallback img {
  width: min(42vw, 320px);
  animation: breathe 5s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(0, 100, 224, 0.35));
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.9; }
  50% { transform: scale(1.04) translateY(-10px); opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad);
  pointer-events: none;
}

.hero__content a {
  pointer-events: auto;
}

.hero__title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 6.5vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  user-select: none;
}

.hero__title-line {
  display: inline-block;
}

.hero__tagline {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9em;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__tagline strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__tagline strong.brand-meta {
  color: transparent; /* deja actuar el gradiente azul */
  filter: drop-shadow(0 0 14px rgba(0, 100, 224, 0.5));
}

.hero__cta {
  margin-top: 2.25rem;
}

/* Mobile: todo el bloque del hero más grande y agrupado,
   con el título pegado al logo */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 18vh; /* sube el bloque completo hacia el logo */
  }

  .hero__title {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .hero__tagline {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    margin-top: 0.8rem;
    gap: 0.55em;
  }

  .hero__cta {
    margin-top: 1.5rem;
  }

  /* La línea de scroll queda en su franja libre, sin tocar el CTA */
  .hero__scroll-hint {
    height: 44px;
    bottom: 1.25rem;
  }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: var(--line);
  overflow: hidden;
}

.hero__scroll-hint span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--blue);
  animation: scrollhint 2s ease-in-out infinite;
}

@keyframes scrollhint {
  to { top: 110%; }
}

/* ============ MARCAS QUE CONFIARON ============ */
.brands {
  position: relative;
  padding: 14vh var(--pad);
  text-align: center;
  overflow: hidden;
  /* banda azul profundo que rompe el negro */
  background: linear-gradient(180deg, transparent 0%, rgba(222, 237, 255, 0.7) 45%, rgba(216, 233, 255, 0.7) 55%, transparent 100%);
}

.brands__kicker {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  z-index: 1;
}

.brands__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-top: 2.25rem; /* remate después del desfile de logos */
  position: relative;
  z-index: 1;
}

/* Showcase 3D: un logo a la vez, girando sobre un pedestal de luz.
   Orden narrativo: kicker, logo, y el titular como remate. */
.brands__stage {
  margin: 1.5rem auto 0;
  position: relative;
  z-index: 1;
  height: clamp(260px, 38vh, 440px);
  max-width: 900px;
  perspective: 1100px;
}

/* Pedestal: resplandor detrás del logo que lo ancla a la escena */
.brands__stage::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(50% 55% at 50% 50%, rgba(0, 100, 224, 0.12), transparent 72%);
  pointer-events: none;
}

/* Sombra elíptica bajo el logo: lo "apoya" sobre la página */
.brands__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: min(46%, 380px);
  height: 22px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 45, 110, 0.22), transparent 70%);
  pointer-events: none;
}

.brands__frame {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.brands__logo {
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 100%;
  max-width: min(92vw, 880px);
  object-fit: contain;
  will-change: transform, opacity;
  filter: drop-shadow(0 18px 30px rgba(20, 45, 110, 0.18));
}

/* Variante sin animación (reduced motion): cuadrícula estática */
.brands__frame.is-static {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.brands__frame.is-static .brands__logo {
  position: static;
  max-height: 64px;
  max-width: 140px;
}

/* Reseñas de clientes: carrusel automático de 5 estrellas.
   Se pausa al posar el cursor (o al enfocar con teclado). */
.validators-viewport {
  overflow: hidden;
  margin-top: 4.5rem;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.validators {
  list-style: none;
  display: flex;
  width: max-content;
  margin: 0;
  animation: reviews-scroll 45s linear infinite;
}

.validators:hover,
.validators:focus-within {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  to { transform: translateX(-50%); }
}

.validators li {
  width: clamp(270px, 32vw, 360px);
  flex-shrink: 0;
  margin-right: 1.25rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.validators li:hover {
  border-color: rgba(0, 100, 224, 0.45);
  box-shadow: 0 18px 40px -18px rgba(20, 45, 110, 0.25);
}

.validators__stars {
  color: var(--blue);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-shadow: 0 0 14px rgba(0, 100, 224, 0.35);
}

.validators p {
  margin: 0.9rem 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.65;
  flex-grow: 1;
}

.validators strong {
  display: block;
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.validators li > span:last-child {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* Por qué apenas ahora: confianza con actitud */
.brands__confession {
  margin: 4.5rem auto 0;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.brands__confession-q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.brands__confession p:not(.brands__confession-q) {
  margin-top: 1.25rem;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.brands__confession strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ MANIFIESTO ============ */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 20vh var(--pad);
  /* resplandor lateral, no negro plano */
  background: radial-gradient(55% 70% at 88% 35%, rgba(0, 100, 224, 0.14), transparent 70%);
}

.manifesto__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.manifesto__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.manifesto__statement .word {
  display: inline-block;
  opacity: 0.08;
  will-change: opacity;
}

.manifesto__statement .word--accent {
  color: var(--blue);
}

.manifesto__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-dim);
  max-width: 620px;
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  line-height: 1.75;
}

.manifesto__sub strong {
  color: var(--ink);
  font-weight: 600;
}

.manifesto__sub strong.brand-meta {
  color: transparent;
  font-weight: 700;
}

/* ============ EL PLAN ============ */
.plan {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12vh var(--pad);
  /* foco de luz azul detrás de la tarjeta */
  background: radial-gradient(70% 65% at 50% 50%, rgba(214, 232, 255, 0.75) 0%, rgba(242, 247, 255, 0.55) 55%, transparent 100%);
}

/* Canvas 3D de fondo por sección (extras.js) */
.bg3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.plan__card,
.final__title,
.final__cta,
.final__logo,
.services__title,
.services__grid {
  position: relative;
  z-index: 1;
}

.plan__card {
  position: relative;
  border-radius: 22px;
  width: min(920px, 100%);
  border: 1px solid var(--ink);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.plan__card:hover {
  border-color: rgba(0, 100, 224, 0.7);
  box-shadow: 0 0 60px rgba(0, 100, 224, 0.12);
}

.plan__infinity {
  font-size: 3.2rem;
  line-height: 1;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 12px rgba(0, 100, 224, 0.7));
  animation: infpulse 3s ease-in-out infinite;
}

.plan__card:hover .plan__infinity {
  animation-duration: 1.2s;
}

@keyframes infpulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 22px rgba(0, 100, 224, 0.95)); }
}

.plan__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1;
}

.plan__kicker {
  font-family: var(--font-subtitle);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin-top: 1rem;
}

.plan__divider {
  height: 1px;
  background: var(--line);
  margin: 2.5rem auto;
  max-width: 420px;
}

.plan__list {
  list-style: none;
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.3rem);
  display: grid;
  gap: 0.9rem;
}

.plan__list strong {
  color: var(--blue);
  font-weight: 600;
}

.plan__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
}

.plan__price span {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 0.35em;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}

.plan__note {
  color: var(--ink-dim);
  font-size: 1rem;
}

.plan__fineprint {
  color: var(--ink-dim);
  font-size: 0.82rem;
  margin-top: 0.9rem;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

.plan__ugc-note {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin: 1.5rem 0 2rem;
  font-family: var(--font-subtitle);
  letter-spacing: 0.04em;
}

.plan__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botón UGC activo */
#btn-ugc.is-active {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(0, 100, 224, 0.14);
}

/* ============ SERVICIOS ============ */
.services {
  padding: 18vh var(--pad);
  position: relative;
  /* banda navy con transición suave */
  background: linear-gradient(180deg, transparent, rgba(228, 240, 255, 0.7) 30%, rgba(228, 240, 255, 0.7) 70%, transparent);
}

.services__title,
.calc__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 1.25rem;
}

/* Barra azul Meta bajo los títulos de sección */
.services__title::after,
.calc__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  box-shadow: 0 0 18px rgba(0, 100, 224, 0.6);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.services__grid {
  perspective: 1200px; /* profundidad para el tilt 3D de las tarjetas */
}

.services__title,
.services__grid {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.services__title { margin-bottom: 4rem; }

/* Tarjetas flotantes: azul Meta por defecto */
.service-card {
  border: 1px solid rgba(0, 100, 224, 0.5);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(165deg, rgba(0, 100, 224, 0.2), rgba(10, 184, 255, 0.05) 55%, rgba(0, 0, 0, 0));
  box-shadow: 0 24px 50px -24px rgba(20, 45, 110, 0.22),
    0 0 32px rgba(0, 100, 224, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 34px 60px -22px rgba(20, 45, 110, 0.3),
    0 0 56px rgba(0, 100, 224, 0.28);
}

.service-card__price {
  color: var(--blue-light);
}

/* Excepción: la tarjeta de Shopify va en verde Shopify */
.service-card--shopify {
  border-color: rgba(150, 191, 72, 0.55);
  background: linear-gradient(165deg, rgba(150, 191, 72, 0.2), rgba(150, 191, 72, 0.05) 55%, rgba(0, 0, 0, 0));
  box-shadow: 0 24px 50px -24px rgba(20, 45, 110, 0.22),
    0 0 32px rgba(150, 191, 72, 0.1);
}

.service-card--shopify:hover {
  border-color: var(--shopify);
  box-shadow: 0 34px 60px -22px rgba(20, 45, 110, 0.3),
    0 0 56px rgba(150, 191, 72, 0.28);
}

.service-card--shopify .service-card__price {
  color: var(--shopify);
}

.service-card--shopify .btn--ghost:hover,
.service-card--shopify .btn--ghost:focus-visible {
  border-color: var(--shopify);
  color: var(--shopify);
}

.service-card h3 {
  font-family: var(--font-subtitle);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  min-height: 3.2em;
}

.service-card__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
}

.service-card p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-card .btn {
  align-self: flex-start;
}

/* ============ CALCULADORA ============ */
.calc {
  padding: 18vh var(--pad);
  /* halo superior tenue */
  background: radial-gradient(75% 60% at 50% 18%, rgba(226, 238, 255, 0.72) 0%, rgba(240, 246, 255, 0.55) 55%, transparent 100%);
}

.calc__inner {
  max-width: 760px;
  margin: 0 auto;
}

.calc__sub {
  color: var(--ink-dim);
  margin-top: -2.5rem;
  margin-bottom: 3.5rem;
  font-family: var(--font-subtitle);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.calc__layout {
  display: grid;
  gap: 2rem;
}

/* Teléfono: el mensaje se escribe solo. En mobile va debajo de la consola;
   en desktop acompaña al lado, fijo mientras haces scroll. */
.phone {
  display: block;
  max-width: 340px;
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .calc__inner {
    max-width: 1150px;
  }

  .calc__layout {
    grid-template-columns: 1fr 330px;
    align-items: start;
  }

  .phone {
    position: sticky;
    top: 6rem;
    margin: 0;
  }
}

.phone__caption {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.9rem;
  text-align: center;
}

/* Colores y tipografía reales de WhatsApp: el mockup debe ser indistinguible.
   WhatsApp usa la fuente del sistema, no la del sitio. */
.phone__device {
  position: relative; /* ancla de la guía verde */
  border: 9px solid #0a0a14;
  border-radius: 34px;
  overflow: hidden;
  background: #efeae2;
  box-shadow: 0 30px 60px -25px rgba(20, 45, 110, 0.35);
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
}

/* Barra de estado del sistema (hora + señal/wifi/batería) */
.phone__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #008069;
  color: #ffffff;
  padding: 0.3rem 0.9rem 0.1rem;
  font-size: 0.66rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.phone__statusicons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.phone__statusicons svg {
  width: 13px;
  height: 11px;
}

.phone__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.6rem;
  background: #008069; /* verde oficial del header */
  color: #ffffff;
}

.phone__back {
  display: flex;
  width: 18px;
  flex-shrink: 0;
}

.phone__back svg {
  width: 18px;
  height: 18px;
}

.phone__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: contain;
  flex-shrink: 0;
}

.phone__contact {
  flex-grow: 1;
  min-width: 0;
}

.phone__contact strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.phone__contact span {
  display: block;
  font-size: 0.68rem;
  opacity: 0.85;
}

.phone__icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.phone__icons svg {
  width: 17px;
  height: 17px;
}

.phone__chat {
  padding: 0.8rem 0.75rem 1.2rem;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  /* trama sutil del fondo de chat de WhatsApp */
  background: #efeae2 radial-gradient(rgba(0, 0, 0, 0.028) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.phone__date {
  align-self: center;
  background: #ffffff;
  color: #54656f;
  font-size: 0.62rem;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Aviso de cifrado: el detalle que grita "WhatsApp de verdad" */
.phone__crypt {
  align-self: center;
  background: #fdf3c5;
  color: #54503b;
  font-size: 0.6rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  max-width: 92%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.phone__bubble {
  position: relative;
  max-width: 82%;
  width: fit-content;
  margin-left: auto;
  background: #d9fdd3; /* burbuja de enviado */
  border-radius: 7.5px 0 7.5px 7.5px;
  padding: 0.38rem 0.5rem 0.3rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #111b21;
  text-align: left;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

/* Solo el mensaje respeta los saltos de línea; la indentación del
   HTML jamás debe renderizarse */
#phone-msg {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* colita de la burbuja */
.phone__bubble::after {
  content: "";
  position: absolute;
  top: 0;
  right: -7px;
  border-left: 8px solid #d9fdd3;
  border-bottom: 8px solid transparent;
}

.phone__time {
  display: block;
  text-align: right;
  font-size: 0.62rem;
  color: #667781;
  margin-top: 0.1rem;
  line-height: 1;
}

.phone__time b {
  color: #53bdeb; /* chulos azules de leído */
  font-weight: 400;
  letter-spacing: -0.32em; /* solapados como en la app real */
  margin-left: 0.15em;
}

/* Guía verde: vive en el flujo del chat, debajo de la burbuja.
   Un mensaje largo la empuja hacia abajo, jamás se tapan. */
.phone__hint {
  margin-top: auto; /* se pega al fondo del chat, junto al botón */
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* la punta de la flecha cae sobre el botón verde */
  gap: 4px;
  padding-top: 0.6rem;
  color: #00a884;
  pointer-events: none;
}

.phone__hint svg {
  margin-right: 2px;
}

.phone__hint span {
  background: #00a884;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.phone__hint svg {
  width: 30px;
  height: 58px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
  animation: hintbob 1.5s ease-in-out infinite;
}

@keyframes hintbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.phone__inputbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  background: #f0f2f5;
}

/* Campo de mensaje con emoji, clip y cámara, como la app */
.phone__field {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #8696a0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  min-width: 0;
}

.phone__field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.phone__placeholder {
  flex-grow: 1;
  font-size: 0.8rem;
  color: #8696a0;
}

.phone__mic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00a884; /* botón verde de enviar de WhatsApp */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: sendpulse 2.2s ease-in-out infinite;
}

@keyframes sendpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 132, 0.45); }
  55% { box-shadow: 0 0 0 9px rgba(0, 168, 132, 0); }
}

.phone__mic svg {
  width: 17px;
  height: 17px;
}

.calc__console {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.calc__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.calc__name {
  font-weight: 500;
  font-size: 1.05rem;
}

.calc__unit {
  font-size: 0.8rem;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}

.calc__stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.calc__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  font-family: var(--font-body);
  line-height: 1;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  touch-action: manipulation;
}

.calc__btn:hover,
.calc__btn:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.calc__btn:active {
  background: var(--blue);
  color: #ffffff;
}

.calc__count {
  min-width: 3ch;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Toggle */
.calc__toggle {
  position: relative;
  display: inline-block;
}

.calc__toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.calc__toggle-track {
  display: block;
  width: 58px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 99px;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.calc__toggle-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.calc__toggle input:checked + .calc__toggle-track {
  border-color: var(--blue);
  background: rgba(0, 100, 224, 0.18);
}

.calc__toggle input:checked + .calc__toggle-track::after {
  transform: translateX(27px);
  background: var(--blue);
}

.calc__toggle input:focus-visible + .calc__toggle-track {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Total */
.calc__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.calc__total-label {
  font-family: var(--font-subtitle);
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.calc__total {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--blue);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(0, 100, 224, 0.35);
}

.calc__honesty {
  margin: 3rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--blue);
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.8;
}

.calc__honesty strong {
  color: var(--ink);
}

/* ============ FONDO GLOBAL: MALLA DE PUNTOS + FOCO DE CURSOR ============ */
.dotgrid {
  --mx: 50vw;
  --my: 33vh;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(10, 30, 80, 0.35) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  /* tenue en toda la página, intensa alrededor del cursor */
  -webkit-mask-image: radial-gradient(300px circle at var(--mx) var(--my),
      rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.14) 100%);
  mask-image: radial-gradient(300px circle at var(--mx) var(--my),
      rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.14) 100%);
}

/* Toque de color: halo azul muy suave que acompaña al foco */
.dotgrid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my),
      rgba(0, 100, 224, 0.07), transparent 70%);
}

/* Mobile / reduced motion: malla fija y discreta, sin foco */
.dotgrid--static {
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.1));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.1));
}

.dotgrid--static::after {
  display: none;
}

/* ============ CTA FINAL ============ */
.final {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3.5rem;
  padding: 15vh var(--pad);
  /* amanecer azul central para el cierre */
  background: radial-gradient(60% 70% at 50% 48%, rgba(214, 232, 255, 0.72) 0%, rgba(240, 246, 255, 0.5) 55%, transparent 100%);
}

.final__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 8.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.final__logo {
  width: 72px;
  opacity: 0.8;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem var(--pad);
  gap: 1rem;
}

.footer__logo {
  width: 40px;
}

.footer__center {
  text-align: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}

/* Crédito obligatorio de la música (licencia CC BY 4.0) */
.footer__credit {
  font-size: 0.66rem;
  color: var(--ink-dim);
  opacity: 0.7;
  margin-top: 0.3rem;
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social a {
  width: 22px;
  height: 22px;
  color: var(--ink-dim);
  transition: color 0.3s ease;
}

.footer__social a:hover {
  color: var(--blue);
}

.footer__social svg {
  width: 100%;
  height: 100%;
}

/* ============ VOLVER ARRIBA ============ */
.totop {
  position: fixed;
  right: 1.75rem;
  bottom: 7.5rem; /* encima del botón de WhatsApp */
  z-index: 90;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}

.totop svg {
  width: 20px;
  height: 20px;
}

.totop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.totop:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ============ WHATSAPP FLOTANTE ============ */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  background: var(--blue); /* círculo azul Meta */
  color: #ffffff; /* logo de WhatsApp en blanco */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 32px rgba(0, 100, 224, 0.4);
  transition: background 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease, opacity 0.3s ease;
}

.wa-float svg {
  width: 36px;
  height: 36px;
}

.wa-float:hover {
  background: var(--blue-light);
  transform: scale(1.08);
  box-shadow: 0 14px 40px rgba(0, 100, 224, 0.55);
}

/* Se oculta al llegar al footer para no tapar las redes sociales */
.wa-float.is-hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card h3 {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Reseñas sin carrusel: cuadrícula estática */
  .validators {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .validators li {
    margin-bottom: 1.25rem;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
