/* Fondo opaco al abrir el modal */
.mdl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* Oculto por defecto */
.mdl.oculto {
  opacity: 0;
  pointer-events: none;
}

/* Contenedor principal del modal */
.mdl-contenido {
  background-color: #fff;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-radius: 0; /* esquinas rectas */
  font-family: "Segoe UI", Arial, sans-serif;
  animation: slideUp 0.35s ease forwards;
}

/* Botón de cierre */
.mdl-contenido__boton-cerrar {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  position: absolute;
  top: 1rem;
  right: 1rem;
  transition: color 0.2s ease;
}
.mdl-contenido__boton-cerrar:hover {
  color: #000;
}

/* Estilos del formulario */
.buscador-menu__buscador-titulo h2 {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.buscador-categorias__inp-texto {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.buscador-categorias__inp-texto:focus {
  border-color: #0073aa; /* azul WP */
}

/* Botón de búsqueda */
.buscador-categorias__boton {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0;
  transition: background-color 0.2s ease;
}
.buscador-categorias__boton:hover {
  background-color: #005f87;
}

/* Animación */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
