

/* display: none !important; eliminado por ser línea suelta sin selector */
/* Reset global para eliminar scroll */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Elimina scroll horizontal */
    height: 100%;
    width: 100%;
}

body.mapa-page {
    overflow: hidden; /* Elimina cualquier scroll en la página del mapa */
}

body.mapa-page #map {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

body.mapa-page .navbar {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    z-index: 1000;
    margin: 0;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body.mapa-page .card {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

body.mapa-page .content {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
}

/* Navbar moderno con gradiente y sombra */
.navbar-modern {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0.5rem 0;
    border-radius: 15px !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Botones modernos */
.btn-modern {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary-modern {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary-modern:hover {
    background: linear-gradient(45deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

.btn-danger-modern {
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-danger-modern:hover {
    background: linear-gradient(45deg, #ff5252 0%, #e53e3e 100%);
    color: white;
}

.btn-geo-modern {
    background: linear-gradient(45deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.btn-geo-modern:hover {
    background: linear-gradient(45deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.btn-export-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2a5298;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.08);
}
.btn-export-modern:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1e3c72;
    border: 1px solid #cfd8dc;
}

.btn-especiales-modern {
    background: linear-gradient(45deg, #4ecdc4 0%, #44a08d 100%) !important;
    color: white;
}
.btn-especiales-modern:hover {
    background: linear-gradient(45deg, #4ecdc4 0%, #44a08d 100%) !important;
    color: white;
}

/* Contador de resultados */
.contador-mapa {
    position: fixed;
    top: 85px;
    right: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.8rem;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .btn-modern {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .contador-mapa {
        top: 75px;
        right: 20px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    body.mapa-page .navbar {
        top: 5px;
        left: 5px;
        right: 5px;
        width: calc(100% - 10px);
    }
    
    .leaflet-popup-content-wrapper {
        min-width: 350px !important;
        max-width: 400px !important;
        width: 400px !important;
    }
    
    .leaflet-popup-content {
        min-width: 330px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.7rem;
        max-width: 50%;
    }
    
    .btn-modern {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .leaflet-popup-content-wrapper {
        min-width: 300px !important;
        max-width: 320px !important;
        width: 320px !important;
    }
    
    .leaflet-popup-content {
        min-width: 280px !important;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 0.6rem;
        max-width: 45%;
    }
    
    .btn-modern {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
}

/* === ESTILOS MODERNOS PARA MODALES === */

/* Modal de filtros compacto */
.modal-content-modern {
    border: none !important;
    border-radius: 15px !important;
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    max-width: 90vw;
}

.modal-header-modern {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
    position: relative;
}

.modal-title-modern {
    color: white !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.modal-icon-modern {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.modal-body-modern {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 1.5rem !important;
    border: none !important;
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
}

.btn-close-modern {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    position: relative;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
}

.btn-close-modern::before {
    content: "×";
    color: white !important;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    background: none !important;
    margin: 0;
    padding: 0;
}

.btn-close-modern:hover {
    opacity: 0.8 !important;
    transform: scale(1.1);
}

.form-control-modern {
    border-radius: 10px !important;
    border: 2px solid rgba(30, 60, 114, 0.1) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
}

.form-control-modern:focus {
    border-color: #2a5298 !important;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25) !important;
    background: rgba(255, 255, 255, 1) !important;
}

.form-floating-modern label {
    color: #1e3c72 !important;
    font-weight: 500;
}

.btn-search-modern {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-search-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
    background: linear-gradient(45deg, #5a6fd8 0%, #6a4190 100%) !important;
    color: white !important;
}

.form-check-label-modern {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(30, 60, 114, 0.2) !important;
    border-radius: 15px !important;
    padding: 0.4rem 0.8rem !important;
    margin: 0.2rem !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
    cursor: pointer;
    font-size: 0.85rem;
    position: relative;
}

.form-check-label-modern:hover {
    background: rgba(42, 82, 152, 0.1) !important;
    border-color: #2a5298 !important;
    transform: translateY(-1px);
}

.form-check-label-modern.active {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Modal de mensajes compacto */
.modal-mensaje-modern .modal-content {
    border: none !important;
    border-radius: 15px !important;
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

.modal-mensaje-modern .modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
}

.modal-mensaje-modern .modal-title {
    color: white !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-mensaje-modern .btn-close {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    opacity: 1 !important;
    position: relative;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

.modal-mensaje-modern .btn-close::before {
    content: "×";
    color: white !important;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    background: none !important;
    margin: 0;
    padding: 0;
}

.modal-mensaje-modern .btn-close:hover {
    opacity: 0.8 !important;
    transform: scale(1.1);
}

.modal-mensaje-modern .modal-body {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 1.5rem !important;
    font-size: 0.95rem;
}

.modal-mensaje-modern .modal-footer {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
}

.modal-mensaje-modern .btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
}

/* Popup del mapa moderno */
.leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    min-width: 500px !important;
    max-width: 550px !important;
    width: 550px !important;
}

.leaflet-popup-content {
    margin: 10px !important;
    width: auto !important;
    min-width: 480px !important;
}

/* Responsive para popups en móviles */
@media (max-width: 768px) {
    .leaflet-popup-content-wrapper {
        min-width: 320px !important;
        max-width: 95vw !important;
        width: 95vw !important;
    }
    
    .leaflet-popup-content {
        min-width: 300px !important;
        max-width: calc(95vw - 20px) !important;
        margin: 8px !important;
    }
    
    .popup-header-modern {
        margin: -8px -8px 8px -8px !important;
        padding: 0.6rem 0.8rem !important;
    }
    
    .popup-title-modern {
        font-size: 0.9rem !important;
        margin: 0 1.5rem 0.5rem 0 !important;
        line-height: 1.3 !important;
    }
    
    .popup-badge-modern {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.4rem !important;
    }
    
    .popup-info-item {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        flex-wrap: wrap !important;
    }
    
    .popup-info-item i {
        width: 14px !important;
        margin-right: 0.4rem !important;
        font-size: 0.8rem !important;
    }
    
    .popup-info-item span,
    .popup-info-item a {
        font-size: 0.8rem !important;
        word-break: break-word !important;
    }
    
    /* Botón solicitar cupo responsive */
    .btn-search-modern {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
        border-radius: 15px !important;
    }
}

@media (max-width: 480px) {
    .leaflet-popup-content-wrapper {
        min-width: 280px !important;
        max-width: 90vw !important;
        width: 90vw !important;
    }
    
    .leaflet-popup-content {
        min-width: 260px !important;
        max-width: calc(90vw - 20px) !important;
    }
    
    .popup-title-modern {
        font-size: 0.85rem !important;
    }
    
    .popup-badge-modern {
        font-size: 0.6rem !important;
    }
    
    .popup-info-item {
        font-size: 0.75rem !important;
    }
}

.leaflet-popup-tip {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
    box-shadow: none !important;
}

.popup-header-modern {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    margin: -10px -10px 10px -10px !important;
    padding: 0.8rem 1rem !important;
    border-radius: 15px 15px 0 0 !important;
}

.popup-title-modern {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin: 0 2rem 0.75rem 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.popup-badge-modern {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    border-radius: 10px !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.7rem !important;
}

.popup-info-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.85rem !important;
}

.popup-info-item i {
    color: #2a5298 !important;
    width: 16px !important;
    margin-right: 0.5rem !important;
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95vw !important;
        margin: 1rem !important;
    }
    
    .modal-content-modern {
        max-width: 100% !important;
    }
    
    .modal-body-modern {
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
        padding: 1rem !important;
    }
}

/* Botón cerrar de popup del mapa */
.leaflet-popup-close-button {
    background: transparent !important;
    color: white !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    text-align: center !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    right: 8px !important;
    top: 8px !important;
}

.leaflet-popup-close-button:hover {
    opacity: 0.8 !important;
    color: white !important;
    transform: scale(1.1) !important;
    text-decoration: none !important;
}

/* === ESTILOS PERSONALIZADOS PARA SELECT2 === */

/* Contenedor principal de Select2 */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 10px !important;
    border: 2px solid rgba(30, 60, 114, 0.1) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap-5 .select2-selection:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #2a5298 !important;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25) !important;
    background: rgba(255, 255, 255, 1) !important;
}

/* Placeholder del select2 */
.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #6c757d !important;
    font-style: italic;
    line-height: 45px !important;
}

/* Texto seleccionado */
.select2-container--bootstrap-5 .select2-selection__rendered {
    padding-left: 14px !important;
    padding-right: 40px !important;
    line-height: 45px !important;
    color: #212529 !important;
    display: flex !important;
    align-items: center !important;
}

/* Flecha del dropdown */
.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 45px !important;
    right: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--bootstrap-5 .select2-selection__arrow b {
    margin-top: 0 !important;
}

/* Botón de limpiar (X) - Completamente a la derecha */
.select2-container--bootstrap-5 .select2-selection__clear {
    color: #6c757d !important;
    position: absolute !important;
    right: 35px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    transition: all 0.2s ease;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 5px !important;
}

.select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: #dc3545 !important;
}

/* Dropdown de opciones */
.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: 10px !important;
    border: 2px solid rgba(30, 60, 114, 0.1) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    margin-top: 4px !important;
}

/* Campo de búsqueda */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 2px solid rgba(30, 60, 114, 0.1) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #2a5298 !important;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.15) !important;
    outline: none !important;
}

/* Opciones del dropdown */
.select2-container--bootstrap-5 .select2-results__option {
    padding: 10px 12px !important;
    transition: all 0.2s ease;
    border-radius: 6px !important;
    margin: 2px 8px !important;
}

/* Opción resaltada (hover) */
.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    color: #2a5298 !important;
}

/* Opción seleccionada */
.select2-container--bootstrap-5 .select2-results__option--selected {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 500;
}

/* Select2 deshabilitado */
.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background: rgba(233, 236, 239, 0.5) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* Mensaje de "No se encontraron resultados" */
.select2-container--bootstrap-5 .select2-results__option--nodata {
    color: #6c757d !important;
    font-style: italic;
    text-align: center;
    padding: 12px !important;
}

/* Resaltar texto de búsqueda en resultados */
.select2-container--bootstrap-5 .select2-results__option mark {
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%) !important;
    color: #2a5298 !important;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 3px;
}

/* Animación al abrir dropdown */
.select2-container--bootstrap-5 .select2-dropdown {
    animation: select2FadeIn 0.2s ease-in-out;
}

@keyframes select2FadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes responsive para Select2 */
@media (max-width: 768px) {
    .select2-container--bootstrap-5 .select2-selection {
        min-height: 48px !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection__rendered {
        font-size: 0.95rem !important;
        line-height: 48px !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection__placeholder {
        line-height: 48px !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection__arrow {
        height: 48px !important;
    }
    
    .select2-container--bootstrap-5 .select2-selection__clear {
        line-height: 48px !important;
    }
    
    .select2-container--bootstrap-5 .select2-results__option {
        padding: 14px 12px !important;
        font-size: 0.95rem !important;
    }
}

/* Scroll personalizado en opciones */
.select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: rgba(42, 82, 152, 0.3) rgba(248, 249, 250, 0.5);
}

.select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 10px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(42, 82, 152, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: rgba(42, 82, 152, 0.5);
}

/* Z-index para asegurar visibilidad del dropdown */
.navbar {
    z-index: 1000 !important;
}

.dropdown-menu {
    z-index: 2001 !important;
}

.contador-mapa {
    z-index: 900 !important;
}

/* === ESTILOS PARA ACORDEONES EN MODALES === */

.accordion-modern {
    border-radius: 10px;
    overflow: hidden;
}

.accordion-modern .accordion-item {
    border: none !important;
    margin-bottom: 0.75rem !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-modern .accordion-item:last-child {
    margin-bottom: 0 !important;
}

.accordion-modern .accordion-header {
    border: none !important;
}

.accordion-modern .accordion-button {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.08)) !important;
    color: #2a5298 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 1rem 1.25rem !important;
    border: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.2) !important;
}

.accordion-modern .accordion-button:hover {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.15)) !important;
}

.accordion-modern .accordion-button:not(.collapsed):hover {
    background: linear-gradient(135deg, #1a3564 0%, #25497f 100%) !important;
}

.accordion-modern .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a5298'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transition: transform 0.3s ease;
}

.accordion-modern .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-modern .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(42, 82, 152, 0.2) !important;
}

.accordion-modern .accordion-body {
    padding: 1.25rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(42, 82, 152, 0.1) !important;
}

.accordion-modern .accordion-collapse {
    border: none !important;
}

/* Animación suave para acordeones */
.accordion-modern .accordion-collapse.collapsing {
    transition: height 0.35s ease;
}

/* Responsive para acordeones */
@media (max-width: 768px) {
    .accordion-modern .accordion-button {
        font-size: 0.9rem !important;
        padding: 0.9rem 1rem !important;
    }
    
    .accordion-modern .accordion-body {
        padding: 1rem !important;
    }
}

/* === ESTILOS PARA POPOVER DE SERVICIOS === */

/* Efecto hover suave en los iconos de servicios */
.servicio-icon:hover {
    transform: scale(1.02) translateY(-1px) !important;
    background: rgba(42, 82, 152, 0.03) !important;
    transition: all 0.4s ease !important;
}

.servicio-icon:active {
    transform: scale(0.99) !important;
}

/* Estilos del popover personalizado - Versión compacta y suave */
.popover-servicio-modern {
    border-radius: 8px !important;
    border: 1px solid rgba(42, 82, 152, 0.15) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(5px) !important;
    max-width: 200px !important;
}

.popover-servicio-modern .popover-arrow::before {
    border-top-color: rgba(42, 82, 152, 0.15) !important;
}

.popover-servicio-modern .popover-arrow::after {
    border-top-color: #f8f9fa !important;
}

.popover-servicio-modern .popover-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    border: 1px solid rgba(42, 82, 152, 0.1) !important;
}

.popover-servicio-modern .popover-body small {
    display: block;
    color: #6c757d;
    font-style: italic;
}

.popover-servicio-modern .popover-body {
    text-align: center;
}