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

:root {
  --cream:   #FAF7F2;
  --cream-2: #F2ECE2;
  --gold:    #B8973A;
  --gold-lt: #D9BE7E;
  --dark:    #1E1810;
  --mid:     #7A6A52;
  --white:   #FFFFFF;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(184,151,58,0.25); }

/* Utilidad: texto en versalitas espaciadas */
.kicker {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* evita el salto de la barra del navegador móvil */
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
}

/* Dos capas de imagen para crossfade suave */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #161009;               /* margen oscuro cuando una foto va "completa" */
  object-position: 50% 40%;          /* el JS lo ajusta por foto (campo "foco") */
  opacity: 0;
  transform: scale(calc(var(--z, 1) + 0.06));   /* --z = recorte/zoom; +0.06 = barrido fijo del ken burns (igual en todas) */
  transition: opacity 1s var(--ease), transform 7s ease;
  will-change: opacity, transform;
}
.hero-img.is-active {
  opacity: 1;
  transform: scale(var(--z, 1));
}

/* Capa 1 — degradado global suave para dar profundidad uniforme */
.scrim-global {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(16,11,4,0.58) 0%,
      rgba(16,11,4,0.30) 22%,
      rgba(16,11,4,0.14) 42%,
      rgba(16,11,4,0.30) 62%,
      rgba(16,11,4,0.74) 88%,
      rgba(16,11,4,0.90) 100%);
  pointer-events: none;
}

/* Capa 2 — vignette radial para enfocar y oscurecer bordes */
.scrim-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 35%,
    transparent 40%, rgba(12,8,3,0.45) 100%);
  pointer-events: none;
}

/* Capa 3 — panel de protección SOLO bajo el texto (garantiza contraste) */
.scrim-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  background: linear-gradient(to top,
    rgba(10,7,2,0.85) 0%,
    rgba(10,7,2,0.55) 30%,
    rgba(10,7,2,0.18) 65%,
    transparent 100%);
  pointer-events: none;
}

/* Textura de grano sutil (lujo editorial) */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Marco fino interior */
.hero-frame {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,0.16);
  pointer-events: none;
  z-index: 3;
}

/* ── Cabecera: nombre + contador ───────────────────────────────── */
.hero-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 46px 60px;
  z-index: 4;
}

.couple-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 1px 24px rgba(0,0,0,0.45);
}
.couple-name em {
  font-style: italic;
  color: var(--gold-lt);
  font-size: 0.8em;
  margin: 0 0.12em;
}

.hero-place {
  margin-top: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.6);
}

.hero-counter {
  display: flex;
  gap: 0;
  text-align: center;
}
.hero-counter > div {
  padding: 0 22px;
  position: relative;
}
.hero-counter > div + div::before {
  content: '';
  position: absolute;
  left: 0; top: 8%;
  height: 84%;
  width: 1px;
  background: rgba(255,255,255,0.22);
}
.c-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 1px 14px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,0.5);
  font-variant-numeric: lining-nums;
}
.c-label {
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-top: 7px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* ── Contenido del recuerdo ────────────────────────────────────── */
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 60px 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  z-index: 4;
}

.hero-memory {
  max-width: 640px;
  animation: rise 0.7s var(--ease) both;
}
.hero-memory.swap { animation: rise 0.55s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-today {
  display: flex;            /* en bloque → el tag siempre cae debajo, nunca a la derecha */
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #EBD9AC;
  margin-bottom: 18px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.6);
}
.hero-today::before {
  content: '';
  width: 26px; height: 1px;
  background: #EBD9AC;
  opacity: 0.9;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.hero-tag {
  display: inline-block;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #F0E0B6;
  background: rgba(12,8,3,0.42);
  border: 1px solid rgba(235,217,172,0.6);
  padding: 6px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(3px);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.55);
}

.hero-text {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.94);
  max-width: 520px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.5);
}

/* ── Navegación foto a foto ────────────────────────────────────── */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(16,11,4,0.25);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.hero-nav:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.06);
}
.hero-nav svg { width: 18px; height: 18px; }
.hero-nav.prev { left: 40px; }
.hero-nav.next { right: 40px; }

/* Indicador de progreso (contador + barra) */
.hero-progress {
  position: absolute;
  right: 60px;
  bottom: 70px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.progress-count {
  font-family: 'Cormorant Garamond', serif;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.progress-count b { font-weight: 600; }
.progress-count span { color: rgba(255,255,255,0.55); }
.progress-track {
  width: 120px; height: 2px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.progress-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--gold-lt);
  transition: width 0.6s var(--ease);
}

/* Flecha scroll */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.55);
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s;
}
.scroll-hint:hover { color: var(--white); }
.scroll-arrow {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: pulse-line 2.2s ease infinite;
}
@keyframes pulse-line { 0%,100%{opacity:0.35;} 50%{opacity:1;} }

/* ════════════════════════════════════════════════════════════════
   SECCIÓN GALERÍA
═══════════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  padding: 96px 24px 56px;
}
.section-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.08;
}
.section-sub {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.7;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 260px;
  margin: 26px auto 0;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.section-divider span { color: var(--gold); font-size: 0.7rem; }

/* Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
  padding: 0 6px 6px;
  max-width: 1500px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(var(--z, 1));     /* --z = zoom por foto (campo "foco") */
  transition: transform 0.7s var(--ease), filter 0.4s ease;
  filter: brightness(0.94) saturate(0.96);
}
.gallery-item:hover img {
  transform: scale(calc(var(--z, 1) * 1.07));
  filter: brightness(1.02) saturate(1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,11,4,0.78) 0%, rgba(16,11,4,0.05) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item-tag {
  font-size: 0.5rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 8px;
  transform: translateY(8px);
  transition: transform 0.45s var(--ease);
}
.gallery-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  transform: translateY(8px);
  transition: transform 0.45s var(--ease) 0.05s;
}
.gallery-item:hover .gallery-item-tag,
.gallery-item:hover .gallery-item-title { transform: translateY(0); }

/* Estado activo (el que está en el hero) */
.gallery-item.is-current::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  pointer-events: none;
  z-index: 3;
}

/* Badge "Hoy" */
.badge-today {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.52rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 13px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* Destacado */
.gallery-item.featured { grid-column: span 2; grid-row: span 2; }

/* ── FOOTER ────────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 80px 24px;
  margin-top: 40px;
  border-top: 1px solid rgba(184,151,58,0.18);
}
.footer-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-text {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B5B43;
}
.footer-brand {
  margin-top: 16px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A7A60;
}
.footer-brand a { font-weight: 500; }
.fb-sep { margin: 0 8px; opacity: 0.5; }

footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(184,151,58,0.4); padding-bottom: 1px; transition: opacity 0.2s; }
footer a:hover { opacity: 0.7; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .hero-header { padding: 32px 36px; }
  .hero-content { padding: 0 36px 56px; }
  .section-header { padding: 72px 24px 44px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
}

/* Móvil (≤ 640px) — diseño replanteado para vertical */
@media (max-width: 640px) {
  .hero { min-height: 520px; }

  /* Cabecera: nombre centrado arriba + contador compacto */
  .hero-header {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 22px 0;
    text-align: center;
  }
  .couple-name { font-size: 1.9rem; }
  .hero-place { font-size: 0.56rem; letter-spacing: 0.26em; }

  .hero-counter > div { padding: 0 16px; }
  .c-num { font-size: 1.5rem; }
  .c-label { font-size: 0.48rem; letter-spacing: 0.2em; margin-top: 5px; }

  /* Recuerdo: bloque siempre abajo-izquierda, sin flex que lo desplace */
  .hero-content { display: block; padding: 0 22px 84px; }
  .hero-memory { max-width: 100%; }
  .hero-today { margin-bottom: 12px; font-size: 0.54rem; }
  .hero-tag { margin-bottom: 14px; padding: 5px 13px; }
  .hero-title { font-size: 2rem; margin-bottom: 12px; line-height: 1.08; }
  .hero-text {
    font-size: 0.82rem;
    line-height: 1.8;
    /* Altura fija (4 líneas reservadas) → el título nunca cambia de posición */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.8em * 4);
  }
  /* En pantallas bajas, reservar 3 líneas */
  @media (max-height: 720px) {
    .hero-text { -webkit-line-clamp: 3; min-height: calc(1.8em * 3); }
  }

  /* Reforzar oscurecido inferior en pantallas pequeñas */
  .scrim-text { height: 70%; }

  /* Flechas ABAJO y simétricas en las dos esquinas + contador centrado */
  .hero-nav { width: 42px; height: 42px; top: auto; bottom: 18px; transform: none; }
  .hero-nav:hover { transform: scale(1.06); }
  .hero-nav.prev { left: 18px; right: auto; }
  .hero-nav.next { right: 18px; left: auto; }

  .hero-progress {
    right: auto; left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .progress-count { font-size: 0.85rem; }
  .progress-track { width: 84px; }

  .hero-frame { inset: 12px; }
  .scroll-hint { display: none; }

  /* Galería: una columna de fotos limpias (como en escritorio).
     El detalle completo se revela al tocar, subiendo al hero. */
  /* Galería en 2 columnas (filas de 2). La foto de "hoy" ocupa el ancho. */
  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 6px 8px; }
  .gallery-item { aspect-ratio: 4/3; }
  .gallery-item.featured { grid-column: span 2; aspect-ratio: 16/9; }
  .gallery-overlay { display: none; }
  .gallery-item img { filter: brightness(0.97) saturate(0.98); }

  .section-header { padding: 60px 22px 36px; }
  .section-title { font-size: 1.9rem; }

  /* Footer: apilado, centrado y sin cortes */
  footer { padding: 56px 22px; }
  .footer-text { font-size: 0.56rem; letter-spacing: 0.18em; line-height: 1.6; }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.14em;
    line-height: 1.5;
  }
  .fb-sep { display: none; }
}

/* Móvil pequeño */
@media (max-width: 380px) {
  .couple-name { font-size: 1.65rem; }
  .hero-counter > div { padding: 0 12px; }
  .c-num { font-size: 1.35rem; }
  .hero-title { font-size: 1.75rem; }
}

/* ════════════════════════════════════════════════════════════════
   PANTALLA DE BIENVENIDA
═══════════════════════════════════════════════════════════════════ */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #161009;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.9s var(--ease);
}
.welcome::before { /* grano sutil, igual que el hero */
  content: '';
  position: absolute; inset: 0;
  opacity: 0.06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.welcome::after { /* vignette */
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 38%, rgba(8,5,2,0.7) 100%);
}
.welcome.hide { opacity: 0; }

.welcome-inner { position: relative; z-index: 1; animation: rise 0.9s var(--ease) both; }
.welcome-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 2.4rem; color: var(--gold); margin-bottom: 26px;
}
.welcome-eyebrow {
  font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 18px;
}
.welcome-names {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 5rem); line-height: 1.04; color: #fff; letter-spacing: 0.01em;
}
.welcome-names em { font-style: italic; color: var(--gold-lt); font-size: 0.8em; margin: 0 0.1em; }
.welcome-place {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 18px;
}
.welcome-actions { margin-top: 42px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.welcome-mute {
  background: none; border: 0; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 0.56rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  padding: 4px; transition: color 0.3s;
}
.welcome-mute:hover { color: rgba(255,255,255,0.85); }
.welcome-enter {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Montserrat', sans-serif; font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: #fff;
  background: transparent; border: 1px solid rgba(217,190,126,0.6);
  padding: 15px 36px; border-radius: 40px; cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.welcome-enter svg { width: 17px; height: 17px; color: var(--gold-lt); transition: color 0.4s var(--ease); }
.welcome-enter:hover { background: var(--gold); border-color: var(--gold); }
.welcome-enter:hover svg { color: #fff; }
.welcome-hint { margin-top: 18px; font-size: 0.55rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

/* ── Botón de música (barras tipo ecualizador) ─────────────────────── */
/* Control de música: nota discreta abajo a la izquierda (no estorba) */
.music-toggle {
  position: fixed; left: 24px; bottom: 24px; z-index: 30;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(184,151,58,0.45);
  background: rgba(16,11,4,0.42); backdrop-filter: blur(6px);
  color: var(--gold-lt); cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.music-toggle.ready { opacity: 0.85; pointer-events: auto; }
.music-toggle:hover { opacity: 1; background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); }
.music-toggle .ic { width: 20px; height: 20px; display: none; }
.music-toggle.playing .ic-on { display: block; }       /* suena → nota */
.music-toggle:not(.playing) .ic-off { display: block; } /* en silencio → nota tachada */

/* Animación sutil mientras suena: la nota late y un halo dorado muy tenue pulsa */
.music-toggle.playing .ic-on { animation: notePulse 1.6s ease-in-out infinite; transform-origin: center; }
.music-toggle.playing::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(184,151,58,0.45);
  animation: ringPulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes notePulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%      { transform: scale(1.12); opacity: 1; }
}
@keyframes ringPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,151,58,0.40); }
  70%  { box-shadow: 0 0 0 9px rgba(184,151,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,151,58,0); }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle.playing .ic-on,
  .music-toggle.playing::after { animation: none; }
}

/* La etiqueta de texto queda solo para lectores de pantalla */
.music-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  /* En móvil, arriba a la izquierda (esquina libre; el nombre va centrado) */
  .music-toggle { top: 14px; left: 14px; bottom: auto; width: 40px; height: 40px; }
}