/* ==========================================================================
   ALMA LICORES — Propuesta 2 · Alma Andina
   Capas: fondo → tipografía → meta/stamp/CTA → botella → rail
   Reglas: sin rounded-full, sin shadow-2xl, sin degradados neon
   ========================================================================== */

:root {
  --font-display: "Denton", "Cormorant Garamond", "Times New Roman", serif;
  --font-brand: "Denton", "Times New Roman", serif;
  --font-sans: "Systemia", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-x: clamp(1.25rem, 3.5vw, 3.25rem);
  --header-h: 4.75rem;
  --rail-h: 4.35rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bronze: #c99d72;
  --bottle-h: min(82vh, 820px);
}

/* ---- Themes ---- */
.theme-dark {
  --bg: #0a100d;
  --ink: #f3ebe0;
  --ink-soft: rgba(243, 235, 224, 0.62);
  --accent: var(--bronze);
  --accent-soft: rgba(201, 157, 114, 0.72);
  --line: rgba(201, 157, 114, 0.2);
  --line-strong: rgba(201, 157, 114, 0.55);
  --display: #c99d72;
  --stamp-mat: #f4efe6;
  --cta-bg: transparent;
  --header-bg: transparent;
}

.theme-light {
  --bg: #efece6;
  --ink: #141312;
  --ink-soft: rgba(20, 19, 18, 0.58);
  --accent: #141312;
  --accent-soft: rgba(20, 19, 18, 0.7);
  --line: #d5cfbf;
  --line-strong: rgba(20, 19, 18, 0.35);
  --display: #141312;
  --stamp-mat: #fff;
  --cta-bg: transparent;
  --header-bg: transparent;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

body.is-introing {
  overflow: hidden;
}

/* ==========================================================================
   INTRO — cross-dissolve minimal
   Deliberadamente distinto a la Propuesta 1 (que usa cortina/paneles
   deslizantes): aquí no hay transform ni slide, solo una placa fina
   tipo "credencial/sello" que aparece y luego toda la capa se
   disuelve en opacidad hacia el hero. Retoma el lenguaje de
   coordenadas + sello postal ya usado en el hero.
   ========================================================================== */

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s var(--ease);
}

.theme-dark .intro {
  background:
    radial-gradient(
      ellipse 55% 50% at 50% 50%,
      rgba(180, 130, 70, 0.16),
      transparent 70%
    ),
    var(--bg);
}

body.is-revealed .intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 3.25rem;
  border: 1px solid var(--line-strong);
  text-align: center;
  opacity: 0;
  transform: scale(0.94);
  animation: intro-frame-in 0.85s var(--ease) 0.1s forwards;
}

.intro__coord {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
  opacity: 0;
  animation: intro-fade 0.7s var(--ease) 0.3s forwards;
}

.intro__word {
  margin: 0.15rem 0 0;
  font-family: "Casko Luxury", var(--font-display), serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--display);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.5rem);
  animation: intro-rise 0.75s var(--ease) forwards;
}

.intro__word--alma {
  animation-delay: 0.4s;
}

.intro__word--andina {
  animation-delay: 0.55s;
}

.intro__rule {
  display: block;
  width: 0;
  height: 1px;
  background: var(--line-strong);
  animation: intro-rule 0.6s var(--ease) 0.5s forwards;
}

.intro__tag {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: intro-fade 0.7s var(--ease) 0.75s forwards;
}

@keyframes intro-frame-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes intro-fade {
  to {
    opacity: 1;
  }
}

@keyframes intro-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-rule {
  to {
    width: clamp(2.5rem, 8vw, 4rem);
  }
}

/* --------------------------------------------------------------------------
   Stage shell
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}

.stage__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stage__backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.theme-dark .stage__backdrop-img {
  opacity: 1;
}

.stage__backdrop-wash {
  position: absolute;
  inset: 0;
  background: var(--bg);
  transition:
    background 0.45s var(--ease),
    opacity 0.45s var(--ease);
}

.theme-dark .stage__backdrop-wash {
  background:
    radial-gradient(
      ellipse 50% 48% at 50% 50%,
      rgba(180, 130, 70, 0.22),
      transparent 68%
    ),
    linear-gradient(180deg, rgba(7, 11, 9, 0.2) 0%, rgba(7, 11, 9, 0.5) 100%);
}

.theme-light .stage__backdrop-wash {
  background: var(--bg);
}

/* --------------------------------------------------------------------------
   Header (z-50 sobre el hero)
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0.85rem var(--pad-x);
  background: var(--header-bg);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

.nav-left__list {
  display: none;
  gap: 1.5rem;
}

.nav-left__list a,
.theme-toggle {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-soft);
  transition: color 0.3s var(--ease);
}

.nav-left__list a:hover,
.nav-left__list a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.nav-bag:hover,
.nav-bag:focus-visible {
  color: var(--accent);
  outline: none;
}

.theme-toggle__label--to-dark {
  display: none;
}

.theme-light .theme-toggle__label--to-light {
  display: none;
}

.theme-light .theme-toggle__label--to-dark {
  display: inline;
}

.nav-bag {
  display: inline-flex;
  color: var(--accent);
}

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1;
  text-align: center;
}

.brand__alma {
  font-family: var(--font-brand);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brand__licores {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 1.75rem;
  height: 1.75rem;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.35s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 55;
  padding: 1.15rem var(--pad-x) 1.5rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Hero — escenario de capas
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  /* Sin padding inferior: la botella apoya en el rail */
  padding: 0;
  overflow: hidden;
}

/* ---- Capa tipografía monumental partida en dos columnas ----
   Cada fila reserva un canal central (gutter) donde reposa la
   botella; las palabras se pegan a los bordes exteriores del canal. */
:root {
  /* Tope duro (20rem): sin esto el canal se disparaba con vw en
     pantallas anchas (2K/4K) dejando la botella "flotando" lejos
     de las letras. */
  --display-gutter: clamp(4rem, 15vw, 20rem);
  /* Tamaño aumentado (antes tope 11.5rem) para dar más presencia
     al "ALMA ANDINA" detrás de la botella. */
  --display-size: clamp(4rem, 16vw, 12.5rem);
}

.display {
  position: absolute;
  /* Puramente porcentual: el hero ya excluye header/rail (son
     hermanos, no ancestros), sumarles --rail-h aquí distorsionaba
     la proporción según el alto real de pantalla. */
  inset: 7% 0 10%;
  z-index: 10;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  user-select: none;
}

.display__row {
  display: grid;
  grid-template-columns: 1fr var(--display-gutter) 1fr;
  align-items: baseline;
  width: 100%;
}

.display__row--top {
  align-items: flex-start;
}

.display__row--bottom {
  align-items: flex-end;
}

.display__word,
.display__mobile-word {
  display: block;
  /* Fuente inclinada (itálica real de Casko Luxury, no una itálica
     sintética/oblique de Denton) para el titular monumental. */
  font-family: "Casko Luxury", var(--font-display), serif;
  font-style: italic;
  font-weight: 500;
  font-size: var(--display-size);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}

/* "ALMA" / "ANDINA" completas: solo se muestran en mobile (ver
   media query ≥/≤899px). En escritorio se usan las filas partidas
   (.display__row) alrededor de la botella. */
.display__mobile-word {
  display: none;
  width: 100%;
  text-align: center;
}

.display__word--left {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.display__word--right {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.theme-dark .display__word,
.theme-dark .display__mobile-word {
  text-shadow: 0 0 48px rgba(180, 120, 60, 0.1);
}

/* Textura en el texto: se "recorta" la misma imagen del fondo
   (studio verde) dentro de las letras. background-attachment:fixed
   asegura que las cuatro palabras muestren un fragmento continuo,
   como si fueran ventanas hacia un mismo lienzo. Con @supports
   evitamos texto invisible en navegadores sin background-clip. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .theme-dark .display__word,
  .theme-dark .display__mobile-word {
    /* Degradado bronce sobre la foto: sin esto, las letras
       mostrarían exactamente el mismo fragmento que el fondo real
       detrás (misma imagen + mismo "fixed") y quedarían casi
       invisibles, tipo camuflaje. El tinte las mantiene doradas
       pero con la textura de la foto. */
    background-image:
      linear-gradient(
        165deg,
        rgba(214, 176, 130, 0.65),
        rgba(120, 82, 44, 0.45)
      ),
      url("../Empty_dark_green_studio.jpeg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* ---- Grupo lateral: meta + estampilla como puente visual ---- */
.side-info {
  position: absolute;
  z-index: 22;
  left: var(--pad-x);
  top: 60%;
  transform: translateY(-46%);
  display: none;
  align-items: flex-end;
  gap: 1.5rem;
}

.meta {
  width: 10.75rem;
  flex-shrink: 0;
}

.meta__list {
  margin: 0;
}

.meta__row {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.meta__row:last-child {
  border-bottom: 1px solid var(--line);
}

.meta__row dt {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.meta__row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--accent);
}

/* ---- Estampilla postal — más grande, puente entre meta y botella ---- */
.stamp {
  flex-shrink: 0;
  margin: 0 0 0rem;
  width: 11.5rem;
  height: 14.5rem;
  padding: 0.45rem;
  background: var(--stamp-mat);
  -webkit-mask-image: url("../stamp-edge-mask.svg");
  mask-image: url("../stamp-edge-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(1) contrast(1.2);
}

.theme-dark .stamp img {
  filter: grayscale(1) sepia(0.22) contrast(1.18);
}

/* ---- CTA bajo "DINA" — separado verticalmente del canal de texto
   para no solaparse de forma ilegible con las letras ---- */
.cta {
  position: absolute;
  z-index: 26;
  right: clamp(1.25rem, 4.5vw, 3.5rem);
  bottom: calc(var(--rail-h) + 0.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--cta-bg);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.theme-dark .cta {
  /* Fondo sólido oscuro de respaldo si llegara a cruzar una letra */
  background: rgba(10, 16, 13, 0.55);
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  outline: none;
}

/* ---- Botella (encima de tipografía y side-info) ----
   En mobile queda apoyada en el rail (bottom: 0). En PC (ver media
   query ≥900px) se centra verticalmente con margin auto, sin
   transform, para no chocar nunca con la animación de entrada. */
.bottle {
  position: absolute;
  z-index: 24;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: var(--bottle-h);
  width: auto;
  max-width: min(28vw, 360px);
  pointer-events: none;
}

.bottle__img {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.38))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.theme-light .bottle__img {
  filter: drop-shadow(0 14px 20px rgba(20, 19, 18, 0.16))
    drop-shadow(0 2px 3px rgba(20, 19, 18, 0.1));
}

.bottle__shadow {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0.15rem;
  width: 55%;
  height: 0.85rem;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.42) 0%,
    transparent 72%
  );
  filter: blur(3px);
  pointer-events: none;
}

.theme-light .bottle__shadow {
  background: radial-gradient(
    ellipse at center,
    rgba(20, 19, 18, 0.25) 0%,
    transparent 72%
  );
}

/* --------------------------------------------------------------------------
   Rail inferior
   -------------------------------------------------------------------------- */

.rail {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  min-height: var(--rail-h);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}

.rail__item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 0.75rem;
  border-right: 1px solid var(--line);
  color: var(--accent-soft);
  transition:
    color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.rail__item:last-child {
  border-right: none;
}

.rail__item:hover,
.rail__item:focus-visible,
.rail__item.is-active {
  color: var(--accent);
  outline: none;
}

.rail__item.is-active {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.rail__num {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.rail__name {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-left__list {
    display: flex;
  }

  .side-info {
    display: flex;
  }

  :root {
    --bottle-h: min(84vh, 860px);
  }

  /* Ajuste solo en escritorio (no toca mobile):
     - ALMA/AN baja un poco.
     - A/DINA sube bastante (transform sí es seguro aquí porque
       esta fila no tiene animación propia). */
  .display__row--top {
    transform: translateY(2.5rem);
  }

  .display__row--bottom {
    transform: translateY(-7rem);
  }

  /* Centrado vertical simple de la botella, igual en pantallas de
     PC chicas y grandes: top+bottom en 0 con margin auto centra el
     bloque (su altura es menor que la del hero) sin usar transform,
     así no hay conflicto con la animación de entrada. */
  .bottle {
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
  }
}

@media (min-width: 1200px) {
  .stamp {
    width: 12rem;
    height: 15rem;
  }

  .cta {
    right: clamp(2rem, 5vw, 4.5rem);
  }

  /* Botella un poco más grande en pantallas grandes. */
  :root {
    --bottle-h: min(92vh, 940px);
  }

  .bottle {
    max-width: min(31vw, 400px);
  }
}

/* --------------------------------------------------------------------------
   Mobile — mantiene superposición, escala tipografía
   -------------------------------------------------------------------------- */

@media (max-width: 899px) {
  :root {
    --header-h: 4rem;
    --rail-h: 3.75rem;
    --bottle-h: min(62vh, 520px);
    --pad-x: 1.15rem;
  }

  body {
    overflow: hidden;
    height: 100svh;
  }

  .stage {
    height: 100svh;
  }

  :root {
    --display-gutter: minmax(3rem, 30vw);
    --display-size: min(15vw, 4rem);
  }

  .display {
    /* Puramente porcentual, igual que en escritorio: mezclar
       --rail-h (fijo) con % desalineaba las filas ("desface") en
       distintos altos de pantalla móvil. */
    inset: 8% 0 8%;
  }

  .display__word {
    letter-spacing: -0.03em;
  }

  /* En mobile no partimos el titular: se oculta la versión de
     escritorio (filas ALMA/AN y A/DINA alrededor de la botella) y
     se muestra una palabra completa por fila. */
  .display__row {
    display: none;
  }

  .display__mobile-word {
    display: block;
    letter-spacing: -0.03em;
  }

  /* Botella centrada verticalmente (mismo truco simple que en PC:
     top+bottom en 0 con margin auto, sin transform). Antes quedaba
     anclada a bottom:0 y se veía "muy abajo". */
  .bottle {
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
  }

  .theme-toggle {
    font-size: 0.625rem;
    letter-spacing: 0.18em;
  }

  .cta {
    right: 50%;
    bottom: 0.85rem;
    transform: translateX(50%);
    width: min(100% - 2.3rem, 18rem);
    text-align: center;
    z-index: 30;
  }

  .bottle {
    max-width: min(48vw, 240px);
  }

  .rail__item {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 0.35rem;
  }

  .rail__num {
    font-size: 1.15rem;
  }

  .rail__name {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 899px) and (max-height: 700px) {
  :root {
    --bottle-h: min(52vh, 380px);
    --display-size: min(13vw, 3.25rem);
  }

  .cta {
    padding: 0.7rem 1.1rem;
    font-size: 0.625rem;
  }
}

/* --------------------------------------------------------------------------
   Entrada
   -------------------------------------------------------------------------- */

@keyframes p2-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes p2-bottle-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.display {
  animation: p2-fade 1s var(--ease) both;
}

.bottle {
  animation: p2-bottle-in 1.15s var(--ease) 0.15s both;
}

.side-info {
  animation: p2-fade 0.9s var(--ease) 0.35s both;
}

.cta {
  animation: p2-fade 0.85s var(--ease) 0.4s both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  /* Sin esto, el intro quedaría atascado en su opacity/transform
     inicial (0) para siempre, porque esos valores vienen de la
     regla base, no del keyframe, y la animación que los revertía
     a 1/none queda desactivada arriba. */
  .intro__frame,
  .intro__coord,
  .intro__word,
  .intro__tag {
    opacity: 1;
    transform: none;
  }

  .intro__rule {
    width: clamp(2.5rem, 8vw, 4rem);
  }
}
