/* ============================================================
   XV AÑOS — IDELMARIS VALERIA
   Design System & Styles
   ============================================================ */

/* ========================
   DESIGN TOKENS
   ======================== */
:root {
  --color-primary: #9B6DB0;
  --color-primary-light: #C9A7D8;
  --color-primary-lighter: #E8D5F0;
  --color-primary-dark: #6B3FA0;
  --color-primary-darker: #4A2D70;

  --color-bg: #FBF8F4;
  --color-bg-soft: #F5EFF8;
  --color-bg-card: rgba(255, 255, 255, 0.75);

  --color-text: #4A3B5C;
  --color-text-light: #8B7A9E;
  --color-text-lighter: #B5A4C4;

  --color-gold: #C4A35A;
  --color-gold-light: #D4BC82;
  --color-white: #FFFFFF;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BA5A;

  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  --shadow-soft: 0 4px 20px rgba(155, 109, 176, 0.15);
  --shadow-card: 0 8px 32px rgba(155, 109, 176, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

/* ========================
   CUSTOM SCROLLBAR
   ======================== */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: 4px;
}

/* ========================
   SECTIONS BASE
   ======================== */
.section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  overflow: hidden;
  text-align: center;
}

.section-compact {
  min-height: auto;
  padding: 30px 28px;
}

.section-medium {
  min-height: 70dvh;
}

.section-compact-v2 {
  min-height: auto;
  padding: 40px 28px;
}

.compact-quote {
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-footer {
  min-height: auto;
}

.section-bg-watercolor {
  position: absolute;
  inset: 0;
  background: url('assets/fondo.png') center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.section-bg-watercolor.flip {
  transform: scaleX(-1);
}

/* Ornament line (used in multiple sections) */
.ornament-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 18px auto;
}

/* Section dividers */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 5px 0;
  background: var(--color-bg);
}

.divider-svg {
  width: 120px;
  height: 20px;
  opacity: 0.8;
}

/* ========================
   INTRO SCREEN
   ======================== */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

#intro-screen.open {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background: url('assets/fondo.png') center / cover no-repeat;
  opacity: 0.22;
}

.intro-floral {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.intro-floral-top {
  top: -10px;
  left: -20px;
  width: 160px;
  opacity: 0.75;
  transform: rotate(10deg);
}

.intro-floral-bottom {
  bottom: 30px;
  right: -20px;
  width: 180px;
  opacity: 0.65;
  transform: rotate(-15deg) scaleX(-1);
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.intro-crown {
  margin-bottom: 20px;
}

.crown-svg {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(196, 163, 90, 0.3));
}

.intro-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.intro-title {
  font-family: var(--font-script);
  font-size: 4.2rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(155, 109, 176, 0.2);
}

.intro-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0 auto 32px;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(155, 109, 176, 0.45);
  transition: all 0.3s ease;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.intro-btn:hover,
.intro-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 28px rgba(155, 109, 176, 0.55);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(155, 109, 176, 0.45); }
  50% { box-shadow: 0 4px 32px rgba(155, 109, 176, 0.7); }
}

/* ========================
   HERO SECTION
   ======================== */
#hero {
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.crown-wrapper {
  margin-bottom: 12px;
}

.crown-main {
  width: 65px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 7px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-divider {
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 12px auto;
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text-light);
  max-width: 300px;
  margin: 0 auto;
}

/* ========================
   FLORAL DECORATIONS
   ======================== */
.floral-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.floral-hero-tl {
  top: -10px;
  left: -40px;
  width: 180px;
  opacity: 0.7;
  transform: rotate(12deg);
}

.floral-hero-br {
  bottom: 20px;
  right: -20px;
  width: 130px;
  opacity: 0.55;
  transform: rotate(-18deg) scaleX(-1);
}

.floral-nombre-r {
  top: 50%;
  right: -30px;
  width: 110px;
  opacity: 0.45;
  transform: translateY(-50%) rotate(-30deg);
}

.floral-fecha-bl {
  bottom: -15px;
  left: -35px;
  width: 160px;
  opacity: 0.55;
  transform: rotate(180deg);
}

.floral-recepcion-l {
  bottom: 15px;
  left: -25px;
  width: 100px;
  opacity: 0.45;
  transform: rotate(40deg);
}

.floral-rsvp-tr {
  top: -10px;
  right: -30px;
  width: 150px;
  opacity: 0.55;
  transform: rotate(-25deg) scaleX(-1);
}

.floral-footer-bl {
  bottom: -5px;
  left: -25px;
  width: 140px;
  opacity: 0.55;
  transform: rotate(195deg);
}

.floral-footer-tr {
  top: 10px;
  right: -15px;
  width: 90px;
  opacity: 0.45;
  transform: rotate(15deg);
}

/* ========================
   NAME & PARENTS SECTION
   ======================== */
#nombre {
  background: var(--color-bg-soft);
}

.nombre-content {
  position: relative;
  z-index: 2;
}

.nombre-intro {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.nombre-padres {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.nombre-invita {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 28px;
}

.nombre-titulo {
  font-family: var(--font-script);
  font-size: 3.4rem;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(155, 109, 176, 0.18);
}

.nombre-xv {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* ========================
   MUSIC PLAYER
   ======================== */
#musica {
  background: var(--color-bg);
}

.player-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 167, 216, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-card);
}

.player-disc {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-lighter), var(--color-primary-light), var(--color-primary));
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(155, 109, 176, 0.25);
}

.player-disc.spinning {
  animation: disc-spin 4s linear infinite;
}

@keyframes disc-spin {
  to { transform: rotate(360deg); }
}

.player-disc-inner {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.player-info {
  margin-bottom: 18px;
}

.player-song {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
}

.player-artist {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 3px;
  letter-spacing: 0.5px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-lighter);
}

.player-btn-main {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(155, 109, 176, 0.4);
}

.player-btn-main:hover {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
  transform: scale(1.06);
}

.player-progress {
  width: 100%;
  height: 4px;
  background: var(--color-primary-lighter);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.player-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  border-radius: 2px;
  transition: width 0.3s linear;
}

/* ========================
   FLOATING MUSIC BUTTON
   ======================== */
.music-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(155, 109, 176, 0.5);
  transition: all 0.3s;
}

.music-float:hover {
  transform: scale(1.1);
}

.music-float .music-icon {
  position: relative;
  z-index: 2;
}

.music-float.playing .music-pulse {
  animation: pulse-ring 1.8s ease-out infinite;
}

.music-pulse {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary-light);
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ========================
   DATE & COUNTDOWN
   ======================== */
#fecha {
  background: var(--color-bg);
}

.fecha-content {
  position: relative;
  z-index: 2;
}

.fecha-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
}

.fecha-side {
  display: flex;
  align-items: center;
}

.fecha-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.fecha-center {
  position: relative;
}

.fecha-day {
  font-family: var(--font-serif);
  font-size: 6.5rem;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  display: block;
  padding: 8px 24px;
  border-top: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

.fecha-dow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 6px;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fecha-hora {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 35px;
}

/* Countdown */
.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: var(--color-text-lighter);
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  background: var(--color-bg-card);
  border: 1px solid rgba(201, 167, 216, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 6px 8px;
  backdrop-filter: blur(10px);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
}

.countdown-text {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--color-text-lighter);
  text-transform: uppercase;
  margin-top: 4px;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary-light);
  line-height: 1.6;
  padding-top: 6px;
}

/* ========================
   RECEPTION
   ======================== */
#recepcion {
  background: var(--color-bg-soft);
}

.recepcion-content {
  position: relative;
  z-index: 2;
}

.recepcion-icon {
  margin-bottom: 12px;
  opacity: 0.7;
}

.recepcion-hora {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.recepcion-titulo {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 5px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.recepcion-lugar {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.recepcion-dir {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-mapa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(155, 109, 176, 0.4);
  transition: all 0.3s;
}

.btn-mapa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(155, 109, 176, 0.5);
}

/* ========================
   MAP EMBED
   ======================== */
.map-embed {
  margin-top: 2rem;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(155, 109, 176, 0.15);
}

.map-embed iframe {
  display: block;
  width: 100%;
}

/* ========================
   PHOTO FRAMES
   ======================== */
#foto-principal,
#foto-back {
  padding: 2rem 0;
}

.foto-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.foto-border {
  position: relative;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(135deg, #C4A35A 0%, #D4BC82 25%, #C4A35A 50%, #E8D5A8 75%, #C4A35A 100%);
  background-size: 200% 200%;
  animation: shimmer-gold 4s ease infinite;
  box-shadow:
    0 8px 32px rgba(155, 109, 176, 0.2),
    0 0 0 1px rgba(196, 163, 90, 0.3);
  max-width: 340px;
  width: 90%;
}

@keyframes shimmer-gold {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.foto-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crown-foto {
  opacity: 0.7;
}

.foto-frame-back .foto-border {
  max-width: 260px;
  background: linear-gradient(135deg, #C9A7D8 0%, #9B6DB0 50%, #C9A7D8 100%);
  background-size: 200% 200%;
  animation: shimmer-purple 4s ease infinite;
}

@keyframes shimmer-purple {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}


/* ========================
   DRESS CODE
   ======================== */
#vestimenta {
  background: var(--color-bg);
}

.vestimenta-content {
  position: relative;
  z-index: 2;
}

.vestimenta-titulo {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vestimenta-tipo {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 35px;
}

.vestimenta-icons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 45px;
}

.vestimenta-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dress-svg,
.suit-svg {
  filter: drop-shadow(0 2px 6px rgba(155, 109, 176, 0.15));
  transition: transform 0.3s;
}

.vestimenta-icon:hover .dress-svg,
.vestimenta-icon:hover .suit-svg {
  transform: translateY(-4px);
}

.vestimenta-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-top: 12px;
}

/* ========================
   RSVP / CONFIRMATION
   ======================== */
#confirmacion {
  background: var(--color-bg-soft);
}

.rsvp-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
}

.rsvp-titulo {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rsvp-sub {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.rsvp-form {
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pases-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-lighter);
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  background: var(--color-white);
  border: 1.5px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(155, 109, 176, 0.12);
}

.form-group input::placeholder {
  color: var(--color-text-lighter);
  font-style: italic;
}

.pases-selector {
  display: flex;
  gap: 8px;
}

.pase-btn {
  flex: 1;
  padding: 13px 0;
  background: var(--color-white);
  border: 1.5px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s;
}

.pase-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-lighter);
}

.pase-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(155, 109, 176, 0.35);
  transform: scale(1.05);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.3s;
  margin-top: 8px;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

/* ========================
   FOOTER
   ======================== */
#footer-section {
  background: var(--color-bg);
}

.footer-bg-photo {
  min-height: 70dvh;
  padding: 60px 28px;
}

.footer-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer-photo-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(74, 45, 112, 0.3) 0%,
    rgba(74, 45, 112, 0.55) 40%,
    rgba(74, 45, 112, 0.75) 100%
  );
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-bg-photo .footer-msg-2 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.9;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.footer-bg-photo .footer-espera {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(155, 109, 176, 0.4);
  margin-bottom: 12px;
}

.footer-bg-photo .footer-hearts svg {
  fill: rgba(255, 255, 255, 0.8);
}

.footer-msg,
.footer-msg-2 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

.footer-msg-2 {
  margin-bottom: 28px;
}

.footer-espera {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--color-primary);
  text-shadow: 0 2px 10px rgba(155, 109, 176, 0.15);
  margin-bottom: 12px;
}

.footer-hearts svg {
  animation: heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* ========================
   BUTTERFLIES
   ======================== */
.butterfly-wrapper {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.butterfly {
  width: 32px;
  height: auto;
}

/* Wing flap animation */
.wing-l, .wing-r {
  transform-origin: 25px 20px;
}

.wing-l {
  animation: flap-l 0.45s ease-in-out infinite alternate;
}

.wing-r {
  animation: flap-r 0.45s ease-in-out infinite alternate;
}

@keyframes flap-l {
  0% { transform: scaleX(1) rotate(0deg); }
  100% { transform: scaleX(0.5) rotate(-8deg); }
}

@keyframes flap-r {
  0% { transform: scaleX(1) rotate(0deg); }
  100% { transform: scaleX(0.5) rotate(8deg); }
}

/* === Butterfly positions & float paths === */

/* Intro */
.bfly-intro-1 {
  top: 22%;
  right: 12%;
  animation: float-path-1 13s ease-in-out infinite;
}

.bfly-intro-2 {
  bottom: 28%;
  left: 8%;
  animation: float-path-2 16s ease-in-out infinite 2s;
}
.bfly-intro-2 .butterfly { width: 24px; }

/* Hero */
.bfly-hero-1 {
  top: 12%;
  left: 22%;
  animation: float-path-1 15s ease-in-out infinite 1s;
}
.bfly-hero-1 .butterfly { width: 30px; }

.bfly-hero-2 {
  top: 38%;
  right: 8%;
  animation: float-path-3 17s ease-in-out infinite 3s;
}
.bfly-hero-2 .butterfly { width: 26px; }

.bfly-hero-3 {
  bottom: 12%;
  right: 22%;
  animation: float-path-2 14s ease-in-out infinite 5s;
}
.bfly-hero-3 .butterfly { width: 20px; }

/* Name */
.bfly-nombre-1 {
  top: 18%;
  right: 6%;
  animation: float-path-3 16s ease-in-out infinite 2s;
}
.bfly-nombre-1 .butterfly { width: 28px; }

/* Date */
.bfly-fecha-1 {
  bottom: 22%;
  left: 12%;
  animation: float-path-1 15s ease-in-out infinite 4s;
}

/* RSVP */
.bfly-rsvp-1 {
  top: 8%;
  right: 18%;
  animation: float-path-2 13s ease-in-out infinite 1s;
}
.bfly-rsvp-1 .butterfly { width: 26px; }

/* Footer */
.bfly-footer-1 {
  top: 28%;
  left: 8%;
  animation: float-path-3 17s ease-in-out infinite;
}

.bfly-footer-2 {
  bottom: 18%;
  right: 12%;
  animation: float-path-1 14s ease-in-out infinite 3s;
}
.bfly-footer-2 .butterfly { width: 22px; }

/* Float path keyframes */
@keyframes float-path-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  14% { transform: translate(22px, -18px) rotate(6deg); }
  28% { transform: translate(38px, 8px) rotate(-4deg); }
  42% { transform: translate(18px, -28px) rotate(10deg); }
  57% { transform: translate(-12px, -12px) rotate(-6deg); }
  71% { transform: translate(-22px, 12px) rotate(4deg); }
  85% { transform: translate(-6px, -6px) rotate(-2deg); }
}

@keyframes float-path-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-18px, -22px) rotate(-9deg); }
  40% { transform: translate(14px, -32px) rotate(6deg); }
  60% { transform: translate(28px, 12px) rotate(-4deg); }
  80% { transform: translate(-8px, 16px) rotate(7deg); }
}

@keyframes float-path-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  12% { transform: translate(28px, -12px) rotate(11deg); }
  25% { transform: translate(45px, -28px) rotate(-6deg); }
  37% { transform: translate(32px, 6px) rotate(4deg); }
  50% { transform: translate(8px, 22px) rotate(-9deg); }
  62% { transform: translate(-16px, 12px) rotate(6deg); }
  75% { transform: translate(-28px, -12px) rotate(-4deg); }
  87% { transform: translate(-10px, -22px) rotate(8deg); }
}

/* ========================
   REVEAL ON SCROLL
   ======================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ========================
   RESPONSIVE
   ======================== */

/* Very small phones */
@media (max-width: 360px) {
  .intro-title {
    font-size: 3.4rem;
  }

  .nombre-titulo {
    font-size: 2.6rem;
  }

  .fecha-day {
    font-size: 5rem;
    padding: 6px 16px;
  }

  .fecha-display {
    gap: 12px;
  }

  .countdown-num {
    font-size: 1.8rem;
  }

  .countdown-item {
    min-width: 48px;
  }

  .pases-selector {
    gap: 5px;
  }

  .pase-btn {
    padding: 11px 0;
    font-size: 1rem;
  }

  .footer-espera {
    font-size: 2.6rem;
  }

  .vestimenta-icons {
    gap: 30px;
  }
}

/* Tablets and desktop — keep mobile feel centered */
@media (min-width: 600px) {
  .section {
    padding: 80px 40px;
  }

  #invitation {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(155, 109, 176, 0.08);
    position: relative;
  }

  .section-divider {
    max-width: 480px;
    margin: 0 auto;
  }

  .intro-title {
    font-size: 5rem;
  }

  .nombre-titulo {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 10px;
  }
}

/* Desktop wrapper background */
@media (min-width: 600px) {
  body {
    background: linear-gradient(135deg, #F5EFF8 0%, #E8D5F0 50%, #F5EFF8 100%);
  }

  #intro-screen {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    box-shadow: 0 0 80px rgba(155, 109, 176, 0.1);
  }

  #intro-screen.open {
    transform: translateX(-50%) translateY(-100%);
  }
}
