/* =================================================================
   Boda Tania & Edgar — Invitación digital (versión estática)
   Paleta: verde olivo, perla y rose gold · colores en oklch
   ================================================================= */

:root {
  --background: oklch(0.965 0.013 92);
  --foreground: oklch(0.34 0.022 118);
  --card: oklch(0.985 0.008 95);
  --muted-foreground: oklch(0.5 0.022 116);
  --border: oklch(0.86 0.018 95);

  --olive: oklch(0.585 0.055 122);
  --olive-deep: oklch(0.44 0.045 124);
  --rosegold: oklch(0.72 0.058 42);
  --rosegold-deep: oklch(0.6 0.07 38);

  --gradient-rosegold: linear-gradient(
    135deg,
    oklch(0.82 0.05 55),
    oklch(0.7 0.07 38),
    oklch(0.6 0.08 30)
  );
  --gradient-olive: linear-gradient(
    160deg,
    oklch(0.62 0.05 122),
    oklch(0.46 0.05 126)
  );
  --gradient-olive-full: linear-gradient(
    160deg,
    oklch(0.62 0.06 122),
    oklch(0.4 0.055 126)
  );

  --shadow-elegant: 0 24px 60px -28px oklch(0.44 0.045 124 / 0.45);
  --shadow-soft: 0 12px 40px -20px oklch(0.44 0.045 124 / 0.3);
  --shadow-card: 0 30px 70px -40px oklch(0.4 0.04 40 / 0.4);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", cursive;
  --font-sans: "Jost", ui-sans-serif, system-ui, sans-serif;

  --on-olive: oklch(0.97 0.012 95);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Bloquea el scroll mientras el sobre está cerrado */
body.locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------------- Tipografía de marca ---------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: var(--rosegold-deep);
}

.eyebrow--gold {
  color: oklch(0.86 0.05 55);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.1;
}

.text-rosegold-gradient {
  background: var(--gradient-rosegold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Separador ❧ ---------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--rosegold);
  font-size: 1.125rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: clamp(2.5rem, 12vw, 6rem);
  background: linear-gradient(to right, transparent, var(--rosegold) 60%, var(--rosegold));
}

.divider::before {
  transform: scaleX(-1);
}

.divider--gold {
  color: oklch(0.86 0.05 55);
}

.divider--gold::before,
.divider--gold::after {
  background: linear-gradient(to right, transparent, oklch(0.86 0.05 55) 60%, oklch(0.86 0.05 55));
}

/* ---------------- Animaciones ---------------- */
@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

.float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes seal-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* =================================================================
   Intro · Sobre
   ================================================================= */
.envelope-intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
  background-image: var(--gradient-olive-full);
  transition: opacity 0.9s ease;
}

.envelope-intro.is-closing {
  opacity: 0;
  pointer-events: none;
}

.envelope-halo {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 38%,
    oklch(0.96 0.02 95 / 0.28),
    transparent 62%
  );
}

.envelope-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 24rem;
}

.envelope-eyebrow {
  font-family: var(--font-sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  color: oklch(0.97 0.02 95);
}

.envelope-names {
  margin-top: 0.75rem;
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 14vw, 4.5rem);
  line-height: 1.1;
  color: oklch(0.99 0.01 95);
}

.envelope-names .amp {
  color: oklch(0.86 0.06 50);
}

.envelope-divider {
  margin-top: 1.25rem;
  color: oklch(0.9 0.04 55);
}

.envelope-divider::before,
.envelope-divider::after {
  background: linear-gradient(to right, transparent, oklch(0.9 0.04 55) 60%, oklch(0.9 0.04 55));
}

.envelope-date {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: oklch(0.94 0.02 95 / 0.85);
}

/* El sobre */
.envelope {
  position: relative;
  margin-top: 2.5rem;
  width: 19rem;
  height: 15rem;
  perspective: 1400px;
  user-select: none;
}

@media (min-width: 640px) {
  .envelope {
    width: 23rem;
    height: 18rem;
  }
}

.env-back {
  position: absolute;
  inset: 0;
  border-radius: 0.375rem;
  border: 1px solid oklch(0.78 0.05 48 / 0.5);
  background: linear-gradient(160deg, oklch(0.9 0.02 88), oklch(0.84 0.03 82));
  box-shadow: inset 0 2px 10px oklch(0.4 0.04 40 / 0.25),
    0 30px 70px -40px oklch(0.4 0.04 40 / 0.55);
}

.env-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  width: 86%;
  height: 86%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 0.125rem;
  border: 1px solid oklch(0.82 0.03 60 / 0.5);
  background: linear-gradient(160deg, oklch(0.99 0.008 95), oklch(0.95 0.014 92));
  box-shadow: 0 10px 24px -12px oklch(0.4 0.04 40 / 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope.is-sliding .env-card {
  transform: translate(-50%, -168%);
}

.env-card-mono {
  width: 7rem;
}

.env-card-date {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: oklch(0.55 0.05 45);
}

.env-front {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  border-radius: 0.375rem;
}

.env-front span {
  position: absolute;
  inset: 0;
}

.flap-bottom {
  clip-path: polygon(0 100%, 50% 34%, 100% 100%);
  background: linear-gradient(155deg, oklch(0.97 0.012 92), oklch(0.9 0.022 88));
  border-top: 1px solid oklch(0.78 0.05 48 / 0.5);
}

.flap-left {
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  background: linear-gradient(120deg, oklch(0.95 0.014 90), oklch(0.89 0.024 86));
  border-right: 1px solid oklch(0.78 0.05 48 / 0.5);
}

.flap-right {
  clip-path: polygon(100% 0, 100% 100%, 50% 50%);
  background: linear-gradient(240deg, oklch(0.95 0.014 90), oklch(0.89 0.024 86));
  border-left: 1px solid oklch(0.78 0.05 48 / 0.5);
}

.env-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  z-index: 30;
  transform-origin: top;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, oklch(0.95 0.018 88), oklch(0.88 0.028 82));
  border-bottom: 1px solid oklch(0.78 0.05 48 / 0.5);
  backface-visibility: hidden;
  box-shadow: 0 4px 10px -6px oklch(0.4 0.04 40 / 0.4);
}

.envelope.is-opening .env-top {
  transform: rotateX(-172deg);
  z-index: 5;
}

.env-seal {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 40;
  width: 5rem;
  height: 5rem;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: radial-gradient(
    circle at 35% 28%,
    oklch(0.82 0.055 55),
    oklch(0.62 0.075 40) 72%,
    oklch(0.52 0.07 34)
  );
  box-shadow: 0 8px 20px -8px oklch(0.4 0.08 34 / 0.7),
    inset 0 1px 3px oklch(0.95 0.03 60 / 0.55);
  animation: seal-pulse 2.6s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 640px) {
  .env-seal {
    width: 6rem;
    height: 6rem;
  }
}

.env-seal img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 1px 1px oklch(0.4 0.06 34 / 0.5));
  opacity: 0.92;
}

.envelope.is-opening .env-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
  animation: none;
}

.envelope-hint {
  margin-top: 2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: oklch(0.92 0.03 60);
}

/* =================================================================
   Fondo de la invitación
   ================================================================= */
.invitation {
  position: relative;
  overflow: hidden;
  background-color: var(--background);
  background-image: url("assets/paper-texture.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section {
  position: relative;
  padding: 6rem 1.5rem;
}

@media (min-width: 640px) {
  .section {
    padding: 7rem 1.5rem;
  }
}

.section--solid {
  background-color: var(--background);
}

.section--olive {
  overflow: hidden;
  color: var(--on-olive);
  background-image: var(--gradient-olive);
}

/* ---------------- Ramas de olivo decorativas ---------------- */
.sprig {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.sprig.flip {
  transform: scaleX(-1);
}

.sprig-hero-left {
  left: -2.5rem;
  top: 1.5rem;
  width: 11rem;
  opacity: 0.5;
}

.sprig-hero-right {
  right: -2.5rem;
  bottom: 1.5rem;
  width: 11rem;
  opacity: 0.5;
}

.sprig-std-left {
  left: -3rem;
  top: -2rem;
  width: 14rem;
  opacity: 0.2;
}

.sprig-std-right {
  right: -3rem;
  bottom: -2.5rem;
  width: 14rem;
  opacity: 0.2;
}

.sprig-dc-left {
  left: -2.5rem;
  bottom: 0;
  width: 13rem;
  opacity: 0.2;
}

.sprig-dc-right {
  right: -2.5rem;
  top: 0;
  width: 13rem;
  opacity: 0.2;
}

.sprig-rsvp-left {
  left: -3rem;
  top: 1rem;
  width: 13rem;
  opacity: 0.2;
}

.sprig-rsvp-right {
  right: -3rem;
  bottom: 1rem;
  width: 13rem;
  opacity: 0.2;
}

@media (min-width: 640px) {
  .sprig-hero-left,
  .sprig-hero-right {
    width: 18rem;
  }
}

/* =================================================================
   Encabezado de sección
   ================================================================= */
.section-heading {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3rem);
  line-height: 1.15;
  color: var(--foreground);
}

.section-heading .divider {
  margin-top: 1.5rem;
}

.section-subtitle {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* =================================================================
   1 · Hero
   ================================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 6rem 1.5rem;
}

.hero-inner {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-photo-frame {
  margin: 1.75rem 0;
  padding: 0.5rem;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid oklch(0.72 0.058 42 / 0.3);
  box-shadow: var(--shadow-elegant);
}

.hero-photo {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 1.6rem;
}

.hero-mono {
  width: 10rem;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(4.5rem, 18vw, 6rem);
  color: var(--foreground);
}

.hero .divider {
  margin-top: 1.5rem;
}

.hero-meta {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .hero-photo {
    height: 30rem;
  }
  .hero-mono {
    width: 12rem;
  }
}

/* =================================================================
   2 · Presentación
   ================================================================= */
.presentation-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.icon-sparkles {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto;
  color: var(--rosegold);
}

.quote {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--foreground);
}

.quote-sub {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.quote-script {
  margin-top: 2rem;
  font-size: 2.25rem;
  color: var(--foreground);
}

/* =================================================================
   3 · Save the Date
   ================================================================= */
.save-date-inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.on-olive-title {
  margin-top: 1.25rem;
  font-size: clamp(3rem, 8vw, 3.75rem);
  color: oklch(0.98 0.012 95);
}

.dresscode .on-olive-title,
.rsvp .on-olive-title {
  margin-top: 1rem;
}

.save-date-row {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.save-date-side {
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.save-date-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.25rem;
  border-left: 1px solid oklch(0.97 0.012 95 / 0.35);
  border-right: 1px solid oklch(0.97 0.012 95 / 0.35);
}

.save-date-day span {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 14vw, 6rem);
  line-height: 1;
}

.save-date-time {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: oklch(0.92 0.02 95);
}

.save-date-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: oklch(0.9 0.02 95);
}

@media (min-width: 640px) {
  .save-date-row {
    gap: 2rem;
  }
  .save-date-day {
    padding: 0 2rem;
  }
}

/* Botón claro (sobre olivo) */
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: oklch(0.97 0.012 95);
  color: oklch(0.44 0.045 124);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.btn-light:hover {
  transform: scale(1.03);
}

.btn-light svg {
  width: 1rem;
  height: 1rem;
}

/* =================================================================
   4 · Cuenta regresiva
   ================================================================= */
.countdown {
  max-width: 42rem;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid oklch(0.86 0.018 95 / 0.7);
  background: oklch(0.985 0.008 95 / 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(4px);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

.countdown-label {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--rosegold-deep);
}

@media (min-width: 640px) {
  .countdown {
    gap: 1.5rem;
  }
  .countdown-cell {
    padding: 2rem 0.5rem;
  }
  .countdown-label {
    font-size: 0.75rem;
  }
}

/* =================================================================
   Iconos circulares
   ================================================================= */
.circle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-soft);
  color: var(--on-olive);
}

.circle-icon--sm {
  width: 3.5rem;
  height: 3.5rem;
}

.circle-icon--olive {
  background-image: var(--gradient-olive);
}

.circle-icon--rose {
  background-image: var(--gradient-rosegold);
  color: oklch(0.98 0.012 95);
}

.circle-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.circle-icon--sm svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* =================================================================
   5 · Programa
   ================================================================= */
.padrinos {
  max-width: 28rem;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.padrinos .circle-icon {
  margin-bottom: 1.5rem;
}

.padrinos-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--foreground);
}

.padrinos-amp {
  margin: 0.25rem 0;
  color: var(--rosegold-deep);
}

.venues {
  max-width: 48rem;
  margin: 3.5rem auto 0;
  display: grid;
  gap: 1.75rem;
}

.venue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.venue-card .eyebrow {
  margin-top: 1.75rem;
}

.card-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--foreground);
}

.card-city {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-foreground);
}

.card-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rosegold-deep);
}

.card-time svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .venues {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Botón contorno rose gold */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.72 0.058 42 / 0.5);
  color: var(--rosegold-deep);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background-image: var(--gradient-rosegold);
  color: oklch(0.98 0.012 95);
  border-color: transparent;
}

.btn-outline svg {
  width: 1rem;
  height: 1rem;
}

.btn-outline--sm {
  margin-top: 1.5rem;
  padding: 0.625rem 1.25rem;
  letter-spacing: 0.2em;
}

/* =================================================================
   6 · Itinerario
   ================================================================= */
.timeline {
  position: relative;
  max-width: 36rem;
  margin: 4rem auto 0;
}

.timeline-line {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.85rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    oklch(0.72 0.058 42 / 0.1),
    oklch(0.72 0.058 42 / 0.6),
    oklch(0.72 0.058 42 / 0.1)
  );
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.timeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.72 0.058 42 / 0.4);
  background: var(--card);
  color: var(--rosegold-deep);
  box-shadow: var(--shadow-soft);
}

.timeline-node svg {
  width: 1.25rem;
  height: 1.25rem;
}

.timeline-time {
  position: absolute;
  bottom: -1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rosegold-deep);
}

.timeline-body-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
}

.timeline-body-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted-foreground);
}

.timeline-side {
  display: none;
  flex: 1;
}

@media (min-width: 640px) {
  .timeline-line {
    left: 50%;
  }
  .timeline-item {
    gap: 0;
  }
  .timeline-item .timeline-node {
    margin: 0 auto;
  }
  .timeline-side {
    display: block;
  }
  .timeline-body--mobile {
    display: none;
  }
  .timeline-item.left {
    flex-direction: row;
  }
  .timeline-item.right {
    flex-direction: row-reverse;
  }
  .timeline-item.left .timeline-side.filled {
    padding-right: 3rem;
    text-align: right;
  }
  .timeline-item.right .timeline-side.filled {
    padding-left: 3rem;
    text-align: left;
  }
}

@media (max-width: 639px) {
  .timeline-side {
    display: none;
  }
  .timeline-body--desktop {
    display: none;
  }
  .timeline-body--mobile {
    display: block;
    flex: 1;
  }
}

/* =================================================================
   7 · Código de vestimenta
   ================================================================= */
.dresscode-inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.icon-shirt {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1.5rem;
}

.dresscode-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}

.dresscode-card {
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid oklch(0.97 0.012 95 / 0.25);
}

.dresscode-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.dresscode-card-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: oklch(0.93 0.02 95);
}

.dresscode-note {
  margin-top: 2.25rem;
  font-size: 0.875rem;
  font-weight: 300;
  font-style: italic;
  color: oklch(0.92 0.02 95);
}

@media (min-width: 640px) {
  .dresscode-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =================================================================
   8 · Galería
   ================================================================= */
.gallery {
  max-width: 56rem;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid oklch(0.72 0.058 42 / 0.25);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 14rem;
  transition: transform 0.7s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--tall img {
  min-height: 20rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-item img {
    min-height: 16rem;
  }
  .gallery-item--tall img {
    min-height: 34rem;
  }
}

/* =================================================================
   9 · Mesa de regalos
   ================================================================= */
.registry {
  max-width: 48rem;
  margin: 3.5rem auto 0;
  display: grid;
  justify-content: center;
  gap: 1.5rem;
}

.registry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.registry-name {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  color: var(--foreground);
}

.registry-detail {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted-foreground);
}

.registry-love {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rosegold-deep);
}

@media (min-width: 640px) {
  .registry {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 18rem));
  }
}

/* =================================================================
   10 · Hospedaje
   ================================================================= */
.hotels {
  max-width: 56rem;
  margin: 3.5rem auto 0;
  display: grid;
  gap: 1.5rem;
}

.hotel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.hotel-name {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  color: var(--foreground);
}

.hotel-detail {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted-foreground);
}

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

/* =================================================================
   11 · RSVP
   ================================================================= */
.rsvp-inner {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.rsvp .divider {
  margin-top: 1.5rem;
}

.rsvp-text {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: oklch(0.93 0.02 95);
}

.rsvp-snippet {
  max-width: 28rem;
  margin: 2.5rem auto 0;
}

/* =================================================================
   Footer
   ================================================================= */
.footer {
  position: relative;
  padding: 4rem 1.5rem;
  text-align: center;
  background-color: var(--background);
}

.footer-mono {
  width: 9rem;
  margin: 0 auto;
  opacity: 0.9;
}

.footer-names {
  margin-top: 1rem;
  font-size: 3rem;
  color: var(--foreground);
}

.footer-meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

.footer-credit {
  margin-top: 2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: oklch(0.5 0.022 116 / 0.7);
}

.footer-credit a {
  color: var(--rosegold-deep);
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--foreground);
}

.footer-music {
  margin-top: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  color: oklch(0.5 0.022 116 / 0.5);
}

@media (min-width: 640px) {
  .footer-mono {
    width: 11rem;
  }
}

/* =================================================================
   Botón de música
   ================================================================= */
.music-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid oklch(0.72 0.058 42 / 0.4);
  background: oklch(0.985 0.008 95 / 0.8);
  color: var(--rosegold-deep);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
}

.music-btn:hover {
  transform: scale(1.05);
}

.music-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
