/* =========================
   RESET Y BASE GLOBAL
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
}

body {
  background: linear-gradient(to bottom, #ffffff, #fdecef);
  color: #333;
  line-height: 1.8;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.container {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 1.5s ease forwards;
}

.hero h1 {
  font-size: 3rem;
  color: #b03060;
  max-width: 700px;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 500px;
  line-height: 1.8;
}

.highlight {
  color: #ff8fab;
}

/* Animación suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BOTÓN MÚSICA
========================= */
button {
  background: #ff8fab;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 25px auto;
  display: block;
  transition: background 0.3s ease;
}

button:hover {
  background: #f06595;
}

/* =========================
   SECCIÓN TIEMPO
========================= */
.time-section {
  margin-top: 60px;
  text-align: center;
}

.time-section p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #444;
}

#time-counter {
  font-size: 1.2rem;
  color: #b03060;
  margin-top: 15px;
  font-weight: bold;
}

/* =========================
   CARTAS
========================= */
.cards-section {
  margin-top: 80px;
  text-align: center;
}

.cards-section h2 {
  margin-bottom: 30px;
  color: #b03060;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* CARTA */
.card {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 15px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* =========================
   MODAL DE CARTA
========================= */
.card-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.card-modal.show {
  display: flex;
}

.card-modal-content {
  background: white;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  border-radius: 20px;
  position: relative;
  animation: openCard 0.5s ease;
}

.card-modal-content p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}

/* BOTÓN CERRAR */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.close-modal:hover {
  color: #333;
}

/* ANIMACIÓN DE APERTURA */
@keyframes openCard {
  from {
    transform: scale(0.7) rotateX(20deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotateX(0);
    opacity: 1;
  }
}
/* =========================
   GALERÍA
========================= */
.gallery-section {
  padding: 80px 10%;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  filter: grayscale(100%);
  transition: all 0.4s ease;
}

.gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* MODAL */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
}

.close-gallery {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}
/* =========================
   SORPRESA FINAL (MAPA)
========================= */
.star-map-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 120px 0 150px;
  text-align: center;
  background: linear-gradient(to bottom, #fff0f5, #0b0d17);
  color: white;
}

.star-map-section h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
}

.star-map-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 20px;
}

.star-map {
  width: 100%;
  height: auto;
  display: block;
}

/* Cuando se activa */
.star-map.show {
  opacity: 1;
  transform: scale(1);
}

/* Respiración sutil */
.star-map.show {
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.25));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(255,255,255,0.45));
  }
}

.star-map-text {
  margin-top: 40px;
  font-size: 1.1rem;
  opacity: 0.85;
}


/* =========================
   MENSAJE FINAL
========================= */
.final-message {
  margin-top: 100px;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

/*=============================
          INDEX
      =====================*/
      body {
        margin: 0;
        height: 100vh;
        background: linear-gradient(135deg, #fff0f5, #ffe4ec);
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'Georgia', serif;
      }
      
      .login-container {
        background: rgba(255,255,255,0.85);
        padding: 60px 50px;
        border-radius: 30px;
        text-align: center;
        box-shadow: 0 20px 50px rgba(0,0,0,0.1);
        max-width: 400px;
        width: 90%;
      }
      
      .login-container h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
      }
      
      .login-container p {
        font-size: 1rem;
        margin-bottom: 30px;
        color: #555;
      }
      
      .login-container input {
        width: 100%;
        padding: 14px 18px;
        border-radius: 25px;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        font-size: 1rem;
        outline: none;
      }
      
      .login-container input:focus {
        border-color: #ff8fab;
      }
      
      .login-container button {
        padding: 14px 40px;
        border: none;
        border-radius: 30px;
        background: #ff8fab;
        color: white;
        font-size: 1rem;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }
      
      .login-container button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255,143,171,0.4);
      }
      