#map {
    width: 100%;
    height: 400px;
}

.custom-swal-container {
    margin-top: 80px;
    /* Ajusta este valor según necesites */
}

/* Aplica el estilo de form-control a Select2 */
.select2-container .select2-selection--single {
    height: 43px;
    /* Ajusta al alto de form-control */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.8;
    /* Ajuste de alineación del texto */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

.select2-container--default .select2-selection--multiple {
    padding-top: 5px;
    padding-bottom: 15px;
    padding-left: 15px;
}

.mce-content-body p.firstlineindent {
    text-indent: 40px !important;
}

/* Estilo personalizado para el fieldset */
fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

legend {
    width: auto !important;
    font-size: 18px;
    font-weight: 600;
    padding: 0 15px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
}

/* Estilos para área de arrastrar y soltar archivos */
.drop-area {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin: 10px 0;
}

.drop-area.dragover {
    border-color: #007bff;
    background-color: #e9ecef;
    transform: scale(1.02);
}

.drop-area:hover {
    border-color: #007bff;
    background-color: #f1f3f5;
}

.drop-area i {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.drop-area p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Input de archivos oculto */
#fileInput,
#fileInput_particulares {
    display: none;
}

/* Estilos para adjuntos */
.attachment {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.attachment:hover {
    background-color: #e9ecef;
}

.attachment a {
    display: flex;
    align-items: center;
    padding-left: 25px;
    position: relative;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.attachment a:hover {
    color: #0056b3;
}

.attachment i {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6c757d;
}

/* Botón de eliminar */
.btn-delete {
    color: #dc3545;
    font-weight: bold;
    border: none;
    background: none;
    padding: 0 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-delete:hover {
    color: #c82333;
    transform: scale(1.1);
}

/* Estilos para los enlaces de archivos cargados */
#fileLinks,
#fileLinks_particulares {
    margin-top: 15px;
}

#fileLinks a,
#fileLinks_particulares a {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

#fileLinks a:hover,
#fileLinks_particulares a:hover {
    background-color: #e9ecef;
}

/* Estilos para el separador */
hr {
    margin: 1.5rem 0;
    border-color: #e9ecef;
}

/* Contenedores con scroll */
#VerTraza {
    overflow-y: scroll;
}

#VerSolicitud {
    overflow-y: scroll !important;
}

/* Modal de correo */
.modal-correo {
    z-index: 1060 !important;
}

/* Observaciones no leídas */
.unread-observation {
    background-color: #ffffd0;
    /* Fondo amarillo claro */
    font-weight: bold;
}

/* Estilos para el contenedor de la tarjeta */
/*
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}



.card-body {
    padding: 1.5rem;
}
*/

/* Estilos modernos para el selector de género */
.gender-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.gender-selector .form-check {
    margin: 0;
    padding: 0;
}

.gender-selector .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-selector .gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gender-selector .gender-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.gender-selector .gender-option i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.gender-selector .gender-option span {
    transition: all 0.3s ease;
}

/* Estados activos */
.gender-selector .form-check-input:checked+.gender-option {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.gender-selector .form-check-input:checked+.gender-option i {
    color: white !important;
    transform: scale(1.1);
}

.gender-selector .form-check-input:checked+.gender-option span {
    color: white;
    font-weight: 600;
}

/* Efecto de pulso para el estado activo */
.gender-selector .form-check-input:checked+.gender-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gender-selector {
        flex-direction: column;
        gap: 10px;
    }

    .gender-selector .gender-option {
        min-width: 100%;
        justify-content: flex-start;
    }

    /* Formularios de trámites/OIRS: más aire en móvil */
    fieldset {
        padding: 1rem 0.875rem 0.5rem;
        margin-bottom: 1.25rem;
    }

    legend {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        padding: 0 0.35rem;
        line-height: 1.35;
    }

    .form-group {
        margin-bottom: 1.15rem;
    }

    .card-body {
        padding: 1.15rem 1rem;
    }
}

/* Ocultar columnas secundarias de listados en móvil */
@media (max-width: 767.98px) {
    #listadoc th.col-hide-mobile,
    #listadoc td.col-hide-mobile {
        display: none !important;
    }
}