/* ═══════════════════════════════════════════════════════════════
   Ana & Carlos — Invitación de Casamiento
   Estilo: Elegante y Romántico
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --cream:        #faf6f0;
  --cream-dark:   #f0e8db;
  --blush:        #e8c4b8;
  --blush-deep:   #d4a5a5;
  --gold:         #c9a76c;
  --gold-light:   #e8d5a3;
  --gold-dark:    #a07840;
  --brown:        #6b4f3a;
  --dark:         #2a2018;
  --sage:         #7a9e7e;
  --text:         #4a3728;
  --text-light:   #7a6555;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', 'Segoe UI', sans-serif;
  --font-script:  'Great Vibes', cursive;

  --transition:   0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow:       0 4px 30px rgba(100, 70, 40, 0.12);
  --shadow-lg:    0 12px 60px rgba(100, 70, 40, 0.2);
}

/* ── Lucide icons global ── */
[data-lucide] {
  display: inline-block;
  stroke-width: 1.5;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Utilities ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pre {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-pre.light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--brown);
  line-height: 1.1;
}
.section-title.gold { color: var(--gold-dark); }
.section-title.light { color: #faf6f0; }

/* AOS-style fade-in */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(100,70,40,0.1);
  padding: 0.7rem 2.5rem;
}
#navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
#navbar ul a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color var(--transition);
  position: relative;
}
#navbar.scrolled ul a { color: var(--text); }
#navbar ul a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
#navbar ul a:hover::after { transform: scaleX(1); }
.nav-logo {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--cream);
  transition: color var(--transition);
}
.nav-logo span { color: var(--gold); }
#navbar.scrolled .nav-logo { color: var(--brown); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42,32,24,0.3) 0%,
    rgba(42,32,24,0.15) 40%,
    rgba(42,32,24,0.5) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}
.hero-pre {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  animation: fadeDown 1s ease 0.3s both;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 300;
  font-style: italic;
  color: white;
  line-height: 0.9;
  margin-bottom: 0.2rem;
  animation: fadeDown 1s ease 0.5s both;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.names-script {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  animation: fadeDown 1s ease 0.7s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.names-script span { color: white; }
.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5em;
  margin-bottom: 2.5rem;
  animation: fadeDown 1s ease 0.9s both;
}
.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  animation: fadeDown 1s ease 1.1s both;
  backdrop-filter: blur(4px);
}
.hero-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Falling petals */
.petals-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.petals-anim span {
  position: absolute;
  top: -20px;
  width: 12px; height: 12px;
  background: radial-gradient(circle, rgba(232,196,184,0.8), rgba(212,165,165,0.4));
  border-radius: 50% 0 50% 0;
  animation: falling linear infinite;
}
.petals-anim span:nth-child(1)  { left:10%; animation-duration:8s; animation-delay:0s; }
.petals-anim span:nth-child(2)  { left:25%; animation-duration:10s; animation-delay:2s; width:8px; height:8px; }
.petals-anim span:nth-child(3)  { left:40%; animation-duration:7s; animation-delay:1s; }
.petals-anim span:nth-child(4)  { left:55%; animation-duration:9s; animation-delay:3s; width:15px; height:15px; }
.petals-anim span:nth-child(5)  { left:70%; animation-duration:11s; animation-delay:0.5s; }
.petals-anim span:nth-child(6)  { left:80%; animation-duration:8.5s; animation-delay:4s; width:9px; height:9px; }
.petals-anim span:nth-child(7)  { left:15%; animation-duration:12s; animation-delay:1.5s; }
.petals-anim span:nth-child(8)  { left:50%; animation-duration:9.5s; animation-delay:2.5s; width:11px; height:11px; }
.petals-anim span:nth-child(9)  { left:88%; animation-duration:7.5s; animation-delay:0.8s; }
.petals-anim span:nth-child(10) { left:35%; animation-duration:10.5s; animation-delay:3.5s; width:7px; height:7px; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  margin: 0 auto;
  animation: scrollPulse 2s ease infinite;
}

/* ══════════════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════════ */
.countdown-section {
  background: var(--cream);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 1.5rem 2.2rem;
  box-shadow: var(--shadow);
  min-width: 110px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.countdown-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.countdown-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--brown);
  line-height: 1;
}
.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}
.countdown-sep {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  margin-top: -1rem;
}
.floral-divider {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
  opacity: 0.85;
  /* never spill outside the viewport */
  max-width: min(700px, 100%);
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════
   NUESTRA HISTORIA
══════════════════════════════════════════════════ */
.historia {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, #f5ede3 100%);
}
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3.5rem;
  justify-content: flex-end;
  padding-right: calc(50% + 2.5rem);
  position: relative;
}
.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2.5rem);
  flex-direction: row-reverse;
}
.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  background: white;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 1;
}
.timeline-content {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  max-width: 280px;
}
.timeline-year {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   EVENTO
══════════════════════════════════════════════════ */
.evento {
  position: relative;
  padding: 6rem 0;
  background: var(--brown);
  overflow: hidden;
}
.evento-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('wedding_hero.png') center/cover no-repeat;
  opacity: 0.07;
}
.evento-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.evento-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,167,108,0.4);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform var(--transition), background var(--transition);
}
.evento-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.13);
}
.evento-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.evento-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.evento-hora {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.evento-lugar {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.3rem;
}
.evento-dir {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
}
.evento-map-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
}
.evento-map-btn:hover {
  background: var(--gold);
  color: var(--dark);
}
.mapa-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(201,167,108,0.3);
}
.mapa-placeholder {
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 20px;
}
.mapa-inner {
  text-align: center;
  padding: 3rem;
}
.mapa-pin { font-size: 3rem; display: block; margin-bottom: 1rem; }
.mapa-inner p {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

/* ══════════════════════════════════════════════════
   GALERÍA
══════════════════════════════════════════════════ */
.galeria {
  padding: 6rem 0;
  background: var(--cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}
.gallery-item.large { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  min-height: 250px;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,32,24,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: white;
}

/* ══════════════════════════════════════════════════
   DRESS CODE
══════════════════════════════════════════════════ */
.dresscode {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f5ede3 0%, var(--cream) 100%);
}
.dresscode-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.dresscode-palette {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.dresscode-hint {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.color-swatches {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.swatch {
  width: 50px; height: 50px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform var(--transition);
  border: 2px solid white;
}
.swatch:hover { transform: scale(1.2); }
.dresscode-rules { display: flex; flex-direction: column; gap: 1.5rem; }
.dresscode-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}
.dc-icon { font-size: 1.8rem; flex-shrink: 0; }
.dresscode-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 0.3rem;
}
.dresscode-item p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* ══════════════════════════════════════════════════
   MÚSICA
══════════════════════════════════════════════════ */
.musica {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
}
.musica-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brown) 0%, #1a1008 100%);
  z-index: -1;
}
.musica-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  margin-top: -2rem;
}
.musica-form {
  display: flex;
  gap: 0.8rem;
  max-width: 550px;
  margin: 0 auto 2.5rem;
}
.musica-form input {
  flex: 1;
  padding: 0.85rem 1.3rem;
  border: 1.5px solid rgba(201,167,108,0.4);
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
.musica-form input::placeholder { color: rgba(255,255,255,0.4); }
.musica-form input:focus { border-color: var(--gold); }
.musica-form button {
  padding: 0.85rem 1.8rem;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.musica-form button:hover { background: var(--gold-light); transform: scale(1.03); }
.musica-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.song-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,167,108,0.3);
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  animation: tagPop 0.3s ease;
}
.music-player {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 380px;
  margin: 0 auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,167,108,0.3);
  border-radius: 20px;
  padding: 1.2rem 1.8rem;
  backdrop-filter: blur(6px);
}
.mp-disc {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), var(--brown), var(--gold));
  box-shadow: 0 0 20px rgba(201,167,108,0.4);
  flex-shrink: 0;
}
.mp-disc.spinning { animation: spin 3s linear infinite; }
.mp-info { flex: 1; text-align: left; }
.mp-title { font-family: var(--font-serif); font-size: 1rem; color: white; }
.mp-artist { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }
.mp-play {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.mp-play:hover { background: var(--gold); color: var(--dark); }

/* ══════════════════════════════════════════════════
   REGALOS
══════════════════════════════════════════════════ */
.regalos {
  padding: 6rem 0;
  background: var(--cream);
}
.regalos-intro {
  text-align: center;
  max-width: 600px;
  margin: -2rem auto 3.5rem;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}
.regalos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.regalo-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  transition: transform var(--transition), box-shadow var(--transition);
}
.regalo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.regalo-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.regalo-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 0.8rem;
}
.regalo-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.4rem; line-height: 1.6; }
.copy-btn, .regalo-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
  transition: background var(--transition), color var(--transition);
}
.copy-btn:hover, .regalo-link:hover { background: var(--gold); color: white; }

/* ══════════════════════════════════════════════════
   RSVP
══════════════════════════════════════════════════ */
.rsvp {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.rsvp-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a3728 0%, var(--brown) 50%, #2a1a10 100%);
  z-index: -1;
}
.rsvp-sub {
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: 3rem;
  margin-top: -2rem;
  font-size: 0.95rem;
}
.rsvp-sub strong { color: var(--gold-light); }
.rsvp-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,167,108,0.2);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(8px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { margin-bottom: 1.5rem; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1.2rem;
  border: 1.5px solid rgba(201,167,108,0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group select option { background: var(--brown); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.rsvp-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}
.rsvp-submit:hover { background: var(--gold-light); transform: scale(1.02); }
.rsvp-success {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeDown 0.6s ease;
}
.success-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.rsvp-success h3 {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.rsvp-success p { color: rgba(255,255,255,0.75); line-height: 1.7; font-size: 1rem; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--cream);
  text-align: center;
  padding: 1rem 2rem 4rem;
}
.footer-floral {
  display: block;
  width: 100%;
  max-width: min(500px, 100%);
  height: auto;
  margin: 0 auto 1.5rem;
  opacity: 0.7;
  box-sizing: border-box;
}
.footer-names {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}
.footer-names span { color: var(--gold); }
.footer-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.footer-copy { font-size: 0.75rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════════════ */
/* ── Timeline icons ── */
.timeline-icon [data-lucide] {
  width: 20px;
  height: 20px;
  stroke: var(--gold-dark);
}

/* ── Evento card icons ── */
.evento-card-icon [data-lucide] {
  width: 42px;
  height: 42px;
  stroke: var(--gold-light);
  stroke-width: 1.2;
}

/* ── Mapa pin icon ── */
.mapa-pin [data-lucide] {
  width: 52px;
  height: 52px;
  stroke: var(--gold-light);
  stroke-width: 1.2;
}

/* ── Dress code icons ── */
.dc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  border-radius: 12px;
  border: 1px solid var(--gold-light);
}
.dc-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke: var(--gold-dark);
}

/* ── Gift icons ── */
.regalo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--cream-dark), #fff);
  border: 1.5px solid var(--gold-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.regalo-icon [data-lucide] {
  width: 28px;
  height: 28px;
  stroke: var(--gold-dark);
  stroke-width: 1.4;
}

/* ── Music player play icon ── */
.mp-play [data-lucide] {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: var(--gold);
}

/* ── RSVP success icon ── */
.success-icon [data-lucide] {
  width: 72px;
  height: 72px;
  stroke: var(--gold-light);
  stroke-width: 1;
  margin-bottom: 1rem;
  display: block;
  margin: 0 auto 1rem;
}
@keyframes falling {
  0%   { top: -20px; transform: rotate(0deg) translateX(0); opacity: 1; }
  100% { top: 110%; transform: rotate(360deg) translateX(50px); opacity: 0; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes tagPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Global overflow guard ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ══════════════════════════════════════════════════
   HAMBURGER MENU
══════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}
#navbar.scrolled .hamburger span { background: var(--brown); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: none;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42,32,24,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--cream);
  padding: 5rem 2rem 3rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1);
  box-shadow: -8px 0 40px rgba(42,32,24,0.2);
  overflow-y: auto;
}
.mobile-nav.open {
  display: block;
  pointer-events: all;
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav.open .mobile-nav-panel    { transform: translateX(0); }

.mobile-nav-logo {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--brown);
  margin-bottom: 2rem;
  display: block;
}
.mobile-nav-logo span { color: var(--gold); }
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav ul li a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brown);
  border-bottom: 1px solid var(--cream-dark);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav ul li a:hover {
  color: var(--gold-dark);
  padding-left: 0.5rem;
}
.mobile-nav-close {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.mobile-nav-close [data-lucide] { width: 22px; height: 22px; stroke: var(--text-light); }

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Nav */
  #navbar ul    { display: none; }
  .hamburger    { display: flex; }

  /* Sections padding */
  .historia, .galeria, .dresscode, .musica, .regalos, .rsvp,
  .countdown-section, .evento { padding: 4rem 0; }

  /* Evento */
  .evento-cards { grid-template-columns: 1fr; }

  /* Dress code */
  .dresscode-inner { grid-template-columns: 1fr; gap: 2rem; }

  /* Regalos */
  .regalos-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-row: span 1; }
  .gallery-item img { min-height: 280px; }

  /* Timeline — single column left-aligned */
  .timeline::before { left: 22px; }
  .timeline-item,
  .timeline-item.right {
    padding-left: 72px;
    padding-right: 0;
    flex-direction: row;
    justify-content: flex-start;
  }
  .timeline-icon { left: 0; transform: none; }
  .timeline-content { max-width: 100%; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 600px)
══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Base */
  .container { padding: 0 1.2rem; }

  /* Sections */
  .historia, .galeria, .dresscode, .musica, .regalos, .rsvp,
  .countdown-section, .evento { padding: 3.5rem 0; }

  .section-title { margin-bottom: 2.5rem; }

  /* ─ Navbar ─ */
  #navbar { padding: 1rem 1.2rem; }
  #navbar.scrolled { padding: 0.7rem 1.2rem; }

  /* ─ Hero ─ */
  .hero-pre    { font-size: 0.6rem; letter-spacing: 0.25em; }
  .hero-title  { font-size: clamp(3.8rem, 18vw, 5.5rem); }
  .names-script{ font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .hero-date   { font-size: 1rem; letter-spacing: 0.3em; margin-bottom: 2rem; }
  .hero-cta    { padding: 0.8rem 1.8rem; font-size: 0.7rem; }

  /* ─ Countdown ─ */
  .countdown   { gap: 0.5rem; }
  .countdown-item {
    padding: 0.9rem 1rem;
    min-width: 64px;
    border-radius: 12px;
  }
  .countdown-num   { font-size: 2rem; }
  .countdown-label { font-size: 0.55rem; letter-spacing: 0.15em; }
  .countdown-sep   { font-size: 1.6rem; margin-top: -0.5rem; }

  /* ─ Timeline ─ */
  .timeline-icon { width: 36px; height: 36px; }
  .timeline-item,
  .timeline-item.right {
    padding-left: 58px;
    margin-bottom: 2.5rem;
  }
  .timeline::before { left: 17px; }
  .timeline-content { padding: 1.2rem; }
  .timeline-content h3 { font-size: 1.25rem; }

  /* ─ Evento ─ */
  .evento-card { padding: 2rem 1.5rem; }
  .evento-card h3 { font-size: 1.5rem; }
  .mapa-inner  { padding: 2rem 1rem; }

  /* ─ Gallery ─ */
  .gallery-item img { min-height: 220px; }
  /* Show overlays on mobile (no hover) */
  .gallery-overlay { opacity: 1; }

  /* ─ Dress code ─ */
  .dresscode-inner { gap: 1.5rem; }
  .dresscode-palette { padding: 1.8rem; }
  .swatch { width: 40px; height: 40px; }
  .dresscode-item { padding: 1.2rem; gap: 1rem; }

  /* ─ Música ─ */
  .musica-form { flex-direction: column; padding: 0 0.5rem; }
  .musica-form input,
  .musica-form button { width: 100%; border-radius: 12px; }
  .music-player {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 1rem;
    padding: 1.2rem;
  }

  /* ─ Regalos ─ */
  .regalos-grid  { grid-template-columns: 1fr; }
  .regalo-card   { padding: 2rem 1.5rem; }

  /* ─ RSVP ─ */
  .rsvp-form { padding: 1.8rem 1.2rem; border-radius: 18px; }
  .form-row  { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group { margin-bottom: 1.2rem; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem;          /* prevents iOS zoom on focus */
    padding: 0.9rem 1rem;
  }
  .rsvp-submit { font-size: 0.95rem; padding: 1rem; }
  .rsvp-success { padding: 3rem 1rem; }
  .rsvp-success h3 { font-size: 2.2rem; }

  /* ─ Footer ─ */
  .footer-names { font-size: 3rem; }
  .footer-quote { font-size: 0.95rem; }

  /* ─ Touch tap targets (accessibility) ─ */
  .evento-map-btn,
  .copy-btn,
  .regalo-link {
    padding: 0.75rem 1.4rem;
    font-size: 0.85rem;
  }
  .hero-cta,
  .rsvp-submit,
  .musica-form button,
  .mp-play {
    min-height: 44px;
  }
}

/* ── Floating Music Widget Visualizer Animations ── */
.floating-music-widget .music-bar {
  animation: none;
}
.floating-music-widget.playing .bar-1 {
  animation: bounce 0.8s ease-in-out infinite alternate;
}
.floating-music-widget.playing .bar-2 {
  animation: bounce 0.5s ease-in-out infinite alternate 0.15s;
}
.floating-music-widget.playing .bar-3 {
  animation: bounce 0.7s ease-in-out infinite alternate 0.3s;
}

@keyframes bounce {
  0% { height: 30%; }
  100% { height: 100%; }
}

