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

body {
  font-family: "Poppins", sans-serif;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: linear-gradient(-45deg, #4e54c8, #8f94fb, #6dd5ed, #2193b0);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
}

/* ---------- ANIMACIÓN DEL FONDO ---------- */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- CONTENEDOR ---------- */
/* ---------- CONTENEDOR FULL SCREEN ---------- */
.container {
  width: 100%;
  height: 100vh; /* ocupa toda la altura de la pantalla */
  padding: 2rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0; /* lo hacemos rectangular completo */
  box-shadow: inset 0 0 80px rgba(0,0,0,0.2);
  animation: fadeIn 1.2s ease forwards;

  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* el contenido empieza arriba */
  overflow-y: auto; /* scroll si el contenido es más grande */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- TITULOS ---------- */
h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #ffdde1, #ee9ca7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category {
  margin-bottom: 4rem;
}

.category h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #89f7fe, #66a6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- GRID DE TARJETAS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

/* ---------- TARJETA (Glassmorphism) ---------- */
.card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
  color: #fff;
}

/* ---------- BOTÓN ---------- */
.card button {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(90deg, #ff758c, #ff7eb3);
  border: none;
  border-radius: 2rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card button:hover {
  background: linear-gradient(90deg, #89f7fe, #66a6ff);
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .category h2 { font-size: 1.4rem; }
}
