/* Layout básico */
* { box-sizing: border-box; }
body { margin: 0; color: #eaeaea; background: #0f0f0f; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Nav oscuro */
.site-nav { background: #111; }
.site-nav .container { display: flex; justify-content: center; gap: 20px; padding: 10px 0; }
.site-nav a { color: #ffffff; text-decoration: none; font-size: 14px; }
.site-nav a:hover { text-decoration: underline; }

/* Bloque claro */
.page { background: #eeefee; color: #111; padding-bottom: 40px; }

/* ---- Banner único ---- */
.hero{
  width: 100%;
  height: clamp(180px, 36vh, 420px);
  overflow: hidden;
}
.hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Título / subtítulo */
.intro { text-align: center; padding: 28px 0 16px; }
.intro h1 { margin: 0 0 6px; color: #111; font-weight: 800; }
.intro p  { margin: 0; font-weight: 700; }

/* Grilla de tarjetas */
.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px)  { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cards { grid-template-columns: 1fr; } }

/* Tarjeta 1:1 con overlay */
.card{
  position: relative;
  aspect-ratio: 1 / 1;
  background: #1b1b1b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  text-align: center;
  color: #eaeaea;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.card-body h3{
  margin: 0 0 6px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
}
.card-body p{
  margin: 2px 0;
  font-size: 12px;
  opacity: .9;
}

/* --- NOMBRE CLICKEABLE --- */
.card-name{
  color: #fff;
  text-decoration: none;
}
.card-name:hover{ text-decoration: underline; }

/* --- SOMBRA EN TODA LA TARJETA CUANDO EL NOMBRE TIENE HOVER --- */
.card-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);  /* baja opacidad */
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;         /* no bloquea el click al enlace */
  z-index: 2;
}
.card-body{ z-index: 1; }

/* dispara la sombra SOLO cuando el hover es sobre el nombre */
.card:has(.card-name:hover) .card-overlay{
  opacity: 1;
}

/* Footer oscuro */
.site-footer { background: #111; color: #ffffff; font-size: 12px; }
.site-footer .container { padding: 16px 0; text-align: center; line-height: 1.5; }

