/* VARIABLES */
:root {
  --yellow-light: #fff8e1;
  --yellow-main: #ffd54f;
  --yellow-dark: #fbc02d;
  --white: #ffffff;
  --text-color: #5d4037; /* Soft brown for contrast instead of harsh black */
  --font-body: 'Nunito', sans-serif;
  --font-cursive: 'Playball', cursive;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--yellow-light) url('bg.png') repeat center/cover;
  color: var(--text-color);
  line-height: 1.6;
}

/* UTILITIES */
.text-yellow { color: var(--yellow-dark); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.section { padding: 60px 20px; }
.container { max-width: 600px; margin: 0 auto; }
.section-title { 
  font-family: var(--font-cursive); 
  font-size: 3rem; 
  margin-bottom: 25px; 
  line-height: 1.2;
  text-shadow: 2px 2px 10px white, -2px -2px 10px white, 0 0 15px white;
}
.cursive-title { font-family: var(--font-cursive); }

/* OVERLAY */
.music-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--white);
  z-index: 9999;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  transition: opacity 0.5s ease;
  padding: 20px;
}
.music-overlay.hidden { opacity: 0; pointer-events: none; }
.overlay-text { font-size: 1.2rem; margin-bottom: 30px; font-weight: 700; }

/* GLOBAL MUSIC TOGGLE */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--yellow-main);
  color: var(--white);
  border: 3px solid var(--white);
  box-shadow: 0 4px 15px rgba(255, 213, 79, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease;
}
.music-toggle.visible { opacity: 1; pointer-events: auto; }
.music-spin { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--yellow-main);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(255, 213, 79, 0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--yellow-dark);
  border: 2px solid var(--yellow-dark);
  margin-top: 10px;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}
.hero-content {
  background: rgba(255,255,255,0.85);
  padding: 40px 20px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 450px;
  border: 3px dashed var(--yellow-main);
}
.badge {
  background: var(--yellow-light);
  color: var(--yellow-dark);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 900;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.hero-name {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 10px;
}
.hero-date {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-img {
  width: 150px;
  border-radius: 50%;
  border: 5px solid var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* SECTIONS */
.bg-white { background-color: var(--white); }

/* COUNTDOWN */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.time-box {
  background: var(--white);
  border-radius: 15px;
  padding: 15px 10px;
  min-width: 70px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.time-box .number { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; }
.time-box .label { display: block; font-size: 0.9rem; font-weight: 700; margin-top: 5px; color: var(--text-color); }

/* CARDS */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  text-align: center;
}
.evento-section .card { border: 3px solid var(--yellow-light); }
.card-icon {
  background: var(--yellow-light);
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  margin: 0 auto 15px;
  color: var(--yellow-dark);
}
.card-icon svg { width: 35px; height: 35px; }
.card h3 { font-family: var(--font-cursive); font-size: 2rem; margin-bottom: 15px; }

.grid-2 { display: grid; gap: 20px; }
@media(min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* BANK BOX */
.bank-box {
  background: var(--yellow-light);
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 0.95rem;
}

/* FORM */
.rsvp-form { background: var(--yellow-light); padding: 30px; border-radius: 20px; }
.rsvp-form input, .rsvp-form select {
  width: 100%; padding: 15px; margin-bottom: 15px;
  border: 2px solid var(--white); border-radius: 30px;
  font-family: var(--font-body); font-size: 1rem;
  background: var(--white); color: var(--text-color);
}
.rsvp-form input:focus, .rsvp-form select:focus { outline: none; border-color: var(--yellow-main); }

/* FOOTER */
.footer { 
  padding: 40px 20px; 
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 3px dashed var(--yellow-light);
}

/* ANIMATIONS */
.bounce-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255, 213, 79, 0.6); }
.pulse-anim { animation: pulse 2s infinite alternate; }
@keyframes pulse { 0% { transform: scale(1); } 100% { transform: scale(1.03); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
