:root {
  --olive-bg: #4a0e17;        
  --olive-dark: #2d080e;      
  --olive-light: #f7eff1;     
  --paper-bg: #f8f6f0;
  --text-dark: #222222;
  --text-muted: #666666;
  --font-serif: 'Playfair Display', serif;
  --font-garamond: 'Cormorant Garamond', serif;
  --font-pinyon: 'Pinyon Script', cursive;
  --font-sans: 'Montserrat', sans-serif;
}

@font-face {
  font-family: 'Cinzel';
  src: url('img/Cinzel-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
}

* { 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-patron-fondo {
  background-color: #3b0a13;
  background-image: linear-gradient(rgba(59, 10, 19, 0.88), rgba(59, 10, 19, 0.88)), url('img/fondo.png');
  background-repeat: repeat;
  background-size: 300px;
  padding-bottom: 30px;
}

.bloque-patron-fondo .editorial-heading {
  color: #ffffff;
}

.bloque-patron-fondo .section-sub-label,
.bloque-patron-fondo .title-sub-cursive {
  color: #f3d6db;
}

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

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

.hero-portada-full {
  width: 100%;
  height: 100vh;
  max-height: 750px;
  position: relative;
  overflow: hidden;
  background-color: var(--olive-bg);
}

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

.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(0, 0, 0, 0.3);
  cursor: pointer;
}

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

.circle-reveal-content.revealed-glow {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
  border-color: #ffffff;
  transform: scale(1.05);
}

.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-overlay-tap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--olive-bg);
  border: 2px solid var(--olive-dark);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  transition: opacity 0.5s ease, transform 0.2s ease;
}

.circle-overlay-tap:active {
  transform: scale(0.95);
}

.color-palette-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.color-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 2px solid #ffffff;
}

.countdown-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ebdcd0;
  border-radius: 12px;
  padding: 0 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  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 #e2c1c7;
  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(--olive-bg);
  font-weight: 600;
}

/* UBICACIONES */
.location-section-spacious { padding: 45px 20px; }
.venue-card-watercolor { 
  background: rgba(255, 255, 255, 0.95); 
  border: 1px dashed rgba(255, 255, 255, 0.5); 
  padding: 30px 20px; 
  border-radius: 16px; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
}
.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(0,0,0,0.25); }
.venue-title { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: 2px; color: #222222; }
.venue-date-label { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 2px; color: #4a0e17; text-transform: uppercase; margin-top: 4px; }
.venue-time { font-family: var(--font-garamond); font-style: italic; font-size: 1.3rem; color: #555; margin: 2px 0; }
.venue-desc { font-size: 0.95rem; color: #666; line-height: 1.4; }

/* DRESS CODE */
.dress-icon-head { font-size: 2.2rem; color: #ffffff; }
.dress-code-subtitle { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 3px; font-weight: 600; color: #f3d6db; }

/* BOTONES EN MAGENTA OSCURO */
.btn-magenta {
  background-color: #4a0e17;
  color: #ffffff;
  border-radius: 4px;
  width: 100%;
  padding: 12px 20px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  text-decoration: none;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-pinterest {
  background-color: #ffffff;
  color: var(--olive-bg);
  border-radius: 4px;
  width: 100%;
  padding: 14px 20px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  text-decoration: none;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* SUGERENCIA DE REGALO */
.gift-envelope-card-paper {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ebdcd0;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gift-icon-head { font-size: 2.2rem; color: var(--olive-bg); }

.gift-text-paper {
  font-size: 1rem;
  color: #555;
  line-height: 1.45;
}

/* TÍTULOS OSCUROS DENTRO DE LAS TARJETAS */
.gift-envelope-card-paper .editorial-heading,
.invitarte-card .editorial-heading {
  color: #222222;
}

.gift-envelope-card-paper .title-sub-cursive,
.invitarte-card .title-sub-cursive {
  color: #666666;
}

/* FECHA LÍMITE RSVP */
.rsvp-limit-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #f3d6db;
  text-transform: uppercase;
  font-weight: 500;
}

/* GALERÍA SLIDER / CARRUSEL */
.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.25); border: 2px solid rgba(255,255,255,0.3); }
.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: #f3d6db; text-transform: uppercase; }

/* CIERRE Y FIRMA ESPACIADA CON EFECTO PLATEADO ANIMADO (FACHA) */
.farewell-signature-spaced { padding: 15px 0; }
.farewell-with-love { font-family: var(--font-garamond); font-style: italic; font-size: 1.3rem; color: #f3d6db; }

.farewell-couple-silver {
  font-family: 'Cinzel', serif;
  font-size: 3.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  
  /* Degradado metálico plateado animado */
  background: linear-gradient(135deg, #cfcfcf 0%, #ffffff 25%, #8c8c8c 50%, #ffffff 75%, #cfcfcf 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  
  animation: shineSilver 4s linear infinite;
  filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.4));
  margin-top: 5px;
}

@keyframes shineSilver {
  to {
    background-position: 200% center;
  }
}

.invitarte-card { background: rgba(255, 255, 255, 0.95); padding: 30px 20px; border: 1px solid #ebdcd0; box-shadow: 0 6px 20px rgba(0,0,0,0.15); border-radius: 12px; }
.invite-quote { font-family: var(--font-garamond); font-style: italic; font-size: 1.15rem; color: #555; line-height: 1.5; }

.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: #ffffff; color: var(--olive-bg); width: 100%; text-align: center; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.btn-outline-dark { background: rgba(255,255,255,0.9); color: var(--text-dark); border: 1px solid rgba(255,255,255,0.8); font-weight: 600; }

.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: #f8f6f0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#imgSobreEstetica { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; transition: opacity 0.5s ease; }
#videoSobre { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: none; }

#capa-boton { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); z-index: 5001; width: 90%; max-width: 360px; }
.boton-rosa-inicio { background: rgba(74, 14, 23, 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); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.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; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.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); }