body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: white;
}

/* HEADER */
.header {
  text-align: center;
  padding: 30px 20px;
}

.controls input,
.controls select {
  background: rgba(15,23,42,0.8);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

/* opciones del select */
select option {
  background: #020617;
  color: white;
}

input, select {
  padding: 10px;
  border-radius: 10px;
  border: none;
}

/* GRID */
#catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* CARD */
.card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
}

.card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.card h3 {
  padding: 10px;
}

/* MODAL BASE */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

/* ACTIVAR CENTRADO */
.modal.activo {
  display: flex;
}

/* CONTENIDO */
.modal-content {
  background: #020617;
  padding: 20px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: aparecer 0.3s ease;
}

/* IMAGEN PERFECTA */
.modal img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 10px;
}

#cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: white;
  background: rgba(0,0,0,0.6);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

#cerrar:hover {
  background: #ef4444;
  transform: scale(1.1);
}

@keyframes aparecer {
  from {opacity: 0; transform: scale(0.8);}
  to {opacity: 1; transform: scale(1);}
}

/* INFO */
.info {
  padding: 40px 20px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.info-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 20px;
  transition: 0.3s;
}

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

/* ACORDEON */
.acordeon {
  max-width: 700px;
  margin: 20px auto;
}

.item {
  margin-bottom: 10px;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.titulo {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: none;
  color: white;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.titulo:hover {
  background: rgba(255,255,255,0.1);
}

.contenido {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.4s ease, padding 0.3s;
}

.contenido.activo {
  max-height: 300px;
  padding: 15px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: white;
}

.card {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: 0.3s;
}

.card:hover img {
  transform: scale(1.1);
}

.header {
  text-align: center;
  padding: 40px 20px;
}

.header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.controls input,
.controls select {
  background: rgba(255,255,255,0.08);
  color: white;
}

.modal-content {
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  animation: aparecer 0.3s ease;
  position: relative;
}

.modal p {
  opacity: 0.8;
  font-size: 14px;
}

/* =========================
   📱 TABLET
========================= */
@media (max-width: 900px) {

  .header h1 {
    font-size: 1.8rem;
  }

  #catalogo {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .modal-content {
    width: 80%;
  }
}


/* =========================
   📱 CELULAR
========================= */
@media (max-width: 600px) {

  /* HEADER */
  .header {
    padding: 20px 10px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  /* CONTROLES */
  .controls {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .controls input,
  .controls select {
    width: 90%;
  }

  /* GRID */
  #catalogo {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  /* CARDS */
  .card {
    max-width: 350px;
    margin: 0 auto;
  }

  /* MODAL */
  .modal-content {
    width: 90%;
    margin: auto;
  }

  .modal img {
    max-height: 250px;
  }

  /* INFO */
  .info {
    padding: 30px 15px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
}