/* enlaces.css */
/* Estilos institucionales para el Sistema de Enlaces Externos */

/* Base */

.enl-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fa;
    color: #222;
}

/* Header */

.enl-header {
    background: linear-gradient(135deg, #e3f2fd, #f1f8e9);
    border-bottom: 1px solid #d0d7de;
    padding: 1.5rem 1rem;
}

.enl-header-inner {
    max-width: 960px;
    margin: 0 auto;
}

.enl-title {
    margin: 0;
    font-size: 1.8rem;
    color: #1a237e;
    font-weight: 600;
}

.enl-subtitle {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #455a64;
}

/* Main */

.enl-main {
    max-width: 960px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Filters */

.enl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.enl-filter-group {
    flex: 1 1 220px;
}

.enl-label {
    display: block;
    font-size: 0.9rem;
    color: #37474f;
    margin-bottom: 0.4rem;
}

.enl-input,
.enl-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #b0bec5;
    font-size: 0.95rem;
    background: #fafafa;
    outline: none;
}

.enl-input:focus,
.enl-select:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30,136,229,0.15);
    background: #ffffff;
}

/* List panel */

.enl-list-panel {
    margin-top: 0.5rem;
}

.enl-section-title {
    font-size: 1.2rem;
    color: #263238;
    margin-bottom: 0.75rem;
}

.enl-results-list {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    padding: 1rem;
    min-height: 3rem;
}

/* Items */

.enl-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eceff1;
}

.enl-item:last-child {
    border-bottom: none;
}

.enl-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.enl-item-title {
    margin: 0;
    font-size: 1rem;
    color: #1a237e;
    font-weight: 600;
}

.enl-level-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
}

.enl-level-1 {
    background: #1e88e5;
}

.enl-level-2 {
    background: #43a047;
}

.enl-level-3 {
    background: #546e7a;
}

.enl-item-description {
    margin: 0.35rem 0;
    font-size: 0.9rem;
    color: #455a64;
}

.enl-item-meta {
    margin: 0.2rem 0;
    font-size: 0.8rem;
    color: #78909c;
}

.enl-item-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
}

.enl-item-link:hover {
    text-decoration: underline;
}

/* No results */

.enl-no-results {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #c62828;
}

/* Footer */

.enl-footer {
    border-top: 1px solid #d0d7de;
    padding: 1rem;
    margin-top: 2rem;
    background: #fafafa;
}

.enl-footer-text {
    max-width: 960px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: #607d8b;
    text-align: center;
}
