/* â?? Ocultar buscador original de Koha */
#searchform,
#opac-main-search,
.opac-main-search {
    display: none !important;
}

/* â?? Banner ancho completo */
.hero-banner {
  background: url('../images/banner-ipaam.jpg') center center / cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  position: fixed;   /* ? lo hace fijo */
  top: 0;
  left: 0;
  z-index: 9999;
}


/* â?? Evitar scroll lateral */
body.opac {
  overflow-x: hidden;
}




.hero-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Contenido sobre el banner */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    text-align: center;
}

.catalog-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* ð??§ Forzar banner a ocupar todo el ancho */
.hero-banner {
  background: url('../images/banner-ipaam.jpg') center center / cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative; /* <--- CAMBIO AQUÍ */
  z-index: 1;         /* <--- MÁS BAJO */
}

.modal {
  z-index: 1055 !important;
}

/* Elimina padding de posibles contenedores superiores */
#opac-main-content,
#opac-main,
.opac-page {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Ajuste para evitar espacio lateral en body */
body.opac {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}


/* Formulario horizontal bonito */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

/* SELECT */
.search-form select {
    height: 45px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0 12px;
    box-sizing: border-box;
    background: #fff;
}

/* INPUT TEXTO */
.search-form input[type="text"] {
    height: 45px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0 15px;
    width: 500px;           /* â?? MÃ¡s ancho */
    max-width: 100%;
    box-sizing: border-box;
}

/* BOTÃ?N */
.search-form button {
    height: 45px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #218838;
}

.search-form button .fa {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .search-form select,
    .search-form input[type="text"],
    .search-form button {
        width: 100% !important;
    }
}

#moresearches .moresearch-btn {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
  border-radius: 8px;
  font-size: 1rem;
  padding: 10px 18px;
  margin: 5px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#moresearches .moresearch-btn:hover {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
  color: #fff !important;
}

#moresearches {
  display: none;
}


.hero-banner {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

