/*
 * Invitación NIMO — paleta negro / vino tinto / plata
 * Editar variables :root y CONFIG en script.js
 */

:root {
  --color-black: #0a0909;
  --color-black-soft: #141112;
  --color-wine: #5c1f2e;
  --color-wine-deep: #3d1520;
  --color-wine-glow: #7a2f42;
  --color-silver: #b8b8c0;
  --color-silver-light: #d4d4dc;
  --color-silver-muted: #8a8a94;
  --color-cream: #f0ece6;
  --color-ink: #e8e4de;
  --color-muted: #a8a4a0;

  --surface-card: rgba(20, 17, 18, 0.92);
  --surface-card-tint: rgba(26, 22, 24, 0.88);
  --border-accent: 1px solid rgba(184, 184, 192, 0.28);
  --border-wine: 1px solid rgba(122, 47, 66, 0.45);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.28);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Cinzel", Georgia, serif;

  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 38rem;
  --max-width-wide: min(92vw, 72rem);
  --header-safe: env(safe-area-inset-top, 0);
  --footer-safe: env(safe-area-inset-bottom, 0);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --inv-ancho: min(100%, 26.5rem);
  --inv-pad-x: clamp(0.85rem, 3.5vw, 1.35rem);
  --inv-pad-y: clamp(1rem, 3vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .gallery__cell,
  .hero__enter,
  .wall-intro,
  .wall-intro__brick,
  .wall-intro__stage,
  .wall-intro__flash,
  .wall-intro__burst,
  .wall-confetti__piece,
  .wall-intro__bokeh {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.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;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-black);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(92, 31, 46, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(61, 21, 32, 0.25), transparent 50%),
    linear-gradient(180deg, var(--color-black-soft) 0%, var(--color-black) 100%);
  text-rendering: optimizeLegibility;
}

body.wall-intro-abierta {
  overflow: hidden;
}

body.wall-intro-abierta:not(.wall-intro-revealed) .invitacion-envoltura {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.wall-intro-revealed .invitacion-envoltura {
  visibility: visible;
  pointer-events: auto;
}

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

a {
  color: var(--color-silver-light);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-silver);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: var(--space-md);
  top: var(--space-md);
  width: auto;
  height: auto;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-card);
  border: var(--border-accent);
  border-radius: var(--radius);
}

/* ---------- Intro: pared de ladrillo a pantalla completa ---------- */
.wall-intro {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: block;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s var(--ease-out-expo),
    visibility 0.7s step-end;
}

.wall-intro--visible {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.wall-intro--breaking {
  animation: wallShake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes wallShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  10% { transform: translate3d(-8px, 3px, 0) rotate(-0.5deg); }
  22% { transform: translate3d(9px, -4px, 0) rotate(0.6deg); }
  38% { transform: translate3d(-6px, 5px, 0); }
  52% { transform: translate3d(7px, -3px, 0); }
  68% { transform: translate3d(-3px, 2px, 0); }
}

.wall-intro__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 70% at 50% 20%, rgba(155, 61, 50, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 80%, rgba(212, 175, 55, 0.08), transparent 45%),
    linear-gradient(165deg, #0f0d0e 0%, var(--color-black) 50%, #050404 100%);
  transition: opacity 1.1s var(--ease-out-expo) 0.15s;
}

.wall-intro__bokeh {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 18% 28%, rgba(212, 175, 55, 0.2) 0%, transparent 8%),
    radial-gradient(circle at 82% 22%, rgba(181, 74, 60, 0.15) 0%, transparent 7%),
    radial-gradient(circle at 65% 72%, rgba(212, 175, 55, 0.12) 0%, transparent 6%),
    radial-gradient(circle at 30% 78%, rgba(122, 47, 66, 0.14) 0%, transparent 7%);
}

.wall-intro--breaking .wall-intro__bokeh {
  animation: bokehPulse 1.8s ease-out both;
}

@keyframes bokehPulse {
  0% { opacity: 0.5; transform: scale(1); }
  25% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.2); }
}

.wall-intro--breaking .wall-intro__backdrop,
.wall-intro--revealing .wall-intro__backdrop {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.wall-intro__flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--impact-x, 50%) var(--impact-y, 48%),
      rgba(255, 252, 245, 1) 0%,
      rgba(245, 215, 142, 0.75) 12%,
      rgba(212, 175, 55, 0.4) 28%,
      rgba(181, 74, 60, 0.2) 45%,
      transparent 68%
    );
}

.wall-intro--breaking .wall-intro__flash {
  animation: wallFlash 0.85s ease-out both;
}

@keyframes wallFlash {
  0% { opacity: 0; }
  6% { opacity: 1; }
  22% { opacity: 0.85; }
  45% { opacity: 0.4; }
  100% { opacity: 0; }
}

.wall-intro__glow-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      ellipse 75% 60% at var(--impact-x, 50%) var(--impact-y, 45%),
      rgba(245, 215, 142, 0.45) 0%,
      rgba(212, 175, 55, 0.25) 25%,
      rgba(122, 47, 66, 0.2) 45%,
      transparent 72%
    );
}

.wall-intro--breaking .wall-intro__glow-reveal {
  animation: wallGlowReveal 1.8s var(--ease-out-expo) 0.1s both;
}

@keyframes wallGlowReveal {
  0% { opacity: 0; transform: scale(0.8); filter: blur(8px); }
  25% { opacity: 1; transform: scale(1.08); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.25); filter: blur(4px); }
}

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

.wall-confetti__piece {
  position: absolute;
  left: var(--impact-x, 50%);
  top: var(--impact-y, 42%);
  width: var(--cf-size, 8px);
  height: var(--cf-size, 8px);
  margin-left: calc(var(--cf-size, 8px) / -2);
  margin-top: calc(var(--cf-size, 8px) / -2);
  background: var(--cf-color, #d4af37);
  border-radius: 50%;
  opacity: 0;
  animation: confettiFall var(--cf-dur, 2.5s) cubic-bezier(0.22, 0.61, 0.36, 1) var(--cf-delay, 0s) both;
}

.wall-confetti__piece--rect {
  border-radius: 2px;
  width: calc(var(--cf-size, 8px) * 1.4);
  height: calc(var(--cf-size, 8px) * 0.65);
  margin-left: calc(var(--cf-size, 8px) * -0.7);
  margin-top: calc(var(--cf-size, 8px) * -0.325);
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  15% {
    opacity: 1;
    transform: translate3d(calc(var(--cf-x, 0px) * 0.15), -30px, 0) rotate(calc(var(--cf-rot, 0deg) * 0.1)) scale(1.1);
  }
  100% {
    opacity: 0.85;
    transform: translate3d(var(--cf-x, 0px), 105vh, 0) rotate(var(--cf-rot, 360deg)) scale(0.9);
  }
}

.wall-intro__particles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.wall-intro__bursts {
  position: absolute;
  left: var(--impact-x, 50%);
  top: var(--impact-y, 42%);
  z-index: 4;
  width: 0;
  height: 0;
  pointer-events: none;
}

.wall-intro__burst {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border-radius: 50%;
  border: 2px solid rgba(245, 215, 142, 0.7);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  opacity: 0;
  transform: scale(0.2);
}

.wall-intro--breaking .wall-intro__burst {
  animation: wallRingBurst 1.2s var(--ease-out-expo) both;
}

.wall-intro--breaking .wall-intro__burst:nth-child(1) {
  animation-delay: 0.04s;
}

.wall-intro--breaking .wall-intro__burst:nth-child(2) {
  animation-delay: 0.1s;
  border-color: rgba(181, 74, 60, 0.65);
  box-shadow: 0 0 24px rgba(155, 61, 50, 0.4);
}

.wall-intro--breaking .wall-intro__burst:nth-child(3) {
  animation-delay: 0.18s;
  border-color: rgba(240, 236, 230, 0.5);
  border-width: 1px;
}

@keyframes wallRingBurst {
  0% {
    opacity: 0.9;
    transform: scale(0.15);
  }
  100% {
    opacity: 0;
    transform: scale(14);
  }
}

.wall-intro__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.wall-intro--revealing .wall-intro__stage {
  pointer-events: none;
}

.wall-intro__brand {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: max(1.25rem, env(safe-area-inset-top));
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 240, 220, 0.75);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.wall-intro--breaking .wall-intro__brand,
.wall-intro--revealing .wall-intro__brand {
  opacity: 0;
}

.wall-intro__wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  background: #2a2624;
  box-shadow: inset 0 -4px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.5s var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}

.wall-intro--revealing .wall-intro__wall {
  pointer-events: none;
}

.wall-intro--revealing .wall-intro__mortar {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.wall-intro__wall:active .wall-intro__cue-core {
  transform: scale(0.85);
}

.wall-intro__mortar {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 30%),
    #b8b2a8;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.15);
}

.wall-intro__bricks {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--wall-gap, 8px);
  padding: 9px 8px;
  background: #b0aaa0;
  overflow: hidden;
}

.wall-intro__row {
  display: flex;
  flex: 0 0 var(--brick-h, 46px);
  height: var(--brick-h, 46px);
  min-height: var(--brick-h, 46px);
  gap: var(--wall-gap, 8px);
}

.wall-intro__brick {
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
  transform: rotate(var(--brick-tilt, 0deg));
  border-radius: 3px 5px 4px 3px;
  background: linear-gradient(
      168deg,
      var(--brick-c1, #c45a4a) 0%,
      var(--brick-c2, #a84438) 42%,
      var(--brick-c3, #7a3028) 100%
    );
  box-shadow:
    inset 3px 2px 0 rgba(255, 220, 200, 0.22),
    inset -3px -3px 0 rgba(60, 20, 15, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.15);
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
  transition-delay: var(--brick-delay, 0s);
}

.wall-intro__brick::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 5px,
      rgba(0, 0, 0, 0.03) 5px,
      rgba(0, 0, 0, 0.03) 6px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.04) 8px,
      rgba(255, 255, 255, 0.04) 9px
    );
  pointer-events: none;
}

.wall-intro__brick::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 80% 50% at 25% 20%,
    rgba(255, 200, 180, 0.2),
    transparent 55%
  );
  pointer-events: none;
}

.wall-intro__brick--half {
  flex: 0.48;
}

.wall-intro__brick--dark {
  filter: brightness(0.88) saturate(1.05);
}

.wall-intro__brick--worn {
  filter: brightness(0.9) saturate(0.95);
}

.wall-intro__brick--worn::before {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(0, 0, 0, 0.04) 5px, rgba(0, 0, 0, 0.04) 6px);
}

.wall-intro__brick--chip {
  clip-path: polygon(2% 0, 98% 2%, 96% 100%, 4% 98%);
}

.wall-intro--breaking .wall-intro__brick {
  pointer-events: none;
  transform: translate3d(var(--brick-dx, 0), var(--brick-dy, 80px), 0)
    rotate(var(--brick-rot, 20deg)) scale(var(--brick-scale, 0.6));
  opacity: 0;
}

.wall-intro--breaking .wall-intro__brick--burst {
  box-shadow:
    0 0 16px rgba(245, 215, 142, 0.5),
    0 0 8px rgba(212, 175, 55, 0.35);
}

.wall-intro__crackmap {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
}

.wall-intro__crack-line {
  fill: none;
  stroke: rgba(35, 15, 12, 0.7);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.wall-intro__crack-line--a {
  stroke: rgba(25, 10, 8, 0.85);
  stroke-width: 2.6;
}

.wall-intro__crack-line--b,
.wall-intro__crack-line--c {
  stroke-width: 1.5;
  opacity: 0.85;
}

.wall-intro__crack-line--hair {
  stroke-width: 0.9;
  opacity: 0.55;
}

.wall-intro--breaking .wall-intro__crack-line {
  animation: crackFlash 0.4s ease-out both;
}

@keyframes crackFlash {
  0% { stroke: rgba(255, 245, 200, 1); stroke-width: 3.5px; filter: drop-shadow(0 0 6px rgba(245, 215, 142, 0.8)); }
  100% { stroke: rgba(25, 10, 8, 0); opacity: 0; }
}

/* Señal visual: punto de fractura (sin texto) */
.wall-intro__cue {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 5;
  width: 0;
  height: 0;
  pointer-events: none;
}

.wall-intro__cue-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 252, 240, 1) 0%,
    rgba(245, 215, 142, 0.85) 35%,
    rgba(212, 175, 55, 0.4) 60%,
    transparent 75%
  );
  box-shadow:
    0 0 14px rgba(255, 240, 200, 0.9),
    0 0 32px rgba(212, 175, 55, 0.55),
    0 0 48px rgba(181, 74, 60, 0.25);
  animation: cuePulse 2s ease-in-out infinite;
}

@keyframes cuePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.wall-intro__cue-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid rgba(245, 215, 142, 0.5);
  animation: cueRing 2s ease-out infinite;
}

.wall-intro__cue-ring--2 {
  animation-delay: 1s;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: rgba(181, 74, 60, 0.35);
}

@keyframes cueRing {
  0% {
    transform: scale(0.5);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wall-intro--breaking .wall-intro__cue {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.wall-intro__impact-host {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}

.wall-intro__impact {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 252, 245, 1) 0%,
    rgba(245, 215, 142, 0.7) 40%,
    transparent 72%
  );
  animation: impactRipple 0.85s ease-out both;
}

.wall-intro__impact::before,
.wall-intro__impact::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(245, 215, 142, 0.65);
  animation: impactRipple 0.95s ease-out 0.04s both;
}

.wall-intro__impact::after {
  inset: -24px;
  border-color: rgba(181, 74, 60, 0.45);
  animation-delay: 0.1s;
}

@keyframes impactRipple {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.wall-intro--breaking:not(.wall-intro--revealing) .wall-intro__wall {
  pointer-events: auto;
}

.wall-intro--breaking .wall-intro__wall {
  animation: wallCollapse 0.7s var(--ease-out-expo) 0.05s both;
}

.wall-intro--revealing {
  pointer-events: none;
}

.wall-intro--revealing .wall-intro__confetti,
.wall-intro--revealing .wall-intro__particles,
.wall-intro--revealing .wall-intro__flash,
.wall-intro--revealing .wall-intro__bursts,
.wall-intro--revealing .wall-intro__glow-reveal {
  pointer-events: none;
}

@keyframes wallCollapse {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
  30% {
    opacity: 0.85;
    transform: scale(1.04);
    filter: brightness(1.5) saturate(1.2);
  }
  55% {
    opacity: 0.5;
    transform: scale(1.07);
    filter: brightness(1.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.1);
    filter: brightness(2);
  }
}

body.wall-intro-revealed .invitacion-envoltura {
  animation: invitacionReveal 0.95s var(--ease-out-expo) both;
}

body.wall-intro-revealed .music-player {
  z-index: 410;
}

@keyframes invitacionReveal {
  0% {
    opacity: 0;
    transform: scale(0.97) translateY(14px);
    filter: blur(8px);
  }
  40% {
    opacity: 1;
    transform: scale(1.01) translateY(-2px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* ---------- Invitación (tarjeta) ---------- */
.invitacion-envoltura {
  display: flex;
  justify-content: center;
  padding: var(--space-md) var(--space-sm) calc(var(--space-xl) + var(--footer-safe));
}

.invitacion {
  width: var(--inv-ancho);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-black-soft) 0%,
    #1a1618 55%,
    var(--color-black-soft) 100%
  );
  box-shadow:
    0 1px 0 rgba(184, 184, 192, 0.08) inset,
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(122, 47, 66, 0.35);
}

.invitacion__cuerpo {
  padding: var(--inv-pad-y) var(--inv-pad-x) calc(var(--inv-pad-y) + 0.25rem);
}

.invitacion__cuerpo > .section {
  padding: var(--space-md) 0;
}

.invitacion__pie {
  margin: 0;
  border-top: double 3px rgba(122, 47, 66, 0.4);
  background: linear-gradient(180deg, #1a1618, var(--color-black-soft));
  padding-inline: var(--inv-pad-x);
}

.invitacion .section--countdown {
  margin-inline: calc(-1 * var(--inv-pad-x));
  width: calc(100% + 2 * var(--inv-pad-x));
  max-width: none;
  padding-inline: var(--inv-pad-x);
}

.invitacion .gallery__viewport {
  margin-inline: calc(-1 * var(--inv-pad-x));
  padding-inline: var(--inv-pad-x);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(58svh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-safe) + var(--space-lg)) var(--inv-pad-x) var(--space-lg);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-black-soft);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      185deg,
      rgba(10, 9, 9, 0.85) 0%,
      rgba(61, 21, 32, 0.45) 45%,
      rgba(20, 17, 18, 0.92) 100%
    ),
    radial-gradient(ellipse 90% 55% at 50% 15%, rgba(92, 31, 46, 0.35), transparent 60%);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23b8b8c0' stroke-opacity='0.4' stroke-width='0.4'%3E%3Cpath d='M40 8 L48 40 L40 72 L32 40 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero__frame {
  position: absolute;
  inset: var(--space-md);
  z-index: 1;
  border: double 2px rgba(184, 184, 192, 0.25);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 26rem;
  margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__enter {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
    filter: blur(6px);
    animation: heroItemIn 1s var(--ease-out-expo) both;
  }
  .hero__enter--0 { animation-delay: 0s; }
  .hero__enter--1 { animation-delay: 0.12s; }
  .hero__enter--2 { animation-delay: 0.26s; }
  .hero__enter--3 { animation-delay: 0.4s; }
  .hero__enter--4 { animation-delay: 0.54s; }
}

@keyframes heroItemIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.hero__logo {
  width: min(11.5rem, 72vw);
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  /* box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(184, 184, 192, 0.12); */
}

.hero__invitacion {
  margin: 0 auto var(--space-md);
  max-width: 28ch;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  color: var(--color-cream);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero__name {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 11vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--color-cream);
  text-shadow: 0 8px 32px rgba(92, 31, 46, 0.5);
}

.hero__tagline {
  margin: 0 auto var(--space-lg);
  max-width: 28ch;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: stretch;
}

@media (min-width: 480px) {
  .hero__actions {
    max-width: 18rem;
    margin-inline: auto;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  border: var(--border-accent);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-wine-glow), var(--color-wine-deep));
  color: var(--color-cream);
  border-color: rgba(122, 47, 66, 0.6);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(92, 31, 46, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-silver-light);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  color: var(--color-silver-light);
  border-color: rgba(184, 184, 192, 0.35);
}

.btn--outline:hover {
  background: rgba(92, 31, 46, 0.2);
}

.btn--whatsapp::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.35em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* ---------- Secciones ---------- */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--wide {
  max-width: var(--max-width-wide);
}

.section__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 500;
  color: var(--color-silver-light);
  text-align: center;
  letter-spacing: 0.08em;
}

.section__title--light {
  color: var(--color-cream);
}

/* Fecha destacada */
.section--date {
  padding-top: var(--space-sm);
}

.date-banner {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: double 2px rgba(122, 47, 66, 0.5);
  background: linear-gradient(
    165deg,
    rgba(61, 21, 32, 0.5) 0%,
    rgba(20, 17, 18, 0.95) 100%
  );
  box-shadow: var(--shadow-card);
}

.date-banner--featured .date-banner__label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.date-banner__value {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-wine-glow);
}

.date-banner__sub {
  margin: var(--space-sm) 0 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-muted);
}

/* Frases */
.quotes {
  display: grid;
  gap: var(--space-md);
}

.quote {
  margin: 0;
  padding: var(--space-lg);
  text-align: center;
  border-radius: var(--radius-lg);
  border: var(--border-wine);
  background: var(--surface-card-tint);
  box-shadow: var(--shadow-card);
}

.quote__text {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  color: var(--color-cream);
  line-height: 1.45;
}

.quote__text::before {
  content: "“";
  color: var(--color-silver-muted);
  margin-right: 0.15em;
}

.quote__text::after {
  content: "”";
  color: var(--color-silver-muted);
  margin-left: 0.1em;
}

/* Tarjetas */
.card {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: var(--border-accent);
  background: var(--surface-card-tint);
  box-shadow: var(--shadow-card);
}

.ornament {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-silver-muted) 25%,
    var(--color-silver-muted) 75%,
    transparent
  );
  margin: var(--space-md) auto;
  max-width: 10rem;
  opacity: 0.6;
}

.lead {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Event / ubicación */
.event-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: var(--border-wine);
  background: linear-gradient(145deg, rgba(61, 21, 32, 0.25), rgba(20, 17, 18, 0.95));
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.event-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.event-card__icon {
  color: var(--color-silver);
  font-size: 0.85rem;
}

.event-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--color-cream);
  letter-spacing: 0.06em;
}

.event-card__place {
  margin: 0 0 var(--space-xs);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-silver-muted);
}

.event-card__address {
  margin: 0 0 var(--space-md);
  font-style: normal;
  font-size: 1.1rem;
  color: var(--color-muted);
}

.event-card .btn {
  min-width: 12rem;
}

/* Contacto */
.contact-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: var(--border-accent);
  background: var(--surface-card);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.contact-card__label {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-silver-muted);
}

.contact-card__phone {
  display: block;
  margin: 0 0 var(--space-md);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-cream);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.contact-card__phone:hover {
  color: var(--color-silver-light);
}

.contact-card .btn {
  width: 100%;
  max-width: 18rem;
}

/* Platillos — encabezado decorativo */
.platillos-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 16rem;
  margin: 0 auto var(--space-sm);
}

.platillos-header--video {
  margin-bottom: var(--space-md);
}

.platillos-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(122, 47, 66, 0.65),
    rgba(184, 184, 192, 0.35),
    transparent
  );
}

.platillos-header__icon {
  font-size: 0.55rem;
  color: var(--color-wine-glow);
  letter-spacing: 0.2em;
}

/* Galería de platillos */
.section--gallery {
  padding-top: var(--space-md);
}

.section--gallery .section__title,
.section--video .section__title,
.section--menu .section__title {
  margin-bottom: var(--space-sm);
}

/* Menú de platillos */
.section--menu {
  padding-top: var(--space-md);
}

.menu__intro {
  margin: 0 auto var(--space-lg);
  max-width: 40ch;
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-silver);
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: min(100%, 22rem);
  width: 100%;
}

.menu-card__visual {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-wine);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(184, 184, 192, 0.1);
  background: radial-gradient(
    ellipse 90% 75% at 50% 30%,
    rgba(92, 31, 46, 0.35),
    rgba(10, 9, 9, 0.98) 68%
  );
}

.menu-card__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

.menu-card__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-md);
}

.menu-card__btn {
  width: 100%;
  max-width: 17rem;
  margin: 0 auto;
}

.menu-card__nota {
  margin: var(--space-md) 0 0;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .menu-card {
    max-width: min(100%, 26rem);
  }
}

.gallery__intro,
.video__intro {
  margin: 0 auto var(--space-sm);
  max-width: 40ch;
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-silver);
}

.gallery__hint {
  margin: 0 auto var(--space-lg);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-wine-glow);
}

@media (min-width: 768px) {
  .gallery__hint {
    display: none;
  }
}

.gallery__viewport {
  margin-inline: calc(-1 * var(--space-md));
  padding-inline: var(--space-md);
  outline: none;
}

@media (max-width: 767px) {
  .gallery__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--space-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: var(--space-md);
  }

  .gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-lg);
    width: max-content;
    padding-inline: var(--space-sm) var(--space-md);
  }

  .gallery__cell {
    flex: 0 0 min(92vw, 400px);
    width: min(92vw, 400px);
    min-height: 0;
    scroll-snap-align: center;
  }

  .gallery__cell--portrait .gallery__media {
    aspect-ratio: 1 / 1;
  }

  .gallery__cell--landscape {
    flex: 0 0 min(94vw, 440px);
    width: min(94vw, 440px);
  }

  .gallery__cell--landscape .gallery__media {
    aspect-ratio: 4 / 3;
  }

  .gallery__cell--feature {
    grid-row: auto;
  }
}

@media (min-width: 768px) {
  .gallery__viewport {
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    mask-image: none;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    grid-auto-flow: dense;
  }

  .gallery__cell--landscape {
    grid-column: 1 / -1;
  }

  .gallery__cell--feature {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__cell--landscape {
    grid-column: span 2;
  }
}

.gallery__cell {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-wine);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(184, 184, 192, 0.08);
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0) scale(0.96);
  transition:
    opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-spring),
    box-shadow 0.5s ease;
  min-height: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 22, 24, 0.98) 0%,
    rgba(14, 12, 13, 1) 100%
  );
}

.gallery__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  overflow: hidden;
  background: radial-gradient(
    ellipse 90% 80% at 50% 42%,
    rgba(92, 31, 46, 0.22),
    rgba(10, 9, 9, 0.98) 72%
  );
}

.gallery__cell--portrait .gallery__media {
  aspect-ratio: 1 / 1;
}

.gallery__cell--landscape .gallery__media {
  aspect-ratio: 4 / 3;
}

.gallery__cell--feature .gallery__media {
  min-height: 260px;
}

.gallery__caption {
  margin: 0;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--color-cream);
  background: rgba(61, 21, 32, 0.35);
  border-top: 1px solid rgba(122, 47, 66, 0.4);
}

.gallery__cell--inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.gallery__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(
    160deg,
    rgba(61, 21, 32, 0.35),
    rgba(20, 17, 18, 0.95)
  );
  color: var(--color-silver-muted);
  transition: opacity 0.4s ease;
}

.gallery__cell:not(.gallery__cell--placeholder) .gallery__placeholder {
  opacity: 0;
  pointer-events: none;
}

.gallery__placeholder-icon {
  font-size: 1.5rem;
  color: var(--color-wine-glow);
  opacity: 0.7;
}

.gallery__placeholder-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  object-position: center;
  padding: clamp(0.35rem, 2vw, 0.65rem);
  transition: transform 0.75s ease;
}

/* Video del platillo */
.section--video {
  padding-bottom: var(--space-md);
}

.video-card {
  max-width: min(100%, 26rem);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-wine);
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(184, 184, 192, 0.06);
  background: radial-gradient(
    ellipse 85% 70% at 50% 40%,
    rgba(92, 31, 46, 0.28),
    var(--color-black) 70%
  );
}

.video-card__player {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(88vw, 480px);
  object-fit: cover;
  object-position: center;
  background: var(--color-black);
  vertical-align: middle;
}

.gallery__img--missing {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.gallery__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery__cell--inview:hover {
    transform: translate3d(0, -4px, 0);
  }
  .gallery__cell--inview:hover .gallery__shine {
    opacity: 1;
  }
  .gallery__cell--inview:hover .gallery__img:not(.gallery__img--missing) {
    transform: scale(1.03);
  }

  .gallery__cell--inview:hover {
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(122, 47, 66, 0.35);
  }
}

/* Countdown */
.section--countdown {
  background: linear-gradient(
    160deg,
    var(--color-wine-deep) 0%,
    var(--color-black-soft) 55%,
    var(--color-wine) 100%
  );
  color: var(--color-cream);
  box-shadow: inset 0 1px 0 rgba(184, 184, 192, 0.12);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 520px) {
  .countdown {
    grid-template-columns: repeat(4, 1fr);
  }
}

.countdown__unit {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(184, 184, 192, 0.2);
}

.countdown__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 500;
  color: var(--color-silver-light);
}

.countdown__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--space-xl) var(--space-md) calc(var(--space-xl) + var(--footer-safe));
}

.footer__ornament {
  width: 3rem;
  height: 2px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(90deg, transparent, var(--color-silver-muted), transparent);
}

.footer__text {
  margin: 0 0 var(--space-sm);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-cream);
}

.footer__sub {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--color-silver);
}

.footer__credit {
  margin: var(--space-md) 0 0;
  font-size: 0.75rem;
}

.footer__credit a {
  color: var(--color-silver-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 184, 192, 0.25);
}

/* Reveal al scroll */
.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    filter 0.7s var(--ease-out-expo);
  transition-delay: calc(var(--reveal-order, 0) * 0.04s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Música */
.music-player {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 320;
}

.music-player__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-silver-light);
  background: rgba(20, 17, 18, 0.88);
  border: 1px solid rgba(184, 184, 192, 0.3);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.music-player__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 47, 66, 0.6);
}

.music-player__btn--playing {
  border-color: var(--color-wine-glow);
  background: rgba(61, 21, 32, 0.75);
}

.music-player__glyph {
  font-size: 1rem;
  color: var(--color-silver);
}

.music-player__btn--playing .music-player__glyph {
  animation: musicPulse 1.2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
