/* ==========================================================================
   AdUp — blanco, limpio y con el azul como acción
   Paleta de marca: azul #007BFF · negro #111111 · blanco #FFFFFF · gris topo #A7A7A2
   ========================================================================== */

:root {
  --fondo: #ffffff;
  --superficie: #f6f6f5;
  --superficie-2: #efefed;
  --texto: #111111;
  --texto-suave: #5b5b57;
  --linea: rgba(17, 17, 17, 0.09);
  --linea-fuerte: rgba(17, 17, 17, 0.18);
  --azul: #007bff;
  --azul-accion: #0070e8;     /* azul de marca apenas más profundo para que el texto blanco sea legible */
  --azul-hover: #005fcc;
  --azul-tinte: rgba(0, 123, 255, 0.08);
  --blanco: #ffffff;
  --topo: #8c8c87;
  --estudio: #ededed;
  --error: #c62828;

  --sombra-escenario: 0 1px 0 rgba(17, 17, 17, 0.04), 0 30px 60px -30px rgba(17, 17, 17, 0.22);

  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Escala tipográfica: saltos grandes entre niveles para una jerarquía bien marcada */
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(2.4rem, 1.2rem + 3.4vw, 4.25rem);
  --fs-h1: clamp(3rem, 1rem + 6.4vw, 6.75rem);

  --r-escenario: clamp(20px, 2.4vw, 32px);
  --r-panel: 18px;
  --r-control: 999px;

  --ancho: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --seccion: clamp(88px, 11vw, 168px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.011em;
  font-optical-sizing: auto;   /* Inter usa sus formas "Display" en tamaños grandes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
video,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

/* Títulos livianos y muy cerrados: el tamaño y el interletrado dan la presencia, no el peso */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -0.064em; line-height: 0.93; }
h2 { font-size: var(--fs-h2); font-weight: 400; letter-spacing: -0.05em; line-height: 1.04; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; letter-spacing: -0.032em; }

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--azul); color: var(--blanco); }

:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.saltar {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--texto);
  color: var(--blanco);
  border-radius: var(--r-control);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.saltar:focus-visible { transform: none; }

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--texto-suave);
  max-width: 34em;
}

.nota {
  font-size: var(--fs-small);
  color: var(--texto-suave);
}

/* ---------- Botones ---------- */
.btn {
  --alto: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--alto);
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-control);
  font: inherit;
  font-weight: 550;
  font-size: 1rem;
  letter-spacing: -0.012em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s, color 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }

/* Botón principal: azul de marca con un brillo que cruza al pasar el mouse */
.btn--primario {
  color: var(--blanco);
  background: var(--azul-accion);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 28px -12px rgba(0, 112, 232, 0.65);
}
.btn--primario::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.btn--primario:hover { background: var(--azul-hover); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 34px -12px rgba(0, 112, 232, 0.7); }
.btn--primario:hover::after,
.btn--primario:focus-visible::after { transform: translateX(120%); }
.btn--primario:active { transform: translateY(0) scale(0.98); }

.btn--linea {
  color: var(--texto);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
}
.btn--linea:hover { box-shadow: inset 0 0 0 1px var(--texto); }

.btn--chico { --alto: 44px; padding: 0 20px; font-size: 0.9375rem; }

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Encabezado ---------- */
.encabezado {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: transform 0.45s var(--ease-out), background-color 0.3s, backdrop-filter 0.3s;
}
.encabezado::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--linea);
  opacity: 0;
  transition: opacity 0.3s;
}
.encabezado.es-solido {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.encabezado.es-solido::after { opacity: 1; }
.encabezado.esta-oculto { transform: translateY(-100%); }

.encabezado__fila {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.marca { display: inline-flex; align-items: center; text-decoration: none; }
.marca img { width: 118px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__lista {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav__lista a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: var(--r-control);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--texto-suave);
  transition: color 0.2s, background-color 0.2s;
}
.nav__lista a:hover,
.nav__lista a[aria-current="page"] { color: var(--texto); background: var(--superficie); }
.nav .btn { margin-left: 10px; }

.menu-boton {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--superficie);
  color: var(--texto);
  cursor: pointer;
}
.menu-boton span {
  position: absolute;
  left: 15px; right: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.2s;
}
.menu-boton span:nth-child(1) { top: 19px; }
.menu-boton span:nth-child(2) { top: 27px; }
.menu-abierto .menu-boton span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-abierto .menu-boton span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu-movil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--fondo);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), visibility 0s 0.35s;
}
.menu-abierto .menu-movil { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease-out); }
.menu-movil ul { list-style: none; margin: 0; padding: 0; }
.menu-movil li { overflow: hidden; }
.menu-movil ul a {
  display: block;
  padding: 10px 0;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out);
}
.menu-abierto .menu-movil ul a { transform: none; }
.menu-abierto .menu-movil li:nth-child(2) a { transition-delay: 0.04s; }
.menu-abierto .menu-movil li:nth-child(3) a { transition-delay: 0.08s; }
.menu-abierto .menu-movil li:nth-child(4) a { transition-delay: 0.12s; }
.menu-abierto .menu-movil li:nth-child(5) a { transition-delay: 0.16s; }
.menu-abierto .menu-movil li:nth-child(6) a { transition-delay: 0.2s; }
.menu-movil__pie { display: grid; gap: 16px; }
.menu-movil__pie .btn { width: 100%; }

@media (max-width: 960px) {
  .nav__lista,
  .nav .btn { display: none; }
  .menu-boton { display: inline-block; }
}
@media (min-width: 961px) {
  .menu-movil { display: none; }
  /* Logo a la izquierda, links centrados, botón a la derecha */
  .encabezado__fila { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { display: contents; }
  .nav__lista { justify-self: center; }
  .nav .btn { justify-self: end; margin-left: 0; }
}
body.menu-abierto { overflow: hidden; }

/* ---------- Escenario (panel gris claro donde viven el video, la mascota y los mockups) ---------- */
/* Sin panel: las fotos y los videos se funden con el fondo.
   - "multiply" hace que el blanco de la foto tome el color de lo que tiene detrás.
   - La máscara difumina los bordes para que nunca se vea un rectángulo.
   - Los videos tienen fondo gris claro: un leve aclarado lo lleva a blanco. */
.escenario {
  position: relative;
  overflow: hidden;
}
.escenario img,
.escenario video { width: 100%; height: 100%; object-fit: cover; }
.escenario--foto img,
.escenario--video {
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.escenario--foto img { object-fit: contain; mix-blend-mode: multiply; }
.escenario--video video {
  opacity: 0;
  filter: brightness(1.06);
  transition: opacity 0.8s var(--ease-out);
}
.escenario--video video.listo { opacity: 1; }

.video-control {
  position: absolute;
  right: 9%;
  bottom: 9%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--texto);
  box-shadow: 0 4px 14px -4px rgba(17, 17, 17, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}
.video-control:hover,
.video-control:focus-visible { opacity: 1; transform: scale(1.06); }
.video-control svg { width: 16px; height: 16px; }

/* Revelado: el escenario se abre al entrar en pantalla */
.js .revela-escenario {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out);
}
.js .revela-escenario.visible { opacity: 1; transform: none; }

/* Revelado de bloques (subtítulos y tarjetas): sube 20px mientras aparece.
   --d permite escalonar tarjetas hermanas. */
.js .revela {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-out) var(--d, 0ms),
    transform 0.8s var(--ease-out) var(--d, 0ms);
}
.js .revela.visible { opacity: 1; transform: none; }

/* Revelado por líneas (H1 y H2): el JS parte el título en sus líneas reales
   y cada una entra 70 ms después de la anterior. */
.js main :is(h1, h2):not(.dividido) { visibility: hidden; }
[data-lineas] .l { display: block; }
.js [data-lineas] .l > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease-out) calc(var(--i, 0) * 70ms + var(--d, 0ms)),
    transform 0.8s var(--ease-out) calc(var(--i, 0) * 70ms + var(--d, 0ms));
}
.js [data-lineas].visible .l > span { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(56px, 8vw, 112px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "titulo escenario"
    "texto  escenario";
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 3vw, 40px) clamp(32px, 5vw, 72px);
}
.hero__titulo { grid-area: titulo; align-self: end; }
.hero__texto { grid-area: texto; display: grid; gap: clamp(22px, 3vw, 32px); align-content: start; }
.hero__escenario { grid-area: escenario; align-self: center; }
.hero h1 { font-size: clamp(3.3rem, 7vw, 6.75rem); }
.hero--servicio h1 { font-size: clamp(2.6rem, 1rem + 4.6vw, 5.25rem); }

/* Video del inicio: recortado al sector donde pasa la acción (60 % central del ancho,
   sin el aire vacío de arriba) para que el celular y la mascota se vean grandes y altos */
.hero__escenario--video {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-height: calc(100svh - var(--header-h) - 16px);
  min-height: 300px;
}
.hero__escenario--video video {
  position: absolute;
  top: -7.5%;
  left: -27.5%;
  width: 166.7%;
  max-width: none;
  height: auto;
  object-fit: fill;
}

/* Etiqueta tipo píldora arriba del título */
.hero__insignia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  padding: 7px 16px;
  border-radius: var(--r-control);
  background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  letter-spacing: -0.025em;
  color: var(--texto);
}
.hero__insignia strong { font-weight: 400; color: var(--azul-accion); }

/* Texto del hero: gris, amplio y con mucho interlineado */
.hero__texto .lead {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.8;
  letter-spacing: -0.022em;
  color: #6f6f6b;
  max-width: 31em;
}

/* Secuencia de carga del hero: el título entra por líneas y después el resto */
.js .hero .aparece { opacity: 0; transform: translateY(20px); }
.js .hero__escenario { opacity: 0; transform: scale(0.96); }
.js .cargado .hero .aparece { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out) 0.25s, transform 0.8s var(--ease-out) 0.25s; }
.js .cargado .hero .aparece + .aparece { transition-delay: 0.35s; }
.js .cargado .hero .aparece + .aparece + .aparece { transition-delay: 0.45s; }
.js .cargado .hero .hero__insignia { transition-delay: 0.05s; }
.js .cargado .hero__escenario {
  opacity: 1;
  transform: none;
  transition: transform 1.6s var(--ease-out) 0.2s, opacity 1s var(--ease-out) 0.2s;
}

/* Home: el video arranca lo más arriba posible */
.hero--inicio { padding-top: calc(var(--header-h) + 4px); }
.hero--inicio .hero__titulo { align-self: start; padding-top: clamp(16px, 3vw, 40px); }
.hero--inicio .hero__escenario { align-self: start; }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "titulo" "escenario" "texto";
    grid-template-rows: auto;
  }
  .hero__escenario--video { max-height: none; min-height: 0; }
  .hero h1 { font-size: clamp(3.4rem, 15vw, 5.8rem); }
  .hero--servicio h1 { font-size: clamp(2.7rem, 10.5vw, 4.4rem); }
  /* En celular el video va primero, pegado al menú */
  .hero--inicio { padding-top: var(--header-h); }
  .hero--inicio .hero__grid { grid-template-areas: "escenario" "titulo" "texto"; row-gap: 20px; }
  .hero--inicio .hero__titulo { padding-top: 0; }
}
@media (max-width: 560px) {
  .acciones .btn { flex: 1 1 100%; }
}

/* ---------- Hero oscuro con fondo Velaris (solo home) ---------- */
.hero--oscuro {
  background: #000;          /* también es el respaldo si no hay WebGL */
  color: var(--blanco);
  isolation: isolate;
  overflow: hidden;
}
.hero--oscuro > .contenedor { position: relative; z-index: 1; }
.velaris {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.velaris__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.velaris--listo .velaris__canvas { opacity: 1; }
/* Velo sutil: oscurece detrás del texto para que siempre se lea */
.velaris::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 42%, transparent 70%),
    linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.45) 100%);
}
@media (max-width: 800px) {
  .velaris::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.65) 100%);
  }
}

.hero--oscuro h1 { color: var(--blanco); }
.hero--oscuro .hero__texto .lead { color: rgba(255, 255, 255, 0.72); }
.hero--oscuro .hero__insignia {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero--oscuro .hero__insignia strong { color: #6cb2ff; }
.hero--oscuro .btn--linea { color: var(--blanco); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.hero--oscuro .btn--linea:hover { box-shadow: inset 0 0 0 1px var(--blanco); background: rgba(255, 255, 255, 0.06); }
.hero--oscuro :focus-visible { outline-color: #6cb2ff; }

/* Personaje interactivo: ocupa el mismo contenedor que tenía el video
   y se mueve apenas dentro de él (ver assets/js/personaje.js) */
/* En computadora el personaje es grande, se apoya abajo a la derecha y el borde
   inferior del hero lo corta (el hero tiene overflow: hidden). El texto queda por encima. */
.hero__personaje {
  position: relative;
  perspective: 1200px;
  filter: drop-shadow(0 0 70px rgba(37, 99, 235, 0.5)) drop-shadow(0 0 18px rgba(14, 165, 233, 0.18));
}
.hero--oscuro .hero__titulo,
.hero--oscuro .hero__texto { position: relative; z-index: 2; }
/* Color en JPEG + transparencia en una máscara PNG: mismo resultado que un PNG
   con fondo transparente, pero mucho más liviano */
.hero__personaje-img {
  position: absolute;
  top: 13%;
  left: -30%;
  width: 145%;
  max-width: none;
  height: auto;
  transform-origin: 50% 80%;
  will-change: transform;
  -webkit-mask: url("../img/mascota-anteojos-1408-mascara.png?v=2") center / 100% 100% no-repeat;
  mask: url("../img/mascota-anteojos-1408-mascara.png?v=2") center / 100% 100% no-repeat;
}
@media (max-width: 800px) {
  /* En celular queda dentro de su recuadro, recortado a la altura de la cintura */
  .hero__personaje { overflow: hidden; filter: drop-shadow(0 0 40px rgba(37, 99, 235, 0.45)); }
  .hero__personaje-img {
    top: 4%;
    left: 2%;
    width: 96%;
    -webkit-mask-image: url("../img/mascota-anteojos-760-mascara.png?v=2");
    mask-image: url("../img/mascota-anteojos-760-mascara.png?v=2");
  }
}

/* Encabezado claro mientras está sobre el hero oscuro */
.marca .logo--claro { display: none; }
.con-hero-oscuro:not(.menu-abierto) .encabezado:not(.es-solido) .logo--oscuro { display: none; }
.con-hero-oscuro:not(.menu-abierto) .encabezado:not(.es-solido) .logo--claro { display: block; }
.con-hero-oscuro:not(.menu-abierto) .encabezado:not(.es-solido) .nav__lista a { color: rgba(255, 255, 255, 0.72); }
.con-hero-oscuro:not(.menu-abierto) .encabezado:not(.es-solido) .nav__lista a:hover { color: var(--blanco); background: rgba(255, 255, 255, 0.08); }
.con-hero-oscuro:not(.menu-abierto) .encabezado:not(.es-solido) .menu-boton { color: var(--blanco); background: rgba(255, 255, 255, 0.12); }

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--seccion); position: relative; }
.seccion--borde { border-top: 1px solid var(--linea); }
.seccion--gris { background: var(--superficie); }

.titulo-seccion {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
  max-width: 880px;
}
.titulo-seccion--fila {
  max-width: none;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(24px, 6vw, 96px);
}
@media (max-width: 800px) {
  .titulo-seccion--fila { grid-template-columns: 1fr; }
}

/* ---------- Servicios: título + tarjetas a la izquierda, texto + notebook a la derecha ---------- */
#servicios { overflow-x: clip; }   /* la notebook llega al borde de la pantalla sin generar scroll */
.servicios {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  grid-template-areas:
    "titulo intro"
    "lista  vista";
  gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px);
  align-items: start;
}
.servicios__titulo {
  grid-area: titulo;
  font-size: clamp(2.6rem, 1.3rem + 3.8vw, 4.5rem);
  max-width: 11em;
}
.servicios__titulo .acento { color: var(--azul-accion); white-space: nowrap; }
.servicios__intro {
  --d: 140ms;
  grid-area: intro;
  align-self: end;
  max-width: 30em;
  padding-bottom: 0.4em;
}

/* Tarjetas */
.servicios__lista {
  grid-area: lista;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.servicio { position: relative; }
.servicio > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  background: var(--fondo);
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 14px 32px -18px rgba(17, 17, 17, 0.14);
  text-decoration: none;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s;
}
.servicio h3 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.servicio p { max-width: 34em; color: var(--texto-suave); font-size: 0.98rem; line-height: 1.55; }
.servicio__precio {
  display: block;
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--texto-suave);
}
.servicio__precio strong { margin-left: 2px; font-size: 1.125rem; font-weight: 500; color: var(--texto); }
.servicio__flecha {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  color: var(--texto);
  transition: background-color 0.28s, border-color 0.28s, color 0.28s;
}
.servicio__flecha svg { width: 18px; height: 18px; transition: transform 0.28s var(--ease-out); }
/* Acento del servicio activo (Google Ads al inicio; sigue al puntero o al foco) */
.servicio__barra {
  position: absolute;
  left: 0;
  top: 26%;
  bottom: 26%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--azul-accion);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out);
  pointer-events: none;
}
.servicio.activo > a { border-color: rgba(0, 112, 232, 0.28); }
.servicio.activo .servicio__barra { transform: none; }
.servicio.activo .servicio__flecha { color: var(--azul-accion); border-color: rgba(0, 112, 232, 0.3); background: var(--azul-tinte); }
@media (hover: hover) {
  .servicio > a:hover {
    transform: translateY(-3px);
    box-shadow:
      0 2px 4px rgba(17, 17, 17, 0.04),
      0 24px 44px -20px rgba(17, 17, 17, 0.2);
  }
  .servicio > a:hover .servicio__flecha svg { transform: translateX(3px); }
}
.servicio > a:focus-visible .servicio__flecha svg { transform: translateX(3px); }

/* Notebook: más grande, con sombra de apoyo y un brillo azul muy tenue detrás */
.servicios__vista {
  grid-area: vista;
  position: sticky;
  top: calc(var(--header-h) + 48px);
  /* Se extiende hasta el borde derecho de la pantalla para ganar presencia */
  margin-right: calc(-0.25 * var(--gutter) - max(0px, (100vw - var(--ancho) - 2 * var(--gutter)) / 2));
  /* Vista en tres cuartos: el mockup de frente se gira en 3D */
  --giro: perspective(1800px) rotateY(-24deg) rotateX(8deg) rotateZ(1.5deg);
}
.servicios__vista::before {
  content: "";
  position: absolute;
  /* Difuminado azul detrás de la notebook: centro más intenso que se abre hacia los bordes */
  inset: -34% -22% -30% -38%;
  background:
    radial-gradient(40% 44% at 55% 53%, rgba(0, 112, 232, 0.4), rgba(0, 112, 232, 0) 74%),
    radial-gradient(60% 64% at 52% 52%, rgba(77, 163, 255, 0.3), rgba(77, 163, 255, 0) 76%);
  filter: blur(56px);
  z-index: -1;
  pointer-events: none;
}
.servicios__vista::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 9%;
  height: 7%;
  background: radial-gradient(closest-side, rgba(17, 17, 17, 0.2), transparent);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.servicios__marco {
  position: relative;
  aspect-ratio: 3 / 2;
}
/* Notebooks recortadas (fondo transparente): la notebook queda nítida adelante
   y el difuminado azul solo asoma alrededor */
.servicios__marco img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  max-width: none;
  object-fit: contain;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
  transform: var(--giro) scale(1.03) translateY(8px);
  transform-origin: 60% 50%;
  translate: var(--mx, 0px) var(--my, 0px);   /* parallax con el cursor (main.js) */
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out), translate 0.6s var(--ease-out);
}
.servicios__marco img.activa { opacity: 1; transform: var(--giro); }
.servicios__marco img:nth-child(1) { -webkit-mask-image: url("../img/notebook-google-ads-mascara.png"); mask-image: url("../img/notebook-google-ads-mascara.png"); }
.servicios__marco img:nth-child(2) { -webkit-mask-image: url("../img/notebook-meta-ads-mascara.png"); mask-image: url("../img/notebook-meta-ads-mascara.png"); }
.servicios__marco img:nth-child(3) { -webkit-mask-image: url("../img/notebook-diseno-web-mascara.png"); mask-image: url("../img/notebook-diseno-web-mascara.png"); }

/* Entrada de la sección: corta y sutil */
.js .servicios .revela-escenario {
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .servicios .revela-escenario.visible { transform: none; }

@media (max-width: 1100px) {
  .servicios { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Tablet vertical y celular: título, texto, notebook y tarjetas, en una columna */
@media (max-width: 900px) {
  .servicios {
    grid-template-columns: 1fr;
    grid-template-areas: "titulo" "intro" "vista" "lista";
    row-gap: 28px;
  }
  .servicios__intro { padding-bottom: 0; }
  .servicios__vista {
    position: relative; top: auto; max-width: 640px; width: 100%; justify-self: center; margin: 4px 0 8px;
    --giro: perspective(1400px) rotateY(-16deg) rotateX(6deg) rotateZ(1deg);
  }
}
@media (max-width: 560px) {
  .servicio > a { gap: 16px; padding: 22px 20px; border-radius: 18px; }
  .servicio__flecha { width: 40px; height: 40px; }
}

/* ---------- Resultado destacado (ROAS) ---------- */
#resultados { overflow-x: clip; }   /* el arco y el halo pueden asomar sin generar scroll */
#titulo-resultados { max-width: 11em; }

/* Palabra destacada en azul dentro de un título */
h2 .acento { color: var(--azul-accion); white-space: nowrap; }

.resultado {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
/* Tarjeta blanca con un halo azul suave alrededor */
.grafico {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 3vw, 36px);
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(0, 112, 232, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(38% 46% at 86% 14%, rgba(0, 123, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 30px 70px -30px rgba(0, 112, 232, 0.35),
    0 0 90px -20px rgba(0, 112, 232, 0.28);
  overflow: hidden;
}
.grafico__cifras {
  display: flex;
  align-items: flex-end;
  gap: 0;
  flex-wrap: nowrap;   /* siempre lado a lado, también en celular */
}
.cifra { display: grid; gap: 10px; min-width: 0; }
.cifra__valor {
  font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem);
  font-weight: 450;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.cifra--antes { padding-right: clamp(20px, 3vw, 36px); }
.cifra--antes .cifra__valor { color: #6f6f6b; font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); }
.cifra--despues { padding-left: clamp(20px, 3vw, 36px); border-left: 1px solid var(--linea); }
.cifra--despues .cifra__valor { color: var(--azul-accion); }
.cifra__etiqueta { font-size: var(--fs-small); color: var(--texto-suave); }
.grafico svg { width: 100%; height: auto; overflow: visible; }
.grafico .trazo {
  fill: none;
  stroke: var(--azul);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grafico .area { fill: url(#degradado-area); opacity: 0; transition: opacity 1s var(--ease-out) 0.9s; }
.grafico .grilla { stroke: rgba(17, 17, 17, 0.1); stroke-width: 1; stroke-dasharray: 4 6; }
.grafico .punto { fill: var(--blanco); stroke: var(--azul); stroke-width: 4; }
.grafico .punto--final { fill: var(--azul); stroke: var(--blanco); opacity: 0; transform-origin: center; transform-box: fill-box; transform: scale(0.3); transition: opacity 0.4s 1.1s, transform 0.6s var(--ease-out) 1.1s; }
.js .grafico .trazo { stroke-dasharray: var(--largo, 1000); stroke-dashoffset: var(--largo, 1000); }
.grafico.visible .trazo { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-in-out); }
.grafico.visible .area { opacity: 1; }
.grafico.visible .punto--final { opacity: 1; transform: none; }
/* Personaje: recortado, con halo azul detrás, un arco fino y un punto de luz */
.resultado__visual {
  position: relative;
  display: grid;
  place-items: end center;
  padding-top: 12%;
  isolation: isolate;
}
.resultado__visual::before {
  content: "";
  position: absolute;
  inset: 0 -10% -6% -10%;
  background: radial-gradient(50% 50% at 50% 55%, rgba(0, 112, 232, 0.28), rgba(77, 163, 255, 0.1) 55%, transparent 75%);
  filter: blur(40px);
  z-index: -2;
  pointer-events: none;
}
/* Sombra de apoyo bajo los pies */
.resultado__visual::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -2%;
  height: 6%;
  background: radial-gradient(closest-side, rgba(17, 17, 17, 0.22), transparent);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.resultado__arco {
  position: absolute;
  top: 0;
  right: -18%;
  width: 118%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 112, 232, 0.2);
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.resultado__arco::after {
  content: "";
  position: absolute;
  left: 14.6%;
  top: 14.6%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.15), 0 0 24px 6px rgba(0, 123, 255, 0.45);
}
.resultado__personaje {
  position: relative;
  width: 86%;
  max-width: 420px;
  height: auto;
  -webkit-mask: url("../img/mascota-impresionado-sin-fondo-760-mascara.png") center / 100% 100% no-repeat;
  mask: url("../img/mascota-impresionado-sin-fondo-760-mascara.png") center / 100% 100% no-repeat;
}

@media (max-width: 900px) {
  .resultado { grid-template-columns: 1fr; }
  .resultado__visual { max-width: 420px; width: 100%; justify-self: center; padding-top: 16%; }
}

/* ---------- Proceso: título + video en tarjeta a la izquierda, pasos conectados a la derecha ---------- */
#proceso { overflow-x: clip; }
.proceso {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  grid-template-areas:
    "titulo pasos"
    "visual pasos";
  grid-template-rows: auto 1fr;
  gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 80px);
  align-items: start;
}
.proceso__titulo { grid-area: titulo; margin-bottom: 0; }

/* Visual: el video dentro de una tarjeta clara, con halo, órbita y dos chips */
.proceso__visual {
  grid-area: visual;
  position: relative;
  margin: clamp(8px, 2vw, 24px) clamp(8px, 3vw, 40px) 0;
  isolation: isolate;
}
.proceso__visual::before {
  content: "";
  position: absolute;
  inset: -12% -14% -14% -16%;
  background:
    radial-gradient(44% 48% at 50% 52%, rgba(0, 112, 232, 0.2), transparent 72%),
    radial-gradient(60% 62% at 45% 55%, rgba(77, 163, 255, 0.16), transparent 76%);
  filter: blur(40px);
  z-index: -2;
  pointer-events: none;
}
.proceso__orbita {
  position: absolute;
  left: -10%;
  right: -6%;
  top: 8%;
  bottom: 4%;
  border: 1px solid rgba(0, 112, 232, 0.22);
  border-radius: 50%;
  transform: rotate(-16deg);
  z-index: -1;
  pointer-events: none;
}
.proceso__orbita::before,
.proceso__orbita::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--azul);
  box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.14), 0 0 18px 4px rgba(0, 123, 255, 0.4);
}
.proceso__orbita::before { left: 64%; top: 0.6%; }
.proceso__orbita::after { left: 1.5%; top: 62%; }
.proceso__tarjeta {
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 2px rgba(17, 17, 17, 0.04),
    0 30px 60px -30px rgba(0, 112, 232, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.proceso__video { aspect-ratio: 16 / 11; border-radius: 22px; }
.proceso__video video { filter: brightness(1.09) contrast(1.02); }

.proceso__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px -18px rgba(0, 112, 232, 0.4), 0 2px 6px rgba(17, 17, 17, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  color: var(--texto-suave);
  pointer-events: none;
}
.proceso__chip strong { display: block; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; color: var(--texto); }
.proceso__chip--dato { top: -6%; left: -8%; transform: rotate(-6deg); }
.proceso__chip--dato svg { width: 64px; height: 30px; color: var(--azul-accion); }
.proceso__chip--resultados { bottom: -7%; right: -6%; transform: rotate(-6deg); font-size: 0.9375rem; color: var(--texto); }
.proceso__barras { width: 26px; height: 26px; color: var(--azul-accion); }
.proceso__flechita { width: 14px; height: 14px; color: var(--azul-accion); }

/* Pasos: tarjetas blancas unidas por una línea punteada con puntos */
.pasos {
  grid-area: pasos;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paso {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
}
/* Conector punteado entre números */
.paso:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: calc(50% + 28px);
  height: calc(100% - 38px);
  border-left: 2px dotted rgba(0, 112, 232, 0.35);
}
.paso:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: calc(100% + 6px);   /* en el centro del espacio entre tarjetas */
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azul-accion);
}
.paso__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fondo);
  box-shadow: 0 0 0 1px rgba(0, 112, 232, 0.12), 0 8px 20px -8px rgba(0, 112, 232, 0.45);
  font-weight: 600;
  color: var(--azul-accion);
  position: relative;
  z-index: 1;
}
.paso__tarjeta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 20px;
  background: var(--fondo);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.03), 0 16px 36px -22px rgba(17, 17, 17, 0.16);
}
.paso h3 { margin-bottom: 8px; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); }
.paso p { color: var(--texto-suave); max-width: 32em; font-size: 0.98rem; line-height: 1.55; }
.paso__icono {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--azul-accion);
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  box-shadow: 0 0 0 1px rgba(0, 112, 232, 0.08), 0 10px 22px -10px rgba(0, 112, 232, 0.4);
}
.paso__icono svg { width: 26px; height: 26px; }

@media (max-width: 1000px) {
  .proceso {
    grid-template-columns: 1fr;
    grid-template-areas: "titulo" "visual" "pasos";
    grid-template-rows: auto;
  }
  .proceso__visual { max-width: 620px; width: 100%; justify-self: center; margin: 24px auto 32px; }
}
@media (max-width: 560px) {
  .paso { grid-template-columns: 36px minmax(0, 1fr); }
  .paso__num { width: 36px; height: 36px; font-size: 0.9375rem; }
  .paso:not(:last-child)::after { left: 17px; }
  .paso:not(:last-child)::before { left: 15px; }
  .paso__tarjeta { grid-template-columns: 1fr; gap: 14px; }
  .paso__icono { grid-row: 1; width: 44px; height: 44px; border-radius: 13px; }
  .paso__icono svg { width: 22px; height: 22px; }
  .proceso__chip { padding: 10px 13px; }
  .proceso__chip strong { font-size: 1.25rem; }
  .proceso__chip--dato { left: -2%; }
  .proceso__chip--resultados { right: -2%; font-size: 0.8125rem; }
}

/* ---------- Testimonios: carrusel horizontal ---------- */
#testimonios { padding-block: clamp(64px, 8vw, 112px); overflow-x: clip; }
.testimonios__cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.carrusel__flechas { display: flex; gap: 8px; flex: none; }
.carrusel__flecha {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
  background: var(--fondo);
  color: var(--texto);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, opacity 0.25s;
}
.carrusel__flecha svg { width: 18px; height: 18px; }
.carrusel__flecha:hover:not(:disabled) { border-color: var(--azul-accion); color: var(--azul-accion); background: var(--azul-tinte); }
.carrusel__flecha:disabled { opacity: 0.35; cursor: default; }

/* La fila ocupa todo el ancho de la pantalla (así en celular asoma la tarjeta siguiente),
   pero las tarjetas se alinean con el contenedor */
.testimonios {
  --gap-carrusel: clamp(14px, 1.6vw, 20px);
  display: flex;
  gap: var(--gap-carrusel);
  margin-inline: calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
}
.testimonios::-webkit-scrollbar { display: none; }
.testimonios:focus-visible { outline-offset: -2px; }
.testimonios.arrastrando { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.testimonio {
  flex: 0 0 calc((100% - 2 * var(--gap-carrusel)) / 3);   /* 3 visibles en computadora */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 20px;
  background: var(--superficie);
}
.testimonio blockquote { margin: 0; }
.testimonio blockquote p { font-size: 1.0625rem; line-height: 1.6; }
.testimonio blockquote p::before { content: "“"; }
.testimonio blockquote p::after { content: "”"; }
.testimonio figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: var(--texto-suave);
}
.testimonio figcaption strong { display: block; color: var(--texto); font-size: 0.9375rem; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--azul-accion);
  background: var(--azul-tinte);
}
/* Tarjeta destacada: mismo tamaño que las demás, en azul */
.testimonio--destacado {
  color: var(--blanco);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--azul-accion);
}
.testimonio--destacado blockquote p {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.testimonio--destacado figcaption,
.testimonio--destacado figcaption strong { color: var(--blanco); }
.testimonio--destacado .avatar { color: var(--azul-accion); background: var(--blanco); }

/* Progreso: línea muy fina que muestra qué parte del carrusel se está viendo */
.carrusel__progreso {
  position: relative;
  width: min(160px, 40%);
  height: 2px;
  margin-top: clamp(20px, 2.4vw, 28px);
  border-radius: 2px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
}
.carrusel__progreso span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--tamano, 60%);
  border-radius: 2px;
  background: var(--azul-accion);
  transform: translateX(var(--posicion, 0%));
  transition: transform 0.2s linear;
}

@media (max-width: 960px) {
  .testimonio { flex-basis: calc((100% - var(--gap-carrusel)) / 2); }   /* 2 visibles en tablet */
}
@media (max-width: 640px) {
  .testimonio { flex-basis: 84%; }   /* 1 completa y asoma la siguiente */
  .carrusel__flechas { display: none; }
}

/* ---------- Precios ---------- */
.precios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-panel);
  background: var(--fondo);
  box-shadow: inset 0 0 0 1px var(--linea-fuerte);
}
.plan__cabeza { display: grid; gap: 8px; }
.plan__cabeza p { color: var(--texto-suave); }
.plan__precio { display: grid; gap: 2px; padding-block: 20px; border-block: 1px solid var(--linea); }
.plan__precio span { font-size: var(--fs-small); color: var(--texto-suave); }
.plan__precio strong {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
  font-weight: 450;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.plan ul {
  display: grid;
  gap: 12px;
  margin: 0; padding: 0;
  list-style: none;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 30px;
  color: var(--texto-suave);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3em;
  width: 18px; height: 18px;
  background: var(--azul);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan .btn { width: 100%; }
.plan--web { box-shadow: inset 0 0 0 2px var(--azul); }
.precios__nota { margin-top: 24px; max-width: 60em; }

@media (max-width: 960px) {
  .precios { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__lista { border-top: 1px solid var(--linea); }
.pregunta { border-bottom: 1px solid var(--linea); }
.pregunta summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.45s var(--ease-out);
}
.pregunta[open] summary::after { transform: rotate(135deg); }
.pregunta__respuesta { overflow: hidden; }
.pregunta__respuesta p { padding: 0 48px 24px 0; color: var(--texto-suave); max-width: 40em; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
}

/* ---------- Preguntas frecuentes, versión oscura (solo home) ---------- */
.faq-oscura {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--blanco);
  background:
    radial-gradient(38% 48% at 0% 100%, rgba(0, 112, 232, 0.55), transparent 72%),
    radial-gradient(34% 26% at 58% 0%, rgba(0, 112, 232, 0.32), transparent 72%),
    radial-gradient(30% 40% at 100% 60%, rgba(0, 112, 232, 0.16), transparent 72%),
    #04060c;
}
.faq-oscura > .contenedor { position: relative; z-index: 1; align-items: center; }
/* Arcos de luz */
.faq-oscura__arco {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.faq-oscura__arco--grande {
  width: min(1100px, 90vw);
  aspect-ratio: 1;
  right: max(-420px, -30vw);
  top: clamp(40px, 6vw, 90px);
  border: 1px solid rgba(64, 140, 255, 0.35);
  border-top-color: rgba(120, 180, 255, 0.95);
  filter: drop-shadow(0 0 10px rgba(0, 112, 232, 0.8));
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 80%);
}
.faq-oscura__arco--grande::after {
  content: "";
  position: absolute;
  left: 85.4%;
  top: 14.6%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #4da3ff;
  box-shadow: 0 0 0 5px rgba(77, 163, 255, 0.16), 0 0 22px 6px rgba(0, 112, 232, 0.9);
}
.faq-oscura__arco--chico {
  width: min(760px, 80vw);
  aspect-ratio: 1;
  left: max(-380px, -32vw);
  bottom: -62%;
  border: 1px solid rgba(64, 140, 255, 0.45);
  filter: drop-shadow(0 0 8px rgba(0, 112, 232, 0.7));
  -webkit-mask-image: linear-gradient(to right, transparent 20%, #000 60%);
  mask-image: linear-gradient(to right, transparent 20%, #000 60%);
}

.faq-oscura__etiqueta {
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #4da3ff;
}
.faq-oscura h2 { color: var(--blanco); font-size: clamp(2.8rem, 1.4rem + 4.6vw, 5.4rem); }
.faq-oscura h2 .acento { color: #2f8bff; }
.faq-oscura .lead { color: rgba(255, 255, 255, 0.62); }

/* Acordeón dentro de una tarjeta con borde fino */
.faq-oscura .faq__lista {
  padding: clamp(8px, 1.4vw, 16px) clamp(20px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.faq-oscura .pregunta { border-bottom-color: rgba(255, 255, 255, 0.12); }
.faq-oscura .pregunta:last-child { border-bottom: 0; }
.faq-oscura .pregunta summary { padding: 26px 0; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--blanco); }
.faq-oscura .pregunta summary::after {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 14px 1.5px no-repeat,
    linear-gradient(#fff, #fff) center / 1.5px 14px no-repeat;
  transition: border-color 0.3s, box-shadow 0.3s, background-size 0.3s;
}
.faq-oscura .pregunta[open] summary::after {
  transform: none;
  border-color: #2f8bff;
  box-shadow: 0 0 0 4px rgba(47, 139, 255, 0.14), 0 0 18px rgba(47, 139, 255, 0.45);
  background-size: 14px 1.5px, 1.5px 0;   /* se vuelve "–" */
}
.faq-oscura .pregunta summary:hover::after { border-color: rgba(255, 255, 255, 0.9); }
.faq-oscura .pregunta__respuesta p { color: rgba(255, 255, 255, 0.66); padding-right: 64px; }
.faq-oscura :focus-visible { outline-color: #4da3ff; }

@media (max-width: 560px) {
  .faq-oscura .pregunta summary::after { width: 34px; height: 34px; }
  .faq-oscura .pregunta__respuesta p { padding-right: 0; }
}

/* ---------- Contacto ---------- */
.contacto {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contacto__lado { display: grid; gap: 28px; }
.contacto__mascota { aspect-ratio: 1 / 1; max-width: 420px; }
.contacto__mascota img { object-position: 50% 65%; }
.canales { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.canales a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--texto);
}
.canales a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.canales svg { width: 22px; height: 22px; color: var(--azul); flex: none; }

.formulario {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-escenario);
  background: var(--superficie);
}
.campo { display: grid; gap: 8px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: 0.9375rem; font-weight: 600; }
.campo label span { font-weight: 400; color: var(--texto-suave); }
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--linea-fuerte);
  border-radius: 12px;
  background: var(--fondo);
  color: var(--texto);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo textarea { min-height: 132px; resize: vertical; }
.campo select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5b57' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.campo input::placeholder,
.campo textarea::placeholder { color: #8c8c87; }
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.18);
}
.campo [aria-invalid="true"] { border-color: var(--error); }
.campo__error { min-height: 1.2em; font-size: 0.8125rem; color: var(--error); }
.campo__error:empty { min-height: 0; }
.formulario__pie {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.formulario .btn[disabled] { opacity: 0.6; cursor: progress; }
.formulario__estado { grid-column: 1 / -1; font-size: 0.9375rem; }
.formulario__estado--error { color: var(--error); }
.trampa { position: absolute; left: -9999px; }

.formulario-ok {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-block: 24px;
}
.formulario-ok h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }
.formulario-ok p { color: var(--texto-suave); }
.formulario-ok .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azul);
  animation: aparece-check 0.6s var(--ease-out) both;
}
.formulario-ok .check svg { width: 28px; height: 28px; color: #fff; }
.formulario-ok .check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: dibuja 0.5s var(--ease-out) 0.25s forwards; }
@keyframes aparece-check { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dibuja { to { stroke-dashoffset: 0; } }

@media (max-width: 960px) {
  .contacto { grid-template-columns: 1fr; }
  .contacto__mascota { max-width: 320px; }
}
@media (max-width: 560px) {
  .formulario { grid-template-columns: 1fr; }
  .formulario__pie .btn { width: 100%; }
}

/* ---------- Banda final ---------- */
.cierre {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-escenario);
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(0, 123, 255, 0.12), transparent 60%),
    var(--superficie);
  overflow: hidden;
}
.cierre__texto { display: grid; gap: 24px; }
.cierre__mascota { aspect-ratio: 1 / 1; }
.cierre__mascota img { object-position: 50% 65%; }
@media (max-width: 800px) {
  .cierre { grid-template-columns: 1fr; }
  .cierre__mascota { max-width: 360px; }
}

/* ---------- Pie ---------- */
.pie {
  padding-block: clamp(56px, 8vw, 96px) 32px;
  border-top: 1px solid var(--linea);
  background: var(--superficie);
  color: var(--texto-suave);
  font-size: 0.9375rem;
}
.pie__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}
.pie__marca { display: grid; gap: 16px; align-content: start; }
.pie__marca img { width: 128px; }
.pie__marca p { max-width: 22em; }
.pie h2 {
  margin-bottom: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--texto);
}
.pie ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--texto); text-decoration: underline; text-underline-offset: 4px; }
.pie__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--linea);
  font-size: var(--fs-small);
}
@media (max-width: 800px) {
  .pie__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie__marca { grid-column: 1 / -1; }
}

/* ---------- WhatsApp flotante ---------- */
/* Botón redondo, solo con el ícono, visible desde que se abre el sitio */
.wa-flotante {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 10px 30px -6px rgba(37, 211, 102, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.25);
  animation: wa-entrada 0.6s var(--ease-out) 0.5s backwards;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, opacity 0.3s;
}
.wa-flotante:hover {
  transform: scale(1.06);
  box-shadow:
    0 14px 36px -6px rgba(37, 211, 102, 0.7),
    0 4px 14px rgba(0, 0, 0, 0.25);
}
.wa-flotante svg { width: 32px; height: 32px; }
.wa-flotante span { display: none; }
.menu-abierto .wa-flotante { opacity: 0; pointer-events: none; }
@keyframes wa-entrada {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .wa-flotante { width: 56px; height: 56px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .wa-flotante svg { width: 30px; height: 30px; }
}

/* ---------- Páginas de servicio ---------- */
.migas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--texto-suave);
}
.migas li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.migas a { text-decoration: none; }
.migas a:hover { color: var(--texto); }

.hero--servicio .hero__escenario { aspect-ratio: 3 / 2; }
.hero--servicio .hero__escenario img { padding: 3%; }
.precio-linea {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--texto-suave);
}
.precio-linea strong {
  font-size: 1.6rem;
  font-weight: 450;
  letter-spacing: -0.03em;
  color: var(--texto);
}

.incluye {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--linea);
  border-left: 1px solid var(--linea);
}
.incluye li {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}
.incluye svg { width: 28px; height: 28px; color: var(--azul); }
.incluye h3 { font-size: 1.25rem; }
.incluye p { color: var(--texto-suave); }
@media (max-width: 900px) { .incluye { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .incluye { grid-template-columns: 1fr; } }

.para-quien {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.para-quien__mascota { aspect-ratio: 1 / 1; }
.para-quien__mascota img { object-position: 50% 65%; }
.para-quien__texto { display: grid; gap: 24px; }
.lista-simple { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lista-simple li {
  position: relative;
  padding-left: 32px;
  color: var(--texto-suave);
}
.lista-simple li strong { color: var(--texto); font-weight: 600; }
.lista-simple li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 14px; height: 14px;
  background: var(--azul);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 72% 100%, 72% 62%, 38% 100%);
}
@media (max-width: 900px) {
  .para-quien { grid-template-columns: 1fr; }
  .para-quien__mascota { max-width: 360px; }
}

.otros-servicios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.otro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 20px;
  align-items: center;
  padding: 20px 20px 20px clamp(20px, 3vw, 32px);
  border-radius: var(--r-panel);
  background: var(--superficie);
  text-decoration: none;
  transition: box-shadow 0.3s;
}
.otro:hover { box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.otro h3 { margin-bottom: 6px; }
.otro p { color: var(--texto-suave); font-size: 0.9375rem; }
.otro .escenario { aspect-ratio: 3 / 2; }
.otro .escenario img { padding: 4%; }
@media (max-width: 800px) {
  .otros-servicios { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  /* Con "menos movimiento" activado se conserva solo un fundido suave, sin desplazamiento */
  .js .revela,
  .js .revela-escenario,
  .js .hero .aparece,
  .js .hero__escenario,
  .js [data-lineas] .l > span {
    transform: none !important;
    transition-property: opacity !important;
    transition-duration: 0.6s !important;
  }
  .js .grafico .trazo { stroke-dashoffset: 0 !important; }
  .grafico .area,
  .grafico .punto--final { opacity: 1 !important; transform: none !important; }
}
