/* ==========================================================================
   HEMEROTECA DIGITAL - HOJA DE ESTILOS 
   ========================================================================== */

/* --- VARIABLES Y ESTILOS GENERALES --- */

:root {
  --primary-bg: #FDFBFA;
  --content-bg: #ffffff;
  --text-color: #212121;
  --link-color: #333333;
  --header-color: #333333;
  --border-color: #e0e0e0;
  --btn-primary-bg: #333333;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #f0f0f0;
}

body {
  font-family: "Libre Baskerville", serif;
  color: var(--text-color);
  background-color: var(--primary-bg);
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

.main-title {
    font-size: 96px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 50px;
    line-height: 60%;
    color: #113A5E;
    font-family: "Alumni Sans", sans-serif;
}

/* --- ESTILOS DEL HEADER --- */

.site-header  {

    width: 90%;
    margin-top: 30px;
    margin-left:5%;
    margin-right:5%;
    background-color: #fff;
    padding: 12px 30px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.3s ease;
     display: flex;
    justify-content: space-between;
}

.navbar {
   
    align-items: center;
    width: 100%;
    
}

.navbar-brand {
    text-decoration: none;
}

.navbar-brand .logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 32px;
    color: #003366;
    vertical-align: middle;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 60px;
}

.navbar-nav .nav-item {
    margin-left: 35px;
}

.navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.navbar-nav .nav-link:hover {
    color: #0056b3;
}

/* --- ESTILOS PÁGINA "QUIÉNES SOMOS" --- */
/* Las reglas ahora comienzan con .page-quienes-somos para no afectar otras páginas */

.page-quienes-somos .about-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 3rem !important;
}

.page-quienes-somos .about-subtitle-black {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #000000;
    font-size: 1.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.page-quienes-somos .about-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #34495e;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1.25rem !important;
}

.page-quienes-somos .about-text-small {
    font-family: "Libre Baskerville", serif;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.page-quienes-somos .about-text-large {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    line-height: 1.6;
    color: #333;
}

.page-quienes-somos .about-text {
    font-family: "Libre Baskerville", serif;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-quienes-somos .full-width-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.page-quienes-somos .gx-5 {
    --bs-gutter-x: 5rem;
}


/* --- ESTILOS DE LA HEMEROTECA (BÚSQUEDA, TABLAS, ETC) --- */

.fila_titulo {
  background: #fff !important;
}

.intro-section h1 {
  font-size: 96px;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 50px;
  line-height: 60%;
  color: #113A5E;
  font-family: "Alumni Sans", sans-serif;
}

.intro-text {
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 40px;
}

.search-section {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 800px;
}

.search-form {
  flex-grow: 1;
  display: flex;
}


.search-box .form-control {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.filter-btn {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #113A5E;
    border-radius: 14px;
    cursor: pointer;
    color: #113A5E;
    font-size: 16px;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.documents-section {
  background-color: var(--content-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 50px;
}

.table-documents {
  width: 100%;
  border-collapse: collapse;
}

.table-documents th, .table-documents td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}


/* --- ESTILOS PÁGINA "CONTACTO" --- */

.contact-form-wrapper .input-group {
    position: relative;
}

.contact-form-wrapper .input-group placeholder {
    color: red !important;
}

.contact-form-wrapper .input-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #113A5E;
}

.contact-form-wrapper .form-control-custom {
    
    padding: 10px 55px !important;
    background: #fff;
    border: 1px solid #113A5E;
    border-radius: 14px !important;
    cursor: pointer;
    color: #113A5E !important;
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s ease;
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
}

.contact-form-wrapper .form-control-custom:focus {
    outline: none;
    border-color: #34495e;
}

.contact-form-wrapper textarea.form-control-custom {
    padding-top: 15px; 
}

.privacy-check-custom {
    font-size: 0.9rem;
    color: #666;
}

.privacy-check-custom .form-check-input {
    border-color: #ddd;
}

.privacy-check-custom a {
    color: #34495e;
    text-decoration: underline;
}

.btn-submit-custom {
    background-color: #113A5E;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 40px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-custom:hover {
    background: #fff;
    border: 1px solid #113A5E;
    color: #113A5E;
 

}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 330px;
    object-fit: cover;
    display: block;
}

/* --- ESTILOS "DESTACADOS" --- */

.about-destacados {
    width: 100%;
    height: auto;
    font-family: "Alumni Sans", sans-serif;
    font-size: 26px;
    line-height: 1.25;
}

.section-subtitle {
    width: 100%;
    height: auto;
    font-family: "Alumni Sans", sans-serif;
    font-size: 50px;
    font-weight: bold;
}

.section-subtitle-color {
    width: 100%;
    padding-top: 50px;
    height: auto;
    font-family: "Alumni Sans", sans-serif;
    font-size: 40px;
    font-weight: bold;
    color: #113A5E;
}

.footer {
    width: 100%;
    margin-top: 50px;
    padding-top: 10px;
    border-top: 1px solid #113A5E;
    
}

.btn-custom{
   
  padding: 10px 15px;
    background: #fff;
    border: 1px solid #113A5E;
    border-radius: 14px;
    cursor: pointer;
    color: #113A5E;
    font-size: 16px;
    text-decoration: none;
    
}


/* --- REVISAR DESDE ACA --- */

 
    .alert { margin: 20px auto; max-width: 1100px; padding: 15px; border-radius: 4px; }
    .alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
    .alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
    .btn-close { float: right; font-size: 1.2rem; border: none; background: transparent; cursor: pointer; }

    .article-page-container {
        max-width: 1100px;
        margin: 30px auto;
        padding: 25px 30px;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 8px;
    }

    .article-header-section {
        text-align: left;
        padding-bottom: 20px;
        margin-bottom: 30px;
        border-bottom: 1px solid #eee;
    }
    .article-main-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #113A5E;
        margin-bottom: 0.5rem;
        margin-top: 2.5rem;
        line-height: 1.2;
            font-family: "Alumni Sans", sans-serif;
            

    }
    .article-meta {
        font-size: 0.95rem;
        color: #113A5E;
        margin-bottom: 1.5rem;
    }
    .article-author {
        margin-left: 5px;
        font-style: italic;
    }
    .btn-download-article {
        display: inline-block;
        background-color: #007bff;
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }
    .btn-download-article i { margin-right: 8px; }
    .btn-download-article:hover { background-color: #0056b3; }

    .article-body-wrapper {
        /* Ya no necesita flex para dos columnas principales */
    }

    .article-main-content-full-width { /* Nueva clase para el contenido que ahora ocupa todo el ancho */
        width: 100%;
    }
    .article-content-text {
        font-size: 1.1rem;
        color: #333;
        word-wrap: break-word;
        margin-bottom: 30px; /* Espacio antes de las etiquetas o preview de PDF */
    }
        .article-content-text.multi-column {
    -webkit-column-count: 2; /* Prefijo para navegadores WebKit (Chrome, Safari, Edge) */
    -moz-column-count: 2;    /* Prefijo para Firefox */
    column-count: 2;         /* Estándar */
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
    column-gap: 40px;
            margin-top: 40px;
            text-align:justify;

    }
    

    .article-content-text p { margin-bottom: 1.2em; }
    .article-content-text h1, .article-content-text h2, .article-content-text h3,
    .article-content-text h4, .article-content-text h5, .article-content-text h6 {
        margin-top: 1.8em;
        margin-bottom: 0.8em;
        line-height: 1.3;
        font-weight: 600;
         /* Evitar que los encabezados se partan entre columnas */
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .article-content-text h1 { font-size: 2em; }
    .article-content-text h2 { font-size: 1.75em; }
    .article-content-text h3 { font-size: 1.5em; }
    .article-content-text img {
        max-width: 100%;
        height: auto;
        margin: 1em 0;
        border-radius: 4px;
        /* Evitar que las imágenes se partan entre columnas */
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .article-content-text a { color: #007bff; text-decoration: underline; }
    .article-content-text a:hover { color: #0056b3; }

    .document-tags-below-content { /* Estilo para etiquetas debajo del contenido */
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    .section-title-small { /* Para "Etiquetas:" */
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
    }
    .tags-list .tag-item {
        display: inline-block;
        background-color: #e9ecef;
        color: #495057;
        padding: 5px 10px;
        margin-right: 5px;
        margin-bottom: 5px;
        border-radius: 4px;
        font-size: 0.85rem;
        text-decoration: none;
    }
    .tags-list .tag-item:hover { background-color: #ced4da; }

    .pdf-preview-section {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    .pdf-preview-section .section-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid #007bff; 
        display: inline-block;
    }
    .pdf-frame-article {
        width: 100%;
        height: 600px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .no-content-message {
        background-color: #f8f9fa; padding: 15px; border-radius: 5px;
        border-left: 4px solid #0066cc; color: #555; margin-bottom: 20px;
    }

    .article-page-footer {
        margin-top: 40px;
        padding-top: 20px;
        text-align: center;
    }
    .btn-back-main {
        display: inline-block;
        background-color: #6c757d;
        color: white;
        padding: 10px 20px;
        text-decoration: none;
        border-radius: 5px;
        font-size: 1rem;
        transition: background-color 0.2s ease;
    }
    .btn-back-main i { margin-right: 8px; }
    .btn-back-main:hover { background-color: #545b62; }

    /* Responsividad para las columnas de texto */
    @media (max-width: 991px) {
        .article-content-text.multi-column {
            /* Podrías mantener 2 columnas si el ancho lo permite, o cambiar a 1 */
            /* column-count: 2; */
        }
    }
    @media (max-width: 767px) { /* En móviles, el texto vuelve a una sola columna */
        .article-page-container { padding: 20px 15px; margin: 15px auto; }
        .article-main-title { font-size: 1.75rem; }
        .article-meta { font-size: 0.9rem; }
        .btn-download-article, .btn-back-main { padding: 8px 15px; font-size: 0.9rem; }
        .section-title-small { font-size: 1rem; }
        .pdf-preview-section .section-title { font-size: 1.1rem; }

        .article-content-text.multi-column {
            column-count: 1; /* Una sola columna en pantallas pequeñas */
            column-rule: none;
        }
    }

/* Estilos para el Copete del Artículo */
.article-copete {
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    margin-top: 2rem; /* Espacio separador superior */
    margin-bottom: 2rem; /* Espacio separador inferior */
    padding-bottom: 1.5rem; /* Espacio antes de la línea */
    border-bottom: 1px solid #ddd; /* Línea divisoria sutil */
    font-style: italic;
    
}

.article-copete p {
    font-size: 1.2em; /* Letra ligeramente más grande */
    font-weight: 500; /* Un poco más de grosor (semi-bold) */
    line-height: 1.6; /* Interlineado generoso para fácil lectura */
    color: #333; /* Un color de texto oscuro pero no negro puro */
    text-align: left; /* Alineación estándar */
}

/* El contenido principal sigue con sus columnas */
.multi-column {
    column-count: 2;
    column-gap: 2rem;
    /* ... otros estilos que ya tengas ... */
}