/* Fondo oscuro con blur elegante */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px); /* 🔥 BLUR */
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* Caja principal */
.modal-contenido {
  background: #fff;
  width: 60%; /* más ancho para que no se vea apretado */
  height: 75%;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: scaleUp 0.4s ease;
  position: relative;
}

/* Botón cerrar */
.cerrar {
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  color: #555;
  transition: 0.3s;
}
.cerrar:hover { color: #000; }

/* Secciones */
.seccion-superior {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* 🔥 espacio entre cards */
}
.seccion-inferior {
  flex: 1;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

/* Card elegante */
.card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  max-width: 280px;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25); /* 🔥 más fuerte */
}

/* Imagen con sombra y centrada */
.card img {
  width: 120px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.4)); /* 🔥 sombra elegante */
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.1);
}

/* Títulos */
.card h3 {
  margin: 10px 0;
  color: #333;
  font-size: 18px;
}

/* Botón elegante */
.btn-descargar {
  display: inline-block;
  padding: 10px 15px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
.btn-descargar:hover {
  background: linear-gradient(135deg, #0056b3, #003d80);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; } 
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
