/* Select personalizado con categorías */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-trigger {
    padding: 12px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: #495057;
    transition: all 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-select-trigger.open {
    border-color: #80bdff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-trigger::after {
    content: '▼';
    font-size: 0.75rem;
    color: #999;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #80bdff;
    border-top: none;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.custom-select-options.open {
    display: block;
}

.custom-option-group {
    padding: 0;
}

.custom-option-group-label {
    padding: 8px 15px;
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: default;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-option-group-label:first-child {
    border-top: none;
}

.custom-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    color: #495057;
    transition: background-color 0.15s ease;
    display: none;
}

.custom-option.visible {
    display: block;
}

.custom-option:hover {
    background-color: #f0f0f0;
}

.custom-option.selected {
    background-color: #e7f3ff;
    color: #0066cc;
}

/* Ocultar el select original */
.custom-select-wrapper select {
    display: none;
}
