/* wardpet.com — sin dependencias externas. Siempre en modo claro. */

:root {
  color-scheme: light;

  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;

  /* Naranja de la app. Para texto y botones se usan tonos con contraste
     de al menos 4.5:1 sobre su fondo. */
  --brand: #ff6b35;
  --brand-strong: #c2410c;
  --on-brand: #ffffff;
  --brand-soft: #fff1ea;

  --lost: #c2410c;
  --injured: #b91c1c;
  --adoption: #1d4ed8;
  --found: #0e7490;
  --rescued: #15803d;
  --community: #7b1fa2;

  --radius: 1.25rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06);
  --page: min(1120px, 100% - 2rem);

  accent-color: var(--brand-strong);
}

@media (prefers-reduced-motion: no-preference) {
  /* Cambio suave entre / y /en/ en navegadores que lo soportan. */
  @view-transition {
    navigation: auto;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-strong);
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

::selection {
  background: var(--brand);
  color: #1c1917;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Encabezado ---------- */
.top {
  position: sticky;
  isolation: isolate;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
}
.nav {
  display: none;
  gap: 1.5rem;
  margin-inline-start: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-start: auto;
}
.nav + .top-actions {
  margin-inline-start: 1.5rem;
}
.lang {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang:hover {
  color: var(--text);
}
@media (min-width: 52rem) {
  .nav {
    display: flex;
  }
}
/* Teléfonos muy angostos: los botones de las tiendas están justo debajo. */
@media (max-width: 23.99rem) {
  .top-actions .btn {
    display: none;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand-strong);
  color: var(--on-brand);
}
.btn:hover {
  filter: brightness(1.05);
}
.btn-sm {
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.stores a {
  display: block;
  border-radius: 0.6rem;
}
.stores .badge-apple {
  height: 3rem;
  width: auto;
}
.stores .badge-play {
  height: 4.35rem; /* el PNG de Google trae margen propio */
  width: auto;
  margin: -0.65rem;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.5rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.soon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.free {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.5rem, 1rem + 6vw, 6rem) clamp(2.5rem, 1rem + 5vw, 5rem);
}
.hero .wrap {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 55rem) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.eyebrow svg {
  width: 1rem;
  height: 1rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4rem);
  font-weight: 850;
}
.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--brand-strong);
  white-space: nowrap;
}
.swoosh {
  position: absolute;
  inset-inline: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.32em;
  overflow: visible;
}
.swoosh path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
  opacity: 0.55;
}
.lead {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  color: var(--muted);
  max-width: 36rem;
}
.hero .stores {
  margin-top: 1.75rem;
}

/* Ilustración: la misma idea que la bienvenida de la app. */
.art {
  position: relative;
  width: min(100%, 26rem);
  aspect-ratio: 1;
  margin-inline: auto;
}
.art .halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand) 26%, transparent) 0%,
    color-mix(in srgb, var(--brand) 10%, transparent) 55%,
    transparent 72%
  );
}
.art .logo {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 0.6rem solid var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--brand);
}
.art .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bubble {
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.bubble svg {
  width: 44%;
  height: 44%;
}
.bubble.b1 { top: 7%; inset-inline-start: 9%; color: var(--lost); }
.bubble.b2 { top: 17%; inset-inline-end: 5%; color: var(--injured); }
.bubble.b3 { bottom: 16%; inset-inline-start: 5%; color: var(--adoption); }
.bubble.b4 { bottom: 6%; inset-inline-end: 13%; color: var(--rescued); }

@keyframes float {
  50% {
    translate: 0 -8px;
  }
}

/* ---------- Secciones ---------- */
section {
  scroll-margin-top: 5rem;
}
.section {
  padding-block: clamp(3rem, 1.5rem + 5vw, 5.5rem);
}
.section.alt {
  background: var(--surface-2);
}
.section-head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}
.section-head h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.6rem);
  font-weight: 800;
}
.section-head p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.075rem;
}

/* Cómo funciona */
.how {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
@media (min-width: 55rem) {
  .how {
    grid-template-columns: 1fr 0.8fr;
  }
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-strong);
  color: var(--on-brand);
  font-weight: 800;
  font-size: 1.1rem;
}
.steps h3 {
  font-size: 1.2rem;
  margin-top: 0.35rem;
}
.steps p {
  margin-top: 0.35rem;
  color: var(--muted);
  max-width: 34rem;
}

/* Tarjeta de ejemplo (como se ve un reporte en la app) */
.sample {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card .photo {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%),
    linear-gradient(135deg, var(--brand-soft), var(--surface-2));
  color: var(--brand-strong);
}
.card .photo svg {
  width: 28%;
  height: auto;
  opacity: 0.75;
}
.card .body {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.5rem;
}
.pill {
  justify-self: start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: #c2410c;
}
.card h3 {
  font-size: 1.15rem;
}
.card .meta {
  color: var(--muted);
  font-size: 0.9rem;
}
.card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.chip svg {
  width: 0.95rem;
  height: 0.95rem;
}
.sample figcaption {
  margin-top: 0.65rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Funciones */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.feature .icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, currentColor 13%, transparent);
  margin-bottom: 1rem;
}
.feature .icon svg {
  width: 1.4rem;
  height: 1.4rem;
}
.feature h3 {
  font-size: 1.125rem;
  color: var(--text);
}
.feature p {
  margin-top: 0.45rem;
  color: var(--muted);
}
.f-lost { color: var(--lost); }
.f-found { color: var(--found); }
.f-injured { color: var(--injured); }
.f-adoption { color: var(--adoption); }
.f-rescued { color: var(--rescued); }
.f-community { color: var(--community); }

/* Preguntas */
.faq {
  max-width: 48rem;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0 1.2rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.05rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand-strong);
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq details p {
  padding-bottom: 1.15rem;
  color: var(--muted);
  max-width: 70ch;
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* Llamado final */
.cta {
  text-align: center;
}
.cta .box {
  background: var(--brand-soft);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 1rem + 4vw, 3.5rem) 1.25rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.cta h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.5rem);
  font-weight: 800;
}
.cta p {
  color: var(--muted);
  max-width: 34rem;
}
.cta .stores {
  justify-content: center;
  margin-top: 0.5rem;
}

/* Pie */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.foot .wrap {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .foot .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.foot nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.foot a {
  color: var(--muted);
}
.foot a:hover {
  color: var(--text);
}
.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.social svg {
  width: 1.15rem;
  height: 1.15rem;
}
.copy {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* =====================================================================
   Animaciones
   Todo va dentro de prefers-reduced-motion: no-preference. Quien pidió
   reducir el movimiento ve la página completa y quieta.
   ===================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* respaldo de linear() */
  --spring: linear(0, 0.016 0.5%, 0.06 1%, 0.226 2%, 1.116 5.4%, 1.375 6.6%, 1.527 7.7%, 1.565 8.2%, 1.585 8.8%, 1.581 9.3%, 1.559 9.8%, 1.458 10.9%, 0.937 14.3%, 0.784 15.5%, 0.693 16.6%, 0.67 17.1%, 0.657 17.7%, 0.671 18.7%, 0.729 19.8%, 1.042 23.3%, 1.13 24.5%, 1.182 25.6%, 1.201 26.7%, 1.192 27.7%, 1.156 28.8%, 0.977 32.2%, 0.925 33.4%, 0.894 34.5%, 0.882 35.6%, 0.887 36.6%, 0.907 37.7%, 1.045 42.4%, 1.069 44.5%, 1.059 46.3%, 0.979 50.9%, 0.96 53.4%, 0.966 55.3%, 1.013 59.9%, 1.024 62.3%, 0.986 71.2%, 1.008 79.9%, 0.995 88.9%, 1);
  --bounce: linear(0, 0.214 14.7%, 0.386 23.7%, 0.598 31.9%, 0.999 44.7%, 0.807 52.6%, 0.762 56%, 0.747 59.4%, 0.758 62.4%, 0.793 65.6%, 0.999 77.4%, 0.961 81.2%, 0.949 84.8%, 0.956 88%, 0.993 95.5%, 1);
}

/* Piezas que solo existen animadas: sin movimiento no se muestran. */
.trail,
.hearts,
.orbit {
  display: none;
}

/* Aviso de ejemplo sobre la tarjeta (visible también sin animación). */
.sample {
  position: relative;
  padding-top: 1.6rem;
}
.toast {
  position: absolute;
  top: 0;
  inset-inline: 1.25rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.14);
  font-size: 0.85rem;
  font-weight: 700;
}
.toast .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.6rem;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.toast .dot svg {
  width: 1rem;
  height: 1rem;
}
.toast small {
  display: block;
  font-weight: 500;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    interpolate-size: allow-keywords;
  }

  /* --- Portada: entrada escalonada --- */
  .hero-copy > * {
    animation: rise 0.8s var(--ease-out) backwards;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }

  .swoosh path {
    animation: draw 1s var(--ease-out) 0.75s backwards;
  }

  /* --- Portada: ilustración --- */
  .art .logo {
    animation:
      pop 1.1s var(--spring) 0.15s backwards,
      bob 5s ease-in-out 1.3s infinite;
  }
  .art .halo {
    animation: breathe 4.5s ease-in-out infinite;
  }
  .orbit {
    display: block;
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent);
    animation:
      fade 1s ease 0.6s backwards,
      spin 50s linear infinite;
  }
  .bubble {
    animation:
      pop 0.8s var(--bounce) backwards,
      float 6s ease-in-out infinite;
  }
  .bubble.b1 { animation-delay: 0.45s, 1.2s; }
  .bubble.b2 { animation-delay: 0.6s, 2.7s; }
  .bubble.b3 { animation-delay: 0.75s, 4.2s; }
  .bubble.b4 { animation-delay: 0.9s, 5.7s; }

  /* Corazones que salen del perro */
  .hearts {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .hearts span {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 1.4rem;
    height: 1.4rem;
    margin: -0.7rem;
    color: #f43f5e;
    opacity: 0;
    animation: heart-up 4.2s ease-out infinite;
  }
  .hearts span:nth-child(1) { --dx: -4.5rem; animation-delay: 1.6s; }
  .hearts span:nth-child(2) { --dx: 3.5rem; animation-delay: 3s; width: 1rem; height: 1rem; }
  .hearts span:nth-child(3) { --dx: -1rem; animation-delay: 4.4s; width: 1.15rem; height: 1.15rem; }

  /* Estela de huellas que cruza la portada */
  .trail {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
  }
  .trail span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 1.6rem;
    height: 1.6rem;
    color: var(--brand);
    rotate: var(--r);
    opacity: 0;
    animation: step 8s ease-in-out infinite;
    animation-delay: var(--d);
  }

  /* --- Tarjeta de ejemplo: llega un aviso cada tanto --- */
  .toast {
    animation: toast 6s var(--ease-out) 1s infinite backwards;
  }
  .pill::before {
    animation: ping 1.6s ease-out infinite;
  }

  /* --- Encabezado: sombra al bajar --- */
  @supports (animation-timeline: scroll()) {
    .top::after {
      content: "";
      position: absolute;
      inset: 100% 0 auto;
      height: 14px;
      background: linear-gradient(rgb(0 0 0 / 0.07), transparent);
      pointer-events: none;
      opacity: 0;
      animation: fade-in linear both;
      animation-timeline: scroll();
      animation-range: 0 140px;
    }
  }

  /* --- Aparición al hacer scroll (mejora progresiva) --- */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: reveal linear backwards;
      animation-timeline: view();
      /* Termina antes de que el elemento esté completo a la vista: así
         también se completa en lo último de la página. */
      animation-range: entry 0% entry 80%;
    }
    .features > .reveal:nth-child(3n + 2) {
      animation-range: entry 10% entry 90%;
    }
    .features > .reveal:nth-child(3n) {
      animation-range: entry 20% entry 100%;
    }
    .steps li {
      view-timeline: --step;
    }
    .steps li::before {
      animation: pop linear backwards;
      animation-timeline: --step;
      animation-range: entry 30% entry 100%;
      animation-timing-function: var(--spring);
    }
  }

  /* --- Interacción --- */
  .feature {
    transition:
      translate 0.6s var(--spring),
      box-shadow 0.3s ease,
      border-color 0.3s ease;
  }
  .feature:hover {
    translate: 0 -6px;
    border-color: color-mix(in srgb, currentColor 35%, var(--line));
    box-shadow: 0 14px 34px rgb(0 0 0 / 0.1);
  }
  .feature:hover .icon {
    animation: wiggle 0.6s ease;
  }
  .stores a,
  .btn {
    transition: translate 0.45s var(--spring);
  }
  .stores a:hover,
  .btn:hover {
    translate: 0 -3px;
  }

  /* Llamado final con manchas de color en movimiento */
  .cta .box {
    position: relative;
    isolation: isolate;
    overflow: clip;
  }
  .cta .box::before,
  .cta .box::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 22rem;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.55;
  }
  .cta .box::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 70%);
    top: -9rem;
    left: -6rem;
    animation: drift 14s ease-in-out infinite alternate;
  }
  .cta .box::after {
    background: radial-gradient(circle, color-mix(in srgb, #fbbf24 40%, transparent), transparent 70%);
    bottom: -10rem;
    right: -6rem;
    animation: drift 17s ease-in-out infinite alternate-reverse;
  }

  /* Preguntas: se abren suave donde el navegador lo permite */
  .faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size 0.35s var(--ease-out),
      content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

@keyframes rise {
  from { opacity: 0; translate: 0 22px; }
}
@keyframes reveal {
  from { opacity: 0; translate: 0 36px; scale: 0.97; }
}
@keyframes pop {
  from { scale: 0; }
}
@keyframes fade {
  from { opacity: 0; }
}
@keyframes fade-in {
  to { opacity: 1; }
}
@keyframes draw {
  from { stroke-dashoffset: 320; }
}
@keyframes bob {
  50% { translate: 0 -10px; }
}
@keyframes breathe {
  50% { scale: 1.07; opacity: 0.8; }
}
@keyframes spin {
  to { rotate: 1turn; }
}
@keyframes heart-up {
  0% { opacity: 0; translate: 0 0; scale: 0.3; }
  15% { opacity: 1; scale: 1; }
  70% { opacity: 0.9; }
  100% { opacity: 0; translate: var(--dx) -8.5rem; scale: 0.8; }
}
@keyframes step {
  0%, 100% { opacity: 0; scale: 0.6; }
  6%, 40% { opacity: 0.16; scale: 1; }
  55% { opacity: 0; scale: 1; }
}
@keyframes toast {
  0% { opacity: 0; translate: 0 -14px; scale: 0.96; }
  8%, 70% { opacity: 1; translate: 0 0; scale: 1; }
  80%, 100% { opacity: 0; translate: 0 -10px; scale: 0.98; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.9); }
  100% { box-shadow: 0 0 0 0.5rem rgb(255 255 255 / 0); }
}
@keyframes wiggle {
  25% { rotate: -10deg; }
  60% { rotate: 8deg; }
}
@keyframes drift {
  to { translate: 6rem 3rem; scale: 1.15; }
}
