/* #region 01. VARIABLES */
:root {
  --color-fondo: #f8f7f4;
  --color-principal: #5e6b5a;
  --color-secundario: #8a967d;
  --color-verde-fondo: rgba(126, 134, 99, 0.78);
  --color-linea: #d5c08c;
  --color-texto: #2e2e2e;

  --color-btn: #7a8b67;
  --color-btn-hover: #5f6f55;
  --color-btn-texto: #ffffff;

  --font-titulo: "Cormorant Garamond", serif;
  --font-cuerpo: "Montserrat", sans-serif;
}
/* #endregion */

/* #region 02. RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-cuerpo);
  color: var(--color-texto);
  background-color: var(--color-fondo);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}
/* #endregion */

/* #region 03. GLOBALES / BASE */
.main-content {
  position: relative;
  z-index: 3;
  background-color: transparent;
}

.hidden {
  display: none !important;
}

.section-block {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
  background: transparent;
}

.section-block > .container {
  width: 100%;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.reveal-section {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker {
  margin-bottom: 0.75rem;
  font-family: var(--font-cuerpo);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secundario);
}

.section-title {
  position: relative;
  margin-bottom: 1rem;
  font-family: var(--font-titulo);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-principal);
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  margin: 1rem auto 0;
  opacity: 0.6;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-linea),
    transparent
  );
}

.section-intro {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-secundario);
  opacity: 0.9;
}

/* secciones full-screen */
#countdown.section-block,
#wedding-day.section-block,
#rsvp.section-block,
#cierre-postboda.section-block {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* secciones no full-screen */
#faq-preboda.section-block,
#faq-boda.section-block,
#cierre-preboda.section-block,
#cierre-boda.section-block {
  min-height: auto;
}
/* #endregion */

/* #region 03.1 ESTADOS / VISIBILIDAD */
body[data-state="loading"] {
  overflow-x: hidden;
}

#flow-preboda,
#flow-boda,
#flow-postboda {
  display: none !important;
}

body[data-state="preboda"] #flow-preboda {
  display: block !important;
}

body[data-state="boda"] #flow-boda {
  display: block !important;
}

body[data-state="postboda"] #flow-postboda {
  display: block !important;
}

#galeria-boda,
#recuerdos-boda,
#cierre-boda {
  display: none !important;
}

body[data-state="boda"] #galeria-boda,
body[data-state="boda"] #recuerdos-boda,
body[data-state="boda"] #cierre-boda {
  display: block !important;
}

body[data-state="postboda"] #galeria-boda,
body[data-state="postboda"] #recuerdos-boda {
  display: block !important;
}

body[data-state="preboda"] #whatsapp-float,
body[data-state="postboda"] #whatsapp-float {
  display: none !important;
}

body[data-state="boda"] #whatsapp-float {
  display: inline-flex !important;
}
/* #endregion */

/* #region 04. PAPEL GLOBAL */
.site-paper {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: 700px;
  opacity: 0.35;
}
/* #endregion */

/* #region 05. PAGE REVEAL */
.page-reveal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  background-color: var(--color-fondo);
  background-image: url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: 700px;
  transition: bottom 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-reveal.is-active {
  bottom: 0;
}

.page-reveal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to right,
    transparent,
    rgba(213, 192, 140, 0.9),
    transparent
  );
  opacity: 0.85;
}

.monogram {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-titulo);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: var(--color-principal);
  opacity: 0;
  transform: scale(0.94);
  transition: all 0.6s ease;
}

.page-reveal.is-active .monogram {
  opacity: 1;
  transform: scale(1);
}

.monogram-letter {
  font-weight: 500;
}

.monogram-separator {
  font-size: 0.8rem;
  color: var(--color-linea);
}
/* #endregion */

/* #region 06. HERO */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-floral {
  z-index: 0;
  background-image: url("../img/CABECERA/hero-desktop.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-bg-paper {
  z-index: 1;
  background-image: url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: 600px;
  opacity: 0.14;
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(248, 247, 244, 0),
    rgba(248, 247, 244, 0.88) 72%,
    rgba(248, 247, 244, 1) 100%
  );
}

.hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 3;
  padding: 2rem 1.5rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-names {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-titulo);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-principal);
  white-space: nowrap;
}

.hero-divider {
  width: min(70%, 420px);
  height: 1px;
  margin: 1rem auto;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-linea),
    transparent
  );
}

.hero-date {
  font-family: var(--font-titulo);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--color-principal);
  margin-bottom: 1.5rem;
}

.hero-button,
.btn-primary {
  position: relative;
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--color-btn);
  background-color: transparent;
  color: var(--color-btn);
  font-family: var(--font-cuerpo);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  overflow: hidden;
  text-decoration: none;
}

.hero-button::after,
.btn-primary::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-linea);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.hero-button:hover,
.btn-primary:hover {
  color: var(--color-principal);
  transform: translateY(-2px);
  border-color: var(--color-linea);
}

.hero-button:hover::after,
.btn-primary:hover::after {
  width: 80%;
}
/* #endregion */

/* #region 07. COUNTDOWN */
#countdown.section-block {
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-size: auto, 920px 620px, 440px;
}

#countdown .section-kicker {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.16em;
}

#countdown .section-title {
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.08);
}

#countdown .section-title::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(213, 192, 140, 0.78),
    transparent
  );
  opacity: 1;
}

#countdown .section-intro {
  color: rgba(255, 255, 255, 0.78);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.countdown-item {
  padding: 1.8rem 1rem;
  border: 1px solid rgba(213, 192, 140, 0.28);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 12px 26px rgba(50, 57, 40, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease;
  border-radius: 12px;
}

.countdown-item:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 192, 140, 0.42);
  box-shadow:
    0 18px 36px rgba(50, 57, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.countdown-number {
  display: block;
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-principal);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.countdown-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secundario);
}
/* #endregion */

/* #region 08. WEDDING DAY */
#wedding-day {
  position: relative;
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-size: auto, 920px 620px, 440px;
}

#wedding-day .section-kicker {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.16em;
}

#wedding-day .section-title {
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.08);
}

#wedding-day .section-title::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(213, 192, 140, 0.78),
    transparent
  );
  opacity: 1;
}

#wedding-day .section-intro {
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 0;
}

.countdown-day-card {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
}

.countdown-day-dog {
  width: min(28vw, 240px);
  max-width: 240px;
  min-width: 160px;
  height: auto;
  opacity: 0.95;
  flex-shrink: 0;
}

.countdown-day-copy {
  max-width: 560px;
  text-align: left;
}

.countdown-day-copy .section-title::after {
  margin-left: 0;
  margin-right: 0;
}
/* #endregion */

/* #region 09. LUGAR */
.lugar-section {
  position: relative;
  background:
    linear-gradient(
      rgba(248, 247, 244, 0.58),
      rgba(248, 247, 244, 0.72)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

.lugar-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
  text-align: left;
}

.lugar-texto {
  max-width: 560px;
}

.lugar-section .section-kicker,
.lugar-section .section-title,
.lugar-section .event-place {
  text-align: left;
}

.lugar-section .section-title::after {
  margin-left: 0;
  margin-right: 0;
}

.lugar-section .event-place {
  margin-bottom: 1.5rem;
}

.lugar-section .event-place-title {
  margin-bottom: 0.35rem;
  font-family: var(--font-titulo);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-principal);
}

.lugar-section .event-place-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-texto);
  opacity: 0.82;
}

.lugar-section .event-place::after {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  margin: 1.2rem 0 0;
  background: linear-gradient(to right, var(--color-linea), transparent);
  opacity: 0.9;
}

.lugar-description {
  max-width: 520px;
  margin-top: 1.4rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-texto);
  opacity: 0.9;
}

.lugar-actions {
  margin-top: 2rem;
}

.lugar-button {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--color-principal);
  background: rgba(255, 255, 255, 0.35);
  color: var(--color-principal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  transition: all 0.35s ease;
}

.lugar-button:hover {
  transform: translateY(-2px);
  border-color: var(--color-linea);
  color: var(--color-btn-hover);
}

.lugar-imagen {
  display: flex;
  justify-content: center;
}

.lugar-imagen img {
  width: 100%;
  max-width: 430px;
  height: auto;
  transform: rotate(1.2deg);
  border-radius: 10px;
  box-shadow:
    0 20px 40px rgba(50, 57, 40, 0.10),
    0 4px 12px rgba(0, 0, 0, 0.05);
}
/* #endregion */

/* #region 10. DESPLAZAMIENTO */
.desplazamiento-section {
  position: relative;
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-size: auto, 920px 620px, 440px;
}

.desplazamiento-section .container {
  max-width: 1040px;
}

.desplazamiento-section .section-kicker {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.16em;
}

.desplazamiento-section .section-title {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.08);
}

.desplazamiento-section .section-title::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(213, 192, 140, 0.78),
    transparent
  );
  opacity: 1;
}

.desplazamiento-section .section-intro {
  max-width: 700px;
  margin: 0 auto 2.8rem;
  text-align: center;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 360px));
  justify-content: center;
  gap: 2.2rem;
  max-width: 840px;
  margin: 0 auto;
}

.transport-column {
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.50);
  box-shadow: 0 14px 34px rgba(50, 57, 40, 0.06);
  text-align: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.transport-title {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  line-height: 1.15;
  margin-bottom: 1.35rem;
  color: var(--color-principal);
}

.transport-block + .transport-block {
  margin-top: 1.9rem;
}

.transport-block + .transport-block::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 1.1rem;
  background: rgba(94, 107, 90, 0.14);
}

.transport-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(46, 46, 46, 0.48);
  margin-bottom: 0.9rem;
  opacity: 1;
}

.bus-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(46, 46, 46, 0.82);
  opacity: 1;
}

.bus-item + .bus-item {
  margin-top: 0.6rem;
}

.bus-item img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
  flex-shrink: 0;
  transform: translateY(1px);
}
/* #endregion */

/* #region 11. HORARIO */
#horario-preboda,
#horario-boda {
  position: relative;
  background:
    linear-gradient(
      rgba(248, 247, 244, 0.58),
      rgba(248, 247, 244, 0.72)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

#horario-preboda .container,
#horario-boda .container {
  max-width: 1240px;
}

#horario-preboda .section-title,
#horario-boda .section-title {
  margin-bottom: 2.4rem;
}

#horario-preboda .timeline-grid,
#horario-boda .timeline-grid {
  position: relative;
}

#horario-preboda .timeline-event,
#horario-boda .timeline-event {
  position: relative;
  text-align: center;
}

#horario-preboda .timeline-event img,
#horario-boda .timeline-event img {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 0.55rem;
  opacity: 0.9;
}

#horario-preboda .timeline-event.featured img,
#horario-boda .timeline-event.featured img {
  width: 56px;
  height: 56px;
}

#horario-preboda .timeline-event .time,
#horario-boda .timeline-event .time {
  margin-bottom: 0.12rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: var(--color-texto);
  opacity: 0.72;
}

#horario-preboda .timeline-event .title,
#horario-boda .timeline-event .title {
  font-family: var(--font-titulo);
  font-size: 1.32rem;
  line-height: 1.05;
  color: var(--color-principal);
}

#horario-preboda .timeline-center-line,
#horario-boda .timeline-center-line {
  display: none;
}

#horario-preboda .col-1,
#horario-preboda .col-2,
#horario-preboda .col-3,
#horario-preboda .col-4,
#horario-preboda .col-5,
#horario-preboda .col-6,
#horario-boda .col-1,
#horario-boda .col-2,
#horario-boda .col-3,
#horario-boda .col-4,
#horario-boda .col-5,
#horario-boda .col-6 {
  grid-column: auto;
}

@media (min-width: 1101px) {
  #horario-preboda .timeline-grid,
  #horario-boda .timeline-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto 70px auto;
    align-items: center;
    gap: 0.5rem 0.8rem;
  }

  #horario-preboda .timeline-center-line,
  #horario-boda .timeline-center-line {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    height: 1px;
    background: rgba(46, 46, 46, 0.35);
    align-self: center;
  }

  #horario-preboda .timeline-center-line::before,
  #horario-preboda .timeline-center-line::after,
  #horario-boda .timeline-center-line::before,
  #horario-boda .timeline-center-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(46, 46, 46, 0.35);
    transform: translateY(-50%);
  }

  #horario-preboda .timeline-center-line::before,
  #horario-boda .timeline-center-line::before {
    left: 0;
  }

  #horario-preboda .timeline-center-line::after,
  #horario-boda .timeline-center-line::after {
    right: 0;
  }

  #horario-preboda .timeline-event,
  #horario-boda .timeline-event {
    max-width: 180px;
    margin: 0 auto;
  }

  #horario-preboda .timeline-event.top,
  #horario-boda .timeline-event.top {
    grid-row: 1;
  }

  #horario-preboda .timeline-event.bottom,
  #horario-boda .timeline-event.bottom {
    grid-row: 3;
  }

  #horario-preboda .timeline-event.top::after,
  #horario-preboda .timeline-event.bottom::after,
  #horario-boda .timeline-event.top::after,
  #horario-boda .timeline-event.bottom::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 18px;
    background: rgba(46, 46, 46, 0.28);
    transform: translateX(-50%);
  }

  #horario-preboda .timeline-event.top::after,
  #horario-boda .timeline-event.top::after {
    bottom: -28px;
  }

  #horario-preboda .timeline-event.bottom::after,
  #horario-boda .timeline-event.bottom::after {
    top: -28px;
  }

  #horario-preboda .col-1,
  #horario-boda .col-1 { grid-column: 1; }
  #horario-preboda .col-2,
  #horario-boda .col-2 { grid-column: 2; }
  #horario-preboda .col-3,
  #horario-boda .col-3 { grid-column: 3; }
  #horario-preboda .col-4,
  #horario-boda .col-4 { grid-column: 4; }
  #horario-preboda .col-5,
  #horario-boda .col-5 { grid-column: 5; }
  #horario-preboda .col-6,
  #horario-boda .col-6 { grid-column: 6; }
}

@media (min-width: 769px) and (max-width: 1100px) {
  #horario-preboda .timeline-grid,
  #horario-boda .timeline-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto 70px auto;
    align-items: center;
    gap: 0.5rem 0.8rem;
  }

  #horario-preboda .timeline-center-line,
  #horario-boda .timeline-center-line {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    height: 1px;
    background: rgba(46, 46, 46, 0.35);
    align-self: center;
  }

  #horario-preboda .timeline-center-line::before,
  #horario-preboda .timeline-center-line::after,
  #horario-boda .timeline-center-line::before,
  #horario-boda .timeline-center-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(46, 46, 46, 0.35);
    transform: translateY(-50%);
  }

  #horario-preboda .timeline-center-line::before,
  #horario-boda .timeline-center-line::before {
    left: 0;
  }

  #horario-preboda .timeline-center-line::after,
  #horario-boda .timeline-center-line::after {
    right: 0;
  }

  #horario-preboda .timeline-event,
  #horario-boda .timeline-event {
    max-width: 180px;
    margin: 0 auto;
  }

  #horario-preboda .timeline-event.top,
  #horario-boda .timeline-event.top {
    grid-row: 1;
  }

  #horario-preboda .timeline-event.bottom,
  #horario-boda .timeline-event.bottom {
    grid-row: 3;
  }

  #horario-preboda .timeline-event.top::after,
  #horario-preboda .timeline-event.bottom::after,
  #horario-boda .timeline-event.top::after,
  #horario-boda .timeline-event.bottom::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 18px;
    background: rgba(46, 46, 46, 0.28);
    transform: translateX(-50%);
  }

  #horario-preboda .timeline-event.top::after,
  #horario-boda .timeline-event.top::after {
    bottom: -28px;
  }

  #horario-preboda .timeline-event.bottom::after,
  #horario-boda .timeline-event.bottom::after {
    top: -28px;
  }

  #horario-preboda .col-1,
  #horario-boda .col-1 { grid-column: 1; }
  #horario-preboda .col-2,
  #horario-boda .col-2 { grid-column: 2; }
  #horario-preboda .col-3,
  #horario-boda .col-3 { grid-column: 3; }
  #horario-preboda .col-4,
  #horario-boda .col-4 { grid-column: 4; }
  #horario-preboda .col-5,
  #horario-boda .col-5 { grid-column: 5; }
  #horario-preboda .col-6,
  #horario-boda .col-6 { grid-column: 6; }
}

@media (max-width: 768px) {
  #horario-preboda .timeline-grid,
  #horario-boda .timeline-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 330px;
    margin: 0 auto;
    padding: 0.4rem 0 0.8rem;
    gap: 0;
  }

  #horario-preboda .timeline-grid::before,
  #horario-boda .timeline-grid::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 1px;
    background: rgba(46, 46, 46, 0.18);
    transform: translateX(-50%);
  }

  #horario-preboda .timeline-center-line,
  #horario-boda .timeline-center-line {
    display: none !important;
  }

  #horario-preboda .timeline-event,
  #horario-preboda .timeline-event.top,
  #horario-preboda .timeline-event.bottom,
  #horario-boda .timeline-event,
  #horario-boda .timeline-event.top,
  #horario-boda .timeline-event.bottom {
    grid-column: auto !important;
    grid-row: auto !important;
    position: relative;
    width: calc(50% - 20px);
    max-width: 125px;
    margin: 0;
    padding: 0;
    text-align: center;
    transform: none;
    min-height: 108px;
  }

  #horario-preboda .col-1,
  #horario-boda .col-1 { order: 1; }
  #horario-preboda .col-2,
  #horario-boda .col-2 { order: 2; }
  #horario-preboda .col-3,
  #horario-boda .col-3 { order: 3; }
  #horario-preboda .col-4,
  #horario-boda .col-4 { order: 4; }
  #horario-preboda .col-5,
  #horario-boda .col-5 { order: 5; }
  #horario-preboda .col-6,
  #horario-boda .col-6 { order: 6; }

  #horario-preboda .col-1,
  #horario-preboda .col-3,
  #horario-preboda .col-5,
  #horario-boda .col-1,
  #horario-boda .col-3,
  #horario-boda .col-5 {
    align-self: flex-start;
    margin-right: auto;
  }

  #horario-preboda .col-2,
  #horario-preboda .col-4,
  #horario-preboda .col-6,
  #horario-boda .col-2,
  #horario-boda .col-4,
  #horario-boda .col-6 {
    align-self: flex-end;
    margin-left: auto;
    transform: translateY(24px);
  }

  #horario-preboda .col-2,
  #horario-preboda .col-3,
  #horario-preboda .col-4,
  #horario-preboda .col-5,
  #horario-preboda .col-6,
  #horario-boda .col-2,
  #horario-boda .col-3,
  #horario-boda .col-4,
  #horario-boda .col-5,
  #horario-boda .col-6 {
    margin-top: 0.7rem;
  }

  #horario-preboda .timeline-event::before,
  #horario-boda .timeline-event::before {
    content: "";
    position: absolute;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f8f7f4;
    border: 1px solid rgba(46, 46, 46, 0.28);
    z-index: 2;
  }

  #horario-preboda .col-1::before,
  #horario-preboda .col-3::before,
  #horario-preboda .col-5::before,
  #horario-boda .col-1::before,
  #horario-boda .col-3::before,
  #horario-boda .col-5::before {
    right: -27px;
  }

  #horario-preboda .col-2::before,
  #horario-preboda .col-4::before,
  #horario-preboda .col-6::before,
  #horario-boda .col-2::before,
  #horario-boda .col-4::before,
  #horario-boda .col-6::before {
    left: -27px;
  }

  #horario-preboda .timeline-event::after,
  #horario-boda .timeline-event::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 18px;
    height: 1px;
    background: rgba(46, 46, 46, 0.22);
  }

  #horario-preboda .col-1::after,
  #horario-preboda .col-3::after,
  #horario-preboda .col-5::after,
  #horario-boda .col-1::after,
  #horario-boda .col-3::after,
  #horario-boda .col-5::after {
    right: -18px;
  }

  #horario-preboda .col-2::after,
  #horario-preboda .col-4::after,
  #horario-preboda .col-6::after,
  #horario-boda .col-2::after,
  #horario-boda .col-4::after,
  #horario-boda .col-6::after {
    left: -18px;
  }

  #horario-preboda .timeline-event img,
  #horario-boda .timeline-event img {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.42rem;
  }

  #horario-preboda .timeline-event.featured img,
  #horario-boda .timeline-event.featured img {
    width: 46px;
    height: 46px;
  }

  #horario-preboda .timeline-event .time,
  #horario-boda .timeline-event .time {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0.1rem;
  }

  #horario-preboda .timeline-event .title,
  #horario-boda .timeline-event .title {
    font-size: 1.06rem;
    line-height: 1.08;
  }
}

.timeline-line {
  height: 2px;
  opacity: 0.4;
}
/* #endregion */

/* #region 12. RSVP */
#rsvp {
  position: relative;
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-size: auto, 920px 620px, 440px;
}

#rsvp .container {
  max-width: 1120px;
}

.rsvp-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.8rem;
  max-width: 980px;
  margin: 0 auto;
}

.rsvp-illustration {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6rem;
}

.rsvp-illustration img {
  max-width: 300px;
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.rsvp-content {
  flex: 0 1 620px;
  text-align: left;
}

#rsvp .section-title {
  max-width: 560px;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.08);
}

#rsvp .section-title::after {
  margin-left: 0;
  margin-right: 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(213, 192, 140, 0.78),
    transparent
  );
  opacity: 1;
}

#rsvp .section-intro {
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.78);
}

#rsvp .rsvp-form {
  margin-top: 2rem;
  padding: 2rem;
  position: relative;
  background:
    linear-gradient(
      rgba(126, 134, 99, 0.18),
      rgba(126, 134, 99, 0.24)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
  border: 1px solid rgba(94, 107, 90, 0.12);
  border-radius: 18px;
  box-shadow:
    0 25px 60px rgba(50, 57, 40, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(4px);
}

#rsvp .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

#rsvp .form-group label {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--color-texto);
}

#rsvp .form-group input,
#rsvp .form-group select,
#rsvp .form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(94, 107, 90, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  color: var(--color-texto);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

#rsvp .form-group textarea {
  resize: vertical;
  min-height: 110px;
}

#rsvp .form-group input:focus,
#rsvp .form-group select:focus,
#rsvp .form-group textarea:focus {
  border-color: rgba(94, 107, 90, 0.32);
  box-shadow: 0 0 0 3px rgba(94, 107, 90, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

#rsvp .hero-button {
  margin-top: 0.5rem;
}

#rsvp .rsvp-form .hero-button {
  margin-top: 1rem;
}

#rsvp > .container > .rsvp-layout .hero-button,
#rsvp .rsvp-content > .hero-button {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
}

#rsvp > .container > .rsvp-layout .hero-button:hover,
#rsvp .rsvp-content > .hero-button:hover {
  color: #ffffff;
  border-color: rgba(213, 192, 140, 0.78);
}

#adultos-detalle-fields,
#ninos-detalle-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.75rem;
}

.nino-detalle-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(126, 134, 99, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

.form-group-inline {
  margin-bottom: 0;
}
/* #endregion */

/* #region 13. FAQ */
#faq-preboda,
#faq-boda {
  position: relative;
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-size: auto, 920px 620px, 440px;
}

#faq-preboda .container,
#faq-boda .container {
  max-width: 900px;
}

.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.15rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-titulo);
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.92);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  font-family: var(--font-cuerpo);
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer p {
  padding: 0 0 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

#faq-preboda .section-kicker,
#faq-boda .section-kicker {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.16em;
}

#faq-preboda .section-title,
#faq-boda .section-title {
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.08);
}

#faq-preboda .section-title::after,
#faq-boda .section-title::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(213, 192, 140, 0.78),
    transparent
  );
  opacity: 1;
}

#faq-boda .section-intro {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 2.2rem;
}
/* #endregion */

/* #region 14. FOTOS PREBODA */
#fotos-preboda {
  position: relative;
  background:
    linear-gradient(
      rgba(126, 134, 99, 0.18),
      rgba(126, 134, 99, 0.24)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

#fotos-preboda .container {
  max-width: 1180px;
}

.fotos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 3.5rem;
  align-items: center;
  justify-self: center;
}

.fotos-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 190px));
  justify-content: center;
  gap: 1.4rem;
  padding: 1rem 0;
}

.string-line {
  display: none;
}

#fotos-preboda .polaroid-card {
  position: relative;
  width: 100%;
  max-width: 190px;
  margin: 0 auto;
  background: #f7f4ee;
  padding: 0.7rem 0.7rem 1.4rem;
  border-radius: 4px;
  box-shadow:
    0 16px 36px rgba(50, 57, 40, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#fotos-preboda .polaroid-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d8c7a0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
}

#fotos-preboda .polaroid-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

#fotos-preboda .polaroid-card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow:
    0 24px 44px rgba(50, 57, 40, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.05);
}

.polaroid-auto-1 {
  transform: rotate(-4deg);
}

.polaroid-auto-2 {
  transform: rotate(3deg);
}

.polaroid-auto-3 {
  transform: rotate(-2deg);
}

.polaroid-auto-4 {
  transform: rotate(5deg);
}

.polaroid-footer {
  margin-top: 1.05rem;
  text-align: center;
}

.polaroid-monogram {
  position: relative;
  display: inline-block;
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--color-principal);
  opacity: 0.92;
  z-index: 1;
}

.polaroid-monogram::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 22px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to right,
    transparent,
    #d5c08c,
    transparent
  );
  z-index: 0;
}

.fotos-upload-side {
  width: 100%;
  max-width: 430px;
  justify-self: center;
  text-align: center;
}

#fotos-preboda .section-kicker {
  margin-bottom: 1rem;
}

#fotos-preboda .section-title {
  font-size: clamp(2.35rem, 3vw, 3rem);
  line-height: 1.18;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.title-line {
  display: block;
}

#fotos-preboda .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

#fotos-preboda .section-intro {
  max-width: 34ch;
  margin: 0 auto 2rem;
  line-height: 1.9;
}

.upload-box {
  margin-top: 2rem;
}

.upload-button.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 1rem 2.1rem;
}

.upload-note {
  max-width: 34ch;
  margin: 1.1rem auto 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-texto);
  opacity: 0.7;
}

.polaroid-card.is-dynamic {
  position: relative;
  background: #fff;
  padding: 10px 10px 28px;
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.polaroid-card.is-dynamic img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* #endregion */

/* #region 15. GALERÍA BODA + RECUERDOS */
#galeria-boda,
#recuerdos-boda {
  position: relative;
}

/* BODA: claro */
body[data-state="boda"] #galeria-boda {
  background:
    linear-gradient(
      rgba(248, 247, 244, 0.58),
      rgba(248, 247, 244, 0.72)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

/* POSTBODA: verde */
body[data-state="postboda"] #galeria-boda {
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-size: auto, 920px 620px, 440px;
}

#galeria-boda .container {
  max-width: 1120px;
  text-align: center;
}

body[data-state="boda"] #galeria-boda .section-kicker {
  color: var(--color-secundario);
}

body[data-state="boda"] #galeria-boda .section-title {
  margin-bottom: 1rem;
  color: var(--color-principal);
}

body[data-state="boda"] #galeria-boda .section-intro {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--color-secundario);
}

body[data-state="postboda"] #galeria-boda .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

body[data-state="postboda"] #galeria-boda .section-title {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

body[data-state="postboda"] #galeria-boda .section-intro {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.78);
}

.upload-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-form input[type="file"] {
  width: 100%;
  max-width: 520px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(94, 107, 90, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

body[data-state="boda"] #galeria-boda .btn-primary {
  min-width: 320px;
  color: var(--color-principal);
  border-color: var(--color-principal);
}

body[data-state="postboda"] #galeria-boda .btn-primary {
  min-width: 320px;
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.55);
}

body[data-state="boda"] #galeria-boda .upload-note {
  max-width: 34ch;
  margin: 1.1rem auto 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-texto);
  opacity: 0.7;
  text-align: center;
}

body[data-state="postboda"] #galeria-boda .upload-note {
  max-width: 34ch;
  margin: 1.1rem auto 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

body[data-state="boda"] #galeria-boda .fallback-note {
  max-width: 42ch;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
  text-align: center;
  color: var(--color-texto);
}

body[data-state="boda"] #galeria-boda .fallback-note a {
  color: var(--color-principal);
  text-decoration: underline;
}

body[data-state="postboda"] #galeria-boda .fallback-note {
  max-width: 42ch;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.85;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

body[data-state="postboda"] #galeria-boda .fallback-note a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
}

/* BODA: verde */
body[data-state="boda"] #recuerdos-boda {
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.82),
      rgba(126, 134, 99, 0.82)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat, no-repeat, repeat;
  background-position: center, center, center;
  background-size: auto, 920px 620px, 440px;
}

/* POSTBODA: claro */
body[data-state="postboda"] #recuerdos-boda {
  background:
    linear-gradient(
      rgba(248, 247, 244, 0.58),
      rgba(248, 247, 244, 0.72)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

body[data-state="boda"] #recuerdos-boda .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

body[data-state="boda"] #recuerdos-boda .section-title {
  color: rgba(255, 255, 255, 0.96);
}

body[data-state="boda"] #recuerdos-boda .section-intro {
  color: rgba(255, 255, 255, 0.78);
}

body[data-state="postboda"] #recuerdos-boda .section-kicker {
  color: var(--color-secundario);
}

body[data-state="postboda"] #recuerdos-boda .section-title {
  color: var(--color-principal);
}

body[data-state="postboda"] #recuerdos-boda .section-intro {
  color: var(--color-secundario);
}

#recuerdos-boda .galeria-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 210px));
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem 0 1rem;
  margin-top: 0;
}

#recuerdos-boda .galeria-grid:empty {
  min-height: 220px;
}

#recuerdos-boda .galeria-grid::before,
#recuerdos-boda .galeria-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(92%, 760px);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    transparent,
    rgba(94, 107, 90, 0.20),
    transparent
  );
  pointer-events: none;
}

#recuerdos-boda .galeria-grid::before {
  top: 24px;
}

#recuerdos-boda .galeria-grid::after {
  top: 50%;
  margin-top: 16px;
}

#recuerdos-boda .polaroid-card {
  position: relative;
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
  background: #f7f4ee;
  padding: 0.7rem 0.7rem 1.4rem;
  border-radius: 4px;
  box-shadow:
    0 16px 36px rgba(50, 57, 40, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#recuerdos-boda .polaroid-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d8c7a0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
}

#recuerdos-boda .polaroid-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

#recuerdos-boda .polaroid-card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow:
    0 24px 44px rgba(50, 57, 40, 0.10),
    0 8px 16px rgba(0, 0, 0, 0.05);
}

#recuerdos-boda .polaroid-footer {
  margin-top: 1.05rem;
  text-align: center;
}

#recuerdos-boda .polaroid-monogram {
  position: relative;
  display: inline-block;
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--color-principal);
  opacity: 0.92;
  z-index: 1;
}

#recuerdos-boda .polaroid-monogram::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 22px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    to right,
    transparent,
    #d5c08c,
    transparent
  );
  z-index: 0;
}
/* #endregion */

/* #region 16. CIERRES */
#cierre-preboda,
#cierre-boda,
#cierre-postboda {
  position: relative;
}

#cierre-preboda {
  background:
    linear-gradient(
      rgba(126, 134, 99, 0.26),
      rgba(126, 134, 99, 0.34)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

/* boda: claro */
body[data-state="boda"] #cierre-boda {
  background:
    linear-gradient(
      rgba(248, 247, 244, 0.58),
      rgba(248, 247, 244, 0.72)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

/* postboda: verde suave */
body[data-state="postboda"] #cierre-postboda {
  background:
    linear-gradient(
      rgba(126, 134, 99, 0.26),
      rgba(126, 134, 99, 0.34)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
}

.cierre-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cierre-content .section-title {
  margin-bottom: 1.2rem;
  text-align: center;
}

.cierre-content .section-intro {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.9;
}

#cierre-postboda .cierre-dog {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

#cierre-postboda .cierre-dog img {
  width: min(26vw, 170px);
  max-width: 170px;
  min-width: 110px;
  height: auto;
  opacity: 0.95;
}
/* #endregion */

/* #region 17. FOOTER */
#footer {
  padding: 2.4rem 1.5rem 3rem;
  background:
    linear-gradient(
      rgba(126, 134, 99, 0.24),
      rgba(126, 134, 99, 0.30)
    ),
    url("../img/CABECERA/paper.jpg");
  background-repeat: repeat;
  background-position: center;
  background-size: auto, 440px;
  border-top: 1px solid rgba(94, 107, 90, 0.08);
  position: relative;
}

.footer-content {
  text-align: center;
}

.footer-names {
  font-family: var(--font-titulo);
  font-size: 1.55rem;
  color: var(--color-principal);
  margin-bottom: 0.4rem;
}

.footer-date {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}
/* #endregion */

/* #region 18. WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 300;

  width: 144px;
  height: 144px;
  padding: 0;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: transparent;
  box-shadow:
    0 12px 28px rgba(50, 57, 40, 0.18),
    0 3px 8px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(50, 57, 40, 0.22),
    0 5px 12px rgba(0, 0, 0, 0.10);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* #endregion */




/* #region 19. RESPONSIVE */
@media (max-width: 1024px) {
  .hero-bg-floral {
    background-image: url("../img/CABECERA/hero-mobile.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .hero-bg-paper {
    background-size: 1200px;
    opacity: 0.6;
  }

  .hero-names {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .page-reveal,
  .site-paper {
    background-size: 650px;
  }
}

@media (max-width: 900px) {
  .lugar-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .lugar-texto {
    max-width: 100%;
  }

  .lugar-section .section-kicker,
  .lugar-section .section-title,
  .lugar-section .event-place {
    text-align: center;
  }

  .lugar-section .section-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .lugar-section .event-place::after {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(
      to right,
      transparent,
      var(--color-linea),
      transparent
    );
  }

  .lugar-description {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .lugar-actions {
    text-align: center;
  }

  .transport-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 1.6rem;
  }

  .rsvp-layout {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 720px;
  }

  .rsvp-illustration {
    order: -1;
    flex: 0 0 auto;
    width: 100%;
    padding-top: 0;
    margin: 0 auto;
  }

  .rsvp-illustration img {
    width: min(42vw, 220px);
    max-width: 220px;
    min-width: 160px;
    margin: 0 auto;
  }

  .rsvp-content {
    width: 100%;
    max-width: 640px;
    text-align: center;
  }

  #rsvp .section-title,
  #rsvp .section-intro {
    margin-left: auto;
    margin-right: auto;
  }

  #rsvp .section-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  #rsvp .rsvp-form {
    text-align: left;
  }

  .countdown-day-card {
    flex-direction: column;
    gap: 1.8rem;
    text-align: center;
  }

  .countdown-day-copy {
    text-align: center;
  }

  .countdown-day-copy .section-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .countdown-day-dog {
    width: min(46vw, 220px);
    min-width: 140px;
  }

  .fotos-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .fotos-wall {
    grid-template-columns: repeat(2, minmax(140px, 180px));
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .fotos-upload-side {
    max-width: 100%;
  }

  #recuerdos-boda .galeria-grid {
    grid-template-columns: repeat(2, minmax(150px, 190px));
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1.5rem 1rem;
  }

  .hero-bg-floral {
    background-image: url("../img/CABECERA/hero-mobile.png");
    background-repeat: no-repeat;
    background-position: center 20%;
    background-size: cover;
  }

  .hero-bg-paper {
    background-size: 520px;
    opacity: 0.6;
  }

  .hero-content {
    max-width: 90%;
    padding: 1.5rem 1rem;
  }

  .hero-names {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: 0.03em;
    white-space: normal;
    line-height: 1.1;
  }

  .hero-date {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .hero-button,
  .btn-primary {
    font-size: 0.78rem;
    padding: 0.85rem 1.3rem;
  }

  .page-reveal {
    background-size: 520px;
  }

  .site-paper {
    background-size: 520px;
    opacity: 0.2;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-block {
    padding: 5rem 1.25rem;
  }

  .countdown-item {
    padding: 1.4rem 0.8rem;
  }

.whatsapp-float {
  width: 124px;
  height: 124px;
  right: 1rem;
  bottom: 1rem;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
}

  #galeria-boda .btn-primary {
    min-width: 240px;
  }
}

@media (max-width: 700px) {
  .admin-photo-actions {
    flex-direction: column;
  }

  .admin-photo-actions .hero-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .transport-column {
    padding: 1.4rem 1.1rem;
  }

  .transport-title {
    font-size: 1.3rem;
  }

  .bus-item {
    font-size: 0.92rem;
  }

  .bus-item img {
    width: 22px;
    height: 22px;
  }

  #rsvp.section-block {
    padding: 3.5rem 1rem;
    min-height: auto;
  }

  .rsvp-layout {
    gap: 1.6rem;
  }

  .rsvp-illustration img {
    width: min(52vw, 200px);
    max-width: 200px;
    min-width: 140px;
  }

  #rsvp .rsvp-form {
    padding: 1.4rem 1.1rem;
  }

  #rsvp .section-title {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .faq-question {
    font-size: 1.15rem;
  }

  #recuerdos-boda .galeria-grid {
    grid-template-columns: repeat(2, minmax(130px, 170px));
    gap: 1rem;
  }
}

@media (max-width: 520px) {
  #fotos-preboda.section-block {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .fotos-wall {
    grid-template-columns: 1fr;
    max-width: 230px;
    gap: 1rem;
  }

  #fotos-preboda .polaroid-card {
    max-width: 230px;
    transform: rotate(0deg) !important;
  }

  #fotos-preboda .section-intro,
  .upload-note {
    max-width: 30ch;
  }

  .upload-button.hero-button {
    min-width: 180px;
    padding: 0.95rem 1.6rem;
  }

  #recuerdos-boda .galeria-grid {
    grid-template-columns: 1fr;
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
  }

  #recuerdos-boda .galeria-grid img {
    transform: rotate(0deg) !important;
  }
}
/* #endregion */
/* =====================================================
   AJUSTE FINAL DEFINITIVO (TONO CLARO UNIFICADO)
   ===================================================== */

/* CLARO EXACTO DEFINIDO POR LOS NOVIOS */
:root {
  --bg-claro:
    linear-gradient(
      rgba(126, 134, 99, 0.18),
      rgba(126, 134, 99, 0.24)
    ),
    url("../img/CABECERA/paper.jpg");
}

/* ===== SECCIONES CLARAS ===== */

#lugar-preboda,
#horario-preboda,
#cierre-preboda,
#footer,
body[data-state="boda"] #lugar-boda,
body[data-state="boda"] #horario-boda,
body[data-state="boda"] #galeria-boda,
body[data-state="boda"] #cierre-boda,
body[data-state="postboda"] #recuerdos-boda {
  background: var(--bg-claro) !important;
  background-repeat: repeat !important;
  background-position: center !important;
  background-size: auto, 440px !important;
}

/* ===== SECCIONES VERDES (NO TOCAR TONO) ===== */

body[data-state="boda"] #wedding-day,
body[data-state="boda"] #desplazamiento-boda,
body[data-state="boda"] #faq-boda,
body[data-state="boda"] #recuerdos-boda,
body[data-state="postboda"] #galeria-boda {
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg") !important;

  background-repeat: repeat, no-repeat, repeat !important;
  background-position: center, center, center !important;
  background-size: auto, 920px 620px, 440px !important;
}

/* ===== CIERRE POSTBODA SUAVE ===== */

body[data-state="postboda"] #cierre-postboda {
  background-image:
    linear-gradient(
      rgba(126, 134, 99, 0.78),
      rgba(126, 134, 99, 0.78)
    ),
    radial-gradient(
      ellipse at 50% 38%,
      rgba(213, 192, 140, 0.10) 0%,
      rgba(213, 192, 140, 0.05) 22%,
      rgba(213, 192, 140, 0.02) 40%,
      transparent 32%
    ),
    url("../img/CABECERA/paper.jpg") !important;

  background-repeat: repeat, no-repeat, repeat !important;
  background-position: center, center, center !important;
  background-size: auto, 920px 620px, 440px !important;
}
/* =====================================================
   AJUSTE DE TEXTO EN CIERRE POSTBODA
   ===================================================== */

body[data-state="postboda"] #cierre-postboda .section-kicker {
  color: rgba(255, 255, 255, 0.72) !important;
  letter-spacing: 0.16em !important;
}

body[data-state="postboda"] #cierre-postboda .section-title {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

body[data-state="postboda"] #cierre-postboda .section-title::after {
  background: linear-gradient(
    to right,
    transparent,
    rgba(213, 192, 140, 0.78),
    transparent
  ) !important;
  opacity: 1 !important;
}

body[data-state="postboda"] #cierre-postboda .section-intro {
  color: rgba(255, 255, 255, 0.52) !important;
  opacity: 1 !important;
}

body[data-state="postboda"] #cierre-postboda .cierre-content {
  text-align: center;
}

body[data-state="postboda"] #cierre-postboda .cierre-dog img {
  opacity: 0.8 !important;
}







/* =====================================================
   HERO · ENTRADA ELEGANTE
===================================================== */

.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* delays en cascada */
.hero-names {
  animation-delay: 0.2s;
}

.hero-date {
  animation-delay: 0.4s;
}

.hero-button {
  animation-delay: 0.6s;
}

/* monograma sutil */
.hero-names::before {
  content: "R · J";
  display: block;
  margin-bottom: 1rem;

  font-family: var(--font-titulo);
  font-size: 0.9rem;
  letter-spacing: 0.4em;

  color: rgba(94, 107, 90, 0.45);

  opacity: 0;
  transform: translateY(-10px);

  animation: heroMonogram 1.2s ease forwards;
  animation-delay: 0.05s;
}

/* animaciones */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroMonogram {
  from {
    opacity: 0;
    transform: translateY(-10px);
    letter-spacing: 0.55em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.4em;
  }
}

/* accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-names::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


