:root {
  --olive-bg: #6b6d38;        /* COLOR PRINCIPAL VERDE OLIVA */
  --olive-dark: #4d4f26;      
  --olive-light: #f3f3e8;     
  --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;
}

* { 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 EN ARCO */
.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: 4px;
  background: var(--olive-bg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.14);
}

.portada-frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 176px 176px 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;
}

.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(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  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; }
.section-sub-label { font-family: var(--font-garamond); font-style: italic; font-size: 1.1rem; color: var(--text-muted); margin-top: 3px; }
.title-sub-cursive { font-family: var(--font-garamond); font-style: italic; font-size: 1.15rem; color: var(--text-muted); margin-top: 3px; }

/* RASPADITA 3 CÍRCULOS */
.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(--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(107, 109, 56, 0.6);
  border-color: var(--olive-bg);
}

.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 */
.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(--olive-bg);
  font-weight: 600;
}

/* UBICACIONES */
.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.4rem; color: var(--olive-bg); margin: 4px 0; }
.venue-desc { font-size: 1rem; color: #555; line-height: 1.4; }

/* DETALLES DE LA BODA */
.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; }

/* DRESS CODE */
.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); }

.notice-box-paper {
  font-size: 0.88rem;
  color: var(--text-dark);
  background: transparent;
  border: 1px solid rgba(107, 109, 56, 0.4);
  padding: 12px 16px;
  border-radius: 8px;
  display: inline-block;
  line-height: 1.4;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.btn-pinterest {
  background-color: var(--olive-bg);
  color: #ffffff;
  border-radius: 4px;
  width: 100%;
  padding: 14px 20px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(107, 109, 56, 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 CON IMAGEN DE SOBRE */
.gift-envelope-card-paper {
  background: #ffffff;
  border: 1px solid #ebdcd0;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}

.gift-envelope-img-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto;
}

.gift-envelope-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.gift-modal-box-paper {
  background: var(--olive-light);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #d2d4a5;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}

/* FECHA LÍMITE RSVP */
.rsvp-limit-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--olive-dark);
  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.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; }

/* CIERRE Y FIRMA */
.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; }

.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.25rem; 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(--olive-bg); font-weight: 600; }
.parent-names { font-family: var(--font-garamond); font-size: 1.15rem; 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; }

.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; width: 100%; text-align: center; }
.btn-outline-dark { background: transparent; color: var(--text-dark); border: 1px solid var(--text-dark); }
.btn-sm { padding: 8px 14px; font-size: 0.62rem; width: auto; }

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