/* VARIABLES */
:root {
  --blue-light: #e0f7fa; /* Celeste cielo pastel */
  --blue-main: #4dd0e1;
  --blue-dark: #0097a7;
  --white: #ffffff;
  --brown-vintage: #8d6e63; /* Marrón para toques de madera/cuero */
  --text-color: #4f4f4f;
  --font-body: 'Nunito', sans-serif;
  --font-cursive: 'Pacifico', cursive;
}

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

body {
  font-family: var(--font-body);
  background: var(--blue-light); /* Fondo celeste sólido hasta que pongan foto */
  color: var(--text-color);
  line-height: 1.6;
}

/* UTILITIES */
.text-blue { color: var(--blue-dark); }
.text-brown { color: var(--brown-vintage); }
.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; color: var(--brown-vintage); }

/* GLOBAL MUSIC TOGGLE */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-main);
  color: var(--white);
  border: 3px solid var(--white);
  box-shadow: 0 4px 15px rgba(77, 208, 225, 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(--blue-main);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(77, 208, 225, 0.4);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--blue-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;
  overflow: hidden;
}

/* CSS Clouds for decoration */
.cloud {
  position: absolute;
  background: var(--white);
  border-radius: 50px;
  opacity: 0.6;
}
.cloud-1 { width: 120px; height: 40px; top: 15%; left: 10%; animation: float 6s ease-in-out infinite; }
.cloud-1::before { content: ''; position: absolute; width: 60px; height: 60px; background: var(--white); border-radius: 50%; top: -30px; left: 15px; }
.cloud-1::after { content: ''; position: absolute; width: 40px; height: 40px; background: var(--white); border-radius: 50%; top: -15px; left: 60px; }
.cloud-2 { width: 100px; height: 30px; bottom: 20%; right: 5%; animation: float 8s ease-in-out infinite reverse; }
.cloud-2::before { content: ''; position: absolute; width: 40px; height: 40px; background: var(--white); border-radius: 50%; top: -20px; left: 15px; }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }

.hero-content {
  background: rgba(255,255,255,0.9);
  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(--blue-main);
  position: relative;
  z-index: 2;
}
.badge {
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 900;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.hero-name {
  font-size: 5.5rem;
  line-height: 1.2;
  margin-bottom: 5px;
}
.hero-date {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--brown-vintage);
}
.hero-image-placeholder {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid var(--white);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* SECTIONS */
.bg-white { background-color: var(--white); }
.bg-globos { background: url('bg-globos.png') center/cover fixed; position: relative; }

/* 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(--blue-light); }
.card-icon {
  background: var(--blue-light);
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  margin: 0 auto 15px;
  color: var(--blue-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(--blue-light);
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 0.95rem;
  color: var(--brown-vintage);
}

/* FORM */
.rsvp-form { background: var(--blue-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(--blue-main); }

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

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