/* --- Parche: Campo de búsqueda más grande y en fila aparte en móvil --- */
@media (max-width: 600px) {
    .filtros-stock-compacto {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .campo-busqueda {
        width: 100% !important;
        margin-bottom: 10px !important;
        order: -1;
    }
    #busqueda-stock {
        width: 100% !important;
        font-size: 1.2em !important;
        height: 56px !important;
        padding: 16px 18px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }
}
/* =============================
     BOTONES MODIFICAR Y ELIMINAR EN TARJETAS DE PRODUCTOS (MÓVIL)
     ============================= */
@media (max-width: 768px) {
    /* Asegurar visibilidad de botones en móvil */
    .btn-modificar, .btn-editar, .btn-eliminar, .btn-delete, .btn-edit, .btn-ficha {
        background: #667eea !important;
        color: #fff !important;
        border: none !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin: 4px 2px !important;
        box-shadow: 0 2px 8px rgba(102,126,234,0.08);
        transition: background 0.2s;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
    }
    
    .btn-eliminar, .btn-delete {
        background: #dc2626 !important;
        color: #fff !important;
    }
    
    .btn-edit {
        background: #f59e0b !important;
        color: #fff !important;
    }
    
    .btn-ficha {
        background: #3b82f6 !important;
        color: #fff !important;
    }
    
    .btn-modificar:active, .btn-editar:active, .btn-eliminar:active, .btn-delete:active, .btn-edit:active, .btn-ficha:active {
        opacity: 0.8 !important;
        transform: scale(0.95) !important;
    }
    
    /* Forzar visibilidad de íconos */
    .btn-edit::before {
        content: '✏️ ';
    }
    
    .btn-delete::before {
        content: '🗑️ ';
    }
    
    .btn-ficha::before {
        content: '🏷️ ';
    }
}
/* =============================
     MEJORAS MENÚ Y BÚSQUEDA EN MÓVIL
     ============================= */
@media (max-width: 768px) {
    .nav-tabs, .mobile-nav-tabs {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #fff !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        margin-bottom: 10px !important;
        z-index: 100;
    }
    .nav-tab, .mobile-nav-tab {
        display: block !important;
        width: 100% !important;
        padding: 16px 0 !important;
        font-size: 1.1em !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        color: #222 !important;
        background: #fff !important;
        text-align: left !important;
    }
    .nav-tab.active, .mobile-nav-tab.active {
        background: #f3f4f6 !important;
        color: #667eea !important;
        font-weight: bold !important;
    }
    /* Campo de búsqueda más grande y separado */
    #busqueda-stock, .campo-busqueda input[type="text"] {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 1.1em !important;
        margin-top: 18px !important;
        margin-bottom: 12px !important;
        padding: 12px 16px !important;
        border-radius: 10px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .campo-busqueda {
        width: 100% !important;
        margin-bottom: 10px !important;
        margin-top: 10px !important;
        display: block !important;
    }
}
/* ========================================
   SISTEMA RESPONSIVE COMPLETO PARA MÓVILES
   Inventario 3.0 - Optimización Mobile
   ======================================== */

/* Variables CSS para consistencia */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* ========================================
   CONFIGURACIÓN BASE MÓVIL
   ======================================== */

/* Viewport y zoom básico */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mejoras para elementos táctiles */
button, input, select, textarea, a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Botones con mejor área táctil */
.btn, button, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ========================================
   SISTEMA DE TARJETAS PARA MÓVILES
   ======================================== */

/* Contenedor principal de tarjetas */
.mobile-cards-container {
    display: none;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
}

/* Tarjeta individual */
.mobile-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

.mobile-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Header de la tarjeta */
.mobile-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-md);
    position: relative;
}

.mobile-card-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.3;
}

.mobile-card-subtitle {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 0;
}

.mobile-card-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 120px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

/* Cuerpo de la tarjeta */
.mobile-card-body {
    padding: var(--spacing-md);
}

/* Filas de información */
.mobile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-info-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9em;
    flex: 1;
}

.mobile-info-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Valores especiales */
.mobile-info-value.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-info-value.success {
    color: var(--success-color);
    font-weight: 600;
}

.mobile-info-value.warning {
    color: var(--warning-color);
    font-weight: 600;
}

.mobile-info-value.error {
    color: var(--error-color);
    font-weight: 600;
}

/* Footer de tarjeta con acciones */
.mobile-card-footer {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.mobile-card-action {
    flex: 1;
    min-width: 100px;
    min-height: 44px; /* Mínimo táctil recomendado */
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    
    /* Asegurar que el texto sea visible */
    color: inherit;
    background: var(--bg-primary);
    
    /* Mejorar interactividad táctil */
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    user-select: none;
}

.mobile-card-action.primary {
    background: var(--primary-color);
    color: white;
}

.mobile-card-action.secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.mobile-card-action.success {
    background: var(--success-color);
    color: white;
}

.mobile-card-action.warning {
    background: var(--warning-color);
    color: white;
}

.mobile-card-action.danger {
    background: var(--error-color);
    color: white;
}

.mobile-card-action:active {
    transform: scale(0.95);
}

/* Estilos específicos para botones del inventario en móvil */
.mobile-card-action.btn-edit,
.mobile-card-action.btn-delete,
.mobile-card-action.btn-ficha {
    min-height: 48px;
    font-weight: 600;
    border: 1px solid transparent;
}

.mobile-card-action.btn-edit {
    background: var(--warning-color) !important;
    color: white !important;
    border-color: var(--warning-color);
}

.mobile-card-action.btn-delete {
    background: var(--error-color) !important;
    color: white !important;
    border-color: var(--error-color);
}

.mobile-card-action.btn-ficha {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
}

.mobile-card-action.btn-edit:active,
.mobile-card-action.btn-delete:active,
.mobile-card-action.btn-ficha:active {
    opacity: 0.8;
    transform: scale(0.95);
}

/* ========================================
   BADGES Y ESTADOS MÓVILES
   ======================================== */

.mobile-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 120px;
    min-height: 24px;
    text-align: center;
    line-height: 1.2;
}

.mobile-status-badge.estado-0 {
    background: #f3f4f6;
    color: #6b7280;
}

.mobile-status-badge.estado-1 {
    background: #fef3c7;
    color: #92400e;
}

.mobile-status-badge.estado-2 {
    background: #dbeafe;
    color: #1e40af;
}

.mobile-status-badge.estado-3 {
    background: #fef2f2;
    color: #dc2626;
}

.mobile-status-badge.estado-4 {
    background: #dcfce7;
    color: #166534;
}

/* ========================================
   FORMULARIOS MÓVILES
   ======================================== */

.mobile-form-group {
    margin-bottom: var(--spacing-md);
}

.mobile-form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9em;
}

.mobile-form-input,
.mobile-form-select,
.mobile-form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px; /* Evita zoom en iOS */
    line-height: 1.5;
    background: var(--bg-primary);
    transition: border-color 0.2s ease;
}

.mobile-form-input:focus,
.mobile-form-select:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mobile-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Grupos de input con iconos */
.mobile-input-group {
    position: relative;
}

.mobile-input-group .mobile-form-input {
    padding-left: 40px;
}

.mobile-input-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1em;
}

/* ========================================
   FILTROS MÓVILES
   ======================================== */

.mobile-filters-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.mobile-filters-header {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-filters-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.mobile-filters-toggle {
    color: var(--text-secondary);
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.mobile-filters-header.expanded .mobile-filters-toggle {
    transform: rotate(180deg);
}

.mobile-filters-body {
    padding: var(--spacing-md);
    display: none;
}

.mobile-filters-body.expanded {
    display: block;
}

.mobile-filters-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.mobile-filters-actions {
    display: flex;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.mobile-filter-btn {
    flex: 1;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    border: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-btn.apply {
    background: var(--primary-color);
    color: white;
}

.mobile-filter-btn.clear {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* ========================================
   MODALES MÓVILES
   ======================================== */

.mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-modal.show {
    opacity: 1;
    visibility: visible;
}

.mobile-modal-content {
    background: var(--bg-primary);
    width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-modal.show .mobile-modal-content {
    transform: translateY(0);
}

.mobile-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    position: relative;
}

.mobile-modal-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 0 auto var(--spacing-md);
}

.mobile-modal-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.mobile-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.mobile-modal-footer {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   NAVEGACIÓN MÓVIL
   ======================================== */

.mobile-nav-tabs {
    display: flex;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-tab {
    flex: 1;
    min-width: 100px;
    padding: var(--spacing-md);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-nav-tab:active {
    background: var(--bg-secondary);
}

/* ========================================
   LISTAS MÓVILES
   ======================================== */

.mobile-list {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mobile-list-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-list-item:last-child {
    border-bottom: none;
}

.mobile-list-item:active {
    background: var(--bg-secondary);
}

.mobile-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9em;
}

.mobile-list-content {
    flex: 1;
}

.mobile-list-title {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    font-size: 0.95em;
}

.mobile-list-subtitle {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin: 0;
}

.mobile-list-action {
    color: var(--text-muted);
    font-size: 1.2em;
}

/* ========================================
   ALERTAS Y MENSAJES MÓVILES
   ======================================== */

.mobile-alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid;
    margin-bottom: var(--spacing-md);
    font-size: 0.9em;
}

.mobile-alert.success {
    background: #f0fdf4;
    border-color: var(--success-color);
    color: #166534;
}

.mobile-alert.warning {
    background: #fffbeb;
    border-color: var(--warning-color);
    color: #92400e;
}

.mobile-alert.error {
    background: #fef2f2;
    border-color: var(--error-color);
    color: #dc2626;
}

.mobile-alert.info {
    background: #eff6ff;
    border-color: var(--info-color);
    color: #1e40af;
}

/* ========================================
   UTILIDADES MÓVILES
   ======================================== */

.mobile-show {
    display: block !important;
}

.mobile-hide {
    display: none !important;
}

.mobile-text-center {
    text-align: center !important;
}

.mobile-text-left {
    text-align: left !important;
}

.mobile-text-right {
    text-align: right !important;
}

.mobile-mt-0 { margin-top: 0 !important; }
.mobile-mt-1 { margin-top: var(--spacing-xs) !important; }
.mobile-mt-2 { margin-top: var(--spacing-sm) !important; }
.mobile-mt-3 { margin-top: var(--spacing-md) !important; }
.mobile-mt-4 { margin-top: var(--spacing-lg) !important; }

.mobile-mb-0 { margin-bottom: 0 !important; }
.mobile-mb-1 { margin-bottom: var(--spacing-xs) !important; }
.mobile-mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mobile-mb-3 { margin-bottom: var(--spacing-md) !important; }
.mobile-mb-4 { margin-bottom: var(--spacing-lg) !important; }

.mobile-p-0 { padding: 0 !important; }
.mobile-p-1 { padding: var(--spacing-xs) !important; }
.mobile-p-2 { padding: var(--spacing-sm) !important; }
.mobile-p-3 { padding: var(--spacing-md) !important; }
.mobile-p-4 { padding: var(--spacing-lg) !important; }

.mobile-w-full { width: 100% !important; }
.mobile-h-full { height: 100% !important; }

/* ========================================
   MEDIA QUERIES PRINCIPALES
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
    .mobile-cards-container {
        display: flex;
    }
    
    /* Ocultar tablas en tablets */
    table:not(.keep-table),
    .table-responsive:not(.keep-table) {
        display: none;
    }
}

/* Móviles */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 4px;
        --spacing-sm: 8px;
        --spacing-md: 12px;
        --spacing-lg: 16px;
        --spacing-xl: 24px;
    }
    
    body {
        font-size: 14px;
    }
    
    .mobile-cards-container {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .mobile-card-header,
    .mobile-card-body,
    .mobile-card-footer {
        padding: var(--spacing-md);
    }
    
    .mobile-modal-content {
        max-height: 95vh;
    }
    
    .mobile-filters-row {
        gap: var(--spacing-sm);
    }
    
    /* Ocultar elementos desktop */
    .desktop-only {
        display: none !important;
    }
    
    /* Mostrar elementos móviles */
    .mobile-only {
        display: block !important;
    }
    
    /* Ajustes para formularios */
    .mobile-form-input,
    .mobile-form-select,
    .mobile-form-textarea {
        padding: var(--spacing-sm);
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .mobile-card-footer {
        flex-direction: column;
    }
    
    .mobile-card-action {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }
    
    /* Botones del inventario en móviles pequeños */
    .mobile-card-action.btn-edit,
    .mobile-card-action.btn-delete,
    .mobile-card-action.btn-ficha {
        min-height: 52px;
        font-size: 1em;
        font-weight: 700;
    }
    
    .mobile-filters-actions {
        flex-direction: column;
    }
    
    .mobile-modal-footer {
        flex-direction: column;
    }
}

/* ========================================
   ANIMACIONES Y TRANSICIONES
   ======================================== */

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.mobile-fade-in {
    animation: fadeIn 0.3s ease;
}

.mobile-slide-up {
    animation: slideInUp 0.3s ease;
}

.mobile-pulse {
    animation: pulse 2s infinite;
}

/* ========================================
   LOADING STATES MÓVILES
   ======================================== */

.mobile-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.mobile-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mobile-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   ACCESIBILIDAD MÓVIL
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejora de contraste para usuarios con problemas visuales */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --text-muted: #333333;
    }
}

/* Modo oscuro básico */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --bg-tertiary: #4b5563;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --border-color: #4b5563;
    }
}
