
body {
 background-image: url('multimedia/deditos.img.jpeg');
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* oscurece el fondo */
  z-index: -1;
}
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Grupo de tarjetas como grilla */
.card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  padding: 30px;
  max-width: 1000px;
  margin: auto;
}

/* Tarjetas */
.card {
  width: 160px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.55s, filter 0.3s;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.5s;
}

.card .layer {
  background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 75%;
  opacity: 0;
  transition: 0.3s;
}

.card .info {
  position: absolute;
  bottom: -50%;
  padding: 10px;
  opacity: 0;
  transition: bottom 0.5s ease, opacity 1s ease;
}

.card:hover {
  transform: scale(1.1);
}

.card:hover img {
  transform: scale(1.1);
}

.card:hover .layer {
  opacity: 1;
}

.card:hover .info {
  bottom: 0;
  opacity: 1;
}

.card-group:hover > .card:not(:hover) {
  filter: blur(5px);
}

.info h1 {
  font-size: 16px;
  margin-bottom: 5px;
  color: white;
  text-align: center;
}

.info audio {
  width: 100%;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin-top: 5px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
  max-width: 100%;
}

audio::-webkit-media-controls-panel {
  background-color: rgba(25, 0, 80, 0.3);
  border-radius: 8px;
}
.description {
  font-size: 2rem;
  margin: 20px 0;
  color: #fafafa; /* dorado */
  text-shadow:
      0 0 5px #dd8a64,
      0 0 10px #d3c06b,
      1px 1px 3px rgb(211, 155, 52);
  animation: descriptionPulse 3s ease-in-out infinite;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}