/* ===== Drawer / Overlay global ===== */

/* Fondo semitransparente a pantalla completa */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

/* Cuando se abre */
.overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Botón de cierre (✕) arriba a la derecha */
.overlay .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Menú de enlaces centrado */
.overlay nav {
  margin: auto;
  width: min(420px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

/* Enlaces del menú */
.overlay nav a {
  display: block;
  padding: 14px 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: opacity 0.2s ease;
}

.overlay nav a:hover {
  opacity: 0.8;
}

/* Accesibilidad: foco visible al tabular */
.overlay nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}

/* Texto inferior */
.overlay small {
  margin: 16px auto 24px;
  opacity: 0.6;
  color: #fff;
  font-size: 14px;
}
