/* Estilos generales */
body {
    background-color: #F6F8F9;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 13px;
    overflow-x: hidden;
}

/* Estilos del encabezado */
.header {
    background-color: #3366cc;
    color: #F6F8F9;
    padding: 1px 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.logos {
    display: flex;
    align-items: center;
}

.logo-izquierdo, .logo-derecho {
    height: 70px;
    width: auto;
    max-width: 100%; /* evita que sobrepase el contenedor */
    object-fit: contain; /* mantiene proporción dentro del área */
}

.fecha {
    position: absolute;
    top: 20px;
    right: 14px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    height: 30px;
}

/* Estilos del menú de navegación */
.custom-navbar {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* sombra tipo 3D */
    border-bottom: none;
    position: relative;
    z-index: 1000;
    padding-left: 15px;
}

.navbar-brand {
    margin-right: 20px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.custom-navbar .nav-link,
.custom-navbar .dropdown-item {
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #333 !important;
    transition: all 0.2s ease-in-out;
}

.custom-navbar .nav-link:hover,
.custom-navbar .dropdown-item:hover {
    background-color: #3366cc;
    color: #fff !important;
    box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.custom-navbar .navbar-toggler {
    border-color: #ccc;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
}

.custom-navbar .navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns%3D%22http://www.w3.org/2000/svg%22 viewBox%3D%220 0 30 30%22%3E%3Cpath stroke%3D%22rgba%280,0,0,0.7%29%22 stroke-width%3D%222%22 d%3D%22M4 7h22M4 15h22M4 23h22%22/%3E%3C/svg%3E');
}

/* Quitar raya azul del focus */
.nav-link:focus,
.dropdown-item:focus,
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Estilos del contenido */
.content, .content1, .contentbackup {
    padding: 10px;
    background-color: #FFFFFF;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    min-height: calc(100vh - 200px);
}

.highlight {
    background-color: #90EE90;
    padding: 10px;
    border: 1px solid #D3D3D3;
    margin-bottom: 20px;
    font-size: 12px;
}

/* Estilos del iframe */
iframe {
    width: 100%;
    height: calc(100vh - 240px); /* Altura ajustada para evitar tapar footer */
    border: none;
    box-sizing: border-box;
    margin-top: 10px;
}

/* Estilos del pie de página */
footer {
    background-color: #3366cc;
    color: #F6F8F9;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    font-size: 12px;
    position: relative;
    clear: both;
    margin-top: 20px;
    box-sizing: border-box;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        text-align: center;
    }

    .logos {
        justify-content: center;
        margin-bottom: 10px;
    }

    .fecha {
        position: static;
        top: auto;
        right: auto;
        justify-content: center;
        margin-top: 5px;
    }

    .navbar-toggler {
        display: block;
    }

    .content {
        padding: 10px;
        font-size: 12px;
    }

    .highlight, .dropdown-item {
        font-size: 12px;
    }

    iframe {
        height: 400px;
    }

    footer {
        font-size: 12px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    iframe {
        height: 300px;
    }
}

/* Estantería y libros */
.contenedor-libros {
    max-width: 1100px;
    margin: 0 auto;
}

.fila-estanteria {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 20px;
    position: relative;
    z-index: 2;
    margin-bottom: -20px;
}

.libro {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f4f4f4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow:
        0px 4px 6px rgba(0, 0, 0, 0.25),
        0px 10px 15px rgba(0, 0, 0, 0.1);
}

.libro:hover {
    transform: scale(1.05);
    box-shadow: 6px 6px 12px rgba(0,0,0,0.4);
}

.libro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.estante {
    width: 60%;
    max-width: 800px;
    height: 44px;
    margin: 0 auto 30px auto;
    background-image: url('../img/estante_turnjs.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center bottom;
    position: relative;
    z-index: 1;
    margin-top: -5px;
}

.paginacion {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.paginacion a {
    padding: 6px 12px;
    margin: 0 4px;
    background-color: #3366cc;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.paginacion a.actual {
    background-color: #1c4587;
    font-weight: bold;
}

.mensaje {
    text-align: center;
    font-size: 18px;
    color: #777;
    margin-top: 50px;
}

.libro-container {
    width: 110px;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.main-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #3366cc;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
    border-radius: 0.25rem;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}


