/* ==========================================================================
   ESTILOS "DARK ROYAL FANTASY" — XV AÑOS DANIELA SOPHIA MOROTTI PULIDO
   100% Responsivo (Móvil, Tablet y Desktop) • Inspirado en Referencia Oficial
   Paleta:
   - Borgoña Profundo Mate (Portada): #340811 / #28050C / #1D0308 (Fondo: #171717)
   - Dorado Champán / Antiguo:        #C8A97E / #D4B88C / #B69364
   - Marfil Cálido (Interior):        #F5ECD7 / #EFE3C6
   - Texto Borgoña Interior:          #3B0A14
   - Verde Bosque (Hojitas sutiles):  #233D29
   ========================================================================== */

:root {
  --ivory: #F5ECD7;
  --ivory-soft: #F9F3E3;
  --ivory-aged: #EAE0C8;
  --champagne: #C8A97E;
  --gold-light: #D4B88C;
  --gold-antique: #B69364;
  --gold-deep: #8E6E42;
  --burgundy: #520E1B;
  --burgundy-cover: #330710;
  --burgundy-deep: #26050B;
  --garnet: #3B0A14;
  --dark-backdrop: #171717;
  --forest-green: #233D29;
  --ink-dark: #380913;
  --ink-muted: #5E2430;

  --font-sc: 'Cormorant SC', Georgia, serif;
  --font-display: 'Cinzel', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', Georgia, serif;

  --shadow-soft: 0 18px 46px rgba(10, 2, 4, 0.55);
  --shadow-card: 0 8px 24px rgba(56, 9, 19, 0.08);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--dark-backdrop);
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 14px, 18.5px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #171717;
  background-image:
    radial-gradient(circle at 50% 25%, rgba(52, 8, 17, 0.72) 0%, rgba(23, 23, 23, 0.98) 78%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 6px);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

body.book-locked {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

img, svg {
  max-width: 100%;
}

/* Lienzo sutil de polvo dorado antiguo */
#goldParticles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

/* ==========================================================================
   1. PORTADA DEL LIBRO ANTIGUO (DARK ROYAL FANTASY — SIN SOMBRAS FUERTES)
   ========================================================================== */

.book-stage-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
  background:
    radial-gradient(circle at 50% 45%, #2A060E 0%, #171717 78%);
  perspective: 2200px;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s ease;
}

.book-stage-overlay.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.royal-book-3d {
  position: relative;
  width: min(90vw, 435px);
  height: min(80dvh, 635px);
  min-height: 440px;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  cursor: pointer;
}

@media (hover: hover) {
  .royal-book-3d:hover {
    transform: translateY(-4px) rotateY(-2.5deg);
  }
}

.royal-book-3d.opening {
  transform: scale(1.03) translateX(12%);
}

/* Lomo discreto y elegante que combina con la portada */
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, #1B0307 0%, #2E070F 55%, #22040A 100%);
  border-radius: 5px 0 0 5px;
  border-right: 1px solid rgba(200, 169, 126, 0.28);
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2.5rem 0;
}

.spine-ridge {
  height: 1.5px;
  width: 100%;
  background: rgba(200, 169, 126, 0.42);
}

/* Hojas interiores visibles al abrirse */
.book-pages-block {
  position: absolute;
  inset: 8px 5px 8px 16px;
  background:
    repeating-linear-gradient(
      90deg,
      #F5ECD7 0px,
      #EAE0C8 2px,
      #DFD1B3 3px
    );
  border-radius: 0 6px 6px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.first-page-preview {
  border: 1px solid rgba(182, 147, 100, 0.45);
  padding: 1.5rem 1rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--ivory);
  color: var(--garnet);
}

.first-page-preview .script-preview {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4.5vw, 2.2rem);
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}

.first-page-preview .title-preview {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  letter-spacing: 0.14em;
  color: var(--garnet);
}

/* Cubierta frontal en Borgoña Profundo con textura sutil de papel/libro antiguo */
.book-cover-front {
  position: absolute;
  inset: 0 0 0 16px;
  background-color: #310710;
  background-image:
    radial-gradient(ellipse at 50% 42%, #3D0A15 0%, #2C060E 62%, #21040A 100%),
    repeating-linear-gradient(0deg, rgba(245, 236, 215, 0.016) 0px, rgba(245, 236, 215, 0.016) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0px, rgba(0, 0, 0, 0.025) 1px, transparent 1px, transparent 4px);
  border-radius: 0 7px 7px 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 10;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  padding: clamp(0.85rem, 2.4vw, 1.15rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.royal-book-3d.opening .book-cover-front {
  transform: rotateY(-160deg);
}

/* Marco Doble de Líneas Doradas Finitas (Fiel a la Referencia) */
.cover-gold-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1.2px solid var(--champagne);
  outline: 0.85px solid rgba(200, 169, 126, 0.72);
  outline-offset: -6px;
  padding: clamp(2.1rem, 4.8dvh, 3.1rem) clamp(1rem, 3vw, 1.65rem) clamp(1.4rem, 3.4dvh, 2.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

/* Ramilletes florales de las 4 esquinas de la portada (más pequeños y delicados para despejar el texto) */
.corner-floral {
  position: absolute;
  width: clamp(34px, 7.8vw, 44px);
  height: clamp(34px, 7.8vw, 44px);
  pointer-events: none;
  z-index: 2;
}
.corner-floral.tl { top: 2px; left: 2px; }
.corner-floral.tr { top: 2px; right: 2px; transform: scaleX(-1); }
.corner-floral.bl { bottom: 2px; left: 2px; transform: scaleY(-1); }
.corner-floral.br { bottom: 2px; right: 2px; transform: scale(-1, -1); }

/* 5. Frase Superior: Cormorant SC, mayúsculas y letras separadas */
.cover-top-block {
  margin-top: 0.2rem;
}

.cover-header-tag {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: clamp(0.64rem, 1.75vw, 0.78rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: none;
}

/* 6. Jerarquía Tipográfica Principal de la Portada (Sin sombras fuertes) */
.cover-main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 0.2rem 0;
}

/* "Mis Quince Años" — Great Vibes en dorado champán */
.cover-script-xv {
  font-family: var(--font-script);
  font-size: clamp(2.35rem, 6.6vw, 3.15rem);
  color: var(--gold-light);
  font-weight: 400;
  line-height: 1.08;
  text-shadow: none;
  margin-bottom: 0.1rem;
}

/* "DANIELA SOPHIA" — Cinzel Regular, mayúsculas, con bastante presencia */
.cover-quince-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.42rem, 4.7vw, 2.05rem);
  color: var(--gold-light);
  letter-spacing: 0.1em;
  line-height: 1.18;
  text-transform: uppercase;
  text-shadow: none;
}

/* "MOROTTI PULIDO" — Cormorant Garamond Regular, más pequeña y espaciada */
.cover-quince-lastname {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.76rem, 2.1vw, 0.94rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-top: 0.2rem;
  text-shadow: none;
}

/* 7. Sello Ovalado Personalizado DM con Corona y Letras Entrelazadas */
.wax-seal-wrapper {
  position: relative;
  margin: 0.15rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.oval-seal-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: clamp(118px, 27vw, 152px);
  height: clamp(134px, 31vw, 172px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, filter 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.oval-seal-btn:hover {
  transform: scale(1.045);
  filter: brightness(1.08);
}

.oval-crest-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fecha inferior "28 · NOVIEMBRE · 2026" en Cormorant SC Medium */
.cover-date-block {
  width: 84%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cover-date-ornament {
  width: 100%;
  height: 20px;
  display: block;
}

.cover-date-footer {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: clamp(0.76rem, 2.1vw, 0.92rem);
  letter-spacing: 0.26em;
  color: var(--gold-light);
  text-transform: uppercase;
  padding: 0.1rem 0 0.35rem;
  text-shadow: none;
}

.cover-date-bottom-line {
  width: 94%;
  height: 0.9px;
  background: rgba(200, 169, 126, 0.78);
}

.open-instruction {
  margin-top: clamp(0.85rem, 2dvh, 1.25rem);
  font-family: var(--font-sc);
  font-size: clamp(0.75rem, 2vw, 0.88rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  padding: 0 0.5rem;
  opacity: 0.88;
}

/* ==========================================================================
   2. CONTROLES FLOTANTES (MÚSICA, COMPARTIR Y LISTA DE CONFIRMADOS)
   ========================================================================== */

.floating-controls {
  position: fixed;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.royal-fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--burgundy-cover);
  border: 1.2px solid var(--champagne);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.royal-fab:hover {
  transform: translateY(-2px);
  background: var(--burgundy);
}

.royal-fab.playing svg {
  animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   3. PÁGINAS INTERIORES EN MARFIL CÁLIDO (COHERENTES CON LA PORTADA)
   ========================================================================== */

.storybook-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3.5vw, 2.8rem) clamp(0.75rem, 3vw, 1.75rem) 5.5rem;
}

.parchment-sheet {
  position: relative;
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 50% 25%, #FAF4E4 0%, #F5ECD7 68%, #EAE0C8 100%),
    repeating-linear-gradient(0deg, rgba(59, 10, 20, 0.01) 0px, rgba(59, 10, 20, 0.01) 1px, transparent 1px, transparent 4px);
  border-radius: 6px;
  box-shadow:
    var(--shadow-soft),
    0 0 0 5px var(--burgundy-cover),
    0 0 0 6.2px var(--champagne);
  margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
  padding: clamp(2.4rem, 5.8vw, 4.3rem) clamp(1.35rem, 5vw, 3.8rem);
  overflow: hidden;
}

/* Marco doble fino interior coherente con la portada */
.parchment-sheet::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.8vw, 16px);
  border: 1.1px solid rgba(182, 147, 100, 0.65);
  outline: 0.8px solid rgba(182, 147, 100, 0.42);
  outline-offset: -5px;
  pointer-events: none;
}

/* Ramilletes florales sutiles en las esquinas de las páginas interiores */
.page-corner-floral {
  position: absolute;
  width: clamp(56px, 11vw, 78px);
  height: clamp(56px, 11vw, 78px);
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}
.page-corner-floral.tl { top: clamp(11px, 1.9vw, 17px); left: clamp(11px, 1.9vw, 17px); }
.page-corner-floral.tr { top: clamp(11px, 1.9vw, 17px); right: clamp(11px, 1.9vw, 17px); transform: scaleX(-1); }
.page-corner-floral.bl { bottom: clamp(11px, 1.9vw, 17px); left: clamp(11px, 1.9vw, 17px); transform: scaleY(-1); }
.page-corner-floral.br { bottom: clamp(11px, 1.9vw, 17px); right: clamp(11px, 1.9vw, 17px); transform: scale(-1, -1); }

/* Animaciones de revelado al hacer Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Encabezados de cada capítulo con mayor aire y separación */
.chapter-header {
  text-align: center;
  margin-bottom: clamp(1.8rem, 4vw, 2.7rem);
}

.chapter-numeral {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: clamp(0.74rem, 1.7vw, 0.86rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: block;
  margin-bottom: 0.55rem;
}

.chapter-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.42rem, 3.6vw, 2.25rem);
  color: var(--garnet);
  letter-spacing: 0.06em;
  line-height: 1.28;
  margin-bottom: 0.35rem;
  text-shadow: none;
}

.chapter-script-sub {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  color: var(--burgundy);
  margin-top: 0.1rem;
  font-weight: 400;
  line-height: 1.25;
}

.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem auto;
  max-width: min(80vw, 310px);
}

.ornamental-divider svg {
  width: 100%;
  height: 26px;
}

/* ==========================================================================
   4. CAPÍTULO I: PORTADA INTERIOR Y PRÓLOGO (LETRA CAPITAL INTEGRADA)
   ========================================================================== */

.hero-spread {
  text-align: center;
  padding-top: 0.35rem;
}

.hero-over-title {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: clamp(0.76rem, 1.8vw, 0.9rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.45rem;
}

.hero-script-xv {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5.5vw, 3.1rem);
  color: var(--burgundy);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.hero-quince-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5.2vw, 3rem);
  color: var(--garnet);
  letter-spacing: 0.08em;
  margin: 0.25rem 0 0.3rem;
  line-height: 1.18;
  text-shadow: none;
}

.hero-quince-surnames {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.88rem, 2.2vw, 1.15rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.35rem;
}

/* Medallón de retrato principal */
.hero-portrait-frame {
  position: relative;
  width: min(74vw, 295px);
  aspect-ratio: 3 / 3.85;
  margin: 1.5rem auto 2.2rem;
  padding: 8px;
  border-radius: 165px 165px 16px 16px;
  background: linear-gradient(145deg, var(--gold-light), var(--champagne), var(--gold-deep));
  box-shadow: 0 14px 34px rgba(45, 7, 16, 0.22);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 155px 155px 11px 11px;
  border: 1.5px solid var(--burgundy-cover);
  display: block;
}

.prologue-box {
  max-width: 660px;
  margin: 2rem auto 0;
  text-align: center;
}

.prologue-epigraph {
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.4rem);
  color: var(--burgundy);
  margin: 0.85rem 0 1.65rem;
  line-height: 1.65;
  font-weight: 600;
}

.prologue-text {
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
}

.prologue-text p {
  font-size: clamp(1.3rem, 2.5vw, 1.4rem);
  line-height: 1.88;
  color: var(--ink-dark);
  margin-bottom: 1.55rem;
}

/* 9. Letra capital en rojo borgoña y tipografía diferente, más pegada e integrada al texto */
.prologue-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 2.85rem);
  float: left;
  line-height: 0.82;
  padding-right: 0.11rem;
  padding-top: 0.08rem;
  margin-right: 0.02rem;
  color: #6B1223;
  font-weight: 600;
}

.prologue-signature {
  font-family: var(--font-script);
  font-size: clamp(1.85rem, 4.2vw, 2.3rem);
  color: var(--burgundy);
  margin-top: 1.6rem;
  text-align: center;
}

/* ==========================================================================
   5. CAPÍTULO II: FECHA REAL Y CUENTA REGRESIVA
   ========================================================================== */

.date-royal-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 3.5vw, 2.2rem);
  margin: 1.5rem auto 2.2rem;
  padding: clamp(0.95rem, 2.5vw, 1.25rem) clamp(0.85rem, 3vw, 1.8rem);
  border-top: 1px solid rgba(182, 147, 100, 0.65);
  border-bottom: 1px solid rgba(182, 147, 100, 0.65);
  max-width: 600px;
}

.date-side {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: clamp(0.88rem, 2.2vw, 1.06rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.date-center-day {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 6.2vw, 3.8rem);
  color: var(--garnet);
  line-height: 1;
  padding: 0 clamp(0.85rem, 2.5vw, 1.35rem);
  border-left: 1px solid rgba(182, 147, 100, 0.55);
  border-right: 1px solid rgba(182, 147, 100, 0.55);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.55rem, 2vw, 1.25rem);
  max-width: 650px;
  margin: 0 auto 2.1rem;
}

.countdown-card {
  background: var(--burgundy-cover);
  color: var(--ivory);
  border: 1.2px solid var(--champagne);
  border-radius: 6px;
  padding: clamp(0.85rem, 2.4vw, 1.2rem) 0.35rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(38, 5, 11, 0.18);
}

.countdown-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  color: var(--gold-light);
  line-height: 1.1;
  display: block;
}

.countdown-label {
  font-family: var(--font-sc);
  font-size: clamp(0.58rem, 1.5vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-top: 0.3rem;
  display: block;
}

.calendar-actions {
  text-align: center;
  margin-top: 1.3rem;
}

/* Botones Reales */
.btn-royal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sc);
  font-size: clamp(0.76rem, 1.8vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  color: var(--gold-light);
  background: var(--burgundy-cover);
  border: 1.2px solid var(--champagne);
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(38, 5, 11, 0.22);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  max-width: 100%;
}

.btn-royal svg {
  flex-shrink: 0;
}

.btn-royal:hover {
  transform: translateY(-2px);
  background: var(--burgundy);
}

.btn-royal-outline {
  background: transparent;
  color: var(--garnet);
  border: 1.2px solid var(--burgundy);
  box-shadow: none;
}

.btn-royal-outline:hover {
  background: var(--burgundy-cover);
  color: var(--gold-light);
}

/* ==========================================================================
   6. CAPÍTULO III: COORDENADAS, VALET PARKING E ITINERARIO REAL
   ========================================================================== */

.venue-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.35rem, 3.2vw, 2.1rem);
  margin-top: 1.4rem;
  align-items: stretch;
}

.royal-card {
  background: rgba(250, 244, 228, 0.78);
  border: 1px solid rgba(182, 147, 100, 0.55);
  border-radius: 6px;
  padding: clamp(1.5rem, 3.5vw, 2.1rem) clamp(1.15rem, 3vw, 1.65rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.card-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(51, 7, 16, 0.06);
  border: 1px solid rgba(182, 147, 100, 0.65);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.royal-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.42rem);
  color: var(--garnet);
  margin-bottom: 0.45rem;
}

.venue-building {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.venue-reference-box {
  background: rgba(200, 169, 126, 0.18);
  border-left: 2.5px solid var(--burgundy);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 1.02rem;
  color: var(--ink-dark);
  text-align: left;
  border-radius: 0 5px 5px 0;
  line-height: 1.6;
}

.valet-parking-box {
  background: rgba(35, 61, 41, 0.07);
  border: 1px solid rgba(182, 147, 100, 0.55);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.valet-parking-box strong {
  display: block;
  font-family: var(--font-sc);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 0.3rem;
}

.valet-parking-box p {
  font-size: 1.02rem;
  color: var(--ink-dark);
  line-height: 1.55;
}

/* Línea de Tiempo de la Velada */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 1.1rem 0 1.4rem;
  text-align: left;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  background: rgba(245, 236, 215, 0.9);
  border: 1px solid rgba(182, 147, 100, 0.5);
  border-radius: 6px;
}

.timeline-hour {
  font-family: var(--font-sc);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: var(--burgundy-cover);
  padding: 0.48rem 0.8rem;
  border-radius: 5px;
  border: 1px solid var(--champagne);
  min-width: 108px;
  text-align: center;
  flex-shrink: 0;
}

.timeline-info strong {
  display: block;
  font-family: var(--font-sc);
  font-size: 0.92rem;
  color: var(--garnet);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.timeline-info span {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.5;
  display: block;
}

/* ==========================================================================
   7. CAPÍTULO IV: CARRUSEL HORIZONTAL INFINITO DE FOTOGRAFÍAS
   ========================================================================== */

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.filter-pill {
  font-family: var(--font-sc);
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.5rem 1.05rem;
  border-radius: 40px;
  border: 1px solid rgba(182, 147, 100, 0.65);
  background: rgba(250, 244, 228, 0.75);
  color: var(--garnet);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--burgundy-cover);
  color: var(--gold-light);
  border-color: var(--champagne);
}

.royal-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0.5rem 0 0.85rem;
}

.royal-carousel-viewport {
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  cursor: grab;
}

.royal-carousel-viewport:active {
  cursor: grabbing;
}

.royal-carousel-track {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: max-content;
  will-change: transform;
}

.carousel-slide-card {
  position: relative;
  width: clamp(210px, 28vw, 275px);
  height: clamp(265px, 35vw, 345px);
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--champagne);
  outline: 1px solid rgba(51, 7, 16, 0.22);
  outline-offset: -5px;
  background: #E5D7B8;
  box-shadow: 0 10px 24px rgba(38, 5, 11, 0.16);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) {
  .carousel-slide-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(38, 5, 11, 0.28);
  }
  .carousel-slide-card:hover img {
    transform: scale(1.05);
  }
}

.carousel-slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
  pointer-events: none;
}

.carousel-slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(38, 5, 11, 0.82) 100%);
  padding: 1.2rem 0.75rem 0.55rem;
  color: var(--gold-light);
  font-family: var(--font-sc);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-step-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(44, 6, 14, 0.86);
  color: var(--gold-light);
  border: 1px solid var(--champagne);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-step-btn:hover {
  background: var(--burgundy);
  transform: translateY(-50%) scale(1.06);
}

.carousel-step-btn.prev { left: 6px; }
.carousel-step-btn.next { right: 6px; }

.carousel-hint-text {
  text-align: center;
  font-style: italic;
  font-size: 0.96rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   8. CAPÍTULO V: CÓDIGO DE VESTIMENTA Y LLUVIA DE SOBRES
   ========================================================================== */

.etiquette-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.35rem, 3.2vw, 2rem);
  align-items: stretch;
}

.dresscode-list {
  list-style: none;
  margin: 1rem 0 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dresscode-list li {
  padding: 0.75rem 1rem;
  background: rgba(245, 236, 215, 0.88);
  border: 1px solid rgba(182, 147, 100, 0.5);
  border-radius: 6px;
  font-size: 1.05rem;
}

.reserved-colors-panel {
  margin-top: 0.9rem;
  padding: 1.1rem;
  border-radius: 6px;
  background: rgba(51, 7, 16, 0.05);
  border: 1px dashed rgba(182, 147, 100, 0.75);
}

.reserved-colors-title {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.45rem;
}

.swatches-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0.9rem 0 0.4rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--ivory);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(182, 147, 100, 0.65);
}

.envelope-rain-card {
  background: linear-gradient(165deg, rgba(250, 244, 228, 0.92) 0%, rgba(236, 224, 196, 0.85) 100%);
  border: 1.2px solid var(--champagne);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==========================================================================
   9. CAPÍTULO VI: CONFIRMACIÓN DE ASISTENCIA + EPÍLOGO + SELLO FINAL DM
   ========================================================================== */

.rsvp-intro-paragraph {
  max-width: 620px;
  margin: 0.5rem auto 1.35rem;
  font-size: clamp(1.08rem, 2.1vw, 1.2rem);
  line-height: 1.78;
  color: var(--ink-dark);
}

.rsvp-deadline-badge {
  display: none;
  margin: 0 auto 1.5rem;
  padding: 0.48rem 1.2rem;
  border-radius: 30px;
  background: rgba(51, 7, 16, 0.08);
  border: 1px solid rgba(182, 147, 100, 0.65);
  color: var(--burgundy);
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-sc);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garnet);
  margin-bottom: 0.42rem;
  font-weight: 600;
}

.royal-input,
.royal-select,
.royal-textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: var(--font-body);
  font-size: max(16px, 1.06rem);
  color: var(--ink-dark);
  background: rgba(255, 252, 244, 0.94);
  border: 1.2px solid rgba(182, 147, 100, 0.65);
  border-radius: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.royal-input:focus,
.royal-select:focus,
.royal-textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(82, 14, 27, 0.12);
}

.rsvp-status-msg {
  padding: 1rem 1.15rem;
  border-radius: 6px;
  background: rgba(82, 14, 27, 0.09);
  border: 1px solid var(--burgundy);
  color: var(--garnet);
  text-align: center;
  font-weight: 600;
  display: none;
}

.rsvp-status-msg.visible {
  display: block;
}

/* Epílogo Emotivo + Sello Ovalado DM al final */
.closing-epilogue-box {
  max-width: 640px;
  margin: 3rem auto 0.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(182, 147, 100, 0.45);
  text-align: center;
}

.closing-paragraphs p {
  font-size: clamp(1.1rem, 2.1vw, 1.24rem);
  line-height: 1.85;
  color: var(--ink-dark);
  margin-bottom: 1.35rem;
}

.closing-crest-wrap {
  margin: 1.6rem auto 0.2rem;
  width: 122px;
  height: 138px;
  background: var(--burgundy-cover);
  border-radius: 70px;
  padding: 0.45rem;
  border: 1px solid var(--champagne);
  box-shadow: 0 8px 22px rgba(38, 5, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-oval-crest {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   10. PIE DE PÁGINA, LIGHTBOX Y PANEL ADMIN
   ========================================================================== */

.royal-footer {
  text-align: center;
  color: var(--gold-light);
  padding: 1rem 1rem 3.5rem;
}

.footer-divider-svg {
  width: min(75vw, 280px);
  height: 22px;
  margin: 0 auto 0.5rem;
  display: block;
}

.footer-date-text {
  font-family: var(--font-sc);
  font-weight: 500;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--champagne);
}

.lightbox-modal,
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(18, 3, 7, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-modal.active,
.admin-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 76dvh;
  object-fit: contain;
  border: 2px solid var(--champagne);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  color: var(--ivory);
  font-family: var(--font-sc);
  font-size: clamp(0.75rem, 1.8vw, 0.88rem);
  letter-spacing: 0.16em;
  margin-top: 0.75rem;
  text-align: center;
}

.lightbox-nav-btn,
.lightbox-close-btn {
  position: absolute;
  background: var(--burgundy-cover);
  color: var(--gold-light);
  border: 1.2px solid var(--champagne);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 5;
}

.lightbox-close-btn { top: -12px; right: 0; }
.lightbox-nav-btn.prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox-nav-btn.next { right: 0; top: 50%; transform: translateY(-50%); }

/* Panel Privado de Confirmaciones */
.admin-panel-box {
  background: var(--ivory);
  color: var(--ink-dark);
  border: 1.5px solid var(--champagne);
  border-radius: 8px;
  width: min(96vw, 860px);
  max-height: 88dvh;
  overflow-y: auto;
  padding: clamp(1.15rem, 3.5vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.admin-stat-card {
  background: var(--burgundy-cover);
  color: var(--ivory);
  padding: 0.8rem 0.4rem;
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--champagne);
}

.admin-stat-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--gold-light);
  display: block;
}

.admin-stat-card span {
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.9rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(182, 147, 100, 0.35);
  text-align: left;
}

.admin-table th {
  font-family: var(--font-sc);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(51, 7, 16, 0.08);
  color: var(--garnet);
}

/* ==========================================================================
   11. MEDIA QUERIES: TABLETS (<= 960px) Y TELÉFONOS MÓVILES (<= 640px)
   ========================================================================== */

@media (max-width: 960px) {
  .venue-layout,
  .etiquette-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 640px) {
  .royal-book-3d {
    width: min(92vw, 355px);
    height: min(76dvh, 540px);
    min-height: 410px;
  }

  .royal-book-3d.opening {
    transform: scale(1.01) translateX(3%);
  }

  .parchment-sheet {
    border-radius: 6px;
    padding: 2.1rem 1.15rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline-hour {
    min-width: unset;
    width: auto;
    font-size: 0.96rem;
    padding: 0.35rem 0.75rem;
  }

  .carousel-slide-card {
    width: 205px;
    height: 265px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .btn-royal {
    width: 100%;
    padding: 0.85rem 1.1rem;
    letter-spacing: 0.12em;
  }

  .floating-controls {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    right: 0.75rem;
    gap: 0.5rem;
  }

  .royal-fab {
    width: 44px;
    height: 44px;
  }

  /* Tabla Admin convertida en tarjetas legibles en móvil */
  .admin-table thead {
    display: none;
  }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    background: rgba(255, 252, 244, 0.8);
    border: 1px solid rgba(182, 147, 100, 0.45);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  .admin-table td {
    border-bottom: 1px dashed rgba(182, 147, 100, 0.3);
    padding: 0.35rem 0;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: right;
  }
  .admin-table td:last-child {
    border-bottom: none;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-family: var(--font-sc);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--burgundy);
    font-weight: 600;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-stats-row {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   12. NUEVOS BLOQUES: GRUPO DE WHATSAPP DE FOTOS Y PALETA EXCLUSIVA (20 COLORES)
   ========================================================================== */

.whatsapp-photos-card {
  margin: 2rem auto 0.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.2rem) clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(165deg, rgba(250, 244, 228, 0.94) 0%, rgba(235, 222, 194, 0.88) 100%);
  border: 1.5px solid var(--champagne);
  outline: 1px solid rgba(82, 14, 27, 0.22);
  outline-offset: -6px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-card);
  max-width: 720px;
}

.wa-photos-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--burgundy-cover);
  border: 1.2px solid var(--champagne);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.whatsapp-photos-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  color: var(--garnet);
  margin-bottom: 0.35rem;
}

.wa-photos-desc {
  font-size: clamp(1.04rem, 2vw, 1.15rem);
  line-height: 1.72;
  color: var(--ink-dark);
  max-width: 580px;
  margin: 0.65rem auto 1.35rem;
}

/* Bloque Destacado: Paleta de Colores Exclusiva para Invitados */
.exclusive-palette-showcase {
  margin-top: 2.2rem;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.1rem, 3.5vw, 2.4rem);
  background:
    radial-gradient(circle at 50% 25%, #FAF4E4 0%, #F1E5CA 100%);
  border: 1.5px solid var(--champagne);
  outline: 1px solid rgba(82, 14, 27, 0.28);
  outline-offset: -6px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(45, 7, 16, 0.14);
}

.exclusive-alert-ribbon {
  display: inline-block;
  background: var(--burgundy-cover);
  color: var(--gold-light);
  border: 1px solid var(--champagne);
  border-radius: 40px;
  padding: 0.48rem 1.25rem;
  font-family: var(--font-sc);
  font-size: clamp(0.7rem, 1.6vw, 0.82rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.palette-sub-heading {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  letter-spacing: 0.28em;
  color: var(--garnet);
  margin: 0.15rem 0 0.75rem;
}

.palette-lead-text {
  max-width: 600px;
  margin: 0 auto 1.65rem;
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.68;
  color: var(--ink-dark);
}

.allowed-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 720px;
  margin: 0 auto 2rem;
}

.allowed-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.allowed-swatch-circle {
  width: clamp(54px, 11vw, 76px);
  height: clamp(54px, 11vw, 76px);
  border-radius: 50%;
  border: 2px solid var(--ivory);
  box-shadow:
    0 0 0 1.5px var(--champagne),
    0 6px 14px rgba(38, 5, 11, 0.18),
    inset 0 2px 6px rgba(255, 255, 255, 0.22);
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 8px 8px;
  transition: transform 0.25s ease;
}

.allowed-swatch-item:hover .allowed-swatch-circle {
  transform: scale(1.08);
}

.allowed-swatch-label {
  font-family: var(--font-sc);
  font-size: clamp(0.6rem, 1.3vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--garnet);
  font-weight: 600;
  line-height: 1.2;
}

.palette-image-preview-wrap {
  max-width: 540px;
  margin: 0.5rem auto 0;
  cursor: pointer;
}

.palette-image-preview-wrap img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid var(--champagne);
  box-shadow: 0 10px 28px rgba(38, 5, 11, 0.22);
  transition: transform 0.3s ease;
  display: block;
}

.palette-image-preview-wrap:hover img {
  transform: scale(1.015);
}

.palette-zoom-hint {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-sc);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
}

@media (max-width: 640px) {
  .allowed-palette-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }
}

@media (max-width: 400px) {
  .allowed-palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   13. ITINERARIO XV 100% RESPONSIVO (DESKTOP, TABLET Y MÓVIL)
   ========================================================================== */

.itinerary-royal-showcase {
  margin-top: clamp(1.6rem, 3.5vw, 2.3rem);
  padding: clamp(1.5rem, 3.8vw, 2.4rem) clamp(1rem, 3.2vw, 2.2rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(250, 244, 228, 0.92) 0%, rgba(241, 229, 202, 0.88) 100%);
  border: 1.5px solid var(--champagne);
  outline: 1px solid rgba(82, 14, 27, 0.24);
  outline-offset: -6px;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.itinerary-header {
  text-align: center;
  margin-bottom: clamp(1.3rem, 3vw, 1.9rem);
}

.itinerary-main-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.32rem, 3vw, 1.75rem);
  color: var(--garnet);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

/* Desktop y Tablet Horizontal (> 720px): Cuadrícula de 2 columnas simétricas */
#itineraryTimelineList.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.05rem 1.25rem;
  margin: 0;
}

#itineraryTimelineList .timeline-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.05rem;
  background: rgba(255, 252, 244, 0.88);
  border: 1px solid rgba(182, 147, 100, 0.58);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(38, 5, 11, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  #itineraryTimelineList .timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(38, 5, 11, 0.12);
  }
}

/* El 7º elemento (impar) queda centrado en la fila inferior en pantallas de 2 columnas */
#itineraryTimelineList .timeline-item.timeline-item-last-centered {
  grid-column: 1 / -1;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}

.timeline-node-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--burgundy-cover);
  border: 1.2px solid var(--champagne);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(38, 5, 11, 0.2);
}

.timeline-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
  flex: 1;
}

#itineraryTimelineList .timeline-hour {
  display: inline-block;
  font-family: var(--font-sc);
  font-size: clamp(0.76rem, 1.5vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--gold-light);
  background: var(--burgundy-cover);
  padding: 0.24rem 0.68rem;
  border-radius: 30px;
  border: 1px solid var(--champagne);
  white-space: nowrap;
  min-width: unset;
  width: auto;
}

#itineraryTimelineList .timeline-info strong {
  font-family: var(--font-sc);
  font-size: clamp(0.92rem, 1.8vw, 1.04rem);
  color: var(--garnet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 0.1rem;
}

#itineraryTimelineList .timeline-info span {
  font-size: clamp(0.92rem, 1.7vw, 0.98rem);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Tablets en vertical y Móviles (<= 720px): Línea de tiempo vertical conectada con hilo dorado */
@media (max-width: 720px) {
  #itineraryTimelineList.timeline-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-left: 0.35rem;
  }

  /* Hilo vertical dorado que conecta los 7 momentos en móviles y tablets verticales */
  #itineraryTimelineList.timeline-list::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 18px;
    bottom: 18px;
    width: 1.5px;
    background: linear-gradient(180deg, transparent 0%, var(--champagne) 8%, var(--champagne) 92%, transparent 100%);
    z-index: 1;
  }

  #itineraryTimelineList .timeline-item,
  #itineraryTimelineList .timeline-item.timeline-item-last-centered {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.78rem 0.9rem;
    background: rgba(255, 252, 244, 0.92);
  }

  .timeline-node-marker {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
}

/* Teléfonos muy pequeños (<= 380px) */
@media (max-width: 380px) {
  .itinerary-royal-showcase {
    padding: 1.25rem 0.75rem;
  }
  #itineraryTimelineList.timeline-list {
    padding-left: 0;
  }
  #itineraryTimelineList.timeline-list::before {
    left: 19px;
  }
  #itineraryTimelineList .timeline-item {
    padding: 0.7rem 0.7rem;
    gap: 0.65rem;
  }
  .timeline-node-marker {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  #itineraryTimelineList .timeline-hour {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }
}

.etiquette-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.2rem);
}
