#feedback-container {
    position: fixed;
    top: 20px;
    right: 0px;
    z-index: 1000;
    max-width: 470px;
    padding: 12px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transition: all 0.3s ease;
}

.readonly-select {
    pointer-events: none;
    background-color: #f0f0f0;
    color: #777;
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 10s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ===== DROPZONE GENERAL ===== */
.dropzone {
    border: 2px dashed #b1b1b1 !important;
    border-radius: 10px;
    background: #f9f9f9 !important;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropzone.dz-drag-hover {
    border-color: #3498db !important;
    background: #ebf5fb !important;
}

.dropzone .dz-message {
    font-family: 'Segoe UI', sans-serif;
    color: #666;
    font-weight: 400;
}

/* ===== DROPZONE ESPECÍFICO #my-dropzone ===== */
/* ===== DROPZONE CON SCROLL HORIZONTAL ===== */
#my-dropzone {
    min-height: 200px;
    max-height: 350px !important; /* ALTURA FIJA */
    border: 2px dashed #ccc !important;
    border-radius: 8px;
    padding: 20px !important;
    background: #f8f9fa !important;
    text-align: center;
    transition: all 0.3s;
    overflow-x: auto !important; /* SCROLL HORIZONTAL */
    overflow-y: hidden !important; /* SIN SCROLL VERTICAL */
    display: flex !important;
    flex-direction: row !important; /* FILA HORIZONTAL */
    flex-wrap: nowrap !important; /* NO SE AJUSTAN A NUEVA LINEA */
    justify-content: flex-start !important;
    align-items: flex-start !important;
    white-space: nowrap !important; /* EVITA SALTO DE LINEA */
    gap: 15px !important;
}

/* El mensaje cuando está vacío debe centrarse */
#my-dropzone:not(.dz-started) {
    justify-content: center !important;
    align-items: center !important;
}

#my-dropzone.dz-started .dz-message {
    display: none !important;
}

#my-dropzone:hover {
    border-color: #007bff !important;
    background: #f0f8ff !important;
}

#my-dropzone .dz-message {
    margin: auto !important;
    font-size: 16px;
    color: #6c757d;
    white-space: normal !important;
}

/* ===== PREVIEW DE ARCHIVOS - EN FILA HORIZONTAL ===== */
.dz-preview {
    display: inline-flex !important;
    flex-direction: column !important;
    width: 160px !important; /* UN POCO MÁS ANCHO */
    min-width: 160px !important;
    max-width: 160px !important;

    margin: 0 !important;
    padding: 15px !important;
    text-align: center !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important; /* IMPORTANTE: NO SE ENCOGE */
}

.dz-preview:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

/* ===== CONTENEDOR DE IMAGEN/ICONO ===== */
.dz-preview .dz-image {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* ===== IMAGEN/ICONO ===== */
.dz-preview .dz-image img {
    max-width: 75px !important;
    max-height: 75px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ===== DETALLES DEL ARCHIVO ===== */
.dz-preview .dz-details {
    margin-bottom: 10px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.dz-preview .dz-filename {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #212529 !important;
    margin-bottom: 6px !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    min-height: 32px !important;
    line-height: 1.3 !important;
    max-height: 40px !important;
    white-space: normal !important;
}

.dz-preview .dz-size {
    font-size: 11px !important;
    color: #6c757d !important;
    margin-bottom: 10px !important;
    padding: 3px 8px !important;
    background: #f1f3f4 !important;
    border-radius: 10px !important;
    display: inline-block !important;
}

/* ===== BOTÓN ELIMINAR ===== */
.dz-preview .dz-remove {
    display: block !important;
    width: 100% !important;
    font-size: 12px !important;
    color: #dc3545 !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
    border: 1px solid #dc3545 !important;
    border-radius: 4px !important;
    background: white !important;
    transition: all 0.2s !important;
    text-align: center !important;
    margin-top: auto !important;
    font-weight: bold !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.dz-preview .dz-remove:hover {
    background: #dc3545 !important;
    color: white !important;
    text-decoration: none !important;
}

/* ===== ESTILOS DE SCROLL HORIZONTAL ===== */
#my-dropzone::-webkit-scrollbar {
    height: 8px; /* SCROLL HORIZONTAL MÁS DELGADO */
}

#my-dropzone::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 10px;
}

#my-dropzone::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#my-dropzone::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Para Firefox */
#my-dropzone {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}
/* 1. Ajuste del contenedor principal - QUITAR altura mínima fija */
.select2-container--default .select2-selection--multiple {
    @apply border-gray-200 rounded-lg py-1 px-2 flex items-center transition-all !important;
    border: 1px solid #e5e7eb !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
    min-height: 42px !important; /* Solo como altura inicial */
    max-height: none !important; /* Permitir crecimiento */
    height: auto !important; /* Altura automática */
    overflow: visible !important; /* Permitir que se expanda */
}

/* 2. Quitar el borde negro cuando está en focus y poner el azul del sistema */
.select2-container--default.select2-container--focus .select2-selection--multiple {
    @apply border-blue-500 ring-1 ring-blue-500 outline-none !important;
    border-color: #3b82f6 !important;
}

/* 3. Estilo de los Tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    @apply bg-blue-50 border-none text-blue-700 text-xs font-medium rounded-md flex items-center m-0.5 px-2 py-1 !important;
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    display: flex !important;
    flex-direction: row-reverse;
}

/* 4. Estilo de la "X" */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    @apply text-blue-400 hover:text-blue-600 border-none mr-0 ml-1 bg-transparent p-0 !important;
    border: none !important;
    background: transparent !important;
}

/* 5. Ajuste del input de escritura */
.select2-container--default .select2-search--inline .select2-search__field {
    @apply m-0 p-0 text-sm leading-7 !important;
    font-family: inherit !important;
    margin-left: 8px !important;
    min-width: 20px !important; /* Ancho mínimo */
    flex-grow: 1 !important; /* Que ocupe espacio disponible */
}

/* 6. Contenedor principal que crece dinámicamente */
.select2-selection__rendered {
    @apply flex flex-wrap items-start gap-1 w-full !important;
    display: flex !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important; /* Cambiado de center a flex-start */
    min-height: 30px !important; /* Altura mínima */
}

/* 7. Ajustar el contenedor de Select2 completo para que se expanda */
.select2-container {
    width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
}

/* 8. Permitir que el contenedor crezca según contenido */
.select2-selection {
    height: auto !important;
    min-height: 42px !important;
    overflow-y: auto !important; /* Scroll si es necesario */
    max-height: 200px !important; /* Límite máximo con scroll */
}

/* 9. Ajustar el dropdown para que no se corte */
.select2-dropdown {
    position: absolute !important;
    z-index: 9999 !important;
}

/* 10. Ajustar el input para que esté en la línea correcta */
.select2-search--inline {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    margin-top: 2px !important;
}

/* 11. Estilo cuando hay muchos elementos (scroll interno) */
.select2-selection--multiple {
    max-height: 150px !important; /* Altura máxima antes de scroll interno */
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 12. Opción alternativa: Contenedor que crece ilimitadamente */
.select2-container--default .select2-selection--multiple.auto-grow {
    height: auto !important;
    min-height: 42px !important;
    max-height: none !important;
}

/* 13. Asegurar que los elementos se envuelven correctamente */
.select2-selection__choice {
    margin-bottom: 4px !important;
    margin-top: 4px !important;
    flex-shrink: 0 !important; /* Evitar que se reduzcan */
}

/* 14. Mejorar la visualización del placeholder */
.select2-container--default.select2-container--empty .select2-selection__rendered::before {
    content: "Escribe y presiona Enter o coma" !important;
    color: #9ca3af !important;
    font-style: italic !important;
    margin-left: 8px !important;
    line-height: 28px !important;
}

/* 15. Scrollbar personalizado para el contenedor cuando hay muchos elementos */
.select2-selection--multiple::-webkit-scrollbar {
    width: 6px !important;
}

.select2-selection--multiple::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}

.select2-selection--multiple::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 3px !important;
}

.select2-selection--multiple::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1 !important;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #my-dropzone {
        max-height: 300px !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .dz-preview {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        height: 210px !important;
        padding: 12px !important;
    }
}

@media (max-width: 576px) {
    #my-dropzone {
        max-height: 250px !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    
    .dz-preview {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        height: 200px !important;
    }
}

#mapaChiapas path {
  fill: #2c3e50;
  stroke: #ffffff;
  stroke-width: 0.5;
  transition: all 0.4s ease-out;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: all; /* Asegura que el path detecte el mouse */
}

/* Solo cambiamos el color aquí, el movimiento lo hará JS */
#mapaChiapas path.activo {
  fill: #3498db;
  filter: drop-shadow(8px 8px 12px rgba(0,0,0,0.4));
}

/* Estilos para el mini mapa dentro del card */
#miniMapa path {
  fill: #3498db;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(4px 4px 8px rgba(52, 152, 219, 0.3));
  transition: all 0.3s ease;
}

select.readonly-select + .select2-container {
    pointer-events: none;
    user-select: none; /* Evita que seleccionen el texto */
}

/* 2. Cambiar la apariencia visual para que parezca bloqueado (grisáceo) */
select.readonly-select + .select2-container .select2-selection {
    background-color: #f3f4f6; /* Un gris suave (estilo Tailwind bg-gray-100) */
    border-color: #d1d5db;     /* Borde gris suave */
    opacity: 0.8;
}

/* 3. Opcional: Ocultar la "x" de eliminar elementos seleccionados */
select.readonly-select + .select2-container .select2-selection__choice__remove {
    display: none;
}

select.select2-readonly + .select2-container {
    pointer-events: none; /* Evita clics */
    user-select: none;    /* Evita selección de texto */
}

select.select2-readonly + .select2-container .select2-selection--single {
    background-color: #f3f4f6 !important; /* Este es el gris claro (gray-100) */
    border-color: #d1d5db !important;      /* Borde gris suave */
    cursor: not-allowed !important;        /* Muestra el icono de prohibido */
}





.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    overflow: hidden !important; /* ESTO QUITA LAS FLECHITAS */
    height: auto !important;     /* Deja que Tailwind controle la altura */
    min-height: 42px !important; /* Asegura que tenga el alto de tus otros inputs */
    display: flex !important;    /* Ayuda a centrar el contenido */
    align-items: center !important;
}

/* Ajustar el texto interno para que quede centrado verticalmente */
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    white-space: nowrap !important; /* Evita que el texto salte de línea */
}

/* Opcional: Ajustar la flecha (caret) por si se mueve */
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
}


select.select2-readonly + .select2-container .select2-selection--multiple {
    background-color: #f3f4f6!important; /* Gris claro (bg-gray-100) */
       border-color: #d1d5db !important;      /* Borde gris */
    cursor: not-allowed !important;
}


select.select2-readonly + .select2-container .select2-selection--multiple .select2-search__field {
    display: none !important; /* Evita que salga el cursor de texto */
}


select.select2-readonly + .select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #f3f4f6 !important; /* Un gris un poco más oscuro para las etiquetas */
       border-color: #d1d5db !important;  
    padding-left: 10px !important; /* Ajuste visual al quitar la X */
}


select.select2-readonly + .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    display: none !important;
}

#miniMapa {
  background: transparent;
}
