/* =====================================================
   STYLE.CSS — Diseño Completo con Optimizaciones Móvil
   Boda Lizeth & Cesar
   Paleta: #071739|#4B6382|#A4B5C4|#CDD5DB|#A68868|#E3C39D
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ══════════════════════════════════════════════════════
   VARIABLES
   ══════════════════════════════════════════════════════ */
:root {
  --bg:          #071739;
  --steel:       #4B6382;
  --gray-blue:   #A4B5C4;
  --silver:      #CDD5DB;
  --gold:        #A68868;
  --champagne:   #E3C39D;

  /* Aliases para inline-style vars del HTML */
  --deep-blue:      #071739;
  --steel-blue:     #4B6382;
  --blue-gray:      #A4B5C4;
  --pale-gray:      #CDD5DB;
  --taupe:          #A68868;
  --sand:           #E3C39D;
  --cream:          transparent;
  --text-primary:   #E3C39D;
  --text-secondary: #A4B5C4;

  --card-bg:     rgba(75, 99, 130, 0.28);
  --card-border: rgba(163, 136, 104, 0.30);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ══════════════════════════════════════════════════════
   RESET
   ══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ══════════════════════════════════════════════════════
   SCROLLBAR — Solo escritorio (pointer: fine)
   ══════════════════════════════════════════════════════ */
@media (pointer: fine) {
  ::-webkit-scrollbar            { width: 6px; }
  ::-webkit-scrollbar-track      { background: var(--bg); }
  ::-webkit-scrollbar-thumb      { background: var(--steel); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover{ background: var(--gold); }
  *  { scrollbar-color: var(--steel) var(--bg); scrollbar-width: thin; }
}

/* ══════════════════════════════════════════════════════
   BODY
   ══════════════════════════════════════════════════════ */
body {
  background-color: var(--bg);
  color: var(--silver);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 2.1; /* Aumentado para mayor elegancia */
  font-size: max(15px, 1rem);
  overflow-x: hidden;
  /* cursor: none SOLO cuando JS agrega .no-cursor */
}
body.no-cursor { cursor: none; }

/* ── Canvas de fondo ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ══════════════════════════════════════════════════════
   CURSOR PERSONALIZADO — Solo escritorio (via .no-cursor)
   ══════════════════════════════════════════════════════ */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--champagne);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  display: none; /* JS lo activa solo en desktop */
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s;
  will-change: transform;
  display: none; /* JS lo activa solo en desktop */
}
body.no-cursor #cursor-dot  { display: block; }
body.no-cursor #cursor-ring { display: block; }
#cursor-ring.hovered {
  width: 46px; height: 46px;
  border-color: var(--champagne);
  opacity: 0.8;
}

/* ══════════════════════════════════════════════════════
   TIPOGRAFÍA — clamp() para responsividad
   ══════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--champagne);
}
p {
  color: var(--silver);
  line-height: 2.1; /* Coherencia con el body */
  font-size: max(15px, 1rem);
}
a {
  color: var(--champagne);
  text-decoration: none;
  transition: text-decoration-color 0.3s;
}
a:hover { text-decoration: underline; text-decoration-color: var(--gold); }

.script-font { font-family: 'Great Vibes', cursive; }

/* ══════════════════════════════════════════════════════
   LAYOUT — z-index sobre el canvas
   ══════════════════════════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
footer { position: relative; z-index: 1; }
#music-toggle { z-index: 1000; }

/* ══════════════════════════════════════════════════════
   TOUCH-ACTION — elimina delay 300ms en todos los elem.
   ══════════════════════════════════════════════════════ */
a, button, .btn-map, .btn-whatsapp, .copy-btn,
#music-toggle, .scroll-indicator, .dress-item,
.count-item, .parents-block, .info-card,
#envelope-container {
  touch-action: manipulation;
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.active { opacity: 1; }

.fade-up          { transform: translateY(40px); }
.fade-up.active   { transform: translateY(0); }

.fade-in          { transform: scale(0.96); }
.fade-in.active   { transform: scale(1); }

.zoom-in          { transform: scale(0.82); }
.zoom-in.active   { transform: scale(1); }

.slide-left       { transform: translateX(45px); }
.slide-left.active{ transform: translateX(0); }

.slide-right      { transform: translateX(-45px); }
.slide-right.active{ transform: translateX(0); }

.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.42s; }
.delay-4 { transition-delay: 0.60s; }

/* ══════════════════════════════════════════════════════
   H2 — Separador con diamante SVG animado
   ══════════════════════════════════════════════════════ */
h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--champagne);
  position: relative;
  display: inline-block;
  letter-spacing: 0.02em;
}
h2::after {
  content: '';
  display: block;
  margin: 0.65rem auto 0;
  width: 0;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cline x1='0' y1='6' x2='52' y2='6' stroke='%23A68868' stroke-width='0.8'/%3E%3Cpolygon points='60,1 67,6 60,11 53,6' fill='%23A68868'/%3E%3Cline x1='68' y1='6' x2='120' y2='6' stroke='%23A68868' stroke-width='0.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: width 0.85s var(--ease-out) 0.2s;
}
section h2::after { width: 120px; transition-delay: 0.4s; }

/* ══════════════════════════════════════════════════════
   OVERLAY ENTRADA — SOBRE
   ══════════════════════════════════════════════════════ */
#envelope-container {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #04101f 0%, #051228 60%, #071739 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
  overflow: hidden;
}

/* Bokeh */
.bokeh-container {
  position: absolute; inset: 0; pointer-events: none;
}
.bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,195,157,0.15) 0%, transparent 65%);
  filter: blur(22px);
  animation: floatBokeh 22s infinite alternate ease-in-out;
}
.bokeh:nth-child(1){ width:280px; height:280px; top:-50px;    left:-50px;    animation-delay:0s;   }
.bokeh:nth-child(2){ width:380px; height:380px; bottom:-100px; right:-90px;  animation-delay:-7s;  }
.bokeh:nth-child(3){ width:220px; height:220px; top:35%;      right:-40px;   animation-delay:-3s;  }
.bokeh:nth-child(4){ width:320px; height:320px; bottom:15%;   left:-100px;   animation-delay:-11s; }
.bokeh:nth-child(5){ width:100px; height:100px; top:12%;      right:14%;     opacity:.5; }
.bokeh:nth-child(6){ width:140px; height:140px; bottom:12%;   left:14%;      opacity:.5; }
@keyframes floatBokeh {
  0%   { transform: translate(0,0) scale(1);       opacity: 0.4; }
  100% { transform: translate(55px,45px) scale(1.1); opacity: 0.8; }
}

.envelope-wrapper {
  display: flex; flex-direction: column;
  align-items: center; gap: 36px; z-index: 20;
  padding: 1rem;
}

/* ── SOBRE físico ── */
.envelope {
  position: relative;
  width: min(420px, 88vw);
  aspect-ratio: 420 / 265;
  /* Textura simulada con líneas CSS */
  background:
    repeating-linear-gradient(0deg,   transparent, transparent 18px, rgba(255,255,255,0.03) 18px, rgba(255,255,255,0.03) 19px),
    repeating-linear-gradient(90deg,  transparent, transparent 18px, rgba(255,255,255,0.02) 18px, rgba(255,255,255,0.02) 19px),
    linear-gradient(145deg, #5a7192 0%, #3d5470 50%, #4B6382 100%);
  border-radius: 3px;
  cursor: pointer;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.60),
    0 0 0 1px rgba(163,136,104,0.30);
  perspective: 600px;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.envelope:hover {
  transform: translateY(-7px);
  box-shadow:
    0 42px 90px rgba(0,0,0,0.70),
    0 0 0 1px rgba(227,195,157,0.40);
}

/* Solapa triangular superior — clip-path */
.envelope::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 58%;
  background: linear-gradient(180deg, #071739 0%, #0c2040 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  border-bottom: 1px solid rgba(163,136,104,0.40);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}
.envelope.open::before { transform: rotateX(-180deg); }

/* Degradados diagonales del cuerpo del sobre */
.envelope::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom right, rgba(163,136,104,0.16) 0%, transparent 42%),
    linear-gradient(to bottom left,  rgba(163,136,104,0.10) 0%, transparent 42%);
  z-index: 1;
  pointer-events: none;
}

/* ── Sello de lacre ── */
.wax-seal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -42%);
  width: clamp(72px, 20vw, 90px);
  height: clamp(72px, 20vw, 90px);
  background:
    radial-gradient(circle at 38% 35%, rgba(255,255,255,0.14) 0%, transparent 55%),
    radial-gradient(circle, #c9a575 0%, #A68868 45%, #8b6842 100%);
  border-radius: 50%;
  border: 2px solid rgba(227,195,157,0.65);
  box-shadow: 0 0 0 1px rgba(163,136,104,0.3), 0 8px 24px rgba(0,0,0,0.55);
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, transform 0.45s ease;
}
.wax-seal::after {
  content: 'C & L';
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.7rem, 2.5vw, 0.88rem);
  font-weight: 700;
  color: #071739;
  letter-spacing: 0.05em;
}
.envelope:hover .wax-seal { transform: translate(-50%, -42%) scale(1.06); }
.envelope.open  .wax-seal {
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.72);
}

/* "Toca para abrir" */
.open-prompt {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  color: var(--champagne);
  letter-spacing: 0.1em;
  animation: pulseGold 3s infinite alternate ease-in-out;
  min-height: 44px; /* zona de toque generosa */
  display: flex; align-items: center;
}
@keyframes pulseGold {
  from { opacity: 0.6; text-shadow: none; }
  to   { opacity: 1;   text-shadow: 0 0 22px rgba(227,195,157,0.5); }
}

/* ══════════════════════════════════════════════════════
   MÚSICA
   ══════════════════════════════════════════════════════ */
#music-toggle {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  width: 52px; height: 52px;  /* mínimo 52px táctil */
  background: rgba(7,23,57,0.88);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  color: var(--champagne);
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#music-toggle:hover  { background: rgba(163,136,104,0.22); border-color: var(--champagne); }
#music-toggle.playing i { animation: spinNote 4s linear infinite; }
@keyframes spinNote { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════
   HERO / PORTADA
   ══════════════════════════════════════════════════════ */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(7,23,57,0.48), rgba(7,23,57,0.60)),
    url('assets/cover.png') center/cover no-repeat;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  color: var(--champagne);
  padding-top: 0;
  max-width: none;
  position: relative; z-index: 1;
}
/* Líneas decorativas */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: min(500px, 88%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163,136,104,0.42), transparent);
}
.hero::before { top: 2.5rem; }
.hero::after  { bottom: 5rem; }

/* Nombres con clamp */
.hero h1 {
  font-size: clamp(3.8rem, 12vw, 6.2rem);
  line-height: 1.2; /* Más aire para los nombres */
  color: var(--champagne);
  text-shadow: 0 4px 32px rgba(7,23,57,0.65);
  text-align: center;
  width: 100%;
  display: block;
  margin: 0;
}

/* Contenedor compacto de nombres */
.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0;
}

/* Ampersand entre nombres */
.hero-ampersand {
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(2.2rem, 7vw, 3rem) !important;
  color: var(--gold) !important;
  margin: -0.2rem 0 !important; /* Ajustado ligeramente */
  line-height: 1.1 !important;
  text-align: center;
  width: 100%;
  display: block;
}

/* Fecha debajo de los nombres */
.hero-date {
  font-family: 'Lato', sans-serif;
  color: var(--gray-blue);
  letter-spacing: 0.2em;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  text-transform: uppercase;
  margin-top: 1rem;
  text-align: center;
  width: 100%;
  transform: translateX(0.1em); /* Compensación óptica del letter-spacing */
}

/* Ampersand */
.hero p[style*="font-size: 3rem"] {
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(2.6rem, 8vw, 3.5rem) !important;
  color: var(--gold) !important;
  margin: -0.6rem 0 !important;
}

/* Ampersand entre nombres */
.hero p.script-font {
  text-align: center;
  width: 100%;
  display: block;
}

/* Letra a letra */
.letter-anim {
  display: inline-block;
  opacity: 0;
  animation: letterIn 0.65s var(--ease-out) forwards paused;
}
@keyframes letterIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ampersand */
.hero p[style*="font-size: 3rem"] {
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(2.6rem, 8vw, 3.5rem) !important;
  color: var(--gold) !important;
  margin: -0.6rem 0 !important;
}

.hero p.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.7rem, 2.2vw, 0.9rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-blue);
  text-align: center;
  width: 100%;
  transform: translateX(0.21em); /* Compensación óptica perfecta del letter-spacing */
}
.hero p.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.9rem, 3vw, 1.05rem);
  max-width: 82%;
  margin: 0 auto;
  color: var(--silver);
  line-height: 1.85;
  opacity: 0.88;
}
.hero > div {
  font-family: 'Lato', sans-serif;
  color: var(--gray-blue) !important;
  letter-spacing: 0.2em;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

/* Indicador scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  animation: bounce 2.5s infinite;
  color: var(--gold); opacity: 0.72;
  transition: opacity 0.3s;
  min-height: 44px; justify-content: flex-end;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator span {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.25em; color: var(--gray-blue);
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-9px); }
  60% { transform: translateY(-4px); }
}

/* ══════════════════════════════════════════════════════
   PADRES & PADRINOS
   ══════════════════════════════════════════════════════ */
.parents-section { background: transparent; padding: 2rem 1.5rem 6rem; }

.elegant-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2px;
  padding: 4rem 2rem;
  max-width: 560px; margin: 0 auto;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Esquinas doradas */
.elegant-card::before, .elegant-card::after {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  border-color: rgba(163,136,104,0.48);
  border-style: solid; pointer-events: none;
}
.elegant-card::before { top:14px; left:14px;  border-width:1px 0 0 1px; }
.elegant-card::after  { bottom:14px; right:14px; border-width:0 1px 1px 0; }

.italic-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  color: var(--champagne); margin: 0; line-height: 1.5; opacity: 0.88;
}

/* Bloque de tarjeta con efecto hover (desktop) y tap (mobile via JS .touch-glow) */
.parents-block {
  margin-bottom: 2.3rem; position: relative; z-index: 2;
  padding: 1rem 0.8rem;
  border: 1px solid transparent; border-radius: 2px;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
@media (hover: hover) {
  .parents-block:hover {
    border-color: rgba(163,136,104,0.5);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(227,195,157,0.15);
  }
}
.parents-block.touch-glow {
  border-color: rgba(163,136,104,0.55);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(227,195,157,0.15);
}
.info-card.touch-glow {
  border-color: rgba(163,136,104,0.6);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(227,195,157,0.13);
}

.parents-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  color: var(--gold); margin-bottom: 0.5rem; font-weight: normal;
}
.parents-block p {
  font-family: 'Playfair Display', serif;
  color: var(--silver) !important;
  font-size: max(15px, 1.03rem);
  margin-bottom: 0.3rem; letter-spacing: 0.04em;
}
.card-divider {
  color: var(--gold); letter-spacing: 10px; font-size: 0.55rem;
  margin-top: 2rem; opacity: 0.65;
}

/* Decoraciones florales */
.top-left-leaf,.top-left-branch,.bottom-right-leaf,.bottom-right-branch {
  position: absolute; color: var(--gold); opacity: 0.10; z-index: 1;
}
.top-left-leaf    { top:14px;  left:14px;  font-size:3.5rem; transform:rotate(135deg); }
.top-left-branch  { top:-10px; left:34px;  font-size:5.5rem; transform:rotate(110deg); }
.bottom-right-leaf{ bottom:14px; right:14px; font-size:3.5rem; transform:rotate(-45deg); }
.bottom-right-branch{ bottom:-10px; right:34px; font-size:5.5rem; transform:rotate(-70deg); }

/* ══════════════════════════════════════════════════════
   CUENTA REGRESIVA
   ══════════════════════════════════════════════════════ */
.countdown-section {
  background: linear-gradient(135deg, rgba(7,23,57,0.95) 0%, rgba(75,99,130,0.22) 100%);
  border-top: 1px solid rgba(163,136,104,0.15);
  border-bottom: 1px solid rgba(163,136,104,0.15);
  padding: 6rem 1.5rem; max-width: none;
}
.countdown-section > h2,
.countdown-section h2.script-font {
  color: var(--champagne) !important;
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(2.8rem, 8vw, 3.8rem) !important;
  font-weight: 400 !important;
}
.countdown-section > h3 {
  font-family: 'Lato', sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.2em !important;
  font-size: clamp(0.8rem, 2.5vw, 1rem) !important;
  text-transform: uppercase !important;
  color: var(--gray-blue) !important;
  margin-top: 1.2rem;
}
.countdown-wrapper {
  display: flex; justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.2rem);
  max-width: 480px; margin: 2rem auto; flex-wrap: wrap;
}
.count-item {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(75,99,130,0.25);
  border: 1px solid rgba(163,136,104,0.25);
  border-radius: 2px;
  padding: clamp(0.9rem, 3vw, 1.3rem) clamp(1rem, 3.5vw, 1.5rem);
  min-width: clamp(72px, 20vw, 90px);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.count-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700; color: var(--champagne); line-height: 1;
}
.count-number.flip-anim {
  animation: flipNumber 0.5s cubic-bezier(0.4,0,0.2,1);
}
@keyframes flipNumber {
  0%  { transform: rotateX(0deg);   opacity: 1; }
  40% { transform: rotateX(-90deg); opacity: 0; }
  60% { transform: rotateX(90deg);  opacity: 0; }
  100%{ transform: rotateX(0deg);   opacity: 1; }
}
.count-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gray-blue); margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════
   INFO EVENTO (¿Dónde Será?)
   ══════════════════════════════════════════════════════ */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; margin-top: 3rem; }
.info-card {
  padding: 2.2rem 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2px;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
@media (hover: hover) {
  .info-card:hover {
    border-color: rgba(163,136,104,0.6);
    transform: translateY(-5px);
    box-shadow: 0 0 22px rgba(227,195,157,0.10);
  }
}
.info-card i { font-size: 2rem; color: var(--gold); margin-bottom: 0.8rem; display: block; }
.info-card h3               { color: var(--champagne) !important; font-size: clamp(1.6rem,5vw,2.2rem) !important; }
.info-card p                { color: var(--silver) !important; }
.info-card p[style*="font-weight: 700"] { color: var(--silver) !important; letter-spacing: 0.04em; }
.info-card p[style*="text-secondary"]   { color: var(--gray-blue) !important; }

.btn-map {
  display: inline-block;
  padding: 0.7rem 1.7rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--champagne);
  border-radius: 2px; margin-top: 1.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn-map:hover { background: var(--gold); color: var(--bg); text-decoration: none; }

section > p[style*="Playfair Display"][style*="font-weight: 700"] {
  color: var(--champagne) !important;
  font-size: clamp(1.4rem, 4.5vw, 1.75rem) !important;
  margin-top: 3rem;
}



/* ══════════════════════════════════════════════════════
   GALERÍA — Grid (desktop) | Swipe horizontal (móvil)
   ══════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-top: 2rem;
}

/* Wrappers inyectados por JS */
.gallery-item-wrapper {
  position: relative; overflow: hidden; border-radius: 2px;
  border: 1px solid transparent;
  transition: border-color 0.35s ease;
}
.gallery-item-wrapper:hover { border-color: var(--gold); }
.gallery-item-wrapper.gallery-full { grid-column: span 2; }

.gallery-item-wrapper img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
  filter: brightness(0.82);
  transition: filter 0.4s ease, transform 0.5s ease;
  transform-origin: center;
  transform: scale(1.04);
}
.gallery-item-wrapper:hover img   { filter: brightness(1); }
.gallery-item-wrapper.gallery-full img { aspect-ratio: 16/9; }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(7,23,57,0.52);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.gallery-item-wrapper:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--champagne); font-size: 1.6rem; }

/* ─── MÓVIL: swipe horizontal con scroll-snap ─── */
@media (pointer: coarse) {
  .gallery-grid {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 1.5rem 1rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }

  .gallery-item-wrapper,
  .gallery-item-wrapper.gallery-full {
    grid-column: unset;
    flex: 0 0 auto;
    width: 80vw;
    scroll-snap-align: center;
    border-radius: 2px;
  }
  .gallery-item-wrapper img,
  .gallery-item-wrapper.gallery-full img {
    aspect-ratio: 4/3;
    max-height: 260px;
    transform: none !important; /* sin parallax en móvil */
    filter: brightness(0.9);
  }
}

/* ══════════════════════════════════════════════════════
   CÓDIGO DE VESTIMENTA
   ══════════════════════════════════════════════════════ */
section[style*="background-color: var(--cream)"] {
  background-color: transparent !important;
  border-top:    1px solid rgba(163,136,104,0.12);
  border-bottom: 1px solid rgba(163,136,104,0.12);
}
.dress-icons { display: flex; justify-content: center; gap: 3.5rem; margin-top: 2rem; }
.dress-item  { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.dress-item i {
  font-size: 2.2rem; color: var(--gold);
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--gold);
  background: rgba(75,99,130,0.22); border-radius: 2px;
  transition: background 0.3s, color 0.3s;
  min-width: 52px; min-height: 52px; /* zona toque */
  display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) {
  .dress-item:hover i { background: rgba(163,136,104,0.18); color: var(--champagne); }
}
.dress-item p {
  color: var(--champagne) !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   MESA DE REGALOS
   ══════════════════════════════════════════════════════ */
.gift-card {
  border: 1px solid rgba(163,136,104,0.30); border-radius: 2px;
  padding: 2.4rem 2rem;
  background: var(--card-bg);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.gift-card > p { color: var(--silver); font-size: max(15px, 1rem); line-height: 1.9; }
.gift-card > div > div[style*="background"] {
  background: rgba(7,23,57,0.62) !important;
  border-radius: 2px !important;
  border-left: 3px solid var(--gold) !important;
  border-top: none !important; border-right: none !important; border-bottom: none !important;
  padding: 1.2rem 1.4rem !important; text-align: left; position: relative;
}
.gift-card strong {
  font-family: 'Lato', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 0.4rem;
}
.gift-card span {
  font-family: 'Courier New', Courier, monospace;
  color: var(--silver); font-size: 1rem; letter-spacing: 0.06em;
}
.gift-card small {
  font-family: 'Courier New', Courier, monospace;
  color: var(--gray-blue); font-size: 0.8rem; display: block; margin-top: 0.3rem;
}

/* Botón copiar */
.copy-btn {
  display: inline-block; margin-top: 0.9rem;
  padding: 0.55rem 1.2rem; min-height: 44px;
  background: transparent; border: 1px solid var(--gold);
  color: var(--champagne); border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.15s;
}
.copy-btn:hover { background: rgba(163,136,104,0.18); }
.copy-btn.copied { color: var(--champagne); border-color: var(--champagne); }

/* ══════════════════════════════════════════════════════
   RSVP — CONFIRMACIÓN
   ══════════════════════════════════════════════════════ */
.rsvp-section {
  background: linear-gradient(135deg, rgba(75,99,130,0.20) 0%, rgba(7,23,57,0.96) 100%);
  border-top: 1px solid rgba(163,136,104,0.18); max-width: none;
}
.rsvp-section h2.script-font { color: var(--champagne) !important; font-size: clamp(2.5rem,8vw,3.5rem) !important; }
.rsvp-section p               { color: var(--gray-blue); font-size: max(15px,0.95rem); letter-spacing: 0.06em; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.2rem;
  min-height: 52px; /* mínimo toque móvil */
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--champagne);
  border-radius: 2px;
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: clamp(0.85rem, 2.5vw, 1rem); letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 2rem; cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  animation: pulseBtn 3.5s infinite;
  overflow: hidden; position: relative;
}
.btn-whatsapp:hover { background: var(--gold); color: var(--bg); text-decoration: none; }
@keyframes pulseBtn {
  0%,100%{ box-shadow: 0 0 0 0 rgba(163,136,104,0); }
  50%     { box-shadow: 0 0 14px 3px rgba(163,136,104,0.25); }
}

/* Ripple */
.ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(227,195,157,0.32);
  transform: scale(0);
  animation: rippleAnim 0.75s linear forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(1); opacity: 0; } }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  padding: 3.5rem 1rem; text-align: center;
  color: var(--gray-blue) !important;
  font-family: 'Lato', sans-serif;
  font-size: max(13px, 0.8rem); letter-spacing: 0.1em;
  border-top: 1px solid rgba(163,136,104,0.12);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE GENERAL
   ══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  section { padding: 5rem 1.2rem; }
  .countdown-wrapper { gap: 0.6rem; }
  .parents-section { padding: 1.5rem 1rem 5rem; }
  .elegant-card { padding: 3rem 1.2rem; }
  .timeline-item { padding-left: 48px; }
  .timeline-img  { height: 150px; }
}
