/* AURORA — Propuesta B «AURORA Futurista», elegida por Dirección el 31-oct-2026 (CANDIDATA, no publicada).
   Una sola hoja que se carga la última en cada página. Solo usa los tokens ya publicados (--ahm-*, approved-v261.css):
   no añade colores, no toca el encabezado, el logotipo, los textos ni las fotografías. Profundidad con capas,
   tarjetas translúcidas y aparición al desplazarse; sin JavaScript. Revertir = quitar el <link> (BACKOUT.md). */

/* Fondos de sección: degradado hielo → menta, los dos tonos oficiales. */
.approved-access-section,
.section.soft {
  background: linear-gradient(180deg, var(--ahm-ice), var(--ahm-mint));
}

/* Tarjetas translúcidas con profundidad. Cada color-mix() lleva var(), así que un navegador sin color-mix no descarta
   la declaración al leerla: la invalida al calcular y la propiedad vuelve a «unset» (sin fondo, borde ni sombra).
   Por eso todo color-mix va dentro de @supports y, sin soporte, queda el estilo publicado. .demo-member-card no
   entra: su texto publicado es blanco sobre su degradado azul marino. */
.approved-access-card,
.approved-service-tile,
.ahm-product-card,
.card,
.entry-choice-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.approved-access-card:hover,
.approved-service-tile:hover,
.ahm-product-card:hover,
.card:hover,
.entry-choice-card:hover,
.approved-access-card:focus-within,
.approved-service-tile:focus-within,
.ahm-product-card:focus-within,
.card:focus-within,
.entry-choice-card:focus-within {
  transform: translateY(-4px);
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
  .approved-value-strip,
  .approved-access-card,
  .approved-service-tile,
  .ahm-product-card,
  .card,
  .entry-choice-card,
  .faq-search-card,
  .find-care-panel {
    background: color-mix(in srgb, var(--ahm-white) 84%, transparent);
    border: 1px solid color-mix(in srgb, var(--ahm-white) 55%, var(--ahm-line));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px color-mix(in srgb, var(--ahm-navy) 10%, transparent);
  }

  /* services.html: the published muted text of these cards reaches 4.58:1 only on opaque white; on 84% white over
     the section it fell to 4.34:1 (below AA). They keep their published white, with B's border and shadow. */
  .ahm-product-card {
    background: var(--ahm-white);
  }

  .approved-access-card:hover,
  .approved-service-tile:hover,
  .ahm-product-card:hover,
  .card:hover,
  .entry-choice-card:hover,
  .approved-access-card:focus-within,
  .approved-service-tile:focus-within,
  .ahm-product-card:focus-within,
  .card:focus-within,
  .entry-choice-card:focus-within {
    box-shadow: 0 26px 52px color-mix(in srgb, var(--ahm-navy) 14%, transparent);
  }

  /* Capa de profundidad bajo la foto del inicio: solo una sombra; la imagen no cambia. */
  .approved-hero-photo {
    box-shadow: 0 30px 60px color-mix(in srgb, var(--ahm-navy) 14%, transparent);
  }
}

/* Aparición al desplazarse, solo donde el navegador la soporta y el usuario no pidió menos movimiento.
   Sin soporte, todo queda visible y quieto; lo que ya está en pantalla al cargar se muestra completo. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .approved-access-card,
    .approved-service-tile,
    .ahm-product-card,
    .card,
    .entry-choice-card {
      animation: ahm-b-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

/* Solo desplazamiento: la opacidad no cambia, así el contraste del texto es el mismo en todo momento. */
@keyframes ahm-b-rise {
  from { translate: 0 18px; }
  to { translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .approved-access-card,
  .approved-service-tile,
  .ahm-product-card,
  .card,
  .entry-choice-card {
    transition: none;
  }
  .approved-access-card:hover,
  .approved-service-tile:hover,
  .ahm-product-card:hover,
  .card:hover,
  .entry-choice-card:hover,
  .approved-access-card:focus-within,
  .approved-service-tile:focus-within,
  .ahm-product-card:focus-within,
  .card:focus-within,
  .entry-choice-card:focus-within {
    transform: none;
  }
}
