/* ==========================================================================
   Invitación de Graduación — Andrea Lozano Campo
   Estética sobria: Azul noche profundo, Marfil perla, Oro y Plata
   ========================================================================== */

:root {
  --navy-deep: #060a1e;
  --navy-mid: #0d1533;
  --navy-card: #121c42;
  --navy-ink: #0a1128;
  --ivory: #faf8f5;
  --ivory-warm: #f3efe6;
  --white: #ffffff;
  --gold: #c9a96e;
  --gold-deep: #9b7a3c;
  --gold-light: #e5cfa0;
  --silver: #d8dee9;
  --periwinkle: #e5e9f2;
  --periwinkle-hover: #d8deec;
  --border-subtle: rgba(201, 169, 110, 0.35);

  --font-script: "Great Vibes", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-display: "Cinzel", Georgia, serif;
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;

  --shadow-phone: 0 28px 80px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 14px 34px rgba(4, 7, 20, 0.36);
  --transition-view: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background: linear-gradient(160deg, #03050f 0%, #09102b 100%);
  color: var(--white);
  font-family: var(--font-serif);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fondo sutil detrás de la tarjeta en pantallas grandes */
.page-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 169, 110, 0.1), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(27, 42, 92, 0.32), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Contenedor principal tipo teléfono (480px máx. en escritorio) */
.invitation-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--navy-deep);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}

@media (min-width: 520px) {
  body {
    padding: 24px 12px;
  }

  .invitation-shell {
    min-height: calc(100vh - 48px);
    border-radius: 20px;
    border: 1px solid rgba(201, 169, 110, 0.22);
  }
}

/* ==========================================================================
   GESTIÓN DE VISTAS
   ========================================================================== */
.view {
  width: 100%;
  min-height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-view), transform var(--transition-view);
}

.view--active {
  opacity: 1;
  transform: translateY(0);
}

.view[hidden] {
  display: none;
}

/* ==========================================================================
   VISTA 1: PORTADA CON SOBRE INTERACTIVO
   ========================================================================== */
.view--cover {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at 50% 24%, rgba(30, 46, 98, 0.55), transparent 60%),
    linear-gradient(180deg, #05081a 0%, #080d26 55%, #05081a 100%);
}

@media (min-width: 520px) {
  .view--cover {
    min-height: calc(100vh - 50px);
  }
}

.cover-frame {
  position: relative;
  width: 100%;
  border: 1px solid rgba(201, 169, 110, 0.42);
  outline: 1px solid rgba(216, 222, 233, 0.16);
  outline-offset: -8px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

/* Destellos sutiles */
.sparkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px rgba(229, 207, 160, 0.8);
  opacity: 0.25;
  animation: twinkle 4.5s ease-in-out infinite;
}

.s1 { top: 14%; left: 16%; animation-delay: 0s; }
.s2 { top: 22%; right: 15%; animation-delay: 1.1s; }
.s3 { top: 54%; left: 10%; animation-delay: 2.2s; }
.s4 { top: 68%; right: 12%; animation-delay: 0.7s; }
.s5 { bottom: 16%; left: 22%; animation-delay: 1.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.75; transform: scale(1.25); }
}

.cover-emblem {
  width: 164px;
  margin-top: 6px;
}

.svg-emblem {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.cover-invite-text {
  font-family: var(--font-script);
  font-size: clamp(1.95rem, 6.2vw, 2.35rem);
  line-height: 1.25;
  color: var(--white);
  font-weight: 400;
  margin: 10px 0 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Sobre 3D Interactivo */
.envelope-stage {
  position: relative;
  width: min(310px, 84vw);
  height: 205px;
  margin: 10px auto 18px;
  perspective: 1100px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.envelope-stage:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 8px;
  border-radius: 8px;
}

.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.65));
}

.envelope-stage:hover .envelope {
  transform: translateY(-4px);
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #d7dde8 0%, #eef1f7 55%, #cfd6e3 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* Carta que asoma al abrir */
.envelope-letter {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  bottom: 12%;
  background: linear-gradient(180deg, #fffdf9 0%, #f5efe2 100%);
  border: 1px solid var(--gold);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.envelope-letter-subtitle {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--gold-deep);
}

.envelope-letter-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 2.2px;
  color: var(--navy-ink);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Bolsillo frontal del sobre */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 6px;
  pointer-events: none;
}

.envelope-pocket-left,
.envelope-pocket-right {
  position: absolute;
  inset: 0;
}

.envelope-pocket-left {
  background: linear-gradient(135deg, #edf0f6 0%, #d4dbe8 100%);
  clip-path: polygon(0 0, 52% 52%, 0 100%);
}

.envelope-pocket-right {
  background: linear-gradient(225deg, #f3f5fa 0%, #cfd6e4 100%);
  clip-path: polygon(100% 0, 48% 52%, 100% 100%);
}

.envelope-pocket-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #e3e7f0 0%, #f7f9fc 100%);
  clip-path: polygon(0 100%, 50% 44%, 100% 100%);
  border-top: 1px solid rgba(10, 17, 40, 0.12);
}

/* Solapa superior triangular */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  z-index: 4;
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s linear 0.3s;
  backface-visibility: hidden;
  background: linear-gradient(180deg, #f5f7fb 0%, #dce2ee 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 8px rgba(6, 10, 30, 0.28));
}

.envelope-flap-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Sello central */
.envelope-seal {
  position: absolute;
  top: 54%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.seal-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1c2c61 0%, #09112b 70%, #050918 100%);
  border: 2px solid var(--gold);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.45),
    inset 0 0 8px rgba(229, 207, 160, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-cap-svg {
  width: 30px;
  height: 30px;
}

/* Estado de apertura del sobre */
.envelope.opening .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.envelope.opening .envelope-flap {
  transform: rotateX(175deg);
  z-index: 1;
}

.envelope.opening .envelope-letter {
  transform: translateY(-56%);
}

/* Botón inferior portada */
.cover-cta {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 4px;
  cursor: pointer;
  padding: 10px 18px;
  margin-bottom: 6px;
  animation: pulseCta 2.4s ease-in-out infinite;
}

.cover-cta:hover {
  color: var(--gold-light);
}

@keyframes pulseCta {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

/* ==========================================================================
   VISTA 2: BLOQUE SUPERIOR AZUL NOCHE
   ========================================================================== */
.section-dark {
  background:
    radial-gradient(circle at 50% 8%, rgba(30, 48, 102, 0.45), transparent 45%),
    linear-gradient(180deg, #05081a 0%, #080e28 65%, #060a1e 100%);
  padding: 40px 24px 48px;
  text-align: center;
  color: var(--white);
}

/* Composición Sobre Abierto + Polaroid de Andrea */
.hero-composition {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.open-envelope-group {
  position: relative;
  width: 100%;
  max-width: 340px;
  min-height: 295px;
  margin: 0 auto 14px;
}

.mini-open-envelope {
  position: absolute;
  top: 26px;
  left: 6px;
  width: 215px;
  height: 155px;
  transform: rotate(-7deg);
}

.mini-flap-back {
  position: absolute;
  top: -54px;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(180deg, #d7dde8 0%, #eef2f8 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 4px;
}

.mini-lining {
  position: absolute;
  top: -42px;
  left: 10px;
  right: 10px;
  height: 52px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(155, 168, 194, 0.22) 0px,
      rgba(155, 168, 194, 0.22) 2px,
      transparent 2px,
      transparent 8px
    ),
    linear-gradient(180deg, #c6cfe0 0%, #e4e9f2 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.mini-card-peek {
  position: absolute;
  top: -22px;
  left: 14px;
  right: 14px;
  height: 112px;
  background: #fdfbf6;
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 14px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.peek-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-ink);
}

.peek-script {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--gold-deep);
  margin-top: 2px;
}

.mini-pocket {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f3f5fa 0%, #cfd7e6 100%);
  border-radius: 5px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  border-top: 2px solid rgba(10, 17, 40, 0.14);
}

.mini-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 40, 0.08), transparent 45%);
  clip-path: polygon(0 0, 50% 48%, 100% 0);
}

/* Polaroid de Andrea */
.polaroid--main {
  position: relative;
  margin-left: auto;
  margin-top: 28px;
  width: 196px;
  background: #ffffff;
  padding: 10px 10px 14px;
  border-radius: 3px;
  transform: rotate(5deg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.polaroid-photo-wrap {
  width: 100%;
  aspect-ratio: 234 / 348;
  overflow: hidden;
  background: #333;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.polaroid-caption {
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--navy-ink);
  margin-top: 8px;
  line-height: 1;
}

/* Emblema Class 2026 */
.class-badge {
  width: 210px;
  margin: 12px auto 6px;
}

.class-badge-svg {
  width: 100%;
  height: auto;
}

.graduate-name {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--white);
  margin-top: 4px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.graduate-subtitle {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--silver);
  margin-top: 8px;
  letter-spacing: 0.4px;
}

.graduate-subtitle span {
  color: var(--gold-light);
  font-style: italic;
}

/* ==========================================================================
   TARJETA DE DEDICATORIA ("¡Lo Logré!")
   ========================================================================== */
.dedication-card {
  position: relative;
  margin: 32px auto 28px;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(16, 26, 61, 0.85) 0%, rgba(10, 17, 42, 0.92) 100%);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}

.corner-ornament {
  position: absolute;
  width: 38px;
  height: 38px;
  pointer-events: none;
  opacity: 0.9;
}

.corner-tl { top: 6px; left: 6px; }
.corner-tr { top: 6px; right: 6px; transform: scaleX(-1); }
.corner-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.corner-br { bottom: 6px; right: 6px; transform: scale(-1); }

.dedication-title {
  font-family: var(--font-script);
  font-size: 2.35rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.dedication-body {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.65;
  color: #edf1f8;
  font-weight: 400;
}

/* ==========================================================================
   REPRODUCTOR DE MÚSICA
   ========================================================================== */
.music-player {
  margin: 26px auto 32px;
  max-width: 310px;
}

.equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 14px;
}

.equalizer span {
  display: block;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  transition: height 0.2s ease;
}

.equalizer span:nth-child(odd) { height: 11px; }
.equalizer span:nth-child(3n) { height: 18px; }
.equalizer span:nth-child(4n) { height: 6px; }
.equalizer span:nth-child(5n) { height: 22px; }

.music-player.is-playing .equalizer span {
  background: var(--gold-light);
  animation: eqBounce 0.95s ease-in-out infinite alternate;
}

.music-player.is-playing .equalizer span:nth-child(2n) { animation-duration: 0.75s; animation-delay: 0.15s; }
.music-player.is-playing .equalizer span:nth-child(3n) { animation-duration: 1.1s; animation-delay: 0.3s; }
.music-player.is-playing .equalizer span:nth-child(4n) { animation-duration: 0.65s; animation-delay: 0.45s; }
.music-player.is-playing .equalizer span:nth-child(5n) { animation-duration: 0.85s; animation-delay: 0.2s; }

@keyframes eqBounce {
  0% { height: 5px; }
  100% { height: 25px; }
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.music-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.music-btn--ghost {
  opacity: 0.78;
  padding: 6px;
}

.music-btn--ghost:hover {
  opacity: 1;
  color: var(--gold-light);
}

.music-btn--ghost[aria-pressed="true"] {
  color: var(--gold-light);
  opacity: 1;
}

.music-btn--play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.music-btn--play:hover {
  transform: scale(1.06);
  background: var(--gold-light);
}

.music-note-indicator {
  color: var(--white);
  opacity: 0.78;
  display: inline-flex;
  padding: 6px;
}

.music-status {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  color: rgba(216, 222, 233, 0.72);
}

/* ==========================================================================
   CUENTA REGRESIVA EN VIVO
   ========================================================================== */
.countdown-block {
  margin-top: 16px;
  padding-top: 6px;
}

.celebrate-script {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--white);
  line-height: 1.15;
}

.celebrate-caps {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-top: 4px;
  margin-bottom: 22px;
}

.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.countdown-item {
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 2.55rem);
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  color: var(--silver);
  margin-top: 6px;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-light);
  padding-top: 2px;
}

/* ==========================================================================
   VISTA 2: BLOQUE INFERIOR MARFIL / BLANCO PERLA
   ========================================================================== */
.section-light {
  background: linear-gradient(180deg, #faf8f5 0%, #ffffff 45%, #f7f3eb 100%);
  color: var(--navy-ink);
  padding: 50px 26px 42px;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.detail-block {
  padding: 8px 0;
}

.detail-icon {
  width: 92px;
  margin: 0 auto 10px;
}

.svg-detail {
  width: 100%;
  height: auto;
}

.svg-detail--pin {
  width: 72px;
}

.detail-heading {
  font-family: var(--font-script);
  font-size: 2.35rem;
  font-weight: 400;
  color: var(--navy-ink);
  margin-bottom: 10px;
}

.detail-primary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--navy-ink);
}

.detail-secondary {
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 2px;
  color: var(--gold-deep);
  margin-top: 4px;
  font-weight: 600;
}

.detail-address-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-ink);
}

.detail-address-sub {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: #36415c;
  margin-top: 3px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  background: var(--navy-ink);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 0.6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 17, 40, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-btn:hover {
  background: #14204b;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 17, 40, 0.28);
}

.pill-btn--underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  min-width: 168px;
}

/* Divisor ornamental entre secciones */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto;
  width: 68%;
}

.divider-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 122, 60, 0.55), transparent);
}

.divider-ornament i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* Nota especial de recepción */
.reception-note {
  position: relative;
  margin: 30px auto 6px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(155, 122, 60, 0.35);
  border-radius: 4px;
}

.note-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-deep);
  border-style: solid;
}

.note-tl { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
.note-tr { top: 6px; right: 6px; border-width: 1.5px 1.5px 0 0; }
.note-bl { bottom: 6px; left: 6px; border-width: 0 0 1.5px 1.5px; }
.note-br { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }

.reception-note-text {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.58;
  color: #26314c;
}

.reception-note-sign {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--gold-deep);
  margin-top: 10px;
}

.main-footer {
  margin-top: 34px;
  padding-top: 12px;
}

.text-link {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 8px 14px;
  transition: opacity 0.2s ease;
}

.text-link:hover {
  opacity: 0.75;
}

.text-link--dark {
  color: var(--navy-ink);
}

.text-link--light {
  color: var(--white);
}

/* ==========================================================================
   VISTA 3: FORMULARIO RSVP
   ========================================================================== */
.view--rsvp {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 10%, rgba(28, 44, 92, 0.5), transparent 55%),
    linear-gradient(180deg, #05081a 0%, #070c22 100%);
  padding: 40px 24px 36px;
  display: flex;
  align-items: center;
}

@media (min-width: 520px) {
  .view--rsvp {
    min-height: calc(100vh - 48px);
  }
}

.rsvp-container {
  width: 100%;
  text-align: center;
}

.rsvp-intro {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 24px;
  padding: 0 6px;
}

.rsvp-card {
  background: var(--white);
  color: var(--navy-ink);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: left;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-ink);
  margin-bottom: 8px;
}

.required {
  color: #b54747;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd2e1;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--navy-ink);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--navy-ink);
  box-shadow: 0 0 0 3px rgba(10, 17, 40, 0.1);
}

/* Tarjetas de selección tipo video de TikTok */
.attendance-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  display: block;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 8px;
  background: var(--periwinkle);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy-ink);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.option-card:hover .option-card-body {
  background: var(--periwinkle-hover);
}

.option-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.8px solid #596787;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease;
}

.option-card input:checked + .option-card-body {
  background: #d7dfef;
  border-color: var(--navy-ink);
  font-weight: 600;
}

.option-card input:checked + .option-card-body .option-dot {
  border-color: var(--navy-ink);
  background: var(--navy-ink);
  box-shadow: inset 0 0 0 3px #d7dfef;
}

.option-card input:focus-visible + .option-card-body {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.form-error {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #a82828;
  background: #fdecec;
  border: 1px solid #f2bcbc;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 14px;
}

.submit-btn {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 8px;
  background: var(--navy-ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background: #172352;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.submit-btn--outline {
  margin-top: 16px;
  background: transparent;
  color: var(--navy-ink);
  border: 1.5px solid var(--navy-ink);
}

.submit-btn--outline:hover {
  background: var(--periwinkle);
}

/* Confirmación exitosa */
.rsvp-success {
  text-align: center;
  padding: 12px 6px;
}

.success-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy-ink);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.success-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--navy-ink);
  margin-bottom: 8px;
}

.success-desc {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.55;
  color: #465373;
}

/* ==========================================================================
   ANIMACIONES DE APARICIÓN AL HACER SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sparkle,
  .cover-cta,
  .music-player.is-playing .equalizer span {
    animation: none;
  }
}
