/* ===== TIPOGRAFÍA ===== */
@font-face {
  font-family: 'micro-extend';
  src: url('micro-extend/MicroExtendFLF-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* ===== MENÚ ===== */
body {
  background: #a1a1a1;
}

h1 {
  color: #870000;
  font-size: clamp(1.6rem, 4vw, 4rem);
  font-family: 'micro-extend', sans-serif;
  text-align: center;
  margin: 2rem 1rem;
}

#menu {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.cuadricula {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 25px;
  justify-content: center;
}

.contenedor {
  position: relative;
  overflow: hidden;
}

.contenedor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease, filter 0.5s ease;
  aspect-ratio: 2 / 1;
}

.texto_centrado {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'micro-extend', sans-serif;
  color: white;
  font-size: clamp(1rem, 2.5vw, 2rem);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.contenedor:hover .texto_centrado {
  opacity: 1;
}

.contenedor:hover img {
  transform: scale(0.9);
  filter: brightness(50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cuadricula {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}
