/* Bootstrap 5 Theme Custom CSS */

/* Variables personalizadas */
:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
}
        body {
            background-color: #f8f9fa;
            color: #212224;
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        }

        /* ===== HEADER ===== */
        .navbar {
            background-color: #18392B;
            border-bottom: none;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            padding: 0.5rem 0;
        }
        .navbar-brand {
            font-weight: 400;
            font-size: 1rem;
            color: #ffffff !important;
            letter-spacing: 0.02em;
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }
        .navbar-brand .brand-top {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 1.1rem;
        }
        .navbar-brand .brand-top .observatorio {
            font-weight: 700;
            color: #ffffff;
        }
        .navbar-brand .brand-top .separator {
            color: rgba(255, 255, 255, 0.4);
            font-weight: 300;
            font-size: 1.2rem;
        }
        .navbar-brand .brand-top .inibi {
            font-weight: 400;
            color: #ffffff;
            font-size: 1rem;
        }
        .navbar-brand .brand-bottom {
            font-weight: 400;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
            letter-spacing: 0.03em;
            margin-top: -0.1rem;
        }
        .nav-link {
            color: rgba(255, 255, 255, 0.75) !important;
            font-weight: 450;
            font-size: 0.95rem;
            padding: 0.5rem 1rem !important;
            transition: color 0.2s;
            border-radius: 4px;
        }
        .nav-link:hover {
            color: #ffffff !important;
            background-color: rgba(255, 255, 255, 0.08);
        }
        .nav-link.active {
            color: #ffffff !important;
            font-weight: 600;
            background-color: rgba(255, 255, 255, 0.12);
        }
        .navbar-toggler {
            border-color: rgba(255, 255, 255, 0.3);
        }
        .navbar-toggler-icon {
            filter: invert(1);
        }

        /* ===== FOOTER ===== */
        .footer {
            background-color: #18392B;
            border-top: none;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.85rem;
            padding: 1.2rem 0;
            margin-top: 3rem;
        }
        .footer .footer-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .footer .footer-left .observatorio {
            font-weight: 700;
            color: #ffffff;
            font-size: 0.95rem;
        }
        .footer .footer-left .separator {
            color: rgba(255, 255, 255, 0.3);
            font-weight: 300;
            font-size: 1.1rem;
        }
        .footer .footer-left .inibi {
            font-weight: 400;
            color: #ffffff;
            font-size: 0.9rem;
        }
        .footer .footer-left .pipe {
            color: rgba(255, 255, 255, 0.2);
            padding: 0 0.3rem;
        }
        .footer .footer-left .institution {
            font-weight: 400;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.8rem;
        }
        .footer .footer-right {
            font-weight: 400;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.8rem;
        }
        .footer .footer-right strong {
            color: rgba(255, 255, 255, 0.7);
            font-weight: 400;
        }
        @media (max-width: 768px) {
            .footer .container {
                flex-direction: column;
                gap: 0.5rem;
                text-align: center;
            }
            .footer .footer-left {
                justify-content: center;
            }
            .navbar-brand .brand-top {
                font-size: 0.95rem;
                flex-wrap: wrap;
            }
            .navbar-brand .brand-bottom {
                font-size: 0.65rem;
            }
        }

        /* ===== ESTILOS DE CONTENIDO ===== */
        .container{
            margin-top: 1rem;
        }

        .hero-search {
            background-color: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 12px;
            padding: 2.5rem 2rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            margin-top: 2rem;
            margin-bottom: 2.5rem;
        }
        .hero-search h1 {
            font-size: 2.2rem;
            font-weight: 500;
            color: #18392B;
            letter-spacing: -0.02em;
        }
        .hero-search .lead {
            color: #495057;
            font-size: 1.1rem;
            font-weight: 400;
        }
        .search-filters .form-label {
            font-weight: 500;
            font-size: 0.85rem;
            color: #495057;
        }
        .search-filters .form-select, .search-filters .form-control {
            border: 1px solid #ced4da;
            border-radius: 6px;
            font-size: 0.95rem;
            background-color: #ffffff;
        }
        .search-filters .btn-primary {
            background-color: #066839;
            border-color: #066839;
            font-weight: 500;
            padding: 0.6rem 2.2rem;
            border-radius: 6px;
        }
        .search-filters .btn-primary:hover {
            background-color: #0F5132;
            border-color: #0F5132;
        }
        .search-filters .btn-outline-secondary {
            border-color: #ced4da;
            color: #495057;
        }
        .section-title {
            font-size: 1.4rem;
            font-weight: 500;
            color: #18392B;
            border-bottom: 1px solid #dee2e6;
            padding-bottom: 0.75rem;
            margin-bottom: 1.5rem;
        }
        .card-experiencia {
            border: 1px solid #e9ecef;
            border-radius: 8px;
            transition: box-shadow 0.2s;
            background-color: #ffffff;
        }
        .card-experiencia:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        }
        .card-experiencia .card-body {
            padding: 1.25rem;
        }
        .card-experiencia .card-title {
            font-size: 1.1rem;
            font-weight: 500;
            color: #18392B;
        }
        .card-experiencia .card-subtitle {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .card-experiencia .card-text {
            font-size: 0.95rem;
            color: #495057;
        }
        .badge-tema {
            background-color: #e9ecef;
            color: #212224;
            font-weight: 400;
            font-size: 0.75rem;
            padding: 0.35rem 0.7rem;
            border-radius: 20px;
        }
        .mapa-placeholder {
            background-color: #f1f3f5;
            border: 1px dashed #adb5bd;
            border-radius: 8px;
            padding: 2.5rem 1rem;
            text-align: center;
            color: #6c757d;
        }
        .mapa-placeholder i {
            font-size: 2.5rem;
            color: #adb5bd;
            display: block;
            margin-bottom: 0.5rem;
        }
        @media (max-width: 768px) {
            .hero-search {
                padding: 1.5rem;
            }
            .hero-search h1 {
                font-size: 1.6rem;
            }
        }

        /* ===== ESTILOS DE CONTENIDO ===== */
        .result-header {
            background-color: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 1.5rem 1.8rem;
            margin-bottom: 1.8rem;
        }
        .result-header .search-summary {
            font-size: 0.95rem;
            color: #495057;
        }
        .result-header .search-summary strong {
            color: #0a2a44;
        }
        .result-header .sort-options .form-select {
            border: 1px solid #ced4da;
            border-radius: 6px;
            font-size: 0.9rem;
            width: auto;
        }
        .result-header .result-count {
            font-weight: 500;
            color: #0a2a44;
        }

        .filters-sidebar .card {
            border: 1px solid #e9ecef;
            border-radius: 8px;
            background-color: #ffffff;
        }
        .filters-sidebar .card-header {
            background-color: transparent;
            border-bottom: 1px solid #e9ecef;
            font-weight: 500;
            color: #0a2a44;
            /*padding: 1rem 1.25rem;*/
        }
        .filters-sidebar .card-body { padding: 1.25rem; }
        .filters-sidebar .form-check-label { font-size: 0.9rem; color: #495057; }
        .filters-sidebar .form-check-input:checked {
            background-color: #1a5276;
            border-color: #1a5276;
        }
        .filters-sidebar .btn-outline-secondary {
            border-color: #ced4da;
            color: #495057;
        }
        .filters-sidebar .btn-outline-secondary:hover {
            background-color: #0a2a44;
            color: #ffffff;
            border-color: #0a2a44;
        }

        .result-item {
            background-color: #ffffff;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.2rem;
            transition: box-shadow 0.2s;
        }
        .result-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
        .result-item .title {
            font-size: 1.15rem;
            font-weight: 500;
            color: #0a2a44;
            text-decoration: none;
        }
        .result-item .title:hover { text-decoration: underline; color: #1a5276; }
        .result-item .meta {
            font-size: 0.9rem;
            color: #6c757d;
        }
        .result-item .meta i { margin-right: 4px; }
        .result-item .abstract {
            font-size: 0.95rem;
            color: #495057;
            margin-top: 0.5rem;
        }
        .badge-tema {
            background-color: #e9ecef;
            color: #212529;
            font-weight: 400;
            font-size: 0.75rem;
            padding: 0.3rem 0.7rem;
            border-radius: 20px;
        }

        .pagination .page-link {
            color: #1a5276;
            border: 1px solid #dee2e6;
        }
        .pagination .page-item.active .page-link {
            background-color: #0a2a44;
            border-color: #0a2a44;
            color: #ffffff;
        }
        .pagination .page-link:hover {
            background-color: #e9ecef;
            color: #0a2a44;
        }

        @media (max-width: 768px) {
            .result-header { padding: 1.2rem; }
            .result-header .sort-options { margin-top: 0.8rem; }
        }

        /* ===== ESTILOS DE DETALLE ===== */        

        /* ===== ESTILOS DE CONTENIDO ===== */
        .detail-header {
            background-color: #ffffff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 1.8rem 2rem;
            margin-bottom: 2rem;
        }
        .detail-header h1 {
            font-size: 2rem;
            font-weight: 500;
            color: #18392B;
            letter-spacing: -0.02em;
        }
        .detail-header .subtitle {
            color: #6c757d;
            font-size: 1rem;
        }

        .detail-section {
            background-color: #ffffff;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 1.5rem 2rem;
            margin-bottom: 1.8rem;
        }
        .detail-section .section-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #6c757d;
            font-weight: 600;
            border-bottom: 1px solid #e9ecef;
            padding-bottom: 0.6rem;
            margin-bottom: 1.2rem;
        }
        .detail-section .label {
            font-weight: 500;
            color: #212224;
        }
        .detail-section .value {
            color: #495057;
        }
        .metadata-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem 2rem;
        }
        @media (max-width: 768px) {
            .metadata-grid { grid-template-columns: 1fr; }
        }

        .badge-tema {
            background-color: #e9ecef;
            color: #212224;
            font-weight: 400;
            font-size: 0.8rem;
            padding: 0.35rem 0.9rem;
            border-radius: 20px;
            margin-right: 0.3rem;
        }
        .badge-autor {
            background-color: #f1f3f5;
            color: #495057;
            font-weight: 400;
            font-size: 0.8rem;
            padding: 0.25rem 0.8rem;
            border-radius: 20px;
        }
        .file-item {
            border: 1px solid #e9ecef;
            border-radius: 6px;
            padding: 0.8rem 1.2rem;
            margin-bottom: 0.5rem;
            background-color: #f8f9fa;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .file-item .file-name {
            font-weight: 450;
            color: #18392B;
        }
        .file-item .file-meta {
            font-size: 0.85rem;
            color: #6c757d;
        }
        .citation-box {
            background-color: #f1f3f5;
            border-left: 4px solid #066839;
            padding: 1rem 1.5rem;
            border-radius: 4px;
            font-size: 0.9rem;
            color: #212224;
            line-height: 1.6;
        }
        .citation-box .citation-text {
            font-style: normal;
        }
        .citation-box .citation-title {
            font-style: italic;
        }
        .detail-section .btn-outline-secondary {
            border-color: #ced4da;
            color: #495057;
        }
        .detail-section .btn-outline-secondary:hover {
            background-color: #18392B;
            color: #ffffff;
            border-color: #18392B;
        }
        .detail-section a {
            color: #066839;
            text-decoration: none;
        }
        .detail-section a:hover {
            color: #18392B;
            text-decoration: underline;
        }

