/* =========================================================
   INVITACIÓN DE BODA — Úrsula Yesenia & Juan Miguel
   Diseño fusionado y mejorado
   ========================================================= */

:root {
  --gold: #c9a227;
  --gold-light: #e6d18a;
  --gold-dark: #9d7713;
  --cream: #f8f4ea;
  --ivory: #fffdf8;
  --brown: #6b5140;
  --text: #3f3935;
  --white: #ffffff;
  --line: rgba(201, 162, 39, .34);
  --shadow: 0 18px 60px rgba(80, 55, 25, .10);
  --transition: 700ms cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ivory);
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}
body.is-opening { overflow: hidden; height: 100vh; height: 100dvh; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Utilidades de layout (reemplazan Bootstrap) ---------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.position-relative { position: relative; }
.text-center { text-align: center; }
.row { display: flex; flex-wrap: wrap; margin: 0 -20px; }
.row.g-4 { row-gap: 32px; }
.row.g-5 { row-gap: 48px; }
.row.justify-content-center { justify-content: center; }
.col-lg-5, .col-lg-4, .col-md-6 { padding: 0 20px; width: 100%; }
@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-5 { width: 41.6%; }
  .col-lg-4 { width: 33.3%; }
}

.hidden { display: none !important; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--ivory);
  transition: opacity .7s ease, visibility .7s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark {
  display: flex; align-items: center; gap: 15px;
  color: var(--gold-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}
.preloader-mark .amp { font-family: "Great Vibes", cursive; font-size: 2.5rem; }
.preloader-line {
  position: absolute; bottom: 25%; width: 110px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: linePulse 1.4s ease-in-out infinite;
}
@keyframes linePulse { 50% { transform: scaleX(.35); opacity: .35; } }

/* ---------- Polvo dorado ambiental ---------- */
.gold-dust { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.gold-particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-light); opacity: .45;
  box-shadow: 0 0 8px rgba(201, 162, 39, .45);
}

/* ---------- Barra de progreso ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 4500; transition: width .1s linear;
}

/* ---------- Pantalla de apertura ---------- */
.opening-screen {
  position: fixed; inset: 0; z-index: 5000;
  height: 100vh; height: 100dvh;
  display: grid; place-items: center;
  overflow: hidden;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 42%, rgba(230, 209, 138, .18), transparent 32%),
    linear-gradient(135deg, #fffdf8, #f4ecdc);
  transition: opacity 1s ease, visibility 1s ease, transform 1.1s cubic-bezier(.77, 0, .18, 1);
}
.opening-screen.opened { opacity: 0; visibility: hidden; transform: scale(1.03); pointer-events: none; }

.opening-ornament {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(80vw, 480px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.ornament-top { top: 8%; }
.ornament-bottom { bottom: 8%; }

.floating-petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floating-petals span {
  position: absolute; top: -10%; width: 10px; height: 14px; border-radius: 60% 0 60% 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: .55; animation: petalFall linear infinite;
}
.floating-petals span:nth-child(1) { left: 5%;  animation-duration: 13s; animation-delay: 0s; }
.floating-petals span:nth-child(2) { left: 16%; animation-duration: 16s; animation-delay: 2s; }
.floating-petals span:nth-child(3) { left: 30%; animation-duration: 11s; animation-delay: 4s; }
.floating-petals span:nth-child(4) { left: 46%; animation-duration: 15s; animation-delay: 1s; }
.floating-petals span:nth-child(5) { left: 60%; animation-duration: 12s; animation-delay: 3s; }
.floating-petals span:nth-child(6) { left: 74%; animation-duration: 17s; animation-delay: 5s; }
.floating-petals span:nth-child(7) { left: 86%; animation-duration: 14s; animation-delay: 2.5s; }
.floating-petals span:nth-child(8) { left: 94%; animation-duration: 18s; animation-delay: 0.5s; }
.floating-petals span:nth-child(odd) { border-radius: 0 60% 0 60%; }
@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  50%  { transform: translateY(55vh) rotate(150deg) translateX(12px); }
  100% { transform: translateY(110vh) rotate(300deg) translateX(-8px); opacity: 0; }
}

.opening-card {
  width: min(88vw, 650px);
  min-height: clamp(320px, 74dvh, 580px);
  max-height: 100%;
  padding: clamp(30px, 6vh, 70px) clamp(20px, 6vw, 45px);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, 1.6dvh, 14px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .78);
  box-shadow: 0 30px 90px rgba(80, 55, 25, .12);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.opening-card::-webkit-scrollbar { display: none; }
.opening-card .eyebrow,
.opening-card h1,
.opening-card .opening-quote,
.opening-card .opening-date { margin: 0; }
.opening-card::before, .opening-card::after {
  content: ""; position: absolute; inset: 16px;
  border: 1px solid rgba(201, 162, 39, .18);
  pointer-events: none;
}
.opening-card::after { inset: 27px; border-color: rgba(201, 162, 39, .09); }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .opening-card { animation: cardGlow 6s ease-in-out infinite; }
  @keyframes cardGlow {
    0%, 100% { box-shadow: 0 30px 90px rgba(80, 55, 25, .12); }
    50% { box-shadow: 0 30px 90px rgba(80, 55, 25, .12), 0 0 60px rgba(201, 162, 39, .16); }
  }
}

.opening-emblem {
  display: flex; gap: 18px; align-items: center; color: var(--gold-dark);
  font-family: "Cormorant Garamond"; font-size: 1.8rem;
  animation: emblemGlow 4s ease-in-out infinite;
}
.opening-emblem i { font-size: 1rem; opacity: .8; }
@keyframes emblemGlow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 18px rgba(201, 162, 39, .35); }
}

.eyebrow {
  margin: 0 0 15px;
  letter-spacing: .28em;
  font-size: .65rem;
  font-weight: 500;
  color: var(--gold-dark);
  text-transform: uppercase;
}

/* ============================================================
   CORRECCIÓN: opening-card h1 — SOLO EVITA RECORTE
   ============================================================ */
.opening-card h1 {
  /* Mantiene exactamente el mismo tamaño y color original */
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: .95;
  font-weight: 400;
  color: #4e4036;
  
  /* SOLO estas líneas son nuevas para evitar recorte */
  padding: 5px 20px;  /* Colchón para que no se corten los lados ni extremos */
  overflow: visible;  /* Permite que la tipografía fluya sin límites */
}

/* El span dentro del h1 mantiene su estilo original */
.opening-card h1 span {
  /* Mantiene el gradiente dorado original */
  color: var(--gold-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 2px 10px rgba(157, 119, 19, .18);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .opening-card h1 span {
    background: linear-gradient(100deg, #7c5c0e 0%, #b48c1e 30%, #d9b453 50%, #b48c1e 70%, #7c5c0e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

.opening-card h1 small { 
  font-size: 2.2rem; 
  color: var(--gold); 
  margin: 7px 0; 
  font-family: "Cormorant Garamond"; 
  font-style: italic; 
}

/* ============================================================
   CORRECCIÓN: couple-name — SOLO EVITA RECORTE
   ============================================================ */
.couple-name {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 1px;
  margin: 20px 0;
  
  /* Mantiene exactamente el mismo tamaño y color original */
  font-family: "Great Vibes"; 
  font-size: clamp(4rem, 9vw, 9rem); 
  font-weight: 400; 
  color: #493c34;
  
  /* SOLO estas líneas son nuevas para evitar recorte */
  padding: 5px 20px;  /* Colchón para que no se corten los lados ni extremos */
  line-height: 1.5;   /* Aumentado para dar espacio a la caligrafía */
  overflow: visible;  /* Permite que la tipografía fluya sin límites */
}

/* El span dentro de couple-name mantiene su estilo original */
.couple-name span {
  /* Mantiene el gradiente dorado original */
  color: var(--gold-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 2px 10px rgba(157, 119, 19, .18);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .couple-name span {
    background: linear-gradient(100deg, #7c5c0e 0%, #b48c1e 30%, #d9b453 50%, #b48c1e 70%, #7c5c0e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
  }
}

.couple-name small { 
  font-family: "Cormorant Garamond"; 
  font-size: 2rem; 
  color: var(--gold); 
}

/* ============================================================
   FIN DE LAS CORRECCIONES — TODO LO DEMÁS QUEDA IGUAL
   ============================================================ */

.opening-divider, .heading-ornament, .footer-ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.opening-divider i, .heading-ornament span, .footer-ornament span {
  display: block; width: 52px; height: 1px; background: var(--line);
}
.opening-divider span, .heading-ornament i { color: var(--gold); font-size: .8rem; }

.opening-quote { margin: 25px 0 30px; font-family: "Cormorant Garamond"; font-size: 1.25rem; font-style: italic; }
.opening-date { margin-top: 26px; letter-spacing: .22em; font-size: .65rem; color: var(--brown); text-transform: uppercase; }

/* ---------- Botones ---------- */
.luxury-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 54px; padding: 0 28px;
  position: relative; overflow: hidden;
  border: 1px solid var(--gold);
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 100%;
  color: white; font-size: .65rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(157, 119, 19, .18);
  transition: transform .4s ease, box-shadow .4s ease, background-position .6s ease;
}
.luxury-button::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  transition: left .85s ease;
}
.luxury-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(157, 119, 19, .28);
  color: white;
  background-position: 100% 0;
}
.luxury-button:hover::after { left: 130%; }
.luxury-button:active { transform: translateY(-1px) scale(.98); }
.luxury-button.compact { min-height: 48px; margin-top: 18px; }

/* ---------- Contenido principal ---------- */
.invitation { opacity: 0; visibility: hidden; transition: opacity .8s ease; }
.invitation.visible { opacity: 1; visibility: visible; }

.section-paper {
  background:
    radial-gradient(circle at 10% 20%, rgba(201, 162, 39, .06), transparent 24%),
    radial-gradient(circle at 90% 80%, rgba(201, 162, 39, .05), transparent 28%),
    var(--cream);
}
.section { position: relative; padding: 120px 0; overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255, 253, 248, .78), rgba(255, 253, 248, .94)),
    radial-gradient(circle at 50% 0%, #fbf3dd, var(--cream) 65%);
}
.hero-frame { position: absolute; inset: 30px; border: 1px solid var(--line); pointer-events: none; }
.hero-content { max-width: 800px; margin: auto; padding: 90px 0; }
.gold-line { width: 70px; height: 1px; margin: 20px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.script-small { font-family: "Great Vibes"; font-size: 2.8rem; color: var(--gold-dark); }
.hero-message { max-width: 620px; margin: 30px auto; font-family: "Cormorant Garamond"; font-size: 1.25rem; line-height: 1.8; }
.hero-date { font-family: "Cormorant Garamond"; font-size: 1.2rem; letter-spacing: .22em; color: var(--gold-dark); text-transform: uppercase; }
.hero-date span { margin: 0 8px; font-size: .8em; }

.scroll-cue { margin-top: 55px; display: flex; justify-content: center; }
.scroll-cue span {
  width: 1px; height: 46px; position: relative;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.decor { position: absolute; pointer-events: none; color: var(--gold); opacity: .45; }
.decor-ring { right: 10%; top: 20%; font-size: 5rem; transform: rotate(-16deg); }

/* ---------- Ornamentos florales de esquina ---------- */
.corner-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: clamp(120px, 16vw, 220px);
  height: clamp(120px, 16vw, 220px);
  opacity: .85;
}
.corner-decor--lg { width: clamp(140px, 20vw, 260px); height: clamp(140px, 20vw, 260px); opacity: .7; }
.corner-decor--sm { width: clamp(90px, 11vw, 150px); height: clamp(90px, 11vw, 150px); opacity: .7; }
.corner-decor--card { width: clamp(60px, 9vw, 100px); height: clamp(60px, 9vw, 100px); opacity: .6; z-index: 0; }
@media (prefers-reduced-motion: no-preference) {
  .corner-decor { animation: cornerBreathe 9s ease-in-out infinite; }
  .corner-tr, .corner-br { animation-delay: 1.5s; }
}
@keyframes cornerBreathe {
  0%, 100% { opacity: .85; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.03); }
}
.corner-tr { animation-name: cornerBreatheFlip; }
.corner-bl { animation-name: cornerBreatheFlipY; }
.corner-br { animation-name: cornerBreatheFlipXY; }
@keyframes cornerBreatheFlip { 0%,100%{ opacity:.85; transform:scaleX(-1) scale(1);} 50%{opacity:.6; transform:scaleX(-1) scale(1.03);} }
@keyframes cornerBreatheFlipY { 0%,100%{ opacity:.85; transform:scaleY(-1) scale(1);} 50%{opacity:.6; transform:scaleY(-1) scale(1.03);} }
@keyframes cornerBreatheFlipXY { 0%,100%{ opacity:.85; transform:scale(-1,-1) scale(1);} 50%{opacity:.6; transform:scale(-1,-1) scale(1.03);} }

.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner-br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* ---------- Nuestra historia ---------- */
.story-section { padding: 110px 0; }
.story-layout { display: flex; align-items: center; gap: 60px; max-width: 900px; margin: 0 auto; }
.story-mark {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.8rem;
  background: radial-gradient(circle, rgba(230, 209, 138, .18), transparent 70%);
}
.story-copy { text-align: left; }
.story-copy h2 { font-family: "Cormorant Garamond"; font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 15px; color: #4d4037; }
.story-copy p:not(.eyebrow) { font-family: "Cormorant Garamond"; font-size: 1.2rem; line-height: 1.85; max-width: 560px; }
@media (max-width: 767px) {
  .story-layout { flex-direction: column; text-align: center; gap: 28px; }
  .story-copy { text-align: center; }
  .story-copy p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
}

/* ---------- Encabezados de sección ---------- */
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-heading h2, .date-copy h2, .reception-copy h2, .attendance-card h2 {
  font-family: "Cormorant Garamond"; font-weight: 500; font-size: clamp(2.7rem, 5vw, 4.3rem); margin: 0 0 15px; color: #4d4037;
}

/* ---------- Familia / padrinos ---------- */
.family-card, .sponsor-card {
  position: relative; height: 100%; padding: 48px 30px; text-align: center;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .65);
  box-shadow: var(--shadow);
  transition: transform .5s ease, box-shadow .5s ease;
}
.family-card:hover, .sponsor-card:hover { transform: translateY(-6px); box-shadow: 0 26px 70px rgba(80, 55, 25, .14); }
.family-card::before, .sponsor-card::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 162, 39, .12); pointer-events: none;
}
.family-label, .sponsor-card > span { letter-spacing: .18em; font-size: .6rem; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; }
.family-card h3, .sponsor-card h3 { font-family: "Cormorant Garamond"; font-size: 1.8rem; margin: 15px 0 20px; font-weight: 500; }
.family-card p, .sponsor-card p { margin: 5px 0; font-size: .82rem; letter-spacing: .04em; }
.family-card p:first-of-type { margin-top: 22px; }

/* ---------- Fecha + contador ---------- */
.date-layout { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: center; max-width: 1000px; margin: auto; }
.date-copy p:not(.eyebrow):not(.countdown-label):not(.countdown-message) { font-family: "Cormorant Garamond"; font-size: 1.2rem; line-height: 1.8; max-width: 500px; }
.date-card { width: 100%; padding: 50px 30px; text-align: center; border: 1px solid var(--line); background: rgba(255, 253, 248, .78); box-shadow: var(--shadow); }
.date-weekday, .date-month, .date-year { display: block; letter-spacing: .28em; color: var(--gold-dark); font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.date-card strong { display: block; font-family: "Cormorant Garamond"; font-size: 9rem; line-height: .85; font-weight: 500; color: #4d4037; margin: 15px 0; text-shadow: 0 0 34px rgba(201, 162, 39, .22); }
.date-card { transition: transform .5s ease, box-shadow .5s ease; }
.date-card:hover { transform: translateY(-4px); box-shadow: 0 26px 70px rgba(80, 55, 25, .16); }
.date-month { font-size: .9rem; }
.date-year { margin-top: 7px; }
.date-rule { width: 55px; height: 1px; margin: 24px auto; background: var(--gold); }
.date-time { font-family: "Cormorant Garamond"; font-size: 1.2rem; }

.countdown-wrap { margin-top: 40px; }
.countdown-label { font-size: .7rem; letter-spacing: .24em; color: var(--gold-dark); text-transform: uppercase; font-family: "Montserrat"; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 420px; }
.countdown > div { text-align: center; padding: 14px 6px; border-right: 1px solid var(--line); }
.countdown > div:last-child { border-right: 0; }
.countdown strong { display: block; font-family: "Cormorant Garamond"; font-size: 2.6rem; line-height: 1; font-weight: 500; color: #4d4037; }
.countdown span { font-size: .55rem; letter-spacing: .16em; color: var(--gold-dark); text-transform: uppercase; }
.countdown-message { text-align: center; margin-top: 25px; font-family: "Great Vibes"; font-size: 2rem; color: var(--gold-dark); }

/* ---------- Ceremonia ---------- */
.venue-card {
  max-width: 720px; margin: auto; padding: 65px 30px; text-align: center;
  border: 1px solid var(--line); background: linear-gradient(145deg, #fffdf8, #f8f1df);
  box-shadow: var(--shadow);
}
.venue-icon, .location-icon, .attendance-ornament, .sponsor-icon { color: var(--gold-dark); font-size: 1.5rem; margin-bottom: 18px; }
.venue-type { font-size: .62rem; letter-spacing: .25em; color: var(--gold-dark); font-weight: 600; text-transform: uppercase; }
.venue-card h3 { font-family: "Cormorant Garamond"; font-size: 3rem; margin: 10px 0 0; font-weight: 500; }
.venue-note { font-family: "Cormorant Garamond"; font-style: italic; }
.venue-address { display: flex; justify-content: center; gap: 10px; max-width: 500px; margin: 28px auto 0; font-size: .8rem; line-height: 1.6; }
.venue-address i { color: var(--gold); margin-top: 4px; }
.text-button { display: inline-flex; gap: 10px; margin-top: 24px; padding-bottom: 7px; border-bottom: 1px solid var(--gold); font-size: .65rem; letter-spacing: .16em; font-weight: 600; color: var(--gold-dark); text-transform: uppercase; }

/* ---------- Recepción ---------- */
.reception-grid { max-width: 1000px; margin: auto; display: grid; grid-template-columns: 1fr 300px; gap: 70px; align-items: center; }
.reception-copy h3 { font-family: "Cormorant Garamond"; font-size: 2.3rem; margin-top: 28px; }
.reception-copy p { font-family: "Cormorant Garamond"; font-size: 1.15rem; }
.reception-mark { height: 300px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold-dark); gap: 20px; letter-spacing: .2em; font-size: .65rem; text-align: center; text-transform: uppercase; }
.reception-mark i { font-size: 2rem; }

/* ---------- Padrinos ---------- */
.sponsor-card { padding: 42px 25px; }
.sponsor-icon { font-size: 1.2rem; }
.sponsor-card h3 { font-size: 1.5rem; }

/* ---------- Ubicación ---------- */
.location-layout { max-width: 1100px; margin: auto; display: grid; grid-template-columns: 1.25fr .75fr; min-height: 480px; box-shadow: var(--shadow); }
.map-frame { min-height: 480px; background: #eee; }
.map-frame iframe { width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(.2) sepia(.08); }
.location-info { padding: 55px 40px; background: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.location-info h3 { font-family: "Cormorant Garamond"; font-size: 2.2rem; font-weight: 500; }
.location-info p { margin: 3px 0; font-size: .82rem; line-height: 1.7; }
.qr-block { display: flex; gap: 20px; align-items: center; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
#qrCode { padding: 8px; background: white; border: 1px solid var(--line); }
#qrCode img { display: block; width: 100px !important; height: 100px !important; }
.qr-title { font-family: "Cormorant Garamond"; font-size: 1.25rem !important; color: var(--gold-dark); }

/* ---------- Confirmación ---------- */
.attendance-card { position: relative; overflow: hidden; max-width: 720px; margin: auto; padding: 75px 35px; text-align: center; border: 1px solid var(--line); background: rgba(255, 253, 248, .8); box-shadow: var(--shadow); }
.attendance-card > *:not(.corner-decor) { position: relative; z-index: 1; }
.attendance-card p:not(.eyebrow) { max-width: 520px; margin: 0 auto 30px; font-family: "Cormorant Garamond"; font-size: 1.25rem; line-height: 1.7; }

/* ===== BOTONES DE CONFIRMACIÓN ===== */
.confirmation-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-buttons .luxury-button {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.confirmation-buttons .luxury-button:first-child {
  background: linear-gradient(120deg, #1a6b2a, #2d8a3e, #1a6b2a);
  background-size: 200% 100%;
  border-color: #1a6b2a;
  box-shadow: 0 10px 30px rgba(26, 107, 42, 0.3);
}

.confirmation-buttons .luxury-button:first-child:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 35px rgba(26, 107, 42, 0.4);
}

.confirmation-buttons .luxury-button:last-child {
  background: linear-gradient(120deg, #7a1a6b, #a82d8a, #7a1a6b);
  background-size: 200% 100%;
  border-color: #7a1a6b;
  box-shadow: 0 10px 30px rgba(122, 26, 107, 0.3);
}

.confirmation-buttons .luxury-button:last-child:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 35px rgba(122, 26, 107, 0.4);
}

.confirmation-buttons .luxury-button i {
  font-size: 1.2rem;
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .confirmation-buttons .luxury-button {
    font-size: 0.6rem;
    padding: 0 16px;
    min-height: 44px;
  }
}

/* ---------- Control de música ---------- */
.floating-control {
  position: fixed; z-index: 4000;
  right: max(24px, calc(env(safe-area-inset-right) + 14px));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px));
  width: 55px; height: 55px;
  border: 1px solid var(--gold); border-radius: 50%; background: rgba(255, 253, 248, .9); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 12px 35px rgba(70, 50, 25, .14);
  backdrop-filter: blur(8px);
  transition: transform .35s ease, box-shadow .35s ease;
}
.floating-control:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(70, 50, 25, .2); }
.floating-control.playing { animation: controlPulse 2.4s ease-in-out infinite; }
@keyframes controlPulse {
  0%, 100% { box-shadow: 0 12px 35px rgba(70, 50, 25, .14), 0 0 0 0 rgba(201, 162, 39, .28); }
  50% { box-shadow: 0 12px 35px rgba(70, 50, 25, .14), 0 0 0 8px rgba(201, 162, 39, 0); }
}
.sound-bars { display: none; align-items: flex-end; gap: 2px; height: 13px; }
.sound-bars b { width: 2px; height: 7px; background: var(--gold); animation: bars .8s ease-in-out infinite alternate; }
.sound-bars b:nth-child(2) { animation-delay: .15s; }
.sound-bars b:nth-child(3) { animation-delay: .3s; }
.sound-bars b:nth-child(4) { animation-delay: .45s; }
.floating-control.playing .fa-music { display: none; }
.floating-control.playing .sound-bars { display: flex; }
@keyframes bars { to { height: 13px; } }

/* ---------- Navegación de puntos ---------- */
.dot-nav {
  position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 3500;
  display: flex; flex-direction: column; gap: 16px;
}
.dot-nav a {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; transition: background .3s ease, transform .3s ease;
}
.dot-nav a.active { background: var(--gold); transform: scale(1.3); }
.dot-nav a::before {
  content: attr(data-label);
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: .62rem; letter-spacing: .1em; color: var(--brown);
  background: rgba(255, 253, 248, .92); padding: 4px 10px; border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  text-transform: uppercase;
}
.dot-nav a:hover::before { opacity: 1; }
@media (max-width: 1200px) { .dot-nav { display: none; } }

/* ---------- Footer ---------- */
.footer { padding: 70px 20px 55px; text-align: center; background: #4b4038; color: #f7efdc; }
.footer-ornament { margin-bottom: 25px; }
.footer-ornament span { background: rgba(230, 209, 138, .4); }
.footer-ornament i { color: var(--gold-light); font-size: .7rem; }
@media (prefers-reduced-motion: no-preference) {
  .footer-ornament i { display: inline-block; animation: heartPulse 1.8s ease-in-out infinite; }
}
@keyframes heartPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.script-footer { font-family: "Great Vibes"; font-size: 3rem; margin: 0 0 12px; color: var(--gold-light); }
.footer > p:not(.script-footer), .footer-note { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-note { display: block; margin-top: 25px; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .date-layout, .reception-grid, .location-layout { grid-template-columns: 1fr; }
  .date-copy { text-align: center; }
  .date-copy p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .countdown { margin: 24px auto 0; }
  .reception-mark { width: 260px; margin: auto; }
  .location-info { padding: 50px 30px; }
}
@media (max-width: 767px) {
  .section { padding: 70px 0; }
  .hero-frame { inset: 12px; }
  .hero-content { padding: 60px 16px; }
  .couple-name { font-size: clamp(2.7rem, 12.5vw, 5.2rem); }
  .hero-message { font-size: 1.05rem; }
  .opening-card { width: min(92vw, 650px); }
  .opening-card h1 { font-size: clamp(2.15rem, 9.5vw, 3.4rem); }
  .decor-ring { right: 5%; top: 12%; font-size: 3rem; }
  .date-card strong { font-size: clamp(4.5rem, 22vw, 6rem); }
  .venue-card h3 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .venue-card { padding: 50px 22px; }
  .countdown strong { font-size: 2rem; }
  .countdown span { font-size: .48rem; letter-spacing: .1em; }
  .countdown > div { padding: 10px 4px; }
  .map-frame, .map-frame iframe { min-height: 300px; }
  .qr-block { align-items: flex-start; flex-wrap: wrap; }
  .script-footer { font-size: 2.4rem; }

  /* Ornamentos florales: más pequeños y discretos para no tapar el texto */
  .corner-decor { width: clamp(90px, 30vw, 130px); height: clamp(90px, 30vw, 130px); opacity: .65; }
  .corner-decor--lg { width: clamp(110px, 38vw, 160px); height: clamp(110px, 38vw, 160px); opacity: .7; }
  .corner-decor--sm { width: clamp(75px, 24vw, 100px); height: clamp(75px, 24vw, 100px); opacity: .55; }
  .corner-decor--card { width: clamp(46px, 16vw, 64px); height: clamp(46px, 16vw, 64px); opacity: .5; }
  .attendance-card { padding: 60px 24px; }
}

@media (max-width: 420px) {
  .opening-card h1 { font-size: clamp(1.95rem, 10vw, 2.9rem); }
  .corner-decor--lg { width: 30vw; height: 30vw; }
  .corner-decor { width: 24vw; height: 24vw; }
  .container { padding: 0 18px; }
  .luxury-button { padding: 0 20px; font-size: .6rem; letter-spacing: .14em; }
  .date-layout, .reception-grid { gap: 40px; }
}

/* ---------- Pantalla de apertura: viewports bajos (móvil horizontal, pantallas pequeñas) ---------- */
@media (max-height: 720px) {
  .opening-card { gap: clamp(4px, 1.4dvh, 10px); }
  .opening-emblem { font-size: 1.4rem; gap: 12px; }
  .opening-card h1 { line-height: .9; }
  .opening-card h1 small { font-size: 1.7rem; margin: 3px 0; }
  .opening-quote { font-size: 1.05rem; }
  .luxury-button { min-height: 46px; padding: 0 24px; }
  .opening-date { font-size: .6rem; }
}
@media (max-height: 580px) {
  .opening-emblem { display: none; }
  .opening-quote { display: none; }
  .opening-divider { transform: scale(.8); }
}
@media (max-height: 460px) {
  .opening-ornament { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }