/* ================================================
   ESTILOS COMPARTIDOS - Centro de Transparencia
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables y colores */
:root {
    --color-primary: #003366;
    --color-secondary: #0066CC;
    --color-accent: #D4AF37;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-border: #e0e0e0;
    --color-text: #333;
    --color-text-light: #666;
    --color-text-muted: #49400d99;
}

/* FUENTES background: linear-gradient(135deg, #316475 0%, #bbbdbc 90%);*/
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    
    background: #00416A;  /* fallback for old browsers */
    background: linear-gradient(to top, #00416A, #E4E5E6); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: -webkit-linear-gradient(to top,  #00416A, #E4E5E6);  /* Chrome 10-25, Safari 5.1-6 */
    min-height: 100vh;
}

/* ================================================
   NAVBAR
   ================================================ */

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-breadcrumb {
    font-size: 14px;
    color: var(--color-text-muted);
}

.navbar-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: var(--color-secondary);
}

/* ================================================
   CONTAINER Y ESPACIADO
   ================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-compact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ================================================
   HEADER
   ================================================ */

.header {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideInDown 0.6s ease-out;
}

.header h1 {
    color: var(--color-dark);
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

.header-subtitle {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-top: 10px;
}

/* ================================================
   SEARCH Y FILTROS
   ================================================ */

.search-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.filtros {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--color-border);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: var(--color-text);
}

.filter-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.filter-btn.active {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* ================================================
   ESTADÍSTICAS
   ================================================ */

.estadisticas {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-secondary);
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 5px;
    text-transform: uppercase;
}

/* ================================================
   CONTENIDO (ACORDEONES Y ARCHIVOS)
   ================================================ */

#contenido {
    display: grid;
    gap: 20px;
}

.articulo-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: slideInUp 0.6s ease-out;
}

.articulo-header {
    background: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--color-accent);
    transition: background 0.3s ease;
}

.articulo-header:hover {
    background: var(--color-light);
}

.articulo-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.articulo-titulo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.articulo-numero {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-secondary);
    min-width: 50px;
}

.articulo-titulo span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.count-badge {
    background: var(--color-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.accordion-chevron {
    transition: transform 0.3s ease;
    color: var(--color-secondary);
    font-size: 18px;
}

.accordion-chevron.collapsed {
    transform: rotate(180deg);
}

.archivo-grid-container {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid var(--color-border);
}

.archivo-grid-container.collapsed {
    max-height: 0;
    overflow: hidden;
}

.archivo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
}

.archivo-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archivo-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--color-secondary);
}

.archivo-nombre {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.archivo-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--color-text-muted);
}

.archivo-meta span {
    background: var(--color-light);
    padding: 3px 8px;
    border-radius: 4px;
}

.download-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ================================================
   FOOTER
   ================================================ */

/* ================================================
   SCROLLBAR - Contenedores de archivos
   ================================================ */

.archivo-grid-container::-webkit-scrollbar {
    width: 8px;
}

.archivo-grid-container::-webkit-scrollbar-track {
    background: var(--color-light);
    border-radius: 10px;
}

.archivo-grid-container::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.archivo-grid-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Firefox */
.archivo-grid-container {
    scrollbar-color: var(--color-secondary) var(--color-light);
    scrollbar-width: thin;
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    margin-bottom: 15px;
    font-size: 13px;
}

.footer-contact strong {
    color: var(--color-text);
}

/* ================================================
   ANIMACIONES
   ================================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   NO ENCONTRADO
   ================================================ */

.no-encontrado {
    text-align: center;
    color: var(--color-text-muted);
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    margin: 20px 0;
}

.no-encontrado-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-encontrado-text {
    font-size: 16px;
    margin-bottom: 10px;
}

.no-encontrado-hint {
    font-size: 13px;
    color: var(--color-text-muted);
}
