/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    font-size: 16px;
}

/* Estilos para la barra de búsqueda */
.cabezal {
    background-color: #c42126;
    width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    gap: 20px;
    min-height: 120px;
}

.logo {
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo img:hover {
    transform: scale(1.02);
}

.title a {
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.title a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.search-form {
    flex: 0 1 auto;
    width: auto;
    max-width: 500px;
    margin: 0;
    margin-left: auto;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.search-box {
    display: flex;
    width: 100%;
    position: relative;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 16px;
    color: #333;
    width: 100%;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    color: #c42126;
    background-color: rgba(196, 33, 38, 0.1);
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.select-drop-fondos {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.checkbox-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.check-option {
    display: flex;
    align-items: center;
}

.check-option label {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.check-option input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Contenido principal */
.content-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 30px 5px;
}

.cuerpo-ppal {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.textos {
    flex: 1;
    min-width: 300px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.3;
}

h2 {
    font-size: 1.7rem;
    margin: 35px 0 20px;
    color: #c42126;
    line-height: 1.3;
}

h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #555;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* Estilo para el título principal */
.textos .title {
    margin: 20px 0 40px 0;
}

.textos .title a {
    font-size: 2.3rem;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    display: block;
    line-height: 1.2;
    margin-bottom: 0;
}

.textos .title a:hover {
    color: #000;
    text-decoration: none;
}

/* Estilo para el botón de catálogo */
.btn-catalogo {
    display: inline-block;
    background-color: #e6e6e6;
    color: #000;
    padding: 20px 30px;
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 50px;
    margin: 0 0 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    width: auto;
    text-align: left;
}

.btn-catalogo:hover {
    background-color: #d9d9d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* Estilo para el botón de normas de acceso */
.btn-normas {
    display: inline-block;
    background-color: #d9d9d9;
    color: black;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 50px;
    margin: 0 0 40px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    width: auto;
    text-align: left;
}

.btn-normas:hover {
    background-color: #a01c20;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    color: white;
}

/* Estilos para las secciones de información */
.fondo-info {
    /* background-color: white; */
    padding: 25px 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.fondo-info h2 {
    color: #c42126;
    font-size: 1.7rem;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.fondo-info h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c42126;
    opacity: 0.2;
}

.fondo-info p {
    margin-bottom: 20px;
}

.fondo-info p:last-child {
    margin-bottom: 0;
}

/* Imágenes */
.imagenes {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 180px;
    align-self: flex-start;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding: 20px 0;
    margin: 20px 0;
}

.imagenes::-webkit-scrollbar {
    width: 8px;
}

.imagenes::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.imagenes::-webkit-scrollbar-thumb {
    background: #c42126;
    border-radius: 4px;
}

.imagenes::-webkit-scrollbar-thumb:hover {
    background: #a01c20;
}

figure {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
}

figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

figure img {
    width: 100%;
    height: 70%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background-color: #f8f8f8;
    padding: 10px;
}

/* Opcional: si quieres que el fondo de la imagen tenga un color específico */
.imagenes figure:first-child img {
    background-color: white; /* O cualquier otro color que combine mejor con tu imagen */
}

figcaption {
    height: 30%;
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
    position: relative;
    display: flex;
    align-items: center;
}

figcaption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: #c42126;
    opacity: 0.8;
}

/* Sección de financiación */
.financiacion {
    background-color: white;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.financiacion p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 0.9rem;
    color: #555;
}

.logo-3 {
    max-width: 800px;
    margin: 0 auto;
}

.logo-3 img {
    max-width: 100%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
}

/* Footer */
.footbar {
    background-color: #333;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.footbar p {
    max-width: 800px;
    margin: 0 auto;
}

/* Enlaces */
a {
    color: #c42126;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
}

/* Ajustes para enlaces en el texto */
.fondo-info a {
    font-weight: 500;
    text-decoration: none;
    color: #c42126;
    transition: color 0.3s ease;
}

.fondo-info a:hover {
    text-decoration: underline;
}

/* Ajustes para texto destacado */
.fondo-info strong {
    font-weight: 600;
    color: #222;
}

/* Responsive */
@media (max-width: 992px) {
    .logo img {
        height: 100px;
    }
    
    .top-bar {
        flex-wrap: wrap;
    }
    
    .search-form {
        flex: 1 1 100%;
        margin: 0;
    }
    
    .title {
        margin: 10px 0;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .checkbox-container {
        flex-direction: column;
        gap: 5px;
    }
    
    body {
        font-size: 17px;
    }
    
    .title a {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 80px;
    }
    
    .top-bar {
        min-height: 120px;
    }
    
    .cuerpo-ppal {
        flex-direction: column;
    }
    
    .imagenes {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-height: none;
        overflow-y: visible;
        gap: 20px;
    }
    
    figure {
        flex: 0 0 calc(50% - 10px);
        max-width: 300px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    figure img {
        max-height: 180px;
    }
    
    .textos .title a {
        font-size: 2rem;
    }
    
    .btn-catalogo {
        font-size: 1.3rem;
        padding: 15px 25px;
        margin: 0 0 15px 0;
    }
    
    .btn-normas {
        font-size: 1rem;
        padding: 12px 20px;
        margin: 0 0 30px 0;
    }
    
    figcaption {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .content-container {
        padding: 1px 12px;
    }
    
    .fondo-info, .bibliografia {
        padding: 20px 15px;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .textos .title {
        margin: 15px 0 30px 0;
    }
    
    .btn-catalogo {
        margin: 0 0 30px 0;
    }
    
    .search-form {
        width: 100%;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .select-drop-fondos {
        width: 100%;
    }
    
    .checkbox-container {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .textos .title a {
        font-size: 1.8rem;
    }
    
    .btn-catalogo {
        font-size: 1.2rem;
        padding: 12px 20px;
        width: 100%;
        text-align: center;
        margin: 0 0 15px 0;
    }
    
    .btn-normas {
        font-size: 0.9rem;
        padding: 10px 15px;
        width: 100%;
        text-align: center;
        margin: 0 0 25px 0;
    }
    
    figure {
        flex: 0 0 100%;
        max-width: 280px;
    }
    
    figure img {
        height: 65%;
    }
    
    figcaption {
        height: 35%;
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .content-container {
        padding: 20px 10px;
    }
    
    .fondo-info, .bibliografia {
        padding: 15px 12px;
    }
    
    .textos .title {
        margin: 10px 0 25px 0;
    }
    
    .btn-catalogo {
        margin: 0 0 25px 0;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .checkbox-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .check-option label {
        font-size: 13px;
    }
}

/* Estilos para la bibliografía */
.bibliografia {
    /* background-color: white; */
    padding: 25px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bibliografia h2 {
    color: #c42126;
    font-size: 1.8rem;
    margin: 0 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.bibliografia h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 35px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.bibliografia ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.bibliografia li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
    font-size: 0.95rem;
}

.bibliografia li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #c42126;
    font-size: 1.2em;
}

.bibliografia .authors {
    font-weight: 500;
    color: #333;
}

.bibliografia .title {
    font-weight: 400;
}

.bibliografia i {
    font-style: italic;
    color: #444;
}

.bibliografia .editors {
    color: #555;
}

.bibliografia .publication,
.bibliografia .year,
.bibliografia .pages {
    color: #666;
}

.bibliografia .volume {
    font-weight: 500;
    color: #444;
}

.bibliografia li:last-child {
    margin-bottom: 0;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .bibliografia {
        padding: 20px;
    }
    
    .bibliografia li {
        padding-left: 20px;
        font-size: 0.9rem;
    }
    
    .bibliografia li::before {
        left: 6px;
    }
    
    .bibliografia h2 {
        font-size: 1.6rem;
    }
    
    .bibliografia h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .bibliografia {
        padding: 15px;
    }
    
    .bibliografia li {
        padding-left: 18px;
        font-size: 0.85rem;
    }
    
    .bibliografia h2 {
        font-size: 1.4rem;
    }
    
    .bibliografia h3 {
        font-size: 1.2rem;
    }
} 