/* ========================= */
/* GENERAL */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffe6ef, #fff8fb);
  padding: 40px;
}

/* ========================= */
/* TITULO */
/* ========================= */

h1 {
  text-align: center;
  font-size: 3rem;
  color: #ec407a;
  margin-bottom: 10px;
}

p {
  text-align: center;
  color: #666;
}

/* ========================= */
/* GRID */
/* ========================= */

#cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 80px 40px; /* más espacio vertical (filas) que horizontal (columnas) */
  margin-top: 60px;
}

/* ========================= */
/* CARD */
/* ========================= */

.card {
  position: relative;
  background: white;
  border-radius: 30px;
  overflow: visible; /* importante: permite que el reloj sobresalga arriba */
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
  transition: .4s;
  margin-top: 30px; /* deja aire arriba para el reloj flotante */
  min-height: 430px;
}

.card:hover {
  transform: translateY(-8px);
}

/* ========================= */
/* CUBIERTA */
/* ========================= */

.cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  padding-top: 35px; /* deja espacio libre arriba para el reloj */
  transition: transform .6s ease, opacity .6s ease;
  z-index: 20;
}

.revealed .cover {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ========================= */
/* CONTENIDO */
/* ========================= */

.card__content {
  background: white;
  padding: 40px;
  border-radius: 30px;
}

.card__content h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 10px;
}

.card__content h3 {
  text-align: center;
  color: #888;
  font-size: 2rem;
  margin-bottom: 25px;
}

.card__content p {
  text-align: center;
  font-size: 1.3rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* ========================= */
/* BOTON */
/* ========================= */

button {
  display: block;
  margin: auto;
  background: #ff4d88;
  color: white;
  border: none;
  border-radius: 40px;
  padding: 15px 30px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: .3s;
}

button:hover {
  background: #ff2d70;
  transform: scale(1.05);
}

/* ========================= */
/* SPOTIFY */
/* ========================= */

iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 20px;
  margin-top: 20px;
}

/* ========================= */
/* REGALO */
/* ========================= */

.gift {
  font-size: 120px;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ========================= */
/* RELOJ FLOTANTE */
/* ========================= */

.countdown-box {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  padding: 12px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  min-width: 230px;
  text-align: center;
  z-index: 100;
}

.count-title {
  color: #ff4d88;
  font-weight: bold;
  font-size: 14px;
}

.count-time {
  color: #333;
  font-size: 22px;
  font-weight: bold;
}

.ready-box {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff4d88;
  color: white;
  padding: 12px 25px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(255, 77, 136, .4);
  animation: pulse 1.5s infinite;
  z-index: 100;
}

@keyframes pulse {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.05); }
  100% { transform: translateX(-50%) scale(1); }
}

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

@media (max-width: 900px) {

  body {
    padding: 15px;
  }

  #cards-container {
    grid-template-columns: 1fr;
  }

  .card__content {
    padding: 25px;
  }

  .card__content h2 {
    font-size: 2.2rem;
  }

  .card__content h3 {
    font-size: 1.5rem;
  }

}