:root {
  --champagne: #e8d7c4;
  --beige: #f2e8dc;
  --nude-rose: #d9b6ad;
  --soft-gold: #b8925b;
  --pearl: #fffcf8;
  --ink: #4e4138;
  --muted: #7b6a61;
  --line: #e4d5c4;
  --panel: rgba(255, 252, 248, 0.88);
  --shadow: 0 14px 45px rgba(94, 74, 64, 0.11);
  --bg-main: linear-gradient(165deg, #fdf9f4 0%, #f2e8dc 46%, #ead9c8 100%);
  --bg-soft: linear-gradient(145deg, #fffdf9 0%, #f4ece3 100%);
  --bg-rose: linear-gradient(145deg, #f6e6de 0%, #ecd6cb 100%);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Outfit", "Avenir Next", sans-serif;
  background: var(--bg-main);
  line-height: 1.55;
}

#invitacion {
  background: linear-gradient(160deg, rgba(247, 238, 228, 0.62) 0%, rgba(239, 224, 208, 0.58) 48%, rgba(230, 210, 189, 0.54) 100%);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", "Didot", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.section,
.footer,
.side-menu {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.portada {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-width: none;
}

.sobre {
  width: min(680px, 100%);
  padding: 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

.sobre-tapa {
  position: absolute;
  inset: -30% -8% auto;
  height: 68%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(231, 216, 201, 0.75));
  clip-path: polygon(0 0, 100% 0, 50% 90%);
  transform-origin: top;
  transition: transform 1s ease;
  z-index: 2;
}

.sobre-carta {
  text-align: center;
  padding: 2.8rem 1.2rem 1.2rem;
  position: relative;
  z-index: 1;
}

.sobre-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.73rem;
  color: var(--muted);
}

.sobre-titulo {
  margin-top: 0.6rem;
  font-size: clamp(2.2rem, 7vw, 4rem);
}

.portada-nombres,
.hero-invitado-nombres {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin: 0.9rem 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 4.2vw, 2rem);
}

.inicial,
.musica-inicial,
.event-inicial {
  color: var(--soft-gold);
}

.sobre-subtitulo {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

#btn-abrir,
.btn-soft,
#rsvp-submit,
.btn-location,
#btn-account-modal {
  border: 1px solid color-mix(in srgb, var(--soft-gold) 52%, white);
  background: linear-gradient(160deg, var(--pearl), var(--champagne));
  color: #5f4e3e;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(184, 152, 102, 0.24);
}

#btn-abrir:hover,
.btn-soft:hover,
#rsvp-submit:hover,
.btn-location:hover,
#btn-account-modal:hover {
  transform: translateY(-2px);
}

.portada.abrir .sobre-tapa {
  transform: rotateX(170deg);
}

.invitacion-shell {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.invitacion-shell.revelar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-ui {
  position: fixed;
  right: 0.95rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  gap: 0.6rem;
}

.music-fab {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 2147483000;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(201, 152, 173, 0.55);
  background: linear-gradient(150deg, rgba(255, 248, 244, 0.96), rgba(238, 217, 205, 0.92));
  color: #b8849d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(94, 63, 74, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.music-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.music-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(94, 63, 74, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.music-fab-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.music-fab.is-playing {
  filter: saturate(1.06);
}

.music-fab.is-playing .music-fab-icon {
  animation: musicPulse 1.9s ease-in-out infinite;
}

@keyframes musicPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.11);
    opacity: 1;
  }
}

#scroll-hint {
  text-decoration: none;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #b07a92;
  background: linear-gradient(145deg, rgba(255, 250, 252, 0.72), rgba(237, 218, 223, 0.58));
  border: 1px solid rgba(186, 133, 154, 0.55);
  border-radius: 999px;
  padding: 0.72rem 1rem 0.72rem 2.35rem;
  box-shadow: 0 10px 24px rgba(107, 70, 84, 0.2);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(3px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#scroll-hint::before {
  content: "\2193";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  animation: hintHandScroll 1.2s ease-in-out infinite;
}

#scroll-hint.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.side-menu {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  display: flex;
  overflow-x: auto;
  gap: 0.35rem;
}

.side-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
  white-space: nowrap;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
}

.side-menu a:hover {
  background: rgba(215, 182, 177, 0.24);
}

.section {
  margin-top: 1.3rem;
  padding: clamp(1.3rem, 4vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Premium stacked storytelling layers */
#hero {
  position: relative;
  margin-top: 0 !important;
  z-index: auto;
}

#frase {
  position: relative;
  margin-top: 0 !important;
  z-index: auto;
  background: #f2e8dc;
  box-shadow: 0 -14px 30px rgba(84, 62, 52, 0.08), 0 12px 28px rgba(112, 83, 67, 0.14);
}

#separador-sobre {
  position: relative;
  margin-top: 0 !important;
  z-index: auto;
  background-color: #f2e8dc;
  box-shadow: 0 -12px 26px rgba(88, 64, 53, 0.08), 0 10px 24px rgba(112, 83, 67, 0.12);
}

#rsvp-section {
  position: relative;
  z-index: auto;
  background-color: #f2e8dc;
  box-shadow: 0 -16px 34px rgba(82, 58, 45, 0.11), 0 14px 32px rgba(112, 82, 65, 0.16);
      margin-top: -30px;
    margin-bottom: 20px;
}

.hero {
  min-height: 100svh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: 0;
  margin: 0;
  border: 3px solid #c7a24a;
  border-radius: 0;
  box-shadow: none;
  background: #1b1513;
  margin-bottom: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  min-height: 100%;
  transform: none;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(1.4rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
  color: var(--pearl);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  text-align: center;
}

.hero-title {
  font-family: "Luxurious Script", cursive;
  font-size: 50px;
  font-weight: 600;
  margin-top: clamp(0.4rem, 2vw, 1.4rem);
  margin-bottom: 0;
  padding: 10px;
  line-height: 0.95;
  color: transparent !important;
  background: linear-gradient(180deg, #b7867e 0%, #93645e 34%, #6f4743 62%, #b07a72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 3px 6px rgba(35, 20, 20, 0.42),
    0 0 14px rgba(206, 158, 150, 0.22),
    0 0 2px rgba(255, 236, 228, 0.28);
  animation: roseShimmer 3.8s linear infinite, portadaNameZoom 4.2s ease-in-out infinite;
}

.hero-invitado-fecha {
  letter-spacing: 0.25em;
  font-size: 0.87rem;
  margin-bottom: 0.8rem;
}

.hero-music {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--pearl);
}

.musica-meta {
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.musica-titulo {
  display: flex;
  gap: 0.35rem;
}

.musica-progress {
  margin-top: 0.55rem;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.musica-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--champagne);
}

.frase,
.frase-final {
  text-align: center;
  background: var(--bg-soft);
}

#frase {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  padding: 0;
  border: 1.5px solid #d6b36b;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  border-radius: 0;
  box-shadow: 0 -14px 30px rgba(84, 62, 52, 0.08), 0 12px 28px rgba(112, 83, 67, 0.14);
  min-height: clamp(260px, 46vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f7eee4 0%, #efe0d0 48%, #e6d2bd 100%);
}

.frase-content {
  width: 100%;
  padding: clamp(2rem, 7vw, 4.8rem) clamp(1.1rem, 4.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.frase-corona {
  width: 150px;
  height: auto;
  animation: crownFloat 3.6s ease-in-out infinite;
}

.frase p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.frase-final p {
  font-family: "Luxurious Script", cursive;
  font-size: clamp(2rem, 7.8vw, 3.1rem);
}

#frase p {
  max-width: none;
  color: transparent;
  font-size: 25px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-shadow: none;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fraseTextReveal 1s ease-out both;
}

@keyframes crownFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-1.5deg);
  }
}

@keyframes fraseTextReveal {
  0% {
    opacity: 0;
    transform: translateX(-26px);
    letter-spacing: 0.09em;
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    letter-spacing: 0.02em;
  }
}

#agradecimiento {
  width: 100%;
  max-width: none;
  margin-top: -1px;
  padding: 0;
  min-height: clamp(200px, 36vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f7eee4 0%, #efe0d0 48%, #e6d2bd 100%);
  border: 1.5px solid #d6b36b;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  border-radius: 0;
  box-shadow: 0 -14px 30px rgba(84, 62, 52, 0.08), 0 12px 28px rgba(112, 83, 67, 0.14);
}

#agradecimiento .frase-content {
  padding: clamp(1.2rem, 4.5vw, 2.3rem) clamp(1rem, 4vw, 2rem);
}

#agradecimiento p {
  max-width: none;
  color: transparent !important;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.45;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: fraseTextReveal 1s ease-out both;
}

#separador-sobre {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: 0 -12px 26px rgba(88, 64, 53, 0.08), 0 10px 24px rgba(112, 83, 67, 0.12);
  background: transparent;
}

#separador-sobre img {
  width: 100%;
  height: auto;
  display: block;
}

.section-head {
  margin-bottom: 1.2rem;
}

.section-head h3 {
  font-size: 40px;
}

.rsvp {
  background: url("images/F2.png") center / cover no-repeat;
  text-align: center;
  padding-top: clamp(3rem, 7vw, 4.6rem);
  padding-bottom: clamp(3rem, 8vw, 5.4rem);
  margin-top: 0;
  border: 2px solid transparent;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  border-radius: 0;
  box-shadow:
    0 -16px 34px rgba(82, 58, 45, 0.11),
    0 14px 32px rgba(112, 82, 65, 0.16),
    0 0 0 1px rgba(255, 242, 203, 0.35),
    0 0 14px rgba(217, 181, 106, 0.28),
    inset 0 0 12px rgba(255, 238, 188, 0.16);
}

#rsvp-section .section-head {
  margin-bottom: 0.8rem;
}

#rsvp-section .section-head h3 {
  text-align: center;
  font-family: "Luxurious Script", cursive;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

#rsvp-section h3,
#rsvp-section h4 {
  font-family: "Luxurious Script", cursive;
  font-weight: 600;
}

#rsvp-section .invitado-lugares {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.rsvp-card {
  width: min(760px, 100%);
  margin: clamp(-2rem, -4vw, -1rem) auto 0;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1rem, 3.8vw, 2rem);
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.invitado-nombre {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  text-transform: uppercase;
  color: #c59ea2 !important;
}

.invitado-mensaje,
.invitado-lugares {
  margin-top: 25px;
}

.invitado-mensaje {
  max-width: 720px;
  margin-inline: auto;
  font-size: 20px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #c59ea2 !important;
}

.invitado-lugares {
  font-size: 20px;
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c59ea2 !important;
}

.rsvp-intro {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #c59ea2 !important;
  font-size: 20px;
}

#rsvp-form {
  width: min(560px, 100%);
  margin: 1.05rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rsvp-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.choice-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: #fff;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: block;
  text-align: center;
  border-radius: 999px;
  padding: 0.72rem 1rem;
}

.choice-pill input:checked + span {
  background: linear-gradient(145deg, #fff5eb, #ecd6be);
  color: #604d3e;
}

.guest-wrapper {
  margin-top: 0.95rem;
}

.guest-wrapper label {
  display: block;
  margin-bottom: 0.38rem;
}

#guest-count {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  font: inherit;
  background: #fff;
}

#rsvp-submit {
  margin-top: 0;
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  background: #c59ea2;
  color: #8e6228 !important;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(228, 204, 170, 0.9);
  text-shadow: 0 1px 0 rgba(255, 245, 214, 0.65), 0 2px 10px rgba(93, 62, 28, 0.42);
  box-shadow: 0 12px 30px rgba(31, 20, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

#rsvp-success {
  width: min(560px, 100%);
  margin: 0.9rem auto 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 244, 0.86);
}

#rsvp-final-message {
  font-family: "Cormorant Garamond", serif;
  color: #c59ea2 !important;
  font-style: italic;
}

.countdown {
  color: #fff;
  background: #efe0d0 url("images/fotos/V4.jpeg") center top / contain no-repeat;
}

#contador {
  margin-top: 0 !important;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border: 2px solid transparent;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  box-shadow: inset 0 0 0 1px rgba(255, 242, 201, 0.35);
  min-height: 115svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px clamp(0.9rem, 3vw, 1.6rem) 0;
}

.countdown-inner {
  width: min(980px, 100%);
  margin-inline: auto;
  text-align: center;
}

.countdown h3 {
  font-family: "Luxurious Script", cursive;
  font-weight: 500;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: softTitleFloat 3.8s ease-in-out infinite;
  font-size: 40px;
}

.count-grid {
  margin: 1rem 0 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  max-width: 620px;
  margin-inline: auto;
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  margin-top: -10px;
}

.count-grid div {
  border: 2px solid transparent;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  background: rgb(232 198 208 / 24%);
  border-radius: 0;
  text-align: center;
  padding: 2px;
  min-height: 48px;
  box-shadow: inset 0 0 10px rgba(255, 236, 188, 0.18);
  animation: textSlideInSoft 0.9s ease-out both;
}

.count-grid span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  line-height: 1;
  color: #c59ea2;
}

.count-grid small {
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 9px;
  color: #b889a0;
}

.countdown-calendar {
  background: #e3c5c8b0;
  color: #8e6228 !important;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(228, 204, 170, 0.9);
  text-shadow: 0 1px 0 rgba(255, 245, 214, 0.65), 0 2px 10px rgba(93, 62, 28, 0.42);
  box-shadow: 0 12px 30px rgba(31, 20, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  transform: translateY(var(--calendar-parallax, 0px));
  animation: softButtonGlow 3.2s ease-in-out infinite;
  font-size: 0.84rem;
  padding: 0.5rem 1rem;
  min-height: 42px;
}

#padres {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  padding: clamp(2.2rem, 7vw, 4rem) clamp(1rem, 4vw, 2.2rem);
  min-height: clamp(430px, 70vw, 620px);
  border: 1px solid transparent;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  border-radius: 0;
  box-shadow: 0 -16px 34px rgba(82, 58, 45, 0.1), 0 14px 30px rgba(112, 82, 65, 0.15);
  background: url("images/F2.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.padres-content {
  width: min(900px, 100%);
  min-height: clamp(260px, 44vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.padres-intro {
  font-size: 22px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #9e6d8d !important;
  animation: textSlideInSoft 0.95s ease-out both;
}

#padres h3 {
  font-size: 45px;
  font-family: "Luxurious Script", cursive;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: softTitleFloat 3.8s ease-in-out infinite;
}

#itinerario {
  margin-top: 0 !important;
  width: 100%;
  max-width: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: linear-gradient(160deg, rgba(247, 238, 228, 0.62) 0%, rgba(239, 224, 208, 0.58) 48%, rgba(230, 210, 189, 0.54) 100%);
  text-align: center;
}

#itinerario .section-head h3 {
  font-family: "Luxurious Script", cursive;
  font-weight: 500;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: softTitleFloat 3.8s ease-in-out infinite;
  font-size: 50px;
}

#itinerario .section-head,
#eventos .section-head {
  text-align: center;
}

#itinerario .timeline {
  width: min(900px, 100%);
  margin-inline: auto;
}

#itinerario .timeline article {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0.35rem 0;
}

.padres-grid,
.events-container,
.gift-options,
.dress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.padres-grid article,
.event-card,
.gift-options article,
.dress-grid article,
.timeline article,
.upload-placeholder {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.timeline article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
  animation: textSlideInSoft 0.9s ease-out both;
}

#itinerario .timeline article {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.timeline-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.timeline-hora {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0.06em;
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  color: #9e6d8d !important;
  animation: textSlideInSoft 0.95s ease-out both;
}

.timeline article h4 {
  margin: 0;
  font-size: 40px;
  font-family: "Luxurious Script", cursive;
  font-weight: 500;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: softTitleFloat 3.8s ease-in-out infinite;
}

.event-title {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

#eventos {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  padding: clamp(2.2rem, 7vw, 4rem) clamp(1rem, 4vw, 2.2rem);
  min-height: clamp(460px, 72vw, 640px);
  border: 1px solid transparent;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  border-radius: 0;
  box-shadow: none;
  background: url("images/F2.png") center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

#eventos .events-container {
  width: min(980px, 100%);
  margin-inline: auto;
  gap: 1rem;
  justify-items: center;
}

#eventos .event-card {
  width: 100%;
  max-width: 360px;
  border: 2px solid #d6b36b;
  background: linear-gradient(160deg, rgba(247, 238, 228, 0.78) 0%, rgba(239, 224, 208, 0.76) 48%, rgba(230, 210, 189, 0.74) 100%);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1.25px rgba(255, 240, 198, 0.95),
    0 8px 18px rgba(102, 74, 48, 0.1);
  padding: 0.85rem 0.65rem;
  text-align: center;
  overflow: hidden;
  position: relative;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

#eventos .event-card::before,
#eventos .event-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  clip-path: inherit;
}

#eventos .event-card::before {
  inset: 5px;
  border: 1.25px solid rgba(214, 179, 107, 0.9);
}

#eventos .event-card::after {
  inset: 10px;
  border: 1px solid rgba(255, 238, 202, 0.75);
}

.event-emoji {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: 0.3rem;
}

#eventos .event-title {
  margin-bottom: 0.25rem;
  font-family: "Luxurious Script", cursive;
  font-size: 33px;
  font-weight: 500;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: softTitleFloat 3.8s ease-in-out infinite;
}

#eventos .event-lugar {
  margin: 0;
  font-size: 1rem;
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #9e6d8d !important;
}

#eventos .event-time {
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

#eventos .btn-location {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(190px, 100%);
  min-height: 40px;
  margin-inline: auto;
  background: #c59ea2;
  color: #8e6228 !important;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(228, 204, 170, 0.9);
  text-shadow: 0 1px 0 rgba(255, 245, 214, 0.65), 0 2px 10px rgba(93, 62, 28, 0.42);
  box-shadow: 0 12px 30px rgba(31, 20, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  padding: 0.52rem 1rem;
}

.event-parallax-btn {
  background: #c59ea2;
  border: 1px solid rgba(228, 204, 170, 0.9);
  backdrop-filter: blur(6px);
  transform: none;
}

#dresscode {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(160deg, #f7eee4 0%, #efe0d0 48%, #e6d2bd 100%);
  text-align: center;
}

.dress-card {
  width: min(760px, 100%);
  margin: 0.8rem auto 0;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  border: 1.5px solid #d6b36b;
  background: url("images/F2.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 198, 0.95);
  text-align: center;
}

.dress-title,
.dress-subtitle,
.regalos-title,
.fotos-title,
.frase-final-title {
  font-family: "Luxurious Script", cursive;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: softTitleFloat 3.8s ease-in-out infinite;
}

.frase-final-title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.15rem, 7.4vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-shadow: 0 8px 20px rgba(130, 87, 96, 0.24);
}

.dress-title {
  font-size: clamp(2.2rem, 8vw, 3rem);
}

.dress-icons {
  margin: 0.5rem auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dress-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.dress-copy,
.regalos-copy,
.fotos-copy {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #9e6d8d !important;
  font-size: clamp(1.15rem, 2.7vw, 1.45rem);
  line-height: 1.36;
}

.dress-copy {
  max-width: 680px;
  margin: 0 auto;
}

.dress-subtitle {
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.95rem, 7vw, 2.65rem);
}

#dresscode .btn-soft,
#fotos .btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  min-height: 46px;
  margin: 0.9rem auto 0;
  background: #c59ea2;
  color: #8e6228 !important;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(228, 204, 170, 0.9);
  text-shadow: 0 1px 0 rgba(255, 245, 214, 0.65), 0 2px 10px rgba(93, 62, 28, 0.42);
  box-shadow: 0 12px 30px rgba(31, 20, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

#regalos {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  border: 1px solid transparent;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(255, 242, 203, 0.35), 0 0 14px rgba(217, 181, 106, 0.28), inset 0 0 12px rgba(255, 238, 188, 0.16);
  background: url("images/F2.png") center / cover no-repeat;
  text-align: center;
}

.regalos-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border: 1px solid transparent;
  border-image: linear-gradient(140deg, #f7e7b0 0%, #d9b56a 28%, #fff3c8 52%, #c89949 76%, #f2dd9f 100%) 1;
  background: linear-gradient(160deg, rgba(247, 238, 228, 0.62) 0%, rgba(239, 224, 208, 0.58) 48%, rgba(230, 210, 189, 0.54) 100%);
  box-shadow: 0 0 0 1px rgba(255, 242, 203, 0.35), 0 0 14px rgba(217, 181, 106, 0.28), inset 0 0 12px rgba(255, 238, 188, 0.16);
}

.regalos-icon {
  display: block;
  width: clamp(72px, 12vw, 98px);
  height: clamp(72px, 12vw, 98px);
  object-fit: contain;
  margin: 0 auto 0.55rem;
}

.regalos-title {
  font-size: clamp(2.15rem, 7.6vw, 2.95rem);
}

.regalos-copy {
  margin: 0.35rem auto 0;
  max-width: 680px;
}

#separador-h1 {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

#separador-h1 img {
  width: 100%;
  height: auto;
  display: block;
}

#fotos {
  width: 100%;
  max-width: none;
  margin-top: clamp(-3.2rem, -8vw, -1.9rem) !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(160deg, #f7eee4 0%, #efe0d0 48%, #e6d2bd 100%);
  text-align: center;
}

.fotos-card {
  width: min(760px, calc(100% - 1.2rem));
  margin: 0 auto;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  border: 1.5px solid #d6b36b;
  background: url("images/F2.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 198, 0.95), 0 14px 26px rgba(90, 66, 45, 0.14);
  margin-top: -30px;
}

.fotos-title {
  font-size: clamp(2.15rem, 7.6vw, 2.95rem);
}

.fotos-copy {
  max-width: 700px;
  margin: 0 auto;
}

#separador-v2 {
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

#separador-v2 img {
  width: 100%;
  height: auto;
  display: block;
}

.frase-final {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
  border: 1.5px solid #d6b36b;
  border-radius: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 198, 0.95);
  background: url("images/F2.png") center / cover no-repeat;
}

.frase-final p {
  padding: clamp(1.4rem, 4vw, 2.2rem) clamp(1rem, 4vw, 2rem);
  color: #9e6d8d !important;
  text-shadow: none;
  font-size: clamp(2rem, 7.8vw, 3.1rem);
  line-height: 1.16;
  text-align: center;
  font-family: "Luxurious Script", cursive;
}

.fotos-qr {
  width: clamp(220px, 44vw, 350px);
  margin: 0.9rem auto;
}

.event-time,
.event-direccion {
  color: #9e6d8d !important;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
}

.btn-location {
  display: inline-block;
  margin-top: 0.8rem;
}

.dress-grid article {
  text-align: center;
}

.dress-grid span {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.35rem;
}

.galeria .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.gallery-grid img,
.gallery-auto img {
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 1/1;
  object-fit: cover;
}

.gallery-auto {
  margin-top: 0.9rem;
  position: relative;
  min-height: 220px;
}

.gallery-auto-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery-auto-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.upload-placeholder {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-soft);
}

.footer {
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 1rem 1.2rem 1.4rem;
  text-align: center;
  background: linear-gradient(160deg, #d8a5ac 0%, #c9909a 45%, #bf8792 100%);
  border-top: 1px solid rgba(255, 230, 236, 0.42);
  border: 0;
  border-radius: 0;
}

#social-icons {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}

#social-icons a {
  color: #fff !important;
  text-decoration: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

#social-icons a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 16px rgba(114, 67, 76, 0.22);
}

#social-icons i {
  font-size: 1.15rem;
  color: #fff !important;
}

.footer-logo {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
}

#footer-logo {
  width: 100px;
  height: auto;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(39, 29, 26, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gift-modal.active {
  display: flex;
}

.gift-modal-box {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.2rem;
  position: relative;
}

.gift-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.6rem;
  border: 0;
  background: none;
  font-size: 1.7rem;
  cursor: pointer;
}

#gift-account-data {
  white-space: pre-line;
  margin: 0.7rem 0;
  color: var(--muted);
}

.gift-feedback {
  margin-top: 0.6rem;
  color: var(--soft-gold);
}

.rsvp-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(31, 21, 18, 0.38);
  padding: 0.75rem 1rem 1rem;
}

.rsvp-popup-overlay.active {
  display: flex;
}

.rsvp-popup {
  width: min(312px, calc(100% - 1rem));
  background: linear-gradient(165deg, #fffaf4, #f5e6d6);
  border: 1px solid rgba(207, 179, 154, 0.85);
  border-radius: 14px;
  padding: 0.78rem;
  text-align: center;
  box-shadow: 0 20px 46px rgba(46, 28, 18, 0.2);
  margin-inline: auto;
}

.rsvp-popup-title {
  margin: 0;
  font-size: 30px;
  font-family: "Luxurious Script", cursive;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: radial-gradient(circle at 50% 45%, #d0afb2 0%, #c9a8ac 30%, #c59ea2 62%, #805d5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.rsvp-popup-subtitle {
  margin: 0.35rem 0 0.42rem;
  font-weight: 500;
  font-size: 20px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #c59ea2 !important;
}

.rsvp-popup-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.52rem;
  font-size: 0.92rem;
  font: inherit;
  background: #fff;
}

.rsvp-popup-actions {
  margin-top: 0.58rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.rsvp-popup-btn {
  width: 100%;
  max-width: 252px;
  border: 1px solid rgba(228, 204, 170, 0.9);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: #c59ea2;
  color: #8e6228 !important;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(31, 20, 17, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.rsvp-popup-btn.secondary {
  background: floralwhite;
  color: #c59ea2 !important;
}

.rsvp-popup-message {
  margin: 0.52rem 0 0.08rem;
  font-size: 0.92rem;
  font-family: "Cormorant Garamond", serif;
  color: #c59ea2 !important;
  font-style: italic;
}

.rsvp-popup.is-error {
  border-color: #d8a9a2;
}

.rsvp-popup-close {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: #fffaf5;
  cursor: pointer;
}

.wishes-hidden {
  display: none !important;
}

.section,
.footer,
.fade-in-element,
.zoom-in-element {
  opacity: 0;
  transform: translateY(24px);
}

.section.visible,
.footer.visible,
.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}

.zoom-in-element.visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
  animation: slideLeft 0.8s ease both;
}

.slide-right.visible {
  animation: slideRight 0.8s ease both;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 860px) {
  .countdown {
    background-position: center top;
    background-size: contain;
  }

  #contador {
    min-height: 108svh;
    align-items: flex-start;
    padding: 10px 0.9rem 0;
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
    width: 100%;
    margin: 0;
    border-width: 2px;
  }

  .padres-grid,
  .events-container,
  .gift-options,
  .dress-grid {
    grid-template-columns: 1fr;
  }

  .count-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .hero-image {
    min-height: 100%;
    object-fit: cover;
    object-position: 85% center;
  }
}

body.portada-lock {
  overflow: hidden;
  height: 100svh;
}

body:not(.portada-lock) {
  overflow-x: hidden;
  overflow-y: auto;
}

#scroll-hint {
  display: inline-flex !important;
  align-items: center;
}

#portada {
  z-index: 120;
  min-width: 100dvw;
  min-height: 100dvh;
}

.portada-fondo {
  position: absolute;
  inset: 0;
  background: url("images/envelope.png") center / cover no-repeat;
  z-index: 1;
}

#portada::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(35, 23, 19, 0.32), rgba(118, 84, 71, 0.2));
  z-index: 1;
}

.portada-contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.portada-center {
  min-height: 100%;
  width: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.15rem;
  text-align: center;
}

.portada-main-name {
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 0.9;
  text-align: center;
  background: linear-gradient(140deg, #f7e6c4 0%, #d9b56a 30%, #e8cfc4 62%, #b8925b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: 0 6px 20px rgba(97, 70, 45, 0.3), 0 0 16px rgba(217, 181, 106, 0.34);
  animation: roseShimmer 3.8s linear infinite, portadaNameZoom 4.2s ease-in-out infinite;
  margin-top: 78px;
  padding: 10px;
}

@keyframes hintHandScroll {
  0%,
  100% {
    transform: translateY(-50%) translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-50%) translateY(6px);
    opacity: 1;
  }
}

@keyframes hintAutoHide {
  0%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes softTitleFloat {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(0.98);
  }
  50% {
    transform: translateY(-3px);
    filter: brightness(1.05);
  }
}

@keyframes softButtonGlow {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(31, 20, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  }
  50% {
    box-shadow: 0 14px 34px rgba(31, 20, 17, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  }
}

@keyframes textSlideInSoft {
  0% {
    opacity: 0;
    transform: translateX(-22px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes iconFoilShimmer {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.portada-nombre span {
  display: block;
}

#portada #btn-abrir {
  background: #c59ea2;
  color: #8e6228 !important;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(228, 204, 170, 0.9);
  text-shadow: 0 1px 0 rgba(255, 245, 214, 0.65), 0 2px 10px rgba(93, 62, 28, 0.42);
  box-shadow: 0 12px 30px rgba(31, 20, 17, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  padding: 0.64rem 1.4rem;
  font-size: 0.93rem;
  margin-top: 1.9rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: openPulse 2.6s ease-in-out infinite;
}

#portada #btn-abrir::after {
  content: "";
  position: absolute;
  top: -130%;
  left: -42%;
  width: 34%;
  height: 360%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0));
  transform: rotate(24deg);
  transition: transform 0.75s ease;
  pointer-events: none;
}

#portada #btn-abrir:hover::after {
  transform: rotate(24deg) translateX(260%);
}

#invitacion {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.85s ease, transform 0.85s ease, visibility 0.85s ease;
}

#invitacion.revelar {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

#side-menu {
  display: none;
}

#portada.abrir {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

@keyframes openPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes roseShimmer {
  0% {
    filter: brightness(0.96);
    text-shadow: 0 0 12px rgba(214, 169, 143, 0.28);
  }
  50% {
    filter: brightness(1.08);
    text-shadow: 0 0 24px rgba(244, 205, 184, 0.45);
  }
  100% {
    filter: brightness(0.96);
    text-shadow: 0 0 12px rgba(214, 169, 143, 0.28);
  }
}

@keyframes portadaNameZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
