:root {
  --navy: #0a1628;
  --navy-mid: #111f36;
  --gold: #c9a962;
  --gold-bright: #e4d4a0;
  --gold-invite: #c5a059;
  --gold-metallic: #d4af37;
  --font-playfair: "Playfair Display", Georgia, serif;
  --font-montserrat: "Montserrat", system-ui, sans-serif;
  --cream: #f5f0e6;
  --cream-dark: #e8e0d0;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dark: #2c2416;
  --font-display: "Cinzel", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-light);
  background: var(--navy);
  overflow-x: hidden;
}

/* Capa festiva detrás del contenido (brillos + confeti en canvas) */
.fiesta-twinkle,
.fiesta-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.fiesta-twinkle {
  opacity: 0.4;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(228, 212, 160, 0.95), transparent),
    radial-gradient(1px 1px at 22% 78%, rgba(201, 169, 98, 0.85), transparent),
    radial-gradient(2px 2px at 55% 25%, rgba(255, 248, 231, 0.7), transparent),
    radial-gradient(1px 1px at 88% 40%, rgba(228, 212, 160, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 72% 88%, rgba(201, 169, 98, 0.75), transparent),
    radial-gradient(1px 1px at 40% 55%, rgba(255, 255, 255, 0.35), transparent);
  background-size: 120% 120%;
  animation: fiesta-drift 22s linear infinite;
}

@keyframes fiesta-drift {
  0% {
    background-position: 0% 0%, 10% 20%, 80% 60%, 40% 80%, 60% 10%, 30% 40%;
  }
  100% {
    background-position: 100% 100%, 90% 70%, 20% 40%, 60% 20%, 40% 90%, 70% 60%;
  }
}

.site-mobile-only > header,
.site-mobile-only > section,
.site-mobile-only > footer {
  position: relative;
  z-index: 1;
}

/* Escritorio: sitio deshabilitado; solo mensaje */
.desktop-block {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 20%, rgba(201, 169, 98, 0.12), transparent 55%), var(--navy);
  border: none;
}

.desktop-block__eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.desktop-block__title {
  font-family: var(--font-playfair);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--gold-bright);
  margin: 0 0 1rem;
  line-height: 1.25;
  max-width: 22rem;
}

.desktop-block__text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-light);
  margin: 0 0 1.25rem;
  max-width: 26rem;
}

.desktop-block__text strong {
  color: var(--gold-bright);
}

.desktop-block__sub {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  max-width: 24rem;
}

@media (min-width: 900px) {
  .desktop-block {
    display: flex;
  }

  .site-mobile-only {
    display: none !important;
  }

  html,
  body {
    overflow: hidden;
    height: 100%;
    max-height: 100vh;
  }
}

/* Audio oculto (solo se reproduce el sonido del mp4) */
.visually-hidden-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* Botón flotante música */
.music-fab {
  position: fixed;
  z-index: 9600;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  right: max(1.1rem, env(safe-area-inset-right));
  width: 3.5rem;
  height: 3.5rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 169, 98, 0.25);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.music-fab:active {
  transform: scale(0.94);
}

.music-fab.is-playing {
  background: rgba(17, 31, 54, 0.95);
  box-shadow: 0 0 28px rgba(201, 169, 98, 0.35), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.music-fab__icon {
  position: relative;
  pointer-events: none;
  flex-shrink: 0;
}

.music-fab__icon--pause {
  position: relative;
  width: 16px;
  height: 16px;
  display: none;
}

.music-fab__icon--pause::before,
.music-fab__icon--pause::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-bright);
  border-radius: 1px;
}

.music-fab__icon--pause::before {
  left: 1px;
}

.music-fab__icon--pause::after {
  right: 1px;
}

.music-fab__icon--play {
  width: 0;
  height: 0;
  display: none;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--gold-bright);
}

.music-fab.is-playing .music-fab__icon--pause {
  display: block;
}

.music-fab:not(.is-playing) .music-fab__icon--play {
  display: block;
}

.section__title--fiesta {
  animation: fiesta-title-glow 5s ease-in-out infinite alternate;
}

@keyframes fiesta-title-glow {
  0% {
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.35);
    filter: brightness(1);
  }
  100% {
    text-shadow: 0 0 36px rgba(228, 212, 160, 0.55), 0 0 60px rgba(201, 169, 98, 0.25);
    filter: brightness(1.08);
  }
}

img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero — portada cuadrada 1080×1080 (1:1; en pantallas chicas encaja al alto/ancho útil) */
.hero {
  --hero-side: min(
    1080px,
    calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)),
    calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))
  );
  position: relative;
  width: var(--hero-side);
  height: var(--hero-side);
  max-width: 1080px;
  max-height: 1080px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(0.65rem, 3.5vmin, 2.5rem) clamp(0.65rem, 2.8vmin, 1.35rem);
  background-color: #1a1510;
  background-image: url("assets/images/tacon.jpg.jpeg");
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
}

.hero__overlay {
  display: none;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(20rem, 88%);
  margin: 0 auto;
}

.hero__kicker {
  font-family: var(--font-playfair);
  font-size: clamp(0.5rem, 2.2vw, 0.62rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.65rem;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 0.9);
}

.hero__date-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  max-width: min(17rem, 100%);
  margin: 0 auto 0.1rem;
  padding: 0 0.2rem;
}

.hero__date-part {
  font-family: var(--font-montserrat);
  font-size: clamp(0.72rem, 2.6vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 0.9);
}

.hero__date-part--right {
  letter-spacing: 0.22em;
}

.hero__xv-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.12rem, 1.2vw, 0.4rem);
  margin: 0.05rem 0 0.15rem;
}

.hero__ornament {
  flex-shrink: 0;
  width: clamp(28px, 8vw, 48px);
  height: auto;
  opacity: 0.92;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.hero__xv {
  font-family: var(--font-playfair);
  font-weight: 700;
  font-size: clamp(2.35rem, 10vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
  background: linear-gradient(165deg, #f0e6c8 0%, #d4af37 35%, #a67c2e 55%, #e8d5a3 78%, #c5a059 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hero__name {
  font-family: var(--font-playfair);
  font-weight: 600;
  font-size: clamp(1rem, 4.2vw, 1.55rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  margin: 0.2rem 0 0;
  line-height: 1.12;
  padding-left: 0.28em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 1px rgba(0, 0, 0, 0.95);
}

.hero__family {
  font-family: var(--font-playfair);
  font-weight: 600;
  font-size: clamp(0.62rem, 2.5vw, 0.82rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0.45rem 0 0;
  line-height: 1.25;
  padding-left: 0.32em;
  background: linear-gradient(90deg, #e4d4a0, #c5a059 40%, #d4af37 70%, #b8943d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.hero__message {
  font-family: var(--font-playfair);
  font-size: clamp(0.68rem, 2.5vw, 0.82rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.98);
  margin: 1rem 0 0;
  max-width: 17rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
}

@media (min-width: 480px) {
  .hero__content {
    max-width: 22rem;
  }

  .hero__date-row {
    max-width: 19rem;
    padding: 0 0.35rem;
  }

  .hero__message {
    max-width: 19rem;
  }
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section--navy {
  background: var(--navy);
  background-image: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 50%, var(--navy-mid) 100%);
}

.section--texture {
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(201, 169, 98, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-mid), var(--navy));
}

.section--cream {
  background: var(--cream);
  color: var(--text-dark);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(201, 169, 98, 0.04) 40px,
      rgba(201, 169, 98, 0.04) 41px
    ),
    linear-gradient(180deg, var(--cream), var(--cream-dark));
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 2.5rem;
}

.section__title--dark {
  color: var(--navy);
}

.section--cream .section__title--dark {
  border-bottom: 1px solid rgba(201, 169, 98, 0.5);
  padding-bottom: 0.75rem;
  display: inline-block;
  width: 100%;
  text-align: left;
}

/* Mi historia — carrusel de fotos */
.historia__intro {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  max-width: 28rem;
  margin: -1.25rem auto 1.25rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.carrusel {
  max-width: 520px;
  margin: 0 auto;
}

.carrusel__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.carrusel__viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid var(--gold);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
}

.carrusel__viewport::-webkit-scrollbar {
  display: none;
}

.carrusel__track {
  display: flex;
}

.carrusel__slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 1;
  background: var(--navy-mid);
}

.carrusel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.carrusel__btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold);
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.carrusel__btn:hover {
  background: rgba(201, 169, 98, 0.15);
  box-shadow: 0 0 16px rgba(201, 169, 98, 0.25);
}

.carrusel__btn:active {
  transform: scale(0.96);
}

.carrusel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.carrusel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.carrusel__dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

/* Padres */
.padres__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .padres__layout {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 3rem;
  }

  .padres__title {
    text-align: left;
    margin-bottom: 0;
    padding-top: 0.5rem;
  }
}

.padres__message p {
  margin: 0 0 1rem;
  color: var(--text-light);
}

.padres__sign {
  font-style: italic;
  color: var(--gold) !important;
  margin-top: 1.5rem !important;
}

/* Experiencia */
.experiencia__layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .experiencia__layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.experiencia__figure {
  margin: 0;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border: 2px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.22), 0 0 0 1px rgba(201, 169, 98, 0.15);
  background: var(--navy);
}

.experiencia__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  object-fit: cover;
}

.experiencia__text .section__title--dark {
  text-align: left;
  margin-bottom: 1rem;
}

.experiencia__text p {
  margin: 0;
}

/* Detalle evento */
.detalle__inner {
  text-align: center;
}

.detalle__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 600px) {
  .detalle__list {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
  }
}

.detalle__item {
  display: flex;
  gap: 1rem;
  text-align: left;
  max-width: 280px;
}

.detalle__item strong {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.25rem;
}

.detalle__item p {
  margin: 0;
  color: var(--text-muted);
}

.detalle__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
}

.detalle__icon--clock::before,
.detalle__icon--clock::after {
  content: "";
  position: absolute;
  background: var(--gold);
  left: 50%;
  top: 50%;
}

.detalle__icon--clock::before {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -90%);
  transform-origin: bottom center;
}

.detalle__icon--clock::after {
  width: 10px;
  height: 2px;
  transform: translate(-20%, -50%);
}

.detalle__icon--pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 35%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.detalle__icon--pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid var(--gold);
  transform: translateX(-50%);
  opacity: 0.85;
}

/* Dress code */
.dresscode__layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .dresscode__layout {
    grid-template-columns: 220px 1fr;
  }
}

.dresscode__figure {
  margin: 0;
  width: 100%;
  max-width: 240px;
  margin-inline: auto;
  border: 1px solid rgba(201, 169, 98, 0.5);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 28px rgba(44, 36, 22, 0.12);
}

.dresscode__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  object-fit: contain;
}

.dresscode__text p {
  margin: 0;
}

.dresscode__text .section__title--dark {
  margin-bottom: 1rem;
}

/* RSVP */
.rsvp__inner {
  text-align: center;
  max-width: 560px;
}

.rsvp__hint {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.rsvp__hint strong {
  color: var(--gold);
}

/* Sobres */
.sobres__inner {
  text-align: center;
  max-width: 640px;
}

.sobres__inner .section__title--dark {
  text-align: center;
  border: none;
}

.sobres__icon {
  display: block;
  width: 48px;
  height: 36px;
  margin: 0 auto 1rem;
  border: 2px solid var(--navy);
  border-radius: 2px;
  position: relative;
  background: linear-gradient(135deg, transparent 48%, var(--navy) 48%, var(--navy) 52%, transparent 52%);
}

.sobres__icon::before {
  content: "";
  position: absolute;
  inset: -6px 20% auto 20%;
  height: 14px;
  border: 2px solid var(--navy);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

.sobres__inner p {
  margin: 1rem 0 0;
}

.sobres__transfer-note {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--navy);
  font-style: normal;
}

.sobres__account {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.sobres__account-num {
  font-family: var(--font-playfair);
  font-weight: 700;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  letter-spacing: 0.06em;
  background: linear-gradient(165deg, #e4d4a0 0%, #c9a962 40%, #a67c2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

/* Countdown */
.countdown-section .section__title {
  margin-bottom: 1.5rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-family: var(--font-display);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
}

.countdown__num {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(201, 169, 98, 0.4);
  letter-spacing: 0.05em;
}

.countdown__label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.countdown__sep {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  padding: 0 0.15rem;
  transform: translateY(-0.35rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.btn:hover {
  background: rgba(201, 169, 98, 0.15);
  box-shadow: 0 0 32px rgba(228, 212, 160, 0.45), 0 0 56px rgba(201, 169, 98, 0.2);
  transform: translateY(-2px);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 0.85rem;
}

.btn__icon {
  width: 18px;
  height: 18px;
  background: conic-gradient(var(--gold) 25%, transparent 25% 50%, var(--gold) 50% 75%, transparent 75%);
  border-radius: 2px;
  opacity: 0.9;
}

/* Footer */
.footer {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(10, 22, 40, 0.88), rgba(10, 22, 40, 0.95)),
    radial-gradient(ellipse at 50% 80%, rgba(201, 169, 98, 0.12), transparent 55%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.footer__overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(201, 169, 98, 0.03) 80px,
    rgba(201, 169, 98, 0.03) 81px
  );
  pointer-events: none;
}

.footer__quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  font-style: italic;
  max-width: 28rem;
  margin: 0;
  text-shadow: 0 0 30px rgba(201, 169, 98, 0.25);
}

/* Móvil: legibilidad, rendimiento y safe area */
@media (max-width: 899px) {
  body {
    font-size: 1.12rem;
    -webkit-text-size-adjust: 100%;
  }

  .hero {
    background-attachment: scroll;
    padding: clamp(0.55rem, 3vmin, 1.75rem) clamp(0.55rem, 2.5vmin, 1rem);
  }

  .section {
    padding: 3rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
  }

  .section__title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    margin-bottom: 1.75rem;
    line-height: 1.25;
  }

  .hero__kicker {
    letter-spacing: 0.2em;
    padding: 0 0.25rem;
  }

  .hero__name {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
    word-break: break-word;
  }

  .hero__family {
    letter-spacing: 0.28em;
    padding-left: 0.28em;
  }

  .hero__message {
    margin-top: 0.85rem;
    padding: 0 0.25rem;
  }

  .detalle__inner .btn {
    display: inline-flex;
    width: 100%;
    max-width: 20rem;
    box-sizing: border-box;
  }

  .rsvp__inner .btn--large {
    width: 100%;
    max-width: 20rem;
    box-sizing: border-box;
  }

  .countdown {
    gap: 0.35rem 0.25rem;
    padding: 0 0.25rem;
  }

  .countdown__unit {
    min-width: 3.25rem;
  }

  .countdown__num {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .countdown__sep {
    font-size: 1.35rem;
    transform: translateY(-0.2rem);
  }

  .countdown__label {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .footer {
    padding: 3rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
    min-height: 38vh;
  }

  .fiesta-twinkle {
    opacity: 0.28;
  }
}

@media (max-width: 380px) {
  .hero__xv-block {
    gap: 0.08rem;
  }

  .hero__ornament {
    width: clamp(22px, 6.5vw, 34px);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero,
  .footer {
    background-attachment: scroll;
  }

  .fiesta-twinkle {
    animation: none;
    opacity: 0.2;
  }

  .section__title--fiesta {
    animation: none;
  }

  .carrusel__viewport {
    scroll-behavior: auto;
  }
}
