/* ====================================================
    MODIFICAR DEPARTAMENTO - CSS FINAL 
    Mayúsculas, más compacto y responsivo
    Prefijo: dmodi-
    (SOLUCIÓN DEFINITIVA DE DESBORDAMIENTO EN NOMBRE DEL ÁREA)
   ==================================================== */

/* FONDO PRINCIPAL */
.dmodi-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    z-index: -1;
}

/* CONTENEDOR PRINCIPAL - MÁS COMPACTO */
.dmodi-container {
    min-height: calc(100vh - 70px);
    padding: 0.5rem 0.375rem 1rem 0.375rem;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
    overflow-y: visible;
}

/* CONTENEDOR DE CONTENIDO - MÁS ANGOSTO */
.dmodi-content-wrapper {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 0.5rem;
    position: relative;
    z-index: 10;
}

/* TARJETAS MÁS COMPACTAS */
.dmodi-form-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(134, 21, 66, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin-bottom: 0.875rem;
    height: auto;
    max-height: unset;
}

.dmodi-hover-lift:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(134, 21, 66, 0.12);
}

/* ENCABEZADOS EN MAYÚSCULAS Y COMPACTOS */
.dmodi-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #861542;
    margin: 0 0 0.625rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    /* BASE (Desktop/Tablet) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .dmodi-form-title {
        white-space: normal; /* Permitir multilínea en móvil para títulos principales */
        word-break: break-word;
        overflow: visible;
        text-overflow: clip;
    }
}


.dmodi-title-icon {
    color: #861542;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.dmodi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #e9ecef;
    gap: 0.625rem;
}

/* FORMULARIOS COMPACTOS */
.dmodi-form {
    width: 100%;
}

.dmodi-form-group {
    margin-bottom: 1rem;
}

.dmodi-search-group {
    margin-bottom: 1.25rem;
}

.dmodi-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* INPUTS COMPACTOS */
.dmodi-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.dmodi-input-icon {
    position: absolute;
    left: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
    z-index: 10;
}

.dmodi-form-input {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    color: #495057;
    line-height: 1.4;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmodi-form-input::placeholder {
    font-family: 'Poppins', sans-serif;
    color: #6c757d;
    font-weight: 400;
    font-size: 0.8125rem;
    text-transform: none;
}

.dmodi-form-input:focus {
    border-color: #861542;
    box-shadow: 0 0 0 0.125rem rgba(134, 21, 66, 0.15);
    outline: none;
}

.dmodi-form-input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* BOTONES COMPACTOS */
.dmodi-btn-primary,
.dmodi-btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    z-index: 20;
    position: relative;
    min-height: 2.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.dmodi-btn-primary {
    background: #861542;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(134, 21, 66, 0.2);
}

.dmodi-btn-primary:hover:not(:disabled) {
    background: #6a1035;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(134, 21, 66, 0.3);
}

.dmodi-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    background: #861542;
    color: #ffffff;
}

.dmodi-btn-secondary {
    background: white;
    color: #861542;
    border: 1px solid #861542;
}

.dmodi-btn-secondary:hover:not(:disabled) {
    background: #fff5f7;
    border-color: #6a1035;
    transform: translateY(-1px);
}

.dmodi-btn-with-icon {
    padding: 0.375rem 0.75rem;
}

.dmodi-btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-height: auto;
    letter-spacing: 0.02em;
}

.dmodi-btn-save {
    min-width: 140px;
    justify-content: center;
}

/* LISTAS COMPACTAS - SIN SCROLL */
.dmodi-list-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    position: relative;
    z-index: 10;
    height: auto;
    max-height: unset;
    overflow-y: visible;
}

.dmodi-list-header {
    background: #f8f9fa;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.75rem;
    font-weight: 700;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dmodi-list-content {
    padding: 0.625rem;
    overflow: visible;
}

.dmodi-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem;
    background: white;
    border-radius: 5px;
    margin-bottom: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    border: 1px solid #e9ecef;
}

.dmodi-list-item:hover {
    background: #f8f9fa;
    border-color: #861542;
    transform: translateX(1px);
}

.dmodi-list-item:last-child {
    margin-bottom: 0;
}

.dmodi-item-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.dmodi-item-icon {
    color: #861542;
    font-size: 0.875rem;
    min-width: 18px;
    flex-shrink: 0;
}

.dmodi-item-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* TARJETAS DE ÁREAS COMPACTAS */
.dmodi-area-card {
    /* Contenedor Flex padre (Contenido vs Botón) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 0.625rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10;
    gap: 0.625rem;
    /* Captura el desbordamiento potencial */
    overflow: hidden; 
}

.dmodi-area-card:hover {
    border-color: #861542;
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(134, 21, 66, 0.1);
    transform: translateY(-1px);
}

.dmodi-area-card:last-child {
    margin-bottom: 0;
}

.dmodi-area-content {
    /* CLAVE 1: El contenedor de texto debe ceder espacio */
    flex: 1; 
    min-width: 0; 
    /* Contiene el truncamiento */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dmodi-area-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    /* Aseguramos que el header se mantenga en una línea si es necesario */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.dmodi-area-icon {
    color: #861542;
    font-size: 1rem;
    min-width: 18px;
    flex-shrink: 0;
}

.dmodi-area-title {
    font-size: 1rem;
    font-weight: 700;
    color: #495057;
    /* CLAVE 2: Truncamiento efectivo */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 0;
}

.dmodi-area-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    margin-left: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    /* Truncamiento para subtítulo */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* EMPTY STATE COMPACTO */
.dmodi-empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #e9ecef;
    margin: 0.625rem 0;
    position: relative;
    z-index: 10;
}

.dmodi-empty-icon {
    font-size: 2rem;
    color: #adb5bd;
    margin-bottom: 0.875rem;
}

.dmodi-empty-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dmodi-empty-message {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 280px;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* MENSAJES COMPACTOS */
.dmodi-message {
    padding: 0.75rem 0.875rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    animation: slideIn 0.2s ease;
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    word-break: break-word; 
    overflow-wrap: break-word;
}

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

.dmodi-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dmodi-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* FORM HEADER COMPACTO */
.dmodi-form-header {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 10;
}

.dmodi-current-name {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.125rem;
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dmodi-current-icon {
    color: #861542;
    min-width: 16px;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.dmodi-current-value {
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* FORM HINTS COMPACTO */
.dmodi-form-hints {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    position: relative;
    z-index: 10;
    color: #6c757d;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dmodi-warning {
    color: #b7791f !important;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    word-break: break-word; 
    overflow-wrap: break-word;
}

/* FORM ACTIONS COMPACTO */
.dmodi-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1.25rem;
    position: relative;
    z-index: 10;
    gap: 0.625rem;
}

/* FOOTER ACTIONS COMPACTO */
.dmodi-footer-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
    position: relative;
    z-index: 10;
}

/* ESTADO GUARDADO COMPACTO */
.dmodi-estado-guardado-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.625rem;
    width: 100%;
}

.dmodi-estado-guardado {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dmodi-estado-guardado .indicador {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s ease;
}

/* ESTILOS PARA VALIDACIÓN DE NOMBRES ÚNICOS */
.dmodi-input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f7 !important;
}

.dmodi-validation-error {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    word-break: break-word; 
    overflow-wrap: break-word;
}

.dmodi-validation-error svg {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.dmodi-counter {
    font-size: 0.6875rem;
    color: #6c757d;
    text-align: right;
    margin-top: 0.125rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dmodi-counter span {
    font-weight: 600;
}

/* Spinner para botón de guardado */
.dmodi-spinner-icon {
    animation: fa-spin 1s infinite linear;
}

/* ====================================================
    RESPONSIVE - MÁS COMPACTO Y ESTRECHO
    (Ajustes específicos para evitar desbordamiento)
   ==================================================== */

/* TABLETS (768px - 1024px) */
@media (max-width: 1024px) {
    .dmodi-container {
        padding: 0.375rem;
        min-height: calc(100vh - 65px);
    }
    
    .dmodi-content-wrapper {
        padding: 0 0.375rem;
        max-width: 850px;
    }
    
    .dmodi-form-card {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .dmodi-form-title {
        font-size: 1.125rem;
        gap: 0.375rem;
    }
    
    .dmodi-title-icon {
        font-size: 1rem;
    }
    
    .dmodi-list-container {
        overflow: visible;
    }
    
    /* Área: Forzar truncamiento en tablet */
    .dmodi-area-card {
        gap: 0.5rem;
    }
    .dmodi-area-content {
        min-width: 0;
    }
}

/* MÓVILES GRANDES (576px - 768px) */
@media (max-width: 768px) {
    .dmodi-container {
        padding: 0.25rem;
        min-height: calc(100vh - 55px);
    }
    
    .dmodi-content-wrapper {
        padding: 0 0.25rem;
        max-width: 100%;
    }
    
    .dmodi-form-card {
        padding: 0.875rem;
        margin-bottom: 0.625rem;
    }
    
    .dmodi-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
        margin-bottom: 0.875rem;
    }
    
    .dmodi-form-title {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
        margin-bottom: 0.375rem;
        /* Permitir multilínea en móvil para títulos principales */
        white-space: normal; 
        text-overflow: clip; 
        overflow: visible;
    }
    
    .dmodi-title-icon {
        font-size: 0.875rem;
    }
    
    .dmodi-area-card {
        /* Se vuelve columna */
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
        padding: 0.75rem;
    }
    
    .dmodi-area-content {
        /* Ocupar todo el ancho disponible para reorganizar el texto */
        min-width: 100%; 
        /* CLAVE: Permitir que el contenido fluya en columna */
        white-space: normal; 
        overflow: visible;
    }

    .dmodi-area-header {
        /* CLAVE: Forzar a que ocupe todo el ancho y permitir ajuste de línea */
        white-space: normal; 
        overflow: visible;
        text-overflow: clip;
        max-width: 100%; 
        width: 100%; 
    }

    .dmodi-area-title, .dmodi-area-subtitle, .dmodi-item-text {
        /* Forzamos el ajuste de línea en móvil para evitar desbordamiento */
        white-space: normal; 
        overflow: visible;
        text-overflow: clip;
        word-break: break-word; /* Para nombres extremadamente largos */
    }
    /* FIN SOLUCIÓN REFORZADA */
    
    .dmodi-form-actions {
        flex-direction: column;
        gap: 0.375rem;
        padding-top: 0.875rem;
        margin-top: 1rem;
    }
    
    .dmodi-btn-save {
        width: 100%;
        min-width: unset;
    }
    
    .dmodi-btn-primary,
    .dmodi-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .dmodi-footer-actions {
        text-align: center;
    }
    
    .dmodi-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
        padding: 0.625rem;
    }
    
    .dmodi-list-item button {
        width: 100%;
        justify-content: center;
    }
    
    .dmodi-list-container {
        overflow: visible;
    }
}

/* MÓVILES PEQUEÑOS (320px - 576px) */
@media (max-width: 576px) {
    .dmodi-container {
        padding: 0.125rem;
    }
    
    .dmodi-content-wrapper {
        padding: 0 0.125rem;
    }
    
    .dmodi-form-card {
        padding: 0.75rem;
        border-radius: 6px;
    }
    
    .dmodi-form-title {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
        padding-bottom: 0.375rem;
        letter-spacing: 0.02em;
        white-space: normal;
    }
    
    .dmodi-form-input {
        padding: 0.375rem 0.5rem 0.375rem 2rem;
        font-size: 0.8125rem;
        letter-spacing: 0.02em;
    }
    
    .dmodi-input-icon {
        left: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .dmodi-btn-primary,
    .dmodi-btn-secondary {
        padding: 0.3125rem 0.625rem;
        font-size: 0.6875rem;
        min-height: 2rem;
        letter-spacing: 0.02em;
    }
    
    .dmodi-btn-sm {
        padding: 0.1875rem 0.375rem;
        font-size: 0.6875rem;
    }
    
    .dmodi-btn-with-icon {
        padding: 0.25rem 0.5rem;
    }
    
    .dmodi-empty-state {
        padding: 1rem 0.75rem;
    }
    
    .dmodi-empty-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .dmodi-empty-title {
        font-size: 0.875rem;
        letter-spacing: 0.03em;
        white-space: normal; /* Dejar que se ajuste en 2 líneas si es necesario */
    }
    
    .dmodi-empty-message {
        font-size: 0.75rem;
        max-width: 100%;
        letter-spacing: 0.015em;
    }
    
    .dmodi-message {
        padding: 0.5rem;
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.125rem;
        letter-spacing: 0.015em;
    }
    
    .dmodi-area-title {
        font-size: 0.875rem;
        letter-spacing: 0.02em;
    }
    
    .dmodi-area-subtitle {
        font-size: 0.6875rem;
        margin-left: 1.125rem;
        letter-spacing: 0.02em;
    }
    
    .dmodi-item-text {
        font-size: 0.8125rem;
        letter-spacing: 0.015em;
    }
    
    .dmodi-item-icon {
        font-size: 0.8125rem;
        min-width: 16px;
    }
}

/* MÓVILES MUY PEQUEÑOS (menos de 320px) */
@media (max-width: 320px) {
    .dmodi-form-title {
        font-size: 0.8125rem;
    }
    
    .dmodi-form-input {
        font-size: 0.75rem;
        padding: 0.3125rem 0.375rem 0.3125rem 1.75rem;
    }
    
    .dmodi-btn-primary,
    .dmodi-btn-secondary {
        font-size: 0.625rem;
        padding: 0.25rem 0.375rem;
        letter-spacing: 0.015em;
    }
    
    .dmodi-list-header {
        padding: 0.375rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .dmodi-list-content {
        padding: 0.375rem;
    }
}

/* UTILIDADES PARA ESPACIOS COMPACTOS */
.dmodi-compact-space {
    margin: 0;
    padding: 0;
}

.dmodi-tight {
    margin-bottom: 0.375rem !important;
}

.dmodi-no-margin {
    margin: 0 !important;
}

.dmodi-no-padding {
    padding: 0 !important;
}

/* ANIMACIONES COMPACTAS */
@keyframes compactPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.dmodi-estado-guardado.no-guardado .indicador {
    animation: compactPulse 1.5s infinite;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* GRID PARA ELEMENTOS EN MÓVIL */
@media (max-width: 768px) {
    .dmodi-grid-mobile {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
}

/* CLASE PARA ELEMENTOS QUE DEBEN OCULTARSE EN MÓVIL */
@media (max-width: 576px) {
    .dmodi-hide-mobile {
        display: none !important;
    }
}

/* CLASE PARA ELEMENTOS QUE DEBEN MOSTRARSE SOLO EN MÓVIL */
.dmodi-show-mobile {
    display: none !important;
}

@media (max-width: 576px) {
    .dmodi-show-mobile {
        display: flex !important;
    }
}

/* AJUSTES DE TEXTO EN MÓVIL */
@media (max-width: 576px) {
    .dmodi-text-mobile {
        font-size: 0.8125rem !important;
        line-height: 1.2 !important;
        letter-spacing: 0.015em !important;
    }
}

/* ICONOS RESPONSIVOS */
.dmodi-title-icon,
.dmodi-item-icon,
.dmodi-area-icon,
.dmodi-current-icon,
.dmodi-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .dmodi-title-icon {
        font-size: 0.875rem;
    }
    
    .dmodi-item-icon,
    .dmodi-area-icon,
    .dmodi-current-icon {
        font-size: 0.8125rem;
    }
    
    .dmodi-empty-icon {
        font-size: 1.25rem;
    }
}