:root {
  --olive-bg: #6b6d38;        /* COLOR PRINCIPAL (#6b6d38) */
  --olive-dark: #4d4f26;      /* TONO OSCURO DE CONTRASTE */
  --olive-light: #f3f3e8;     /* TONO CLARO / FONDOS */
  --paper-bg: #f8f6f0;
  --text-dark: #222222;
  --text-muted: #666666;
  --gold-accent: #c5a059;
  --font-serif: 'Playfair Display', serif;
  --font-garamond: 'Cormorant Garamond', serif;
  --font-pinyon: 'Pinyon Script', cursive;
  --font-sans: 'Montserrat', sans-serif;
}

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

body { 
  background-color: var(--paper-bg);
  color: var(--text-dark); 
  font-family: var(--font-garamond); 
  text-align: center; 
  overflow-x: hidden !important; 
  width: 100vw;
}

#petalsCanvas {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9998;
}

.bloque-papel-textura {
  background-color: var(--paper-bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  padding-bottom: 30px;
}

.bloque-verde-oliva {
  background-color: var(--olive-bg);
  color: #ffffff;
  padding: 35px 0 45px 0;
}

.section-pad { padding: 35px 20px; max-width: 400px; margin: 0 auto; }
.oculto { display: none; }

/* ======================================================== */
/* PORTADA ULTRA PREMIUM EN ARCO EDITORIAL                  */
/* ======================================================== */
.hero-portada {
  position: relative;
  width: calc(100% - 30px);
  max-width: 380px;
  height: 510px;
  margin: 25px auto 10px auto;
  border-radius: 180px 180px 16px 16px;
  padding: 6px;
  background: linear-gradient(135deg, #c5a059 0%, #e2d3b4 50%, #b08943 100%);
  box-shadow: 0 15px 35px rgba(0,0,0,0.14);
}

.portada-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 174px 174px 12px 12px;
  overflow: hidden;
}

.portada-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.portada-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0,0,0,0.05) 0%, 
    rgba(0,0,0,0.1) 45%, 
    rgba(15,20,10,0.78) 82%, 
    rgba(10,12,8,0.92) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px 32px 20px;
  color: #ffffff;
}

.portada-monogram {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: #f5e8d0;
  margin-bottom: 2px;
}

.main-title-portada {
  font-family: var(--font-pinyon);
  font-size: 4.8rem;
  font-weight: normal;
  color: #ffffff;
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

.title-sub-portada {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 6px;
  color: #e5eed8;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 500;
  border-top: 1px solid rgba(197, 160, 89, 0.5);
  border-bottom: 1px solid rgba(197, 160, 89, 0.5);
  padding: 4px 14px;
}

.editorial-heading { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 3px; font-weight: 400; color: var(--text-dark); text-transform: uppercase; }
.editorial-heading-light { font-family: var(--font-serif); font-size: 1.6rem; letter-spacing: 4px; color: #ffffff; text-transform: uppercase; }
.section-sub-label { font-family: var(--font-garamond); font-style: italic; font-size: 1.1rem; color: var(--text-muted); margin-top: 3px; }

/* ======================================================== */
/* RASPADITA 3 CÍRCULOS PRO                                 */
/* ======================================================== */
.scratch-circles-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.circle-scratch-card {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(107, 109, 56, 0.2);
}

.circle-reveal-content {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--gold-accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: all 0.5s ease;
}

.circle-reveal-content.revealed-glow {
  animation: goldGlowPulse 1.4s ease-in-out infinite alternate;
}

@keyframes goldGlowPulse {
  0% { box-shadow: 0 0 6px rgba(197, 160, 89, 0.4); border-color: #c5a059; }
  100% { box-shadow: 0 0 22px rgba(197, 160, 89, 0.95), 0 0 12px rgba(107, 109, 56, 0.6); border-color: #e8c880; }
}

.circle-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--olive-bg);
  line-height: 1;
}

.circle-label {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.circle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 5;
  touch-action: none;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

/* ======================================================== */
/* CONTADOR REGRESIVO DESLIZANTE PREMIUM                   */
/* ======================================================== */
.countdown-card {
  background: #ffffff;
  border: 1px solid #e0dbce;
  border-radius: 12px;
  padding: 0 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(25px) scale(0.94);
  margin-top: 0;
  pointer-events: none;
  transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.6s ease,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.6s ease,
              margin 0.6s ease;
}

.countdown-card.revealed-done {
  max-height: 220px;
  opacity: 1;
  overflow: visible;
  transform: translateY(0) scale(1);
  padding: 20px 15px;
  margin-top: 30px;
  pointer-events: auto;
}

.countdown-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--olive-bg);
  font-weight: 600;
  margin-bottom: 12px;
}

.countdown-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.cd-box {
  background: var(--olive-light);
  border: 1px solid #d2d4a5;
  border-radius: 8px;
  width: 58px;
  padding: 8px 0;
}

.cd-box span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--olive-bg);
  display: block;
  line-height: 1;
}

.cd-box p {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
}

.cd-sep {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-accent);
  font-weight: 600;
}

/* GALERÍA SLIDER / CARRUSEL DESLIZANTE */
.gallery-slider-wrapper { position: relative; width: 100%; }
.gallery-slider { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 10px 5px 20px 5px; scrollbar-width: none; }
.gallery-slider::-webkit-scrollbar { display: none; }
.slide-item { flex: 0 0 80%; height: 320px; scroll-snap-align: center; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.06); }
.slide-item img { width: 100%; height: 100%; object-fit: cover; }
.slider-hint { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; }

/* UBICACIONES ESPACIOSAS ACUARELA */
.location-section-spacious { padding: 45px 20px; }
.venue-card-watercolor { background: radial-gradient(circle, rgba(243, 243, 232, 0.9) 0%, rgba(248, 246, 240, 0.4) 100%); border: 1px dashed rgba(107, 109, 56, 0.35); padding: 30px 20px; border-radius: 16px; box-shadow: 0 8px 25px rgba(0,0,0,0.02); }
.venue-icon-wrap { width: 50px; height: 50px; border-radius: 50%; background: var(--olive-bg); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px auto; font-size: 1.3rem; box-shadow: 0 4px 12px rgba(107, 109, 56, 0.25); }
.venue-title { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: 2px; color: var(--text-dark); }
.venue-time { font-family: var(--font-garamond); font-style: italic; font-size: 1.5rem; color: var(--olive-bg); margin: 4px 0; }
.venue-desc { font-size: 1rem; color: #555; line-height: 1.4; }

/* DRESS CODE CON AVISO VERDECITO */
.dress-icon-head { font-size: 2.2rem; color: var(--olive-bg); }
.dress-code-subtitle { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 3px; font-weight: 600; color: var(--olive-bg); margin-top: 10px; }
.dress-code-text { font-size: 1rem; color: #555; margin: 8px 0 15px 0; }
.color-palette-grid { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }
.notice-box-green { font-size: 0.88rem; color: var(--olive-dark); background: var(--olive-light); border: 1px solid #d2d4a5; padding: 10px 16px; border-radius: 8px; display: inline-block; }

/* ======================================================== */
/* SUGERENCIA DE REGALO CON SELLO CENTRADO SOBRE EL SOBRE   */
/* ======================================================== */
.envelope-seal-wrap { 
  position: relative; 
  width: 140px; 
  margin: 0 auto; 
}

.gift-envelope-img { 
  width: 100%; 
  display: block; 
}

.seal-overlay-img {
  position: absolute; 
  top: 55%; 
  left: 50%; 
  transform: translate(-50%, -40%);
  width: 48px; 
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
  z-index: 2;
}

/* DESPEDIDA Y CITA BÍBLICA */
.bible-quote-box { border-top: 1px solid rgba(255, 255, 255, 0.25); border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding: 25px 10px; margin-top: 10px; }
.bible-text { font-family: var(--font-garamond); font-style: italic; font-size: 1.35rem; color: #f2f6f0; line-height: 1.5; }
.bible-ref { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 2px; color: #e0ebd2; display: block; margin-top: 8px; }
.farewell-with-love { font-family: var(--font-garamond); font-style: italic; font-size: 1.2rem; color: #e0ebd2; }
.farewell-couple { font-family: var(--font-pinyon); font-size: 3.5rem; color: #ffffff; font-weight: normal; margin-top: -5px; }

/* RESTO DE ESTILOS DE COMPONENTES */
.invitarte-card { background: #ffffff; padding: 30px 20px; border: 1px solid #ebdcd0; box-shadow: 0 6px 20px rgba(0,0,0,0.03); }
.blessing-text { font-family: var(--font-garamond); font-style: italic; font-size: 1.35rem; color: var(--olive-bg); font-weight: 500; }
.parents-container { display: flex; flex-direction: column; gap: 15px; }
.parent-role { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 2px; color: var(--gold-accent); font-weight: 600; }
.parent-names { font-family: var(--font-garamond); font-size: 1.25rem; color: #333; line-height: 1.35; margin-top: 3px; }
.parents-divider { width: 60px; height: 1px; background: #e2ded4; margin: 5px auto; }
.invite-quote { font-family: var(--font-garamond); font-style: italic; font-size: 1.1rem; color: #555; line-height: 1.45; }

.details-grid { display: flex; flex-direction: column; gap: 18px; }
.detail-item { background: #ffffff; padding: 20px 15px; border-radius: 8px; border: 1px solid #ebdcd0; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.detail-icon { font-size: 1.8rem; color: var(--olive-bg); margin-bottom: 8px; }
.detail-item h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 2px; color: var(--olive-bg); margin-bottom: 4px; }
.detail-item p { font-size: 0.95rem; color: #666; line-height: 1.35; }

.itinerary-deco-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.deco-flower { position: absolute; top: -10px; right: -10px; width: 90px; z-index: 3; }
.deco-polaroid { position: absolute; top: 15px; left: 20px; width: 150px; height: 180px; padding: 8px 8px 24px 8px; background: #fff; transform: rotate(-4deg); box-shadow: 0 8px 20px rgba(0,0,0,0.2); z-index: 1; }
.deco-polaroid img { width: 100%; height: 100%; object-fit: cover; }
.deco-seal { position: absolute; bottom: 0; right: 20px; width: 55px; z-index: 4; }

.program-timeline-icons { display: flex; flex-direction: column; gap: 14px; }
.program-card { display: flex; align-items: center; gap: 15px; background: rgba(255, 255, 255, 0.12); padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); text-align: left; }
.icon-circle { width: 44px; height: 44px; border-radius: 50%; background: #ffffff; color: var(--olive-bg); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.program-info { display: flex; flex-direction: column; }
.p-time { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 2px; color: #e5eed8; font-weight: 600; }
.p-title { font-family: var(--font-garamond); font-size: 1.25rem; color: #ffffff; font-weight: 500; }

.playlist-card, .guestbook-card { background: #ffffff; padding: 25px 20px; border: 1px solid #e0dbce; border-radius: 8px; }
.playlist-icon { font-size: 2.2rem; color: #1ed760; }
.guestbook-icon { font-size: 2rem; color: var(--olive-bg); }

.input-editorial { width: 100%; padding: 12px 14px; border: 1px solid #d0cbbe; border-radius: 4px; font-family: var(--font-sans); font-size: 0.8rem; outline: none; background: #fdfbf7; transition: border-color 0.3s; }
.input-editorial:focus { border-color: var(--olive-bg); }
.textarea-editorial { resize: vertical; font-family: var(--font-garamond); font-size: 1.05rem; }

.gift-envelope-card { background: #ffffff; padding: 25px 20px; border: 1px solid #e0dbce; }
.gift-text { font-size: 1rem; color: #555; margin-top: 8px; line-height: 1.4; }

.rsvp-deadline-light { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 2px; color: #e0ebd2; margin-top: 6px; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 4px; font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 2px; text-decoration: none; border: none; cursor: pointer; text-transform: uppercase; transition: all 0.3s ease; }
.btn-editorial { background-color: var(--olive-bg); color: #ffffff; }
.btn-outline-dark { background: transparent; color: var(--text-dark); border: 1px solid var(--text-dark); }
.btn-waze { background: #22b8eb; color: #ffffff; }
.btn-white-pill { background-color: #ffffff; color: var(--olive-bg); border-radius: 30px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.btn-sm { padding: 8px 14px; font-size: 0.62rem; }
.btn-group-center { display: flex; justify-content: center; gap: 8px; }

.gift-modal-box { background: #fbf9f5; padding: 12px; border-radius: 6px; border: 1px solid #e0dcd0; font-size: 0.9rem; line-height: 1.5; text-align: left; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--olive-dark); color: #fff; padding: 10px 20px; border-radius: 30px; font-family: var(--font-sans); font-size: 0.75rem; z-index: 9999; opacity: 0; transition: all 0.4s ease; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

#contenedor-principal { position: fixed; inset: 0; z-index: 5000; background: #000; cursor: pointer; }
#videoSobre { width: 100%; height: 100%; object-fit: cover; }
#capa-boton { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); z-index: 5001; width: 90%; max-width: 360px; }
.boton-rosa-inicio { background: rgba(107, 109, 56, 0.95); color: #fff; padding: 16px 28px; border-radius: 50px; font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 2px; text-align: center; border: 1px solid rgba(255,255,255,0.3); }

.music-btn { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; background: var(--olive-bg); color: #fff; border: 1.5px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 4999; cursor: pointer; display: none; }
.hidden-element { display: none; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-35 { margin-top: 35px; }

.reveal { opacity: 0; transform: translateY(25px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.editorial-footer { padding: 30px 20px 10px 20px; font-family: var(--font-sans); font-size: 9px; letter-spacing: 3px; color: rgba(255, 255, 255, 0.5); }