:root {
  --bordo-bg: #5c1221;        
  --bordo-dark: #3a0b14;      
  --bordo-light: #fdf5f6;     
  --paper-bg: #f9f6f0;
  --text-dark: #2c2c2c;
  --text-muted: #666666;
  --font-serif: 'Playfair Display', serif;
  --font-garamond: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-script: 'Pinyon Script', cursive;
}

* { 
  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;
  position: relative;
}

/* FONDO FIJO CON TEXTURA */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('img/fondo.png');
  background-repeat: no-repeat;     
  background-size: cover;      
  background-position: center;
  opacity: 0.35;                   
  pointer-events: none;            
  z-index: 1;                      
}

#seccion-final, #contenedor-principal {
  position: relative;
  z-index: 2;
}

.bloque-papel-textura {
  background-color: transparent;
  width: 100%;
  padding: 0;
}

.section-pad { 
  padding: 40px 20px; 
  max-width: 420px; 
  margin: 0 auto; 
}

.oculto { 
  display: none !important; 
}

/* ESTILO MARCO ELEGANTE PARA LA PORTADA */
.hero-portada-full {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 25px auto 10px auto;
  padding: 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(92, 18, 33, 0.15);
  border: 1px solid #e8dfd3;
}

.portada-marco-elegante {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.portada-img-framed {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.portada-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(58, 11, 20, 0.88) 0%, rgba(58, 11, 20, 0.4) 60%, transparent 100%);
  padding: 35px 15px 22px 15px;
  color: #ffffff;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.main-title-portada {
  font-family: var(--font-script) !important;
  font-size: 3.8rem;
  font-weight: 400;
  color: #fdf5f6;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.portada-divider-line {
  width: 40px;
  height: 1px;
  background-color: rgba(253, 245, 246, 0.6);
  margin: 8px auto;
}

.title-sub-portada {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: #fdf5f6;
  text-transform: uppercase;
  font-weight: 500;
}

/* CÍRCULOS SAVE THE DATE */
.circle-tap-card {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bordo-bg);
  box-shadow: 0 8px 22px rgba(92, 18, 33, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
}

.circle-tap-card:hover {
  transform: scale(1.06);
}

.tap-text {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: #ffffff;
  letter-spacing: 1px;
  font-weight: 600;
}

.circle-hidden-content {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

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

/* TIPOGRAFÍAS */
.couple-names-block {
  font-family: var(--font-script) !important;
  font-size: 3.8rem;
  font-weight: 400;
  color: var(--bordo-bg);
  line-height: 1.2;
  margin: 10px auto 0 auto;
  text-align: center;
  display: block;
  width: 100%;
}

.farewell-couple-light {
  font-family: var(--font-script) !important;
  font-size: 4.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.1;
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

.editorial-heading { 
  font-family: var(--font-serif); 
  font-size: 1.5rem; 
  letter-spacing: 3px; 
  font-weight: 400; 
  color: var(--text-dark); 
  text-transform: uppercase; 
}

.title-sub-cursive {
  font-family: var(--font-garamond);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ANIMACIONES Y TARJETAS TRANSLÚCIDAS */
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

.countdown-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(92, 18, 33, 0.15);
  border-radius: 14px;
  padding: 0 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  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(--bordo-bg);
  font-weight: 600;
  margin-bottom: 12px;
}

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

.cd-box {
  background: var(--bordo-light);
  border: 1px solid #e8c5cc;
  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(--bordo-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(--bordo-bg);
  font-weight: 600;
}

.location-section-spacious { 
  padding: 35px 20px; 
}

.venue-card-watercolor { 
  background-color: var(--bordo-bg); 
  border: 1px solid rgba(255, 255, 255, 0.25); 
  padding: 30px 20px; 
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(92, 18, 33, 0.3); 
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.venue-custom-icon-wrap {
  width: auto;
  height: auto;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-fa-icon {
  font-size: 2.3rem;
  color: #ffffff;
}

.venue-title { 
  font-family: var(--font-serif); 
  font-size: 1.15rem; 
  letter-spacing: 2px; 
  color: #ffffff; 
  font-weight: 500; 
}

.venue-time { 
  font-family: var(--font-garamond); 
  font-style: italic; 
  font-size: 1.45rem; 
  color: #fdf5f6; 
  margin: 4px 0; 
}

.venue-desc { 
  font-size: 0.95rem; 
  color: #fdf5f6; 
  line-height: 1.4; 
}

.venue-card-watercolor .btn-outline-dark {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  letter-spacing: 1.5px;
  padding: 9px 15px;
  font-size: 0.58rem;
  border-radius: 30px;
}

.dress-card-elegant {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #e2ded4;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.3s ease;
}

.dress-group-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--bordo-bg);
}

.dress-desc {
  font-family: var(--font-garamond);
  font-size: 1.05rem;
  color: #444444;
  margin-top: 6px;
  line-height: 1.4;
}

.invitarte-card { 
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 28px 20px; 
  border: 1px solid #e2ded4; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.06); 
  border-radius: 16px; 
}

.invite-quote { 
  font-family: var(--font-garamond); 
  font-style: italic; 
  font-size: 1.15rem; 
  color: #555; 
  line-height: 1.5; 
}

.celebran-text { 
  font-family: var(--font-garamond); 
  font-style: italic; 
  font-size: 1.15rem; 
  color: #555; 
  margin-top: 12px; 
}

.btn { 
  display: inline-block; 
  padding: 12px 24px; 
  border-radius: 30px; 
  font-family: var(--font-sans); 
  font-size: 0.65rem; 
  letter-spacing: 2px; 
  text-decoration: none; 
  border: none; 
  cursor: pointer; 
  text-transform: uppercase; 
  transition: all 0.3s ease; 
}

.btn-editorial { 
  background-color: var(--bordo-bg); 
  color: #ffffff; 
  box-shadow: 0 5px 15px rgba(92, 18, 33, 0.25);
}

.btn-outline-dark { 
  background: transparent; 
  color: var(--text-dark); 
  border: 1px solid var(--text-dark); 
}

.btn-group-center { 
  display: flex; 
  justify-content: center; 
  gap: 8px; 
  flex-wrap: wrap; 
}

.toast { 
  position: fixed; 
  bottom: 30px; 
  left: 50%; 
  transform: translateX(-50%) translateY(100px); 
  background: var(--bordo-bg); 
  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; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast.show { 
  transform: translateX(-50%) translateY(0); 
  opacity: 1; 
}

#contenedor-principal { 
  position: fixed; 
  inset: 0; 
  z-index: 5000; 
  background: #000; 
  cursor: pointer; 
  transition: opacity 0.3s ease;
}

#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(92, 18, 33, 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.4); 
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.music-btn { 
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  width: 44px; 
  height: 44px; 
  background: var(--bordo-bg); 
  color: #fff; 
  border: 1.5px solid #ffffff; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 4999; 
  cursor: pointer; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bloque-bordo-liso {
  background-color: var(--bordo-bg);
  color: #ffffff;
  width: 100%;
  padding: 50px 15px 35px 15px;
  margin-top: 35px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.editorial-footer-light { 
  padding: 25px 20px 10px 20px; 
  font-family: var(--font-sans); 
  font-size: 9px; 
  letter-spacing: 3px; 
  color: #ffffff; 
  opacity: 0.85;
}

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-35 { margin-top: 35px; }

.reveal { 
  opacity: 0; 
  transform: translateY(25px); 
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
}

.reveal.active { 
  opacity: 1; 
  transform: translateY(0); 
}