/* ==========================================================================
   NURINELLI DIGITAL INVITATIONS — Colecciones Editoriales v4.0:
   1. AVORIO  (Marfil, Champán & Oro Italiano — Bodas, Comuniones, Bautizos)
   2. CIPRIA  (Palo de Rosa, Marfil & Oro Rosado — XV Años & Celebraciones)
   3. NOTTE   (Verde Esmeralda Profundo & Oro — Galas, Graduaciones, Bodas de Noche)
   4. LUCE    (Azul Zafiro Luminoso, Blanco Nieve & Plata — Bautizos, Clínicas, Corporativo)
   5. NATALE  (Rojo Vino Profundo, Verde Pino & Oro — Convivios Navideños)
   ========================================================================== */

:root,
[data-theme="avorio"] {
  --hero-bg-top: #EFE6D8;
  --hero-bg-bottom: #DFD1BC;
  --hero-ink: #2B2118;
  --hero-sub-ink: #6A5745;
  --primary-solid: #7A5C38;
  --primary-solid-hover: #5C4326;
  --accent-main: #B89352;
  --accent-light: #8C6A32;
  --accent-dark: #7A5C38;
  --accent-btn-grad: linear-gradient(135deg, #C8A464 0%, #9E7B3E 100%);
  --accent-btn-ink: #FFFFFF;

  --surface-primary: #FBF8F3;
  --surface-secondary: #F3ECE0;
  --surface-card: #FFFFFF;
  --ink-main: #2B2118;
  --ink-muted: #6C5D4F;
  --border-subtle: rgba(184, 147, 82, 0.42);
  --dock-bg: rgba(43, 33, 24, 0.92);
  --overlay-bg-top: #F7F1E7;
  --overlay-bg-bottom: #E6D8C3;
  --overlay-card-bg: rgba(255, 253, 249, 0.86);
  --overlay-ink: #2B2118;
}

[data-theme="cipria"] {
  --hero-bg-top: #7D4450;
  --hero-bg-bottom: #4A232C;
  --hero-ink: #FFFFFF;
  --hero-sub-ink: #F5DCE0;
  --primary-solid: #7A3E4B;
  --primary-solid-hover: #572832;
  --accent-main: #E0B29E;
  --accent-light: #F7DDD0;
  --accent-dark: #8E515E;
  --accent-btn-grad: linear-gradient(135deg, #E8BFA9 0%, #C6937B 100%);
  --accent-btn-ink: #2E1319;

  --surface-primary: #FCF7F7;
  --surface-secondary: #F5E9EA;
  --surface-card: #FFFFFF;
  --ink-main: #2E1B20;
  --ink-muted: #6F545B;
  --border-subtle: rgba(198, 147, 123, 0.45);
  --dock-bg: rgba(54, 24, 31, 0.92);
  --overlay-bg-top: #7D4450;
  --overlay-bg-bottom: #421E26;
  --overlay-card-bg: rgba(24, 10, 14, 0.42);
  --overlay-ink: #FFFFFF;
}

[data-theme="notte"] {
  --hero-bg-top: #143D2E;
  --hero-bg-bottom: #081F17;
  --hero-ink: #FFFFFF;
  --hero-sub-ink: #EED49B;
  --primary-solid: #11382A;
  --primary-solid-hover: #081F17;
  --accent-main: #D4AF61;
  --accent-light: #EED49B;
  --accent-dark: #8A6D34;
  --accent-btn-grad: linear-gradient(135deg, #DFBE74 0%, #B59044 100%);
  --accent-btn-ink: #0E221A;

  --surface-primary: #F7F6F0;
  --surface-secondary: #EAE8DC;
  --surface-card: #FFFFFB;
  --ink-main: #15241E;
  --ink-muted: #4E6159;
  --border-subtle: rgba(212, 175, 97, 0.45);
  --dock-bg: rgba(10, 31, 23, 0.92);
  --overlay-bg-top: #143D2E;
  --overlay-bg-bottom: #081F17;
  --overlay-card-bg: rgba(10, 16, 14, 0.42);
  --overlay-ink: #FFFFFF;
}

[data-theme="luce"] {
  --hero-bg-top: #173B66;
  --hero-bg-bottom: #0C213D;
  --hero-ink: #FFFFFF;
  --hero-sub-ink: #E3ECF7;
  --primary-solid: #143761;
  --primary-solid-hover: #0B203B;
  --accent-main: #A8B8CC;
  --accent-light: #E3ECF7;
  --accent-dark: #4A6484;
  --accent-btn-grad: linear-gradient(135deg, #F4F8FD 0%, #C8D6E6 100%);
  --accent-btn-ink: #0D223D;

  --surface-primary: #F8FAFD;
  --surface-secondary: #EBF1F8;
  --surface-card: #FFFFFF;
  --ink-main: #132236;
  --ink-muted: #52647A;
  --border-subtle: rgba(122, 148, 180, 0.42);
  --dock-bg: rgba(13, 33, 59, 0.92);
  --overlay-bg-top: #173B66;
  --overlay-bg-bottom: #0C213D;
  --overlay-card-bg: rgba(10, 18, 32, 0.42);
  --overlay-ink: #FFFFFF;
}

[data-theme="natale"] {
  --hero-bg-top: #631422;
  --hero-bg-bottom: #380911;
  --hero-ink: #FFFFFF;
  --hero-sub-ink: #E6CC94;
  --primary-solid: #5C1420;
  --primary-solid-hover: #3D0C14;
  --accent-main: #C5A059;
  --accent-light: #E6CC94;
  --accent-dark: #8C6D3F;
  --accent-btn-grad: linear-gradient(135deg, #D8B772 0%, #B38B43 100%);
  --accent-btn-ink: #241215;

  --surface-primary: #FAF6F0;
  --surface-secondary: #F2E9DC;
  --surface-card: #FFFDF9;
  --ink-main: #24191B;
  --ink-muted: #635356;
  --border-subtle: rgba(197, 160, 89, 0.42);
  --dock-bg: rgba(36, 15, 19, 0.92);
  --overlay-bg-top: #631422;
  --overlay-bg-bottom: #380911;
  --overlay-card-bg: rgba(18, 8, 10, 0.42);
  --overlay-ink: #FFFFFF;
}

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 36px rgba(20, 22, 28, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-primary);
  color: var(--ink-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(92px + var(--safe-bottom));
}

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

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #14161B;
  color: #E6CC94;
  font-size: 0.76rem;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.35);
}

.demo-bar[hidden] { display: none; }

.demo-cta {
  color: #1A120B;
  background: linear-gradient(135deg, #DFC07D 0%, #B89352 100%);
  text-decoration: none;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   SOBRE DE APERTURA CON SELLO Y MONOGRAMA ANIMADO
   ========================================================================== */
.opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(circle at top, var(--overlay-bg-top) 0%, var(--overlay-bg-bottom) 85%);
  color: var(--overlay-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

.opening-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.envelope-stage {
  width: 100%;
  max-width: 410px;
  position: relative;
}

.envelope-flap-top {
  height: 22px;
  margin: 0 26px -10px;
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-radius: 18px 18px 0 0;
  opacity: 0.75;
}

.opening-card {
  width: 100%;
  border: 1.5px solid var(--border-subtle);
  border-radius: 22px;
  padding: 32px 22px 26px;
  text-align: center;
  background: var(--overlay-card-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: envelopeFloatIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes envelopeFloatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wax-seal-ring {
  position: relative;
  width: 94px;
  height: 94px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-main);
}

.seal-outer-circle {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawSealCircle 1.6s ease forwards 0.2s;
}

@keyframes drawSealCircle {
  to { stroke-dashoffset: 0; }
}

.seal-monogram {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-light);
  animation: monogramReveal 1.1s ease both 0.35s;
}

@keyframes monogramReveal {
  from { opacity: 0; transform: scale(0.84); }
  to { opacity: 1; transform: scale(1); }
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.opening-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.08;
  color: var(--overlay-ink);
  margin-bottom: 6px;
}

.opening-subtitle {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 18px;
}

/* Tarjeta VIP de Pase Personalizado por URL */
.vip-pass-card {
  border: 1px dashed var(--accent-main);
  background: rgba(184, 147, 82, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.vip-pass-card[hidden] { display: none; }

.vip-pass-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  margin-bottom: 2px;
}

.vip-guest-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--overlay-ink);
}

.vip-passes-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-main);
  color: #FFFFFF;
}

.opening-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary-accent {
  background: var(--accent-btn-grad);
  color: var(--accent-btn-ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.btn-primary-accent:active { transform: scale(0.98); }

.btn-ghost-light {
  background: transparent;
  color: var(--overlay-ink);
  opacity: 0.84;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.84rem;
  cursor: pointer;
}

.opening-hint {
  margin-top: 14px;
  font-size: 0.74rem;
  opacity: 0.7;
}

/* ==========================================================================
   PORTADA CINEMATOGRÁFICA CON FOTO PROTAGONISTA + KEN BURNS + PARTÍCULAS
   ========================================================================== */
.invitation-wrapper {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface-primary);
  box-shadow: 0 0 50px rgba(20, 22, 28, 0.08);
}

.container-narrow { padding: 0 22px; }

.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, var(--hero-bg-top) 0%, var(--hero-bg-bottom) 86%);
  color: var(--hero-ink);
  padding: 20px 16px 28px;
  min-height: 88dvh;
  display: flex;
  align-items: stretch;
}

.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: kenBurnsZoom 18s ease-in-out infinite alternate;
}

@keyframes kenBurnsZoom {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(-1.5%, -1.5%, 0); }
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-cover-img[hidden],
.hero-bg-video[hidden] {
  display: none;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

.hero-section.has-hero-media {
  color: #FFFFFF;
}

.hero-section.has-hero-media .hero-media-overlay {
  background: linear-gradient(180deg, rgba(14, 12, 16, 0.45) 0%, rgba(14, 12, 16, 0.72) 100%);
}

.hero-section.has-hero-media .hero-host-label,
.hero-section.has-hero-media .hero-title,
.hero-section.has-hero-media .hero-time {
  color: #F3DCB0;
}

.ambient-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ambient-dot {
  position: absolute;
  bottom: -16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-main);
  opacity: 0.45;
  animation: floatParticleUp linear infinite;
}

@keyframes floatParticleUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  20% { opacity: 0.55; }
  85% { opacity: 0.35; }
  100% { transform: translateY(-92vh) scale(1.25); opacity: 0; }
}

.hero-frame {
  position: relative;
  z-index: 3;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.hero-top-ornament { color: var(--accent-main); }

.crest-wrapper img,
.hero-logo-slot img {
  max-height: 70px;
  max-width: 170px;
  object-fit: contain;
  border-radius: 14px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.hero-host-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-sub-ink);
  margin-top: 8px;
}

.hero-pretitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  opacity: 0.9;
  margin-top: 12px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 11vw, 3.85rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.05;
  color: var(--hero-sub-ink);
  margin: 10px 0 16px;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 72%;
  max-width: 230px;
  margin: 4px auto 18px;
}

.hero-divider span {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.hero-divider i {
  font-style: normal;
  color: var(--accent-main);
  font-size: 0.85rem;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-time {
  font-size: 0.98rem;
  color: var(--hero-sub-ink);
  margin-top: 2px;
}

.scroll-cue {
  margin-top: 24px;
  text-decoration: none;
  color: inherit;
  opacity: 0.82;
  font-size: 0.78rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: gentleBounce 2.4s infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================================================
   SECCIONES EDITORIALES, PADRES, CONTADOR & CALENDARIO
   ========================================================================== */
.section-primary {
  background-color: var(--surface-primary);
  padding: 50px 0;
  text-align: center;
}

.section-secondary {
  background-color: var(--surface-secondary);
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-icon {
  margin-bottom: 10px;
  color: var(--accent-dark);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--primary-solid);
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.7;
  color: var(--accent-main);
  margin-bottom: 10px;
}

.welcome-quote {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-style: italic;
  color: var(--ink-main);
  line-height: 1.5;
  margin-bottom: 14px;
}

.welcome-signature {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.parents-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-soft);
}

.parents-card[hidden] { display: none; }

.parents-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 440px) {
  .parents-grid { grid-template-columns: 1fr 1fr; }
}

.parents-col strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary-solid);
  margin-bottom: 4px;
}

.parents-col p {
  font-size: 0.88rem;
  color: var(--ink-main);
  line-height: 1.45;
  white-space: pre-line;
}

.countdown-box {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 22px 14px;
  box-shadow: var(--shadow-soft);
}

.countdown-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.count-cell {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 4px;
}

.count-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-solid);
  line-height: 1.1;
}

.count-lbl {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown-status {
  margin-top: 12px;
  font-weight: 600;
  color: var(--primary-solid);
}

.calendar-action-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.btn-calendar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary-solid);
  color: var(--primary-solid);
  background: var(--surface-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-calendar-pill:hover {
  background: var(--primary-solid);
  color: #FFFFFF;
}

/* ==========================================================================
   GALERÍA / CARRUSEL DE FOTOS
   ========================================================================== */
.gallery-section[hidden] { display: none; }

.gallery-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.photo-carousel-shell {
  margin-top: 18px;
  background: var(--surface-card);
  border: 1.5px solid var(--accent-main);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.photo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;
  scrollbar-width: none;
}

.photo-track::-webkit-scrollbar { display: none; }

.photo-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #141412;
  aspect-ratio: 4 / 5;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 4px;
}

.carousel-controls[hidden] { display: none; }

.carousel-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface-primary);
  color: var(--primary-solid);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border-subtle);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot.is-active {
  width: 22px;
  background: var(--primary-solid);
}

/* ==========================================================================
   UBICACIONES (CEREMONIA + RECEPCIÓN OPCIONAL)
   ========================================================================== */
.locations-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  box-shadow: var(--shadow-soft);
}

.location-card[hidden] { display: none; }

.location-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  background: var(--surface-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.location-badge[hidden] { display: none; }

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-main);
  margin-bottom: 6px;
}

.venue-address {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.venue-schedule {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.btn-solid-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-solid);
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(20, 22, 28, 0.18);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-solid-primary:hover { background: var(--primary-solid-hover); }
.btn-solid-primary:active { transform: scale(0.98); }
.btn-full { width: 100%; }

/* ==========================================================================
   DETALLES, SOLO ADULTOS & REGALOS / LLUVIA DE SOBRES
   ========================================================================== */
.cards-grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (min-width: 440px) {
  .cards-grid-two { grid-template-columns: 1fr 1fr; }
}

.editorial-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 22px 16px;
  box-shadow: var(--shadow-soft);
}

.card-icon {
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-solid);
  margin-bottom: 6px;
}

.card-highlight {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-main);
  margin-bottom: 6px;
}

.card-text {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.protocol-note-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-solid);
}

.protocol-note-card[hidden] { display: none; }

.gift-ticket-card {
  background: var(--surface-card);
  border: 1.5px solid var(--accent-main);
  border-radius: var(--radius-card);
  padding: 26px 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.gift-ticket-card[hidden] { display: none; }

.ticket-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  background: var(--surface-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.ticket-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--primary-solid);
  margin-bottom: 10px;
}

.ticket-amount-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.ticket-amount-label[hidden] { display: none; }

.ticket-amount {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-solid);
  line-height: 1.15;
  margin: 4px 0 10px;
}

.ticket-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  max-width: 360px;
  margin: 0 auto 14px;
  white-space: pre-line;
}

.ticket-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 14px;
  text-align: left;
}

.ticket-meta[hidden] { display: none; }

.ticket-meta span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.ticket-meta strong {
  font-size: 0.88rem;
  color: var(--ink-main);
}

/* ==========================================================================
   FORMULARIO RSVP & PIE DE PÁGINA
   ========================================================================== */
.rsvp-deadline {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.rsvp-form {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.form-group { margin-bottom: 18px; }

.form-group label,
.field-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-main);
  margin-bottom: 6px;
}

.req { color: var(--primary-solid); }
.opt { font-weight: 400; color: var(--ink-muted); }

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-main);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  outline: none;
}

.attendance-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-option {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--ink-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.toggle-option.is-selected {
  background: var(--primary-solid);
  color: #FFFFFF;
  border-color: var(--primary-solid);
}

.form-feedback {
  font-size: 0.86rem;
  margin-bottom: 12px;
  color: var(--primary-solid);
  font-weight: 600;
}

.rsvp-success {
  background: var(--surface-card);
  border: 1.5px solid var(--accent-main);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  box-shadow: var(--shadow-soft);
}

.rsvp-success[hidden] { display: none; }

.success-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-solid);
  color: #FFFFFF;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.rsvp-success h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--primary-solid);
  margin-bottom: 6px;
}

.rsvp-success p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary-solid);
  color: var(--primary-solid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-text-subtle {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 0.84rem;
  text-decoration: underline;
  cursor: pointer;
}

.closing-footer {
  background: #141311;
  color: #FFFFFF;
  padding: 48px 0 88px;
  text-align: center;
}

.closing-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-style: italic;
  color: #E6CC94;
  margin-bottom: 4px;
}

.closing-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
}

.btn-share-accent {
  background: transparent;
  color: #E6CC94;
  border: 1px solid #C5A059;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.atelier-signature {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
}

.atelier-brand {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #E6CC94;
}

.atelier-brand span {
  font-weight: 400;
  opacity: 0.85;
}

.atelier-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.floating-dock {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dock-bg);
  backdrop-filter: blur(8px);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}

.floating-dock[hidden] { display: none; }

.dock-pill {
  background: var(--accent-btn-grad);
  color: var(--accent-btn-ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.dock-pill-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Pantalla de carga */
.event-sync-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0B0B0A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.event-sync-loader[hidden],
.event-sync-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sync-loader-card {
  width: 100%;
  max-width: 320px;
  padding: 30px 22px;
  border-radius: 20px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: #141412;
  text-align: center;
}

.sync-ring {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: #DFC07D;
  animation: nurinelliSpin 0.9s linear infinite;
}

@keyframes nurinelliSpin { to { transform: rotate(360deg); } }

.sync-loader-eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #DFC07D;
  margin-bottom: 6px;
}

.sync-loader-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: #F2EFE9;
}


/* v6: el atributo hidden siempre gana (interruptores de secciones fiables) */
[hidden] { display: none !important; }
.rsvp-success.is-warning .success-check { background: #8a5a00; }

/* v6: accesibilidad — respeta "reducir movimiento" del sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-particles { display: none !important; }
}
