/* ============================================
   RESET Y BASE
   ============================================ */

/* Importar la fuente Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #212529;
    background-color: #F8F9FA;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: #212529;
    margin: 0;
    font-weight: 700;
}

h1 { font-size: 1.875rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.25rem; line-height: 1.4; }
h4 { font-size: 1.125rem; line-height: 1.4; }

p {
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    margin: 0;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

@media (max-width: 768px) {
    .custom-scrollbar::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}

/* ============================================
   COMPONENTES DE BÚSQUEDA
   ============================================ */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background-color: #FFFFFF;
    border: 1px solid #DEE2E6;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 4px;
}

.search-results.hidden {
    display: none;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #E9ECEF;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #F8F9FA;
}

.search-result-item.is-solicitado {
    background-color: rgba(245, 158, 11, 0.04);
    border-left-color: #f59e0b;
}

.search-result-item .item-title {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212529;
}

.search-result-item .item-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background-color: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    color: #d97706;
    text-transform: uppercase;
}

.search-result-item .item-details {
    font-size: 12px;
    color: #6C757D;
    margin-top: 4px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.search-result-item .item-tag {
    padding: 2px 8px;
    background-color: #F1F3F5;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}
