/* =========================================
   1. VARIABLES Y ESTILOS GENERALES
   ========================================= */
:root {
  --pink-primary: #ff85a2;    /* Rosa principal */
  --pink-light: #ffc2d1;      /* Rosa suave */
  --pink-bg: #ffe4e1;         /* Fondo rosado */
  --white-glass: rgba(255, 255, 255, 0.75); /* Transparencia para efecto vidrio */
  --text-color: #5a3a45;      /* Color de texto oscuro (vino suave) */
}

body {
  font-family: 'Nunito', sans-serif; /* Fuente para textos largos */
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
  color: var(--text-color);
  overflow-x: hidden; /* Evita scroll horizontal indeseado */
  position: relative;
  min-height: 100vh;
}

/* Fuente para Títulos (estilo manuscrito romántico) */
h1, h2, h3, .title-font {
  font-family: 'Pacifico', cursive;
  color: #e75480;
}

/* =========================================
   2. FONDO ANIMADO DE CORAZONES
   ========================================= */
.bg-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* Se queda detrás de todo */
  pointer-events: none;
}

.bg-hearts li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 192, 203, 0.6);
  animation: animate 25s linear infinite;
  bottom: -150px;
  /* Forma de corazón usando clip-path */
  clip-path: path('M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.78 7.77L10 18.78l8.39-8.4a5.5 5.5 0 0 0-7.78-7.77l-.61.61z');
}

/* Diferentes tamaños y velocidades para los corazones */
.bg-hearts li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.bg-hearts li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.bg-hearts li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.bg-hearts li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.bg-hearts li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.bg-hearts li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }

@keyframes animate {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
}

/* =========================================
   3. BOTÓN DE MÚSICA FLOTANTE
   ========================================= */
.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000; /* Por encima de todo */
}

.btn-music {
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-primary);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-weight: bold;
  border: 2px solid var(--pink-primary);
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.btn-music:active {
  transform: scale(0.95);
}

/* =========================================
   4. HERO SECTION (PORTADA)
   ========================================= */
.hero-section {
  height: 100vh; /* Ocupa toda la pantalla del celular */
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('fondo.png') no-repeat center center/cover; 
  /* Si no tienes fondo.png, comenta la línea de arriba y usa esta: */
  /* background: radial-gradient(circle, rgba(255,240,245,1) 0%, rgba(255,182,193,1) 100%); */
}

/* Tarjeta con efecto de vidrio (Glassmorphism) */
.glass-card {
  background: var(--white-glass);
  /* Doble línea para máxima compatibilidad Android/iOS */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(255, 133, 162, 0.2);
  width: 90%;
  max-width: 450px; /* Ancho máximo en PC */
  margin: auto;
}

.kitty-bow {
  font-size: 3.5rem;
  margin-top: -55px;
  text-shadow: 0 5px 10px rgba(0,0,0,0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Texto con gradiente */
.text-gradient {
  background: linear-gradient(to right, #e75480, #ff85a2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* Botón "Ver sorpresa" */
.btn-custom {
  background-color: var(--pink-primary);
  color: white;
  border-radius: 30px;
  padding: 10px 30px;
  font-weight: bold;
  border: none;
  transition: transform 0.2s;
}
.btn-custom:hover {
  background-color: #e75480;
  transform: scale(1.05);
  color: white;
}

/* =========================================
   5. GALERÍA POLAROID
   ========================================= */
.polaroid {
  background: white;
  padding: 10px 10px 40px 10px; /* Más espacio abajo para el texto */
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: rotate(-3deg);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.polaroid img {
  width: 100%;
  border-radius: 0; /* Fotos cuadradas */
  border: 1px solid #eee;
}

.caption {
  font-family: 'Pacifico', cursive;
  color: #555;
  margin-top: 15px;
  text-align: center;
  font-size: 1.3rem;
}

/* Alternar rotación de las fotos */
.col-md-4:nth-child(even) .polaroid {
  transform: rotate(3deg);
}

/* =========================================
   6. TARJETAS DE RAZONES
   ========================================= */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s;
  box-shadow: 0 10px 25px rgba(255, 133, 162, 0.15);
  height: 100%;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--pink-light);
}

/* =========================================
   7. MODAL Y SORPRESA
   ========================================= */
/* Estilos para el modal con efecto vidrio */
.glass-modal {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid white;
}

.btn-surprise {
  background: #e75480;
  color: white;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.4);
  transition: all 0.3s;
  border: none;
}

.btn-surprise:hover {
  background: #d63d6b;
  transform: scale(1.1) rotate(-2deg);
  color: white;
}

/* Animación de pulsar para el botón sorpresa */
.pulsate {
  animation: pulsate 2s infinite;
}

@keyframes pulsate {
  0% { box-shadow: 0 0 0 0 rgba(231, 84, 128, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(231, 84, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 84, 128, 0); }
}

/* =========================================
   8. UTILIDADES Y FOOTER
   ========================================= */
footer {
  background-color: var(--pink-primary);
  color: white;
  padding: 20px 0;
  font-size: 1rem;
  margin-top: 50px;
}

.text-pink { color: #e75480; }

.border-pink { 
  border: 8px solid white; 
  box-shadow: 0 0 20px rgba(255, 133, 162, 0.6); 
}

/* =========================================
   9. RESPONSIVE (CELULAR)
   ========================================= */
@media (max-width: 768px) {
  h1 { font-size: 2.8rem; } /* Ajuste de título en móvil */
  
  .hero-section {
    background-attachment: scroll; /* Mejor rendimiento en móviles */
  }
  
  .glass-card {
    width: 95%; /* Más ancho en celulares */
    padding: 20px;
  }
  
  /* Hacemos que las fotos polaroid no se salgan en pantallas pequeñas */
  .polaroid {
    transform: rotate(0deg) !important; /* Quitamos rotación en móvil para que encaje mejor */
    margin-bottom: 20px;
  }
  
  .music-control {
    bottom: 20px; /* Mover música abajo en celular para que sea más fácil tocar */
    top: auto;
    right: 20px;
  }
}


.vale-card {
  background: linear-gradient(135deg, #ffe6f0, #fff);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(255, 182, 193, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 182, 193, 0.5);
}

.vale-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(255, 105, 180, 0.4);
}

.vale-icon {
  font-size: 2.5rem; /* Un poco más pequeño para móvil */
  margin-bottom: 10px;
}

.vale-card h4 {
  color: #ff69b4;
  font-weight: 600;
  font-size: 1.1rem; /* Ajuste para que no se corte el título */
}

.vale-card p.small {
  font-size: 0.85rem;
  color: #7a5a65;
  margin-bottom: 0;
}

.vale-footer {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: #ff85c1;
  font-style: italic;
  font-weight: bold;
}

/* Ajuste específico para que en Android salgan 2 por fila bien alineados */
@media (max-width: 768px) {
  .vale-icon { font-size: 2rem; }
  .vale-card { padding: 15px !important; }
  .vale-card h4 { font-size: 0.95rem; }
}