/* ========== ESTILOS PERSONALIZADOS KOHA 25.05 - REFINADO ========== */

/* ========== RESET Y BASE ========== */
* {
    box-sizing: border-box;
}

body {
    background-color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ========== NAVBAR PRINCIPAL ========== */
.navbar {
    background-color: #0071AC !important;
    padding: 0.25rem 1rem;
    min-height: 50px;
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}

.navbar-brand:hover {
    color: #9FE1FF !important;
}

.navbar-nav .nav-link {
    color: #fff !important;
    padding: 0.5rem 12px;
    text-shadow: none;
    font-weight: normal;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    color: #9FE1FF !important;
}

.navbar-nav .dropdown-toggle::after {
    border-top-color: #fff;
    border-bottom-color: #fff;
}

/* Dividers en navbar */
.navbar .divider-vertical {
    height: 20px;
    margin: 0 9px;
    border-left: 1px solid #005580;
    border-right: 1px solid #4A90C2;
}

/* Logo en navbar */
#logo {
    background: url("/cenda/images/koha-logo-navbar.png") no-repeat center;
    background-size: contain;
    width: 80px;
    height: 30px;
    float: left;
    margin-right: 15px;
}

#logo .navbar-brand {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* ========== HEADER PERSONALIZADO ========== */
#opacheader {
    border-radius: 0.75em 0.75em 0 0;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 1em;
    margin: 1.5em auto 0;
    max-width: 1050px;
    background-color: #fff;
}

/* Layout del header */
.header-container {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
    align-items: center;
}

.header-col {
    padding: 15px;
    flex: 1;
}

.header-col.logo {
    flex: 0 0 25%;
    max-width: 25%;
}

.header-col.banner {
    flex: 0 0 50%;
    max-width: 50%;
}

.header-col.tagline {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Logo del header */
#myHeaderLogo {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#myHeaderLogo img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    max-height: 120px;
}

/* Banner del header */
#myHeaderBanner {
    background: url(/cenda/images/header-banner.jpg) no-repeat center center;
    background-size: cover;
    min-height: 125px;
    border-radius: 8px;
}

/* Tagline del header */
#myTagline {
    background: url(/cenda/images/white-book.jpg) no-repeat center bottom;
    background-size: cover;
    min-height: 125px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    border-radius: 8px;
}

#taglineLabel {
    color: #000;
    font-weight: normal;
    background: rgb(255 255 255 / 0%);
    padding: 1em;
    border-radius: 8px;
    margin: 0em;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.4;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}

.divider-vertical{
display:none;
}

.navbar-nav .nav-link i,
.navbar-nav .nav-link .fa,
.navbar-nav .nav-link [class*="fa-"] {
    color: #fff !important;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link:hover .fa,
.navbar-nav .nav-link:hover [class*="fa-"] {
    color: #9FE1FF !important;
}

/* ========== CONTENEDOR PRINCIPAL ========== */
.container-fluid {
    max-width: 1050px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.main {
    background-color: #FFF;
    margin: 0 auto;
    max-width: 1050px;
    padding: 0 15px;
}

/* ========== MASTHEAD SEARCH ========== */
#opac-main-search {
    margin: 0;
}

.mastheadsearch {
    padding: 1.5em 2em;
    text-align: center;
    /*background: #ededed;*/
    margin: 0 auto;
    /*border-radius: 0 0 0.75em 0.75em;*/
    /*border: 1px solid #ddd;*/
    border-top: none;
    /*box-shadow: 0 0 10px rgba(255,255,255,0.8) inset, 0 0 5px rgba(255,255,255,0.8) inset;*/
    max-width: 1050px;
    height: 130px;
}

.mastheadsearch label {
    font-size: 115%;
    font-weight: bold;
    color: #000;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.mastheadsearch select {
    padding: 8px 12px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    vertical-align: middle;
    background-color: #fff;
}

.mastheadsearch .input-append {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.mastheadsearch input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    min-width: 470px;
    border-right: none;
}

.mastheadsearch .btn {
    padding: 8px 20px;
    border-radius: 0 4px 4px 0;
    border-left: none;
    margin: 0;
}

/* ========== VOICE TO TEXT ========== */
.voice-to-text-container {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    vertical-align: middle;
}

#btn_search_voice {
    width: 38px !important;
    height: 34px !important;
    color: #fff !important;
    background: #0071AC !important;
    border: 1px solid #0071AC !important;
    border-radius: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn_search_voice:hover {
    background: #005580 !important;
    border-color: #005580 !important;
}

#btn_search_voice svg {
    width: 60%;
    height: 60%;
}

/* ========== NAVEGACIÓN MORESEARCHES ========== */
#moresearches {
  
    text-align: center;
    max-width: 1050px;
    z-index: 10;
    position: relative;
    justify-content: center;
    bottom: 40px;
}

#moresearches .nav {
    display: inline-flex;
    border-radius: 1.5em;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    background: linear-gradient(to bottom, #f8f8f8 0%, #f0f0f0 50%, #e8e8e8 100%);
    padding: 0.5em 1.5em;
    list-style: none;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

#moresearches .nav-item {
    display: inline;
    white-space: nowrap;
}

#moresearches .nav-item:not(:last-child)::after {
    content: " | ";
    color: #666;
    margin: 0 0.5em;
}

#moresearches .nav-item a {
    color: #333;
    font-size: 0.85em;
    text-decoration: none;
    padding: 0.3em 0.5em;
    font-weight: normal;
}

#moresearches .nav-item a:hover {
    color: #0071AC;
    text-decoration: underline;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background-color: #0071AC;
    border-radius: 1.5em;
    padding: 0.5em 1.5em;
    margin: 2em auto;
    list-style: none;
    max-width: 1050px;
    font-size: 0.85em;
}

.breadcrumb-item {
    color: #fff !important;
}

.breadcrumb-item.active {
    color: #fff !important;
}

/* Específicamente para los enlaces dentro del breadcrumb */
.breadcrumb-item a {
    color: #fff !important;
    text-decoration: none;
    
}

.breadcrumb-item a:hover {
    color: #9FE1FF !important;
    text-decoration: underline;
}

.breadcrumb-item a:visited {
    color: #fff !important;
}

/* Para el span dentro del enlace */
.breadcrumb-item a span {
    color: #fff !important;
    cursor: pointer;
}

.breadcrumb-item a:hover span {
    color: #9FE1FF !important;
}

/* Separadores entre breadcrumbs */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9FE1FF !important;
    margin: 0 0.5em;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    font-weight: normal;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9FE1FF;
    margin: 0 0.5em;
}

/* ========== BOTONES ========== */
.btn {
    border-radius: 4px;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    color: #fff !important;
    background-color: #0071AC;
    border-color: #0071AC;
}

.btn-primary:hover {
    color: #fff !important;
    background-color: #005580;
    border-color: #005580;
}

.btn-primary:active {
    background-color: #004466;
    border-color: #004466;
}

/* ========== FORMULARIOS ========== */
.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ========== LOGIN SIDEBAR ========== */
#login {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 2em;
}

#login legend {
    font-size: 1.1em;
    font-weight: bold;
    color: #0071AC;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #0071AC;
}

#login label {
    font-weight: 500;
    margin-bottom: 0.5em;
    display: block;
}

#login .form-control {
    margin-bottom: 1em;
}

/* ========== DROPDOWN MENÚ ========== */
.dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    z-index: 1000;
}

.dropdown-item {
    padding: 8px 20px;
    color: #333;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0071AC;
}

/* ========== MEDIA QUERIES RESPONSIVAS ========== */

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    #opacheader {
        margin: 0.5em auto 0;
        border-radius: 0;
        padding: 0.5em;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    .header-col {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px;
    }
    
    #myHeaderLogo {
        min-height: 80px;
    }
    
    #myHeaderBanner {
        display: none;
    }
    
    #myTagline {
        background: none;
        min-height: auto;
        background-color: #f8f9fa;
        border-radius: 8px;
    }
    
    #taglineLabel {
        position: relative;
        background: transparent;
        margin: 0;
        padding: 1em;
        font-size: 1.1em;
        box-shadow: none;
    }
    
    .mastheadsearch {
        padding: 1em;
        border-radius: 0;
        margin: 0;
    }
    
    .mastheadsearch label {
        display: block;
        margin-bottom: 0.5em;
        text-align: center;
    }
    
    .mastheadsearch select {
        width: 100%;
        margin-bottom: 0.5em;
        margin-right: 0;
    }
    
    .mastheadsearch input[type="text"] {
        width: 100%;
        margin-bottom: 0.5em;
        min-width: auto;
        border-radius: 4px;
        border: 1px solid #ccc;
    }
    
    .mastheadsearch .input-append {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .mastheadsearch .btn {
        width: 100%;
        border-radius: 4px;
        border: 1px solid #0071AC;
    }
    
    .voice-to-text-container {
        width: 100%;
        justify-content: center;
        margin: 0.5em 0 0;
    }
    
    #moresearches {
        margin: 0 auto 1em;
    }
    
    #moresearches .nav {
        flex-direction: column;
        border-radius: 8px;
        padding: 1em;
        gap: 0.5em;
    }
    
    #moresearches .nav-item:not(:last-child)::after {
        display: none;
    }
    
    #moresearches .nav-item {
        display: block;
        text-align: center;
        padding: 0.5em 0;
        border-bottom: 1px solid #ddd;
    }
    
    #moresearches .nav-item:last-child {
        border-bottom: none;
    }
    
    .breadcrumb {
        border-radius: 8px;
        margin: 1em auto;
        padding: 0.5em 1em;
    }
    
    /* Navbar mobile */
    .navbar {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.4rem 8px;
        font-size: 0.85rem;
    }
    
    .navbar .divider-vertical {
        margin: 0 5px;
        height: 15px;
    }
    
    #logo {
        width: 60px;
        height: 25px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    #opacheader {
        margin: 0;
        padding: 0.25em;
    }
    
    #myHeaderLogo img {
        max-height: 60px;
    }
    
    #taglineLabel {
        font-size: 1em;
        padding: 0.5em;
    }
    
    .mastheadsearch {
        padding: 0.5em;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 6px;
    }
}

/* ========== AJUSTES ESPECÍFICOS PARA MANTENER EL DISEÑO ORIGINAL ========== */

/* Asegurar que el header se vea como el original */
#opacheader .header-container {
    min-height: 125px;
}

/* Mantener el estilo de búsqueda similar al original */
.mastheadsearch .form-inline {
    display: inline-block;
    vertical-align: middle;
}

/* Espaciado consistente */
.main {
    margin-top: 0;
    padding-top: 0;
}

/* ========== UTILIDADES ========== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

/* ========== AJUSTES TIPOGRÁFICOS ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    margin-bottom: 0.5em;
}

a {
    color: #0071AC;
    text-decoration: none;
}

a:hover {
    color: #005580;
    text-decoration: underline;
}