/* Pa Kitchen - Sistema Premium CSS */
/* Diseño general del sistema */

:root {
    --bg-primary: #ffffff;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --accent-primary: #4a7c59;
    --accent-secondary: #2d4a37;
    --accent-light: #6b9c7d;
    --accent-sage: #87a96b;
    --accent-eucalyptus: #a8c4a8;
    --border-color: #e5e5e5;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.playfair {
    font-family: 'Playfair Display', serif;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(74, 124, 89, 0.2);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    box-sizing: border-box;
}

.login-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    gap: 1.5rem;
}

/* Logo and Brand */
.login-brand {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    flex-shrink: 0;
}

.login-brand.animate {
    opacity: 1;
    transform: translateY(0);
}

.logo-container {
    display: inline-block;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-container img {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.login-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0 auto 1rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Login Form Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-heavy);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s ease-out;
    flex-shrink: 0;
}

.login-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease-out;
}

.form-group.animate {
    opacity: 1;
    transform: translateX(0);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input-container {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.elegant-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.elegant-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.elegant-input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.form-options.animate {
    opacity: 1;
    transform: translateY(0);
}

.form-checkbox {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-checkbox input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: var(--accent-primary);
}

.form-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--accent-primary);
}

/* Login Button */
.elegant-button {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
}

.elegant-button.animate {
    opacity: 1;
    transform: translateY(0);
}

.elegant-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(74, 124, 89, 0.3);
}

.elegant-button:active {
    transform: translateY(0);
}

.elegant-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.3);
}

.elegant-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.elegant-button:hover::before {
    left: 100%;
}

.elegant-button span {
    position: relative;
    z-index: 10;
}

/* Footer */
.login-footer {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.login-footer.animate {
    opacity: 1;
    transform: translateY(0);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 0.75rem;
    }
    
    .login-wrapper {
        gap: 1rem;
    }
    
    .login-card {
        padding: 1.5rem;
        max-width: 350px;
    }
    
    .logo-container img {
        width: 120px;
        height: 120px;
    }
    
    .login-form {
        gap: 1rem;
    }
    
    .progress-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-wrapper {
        gap: 0.75rem;
    }
    
    .login-card {
        padding: 1.25rem;
        max-width: 320px;
    }
    
    .logo-container img {
        width: 100px;
        height: 100px;
    }
    
    .login-form {
        gap: 0.875rem;
    }
    
    .elegant-input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .form-input-icon {
        left: 0.875rem;
    }
    
    .progress-container {
        width: 200px;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
}

@media (max-height: 600px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-wrapper {
        gap: 0.75rem;
    }
    
    .logo-container img {
        width: 100px;
        height: 100px;
    }
    
    .login-card {
        padding: 1.25rem;
    }
    
    .login-form {
        gap: 0.875rem;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
}

/* Utility Classes */
.hidden { display: none !important; }
.pointer-events-none { pointer-events: none; }
.opacity-50 { opacity: 0.5; }
.scale-105 { transform: scale(1.05); }

/* SweetAlert2 Custom Styles */
.swal-popup {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.swal-title {
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
}

.swal-content {
    color: var(--text-secondary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.swal-confirm {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.swal-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.swal-cancel {
    background: #6c757d !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.swal-cancel:hover {
    background: #5a6268 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* SweetAlert2 Success Icon */
.swal2-success .swal2-success-ring {
    border-color: var(--accent-primary) !important;
}

.swal2-success [class^=swal2-success-line] {
    background-color: var(--accent-primary) !important;
}

/* SweetAlert2 Error Icon */
.swal2-error .swal2-error-ring {
    border-color: #dc3545 !important;
}

.swal2-error [class^=swal2-error-line] {
    background-color: #dc3545 !important;
}

/* SweetAlert2 Warning Icon */
.swal2-warning .swal2-warning-ring {
    border-color: #ffc107 !important;
}

.swal2-warning [class^=swal2-warning-line] {
    background-color: #ffc107 !important;
}

/* SweetAlert2 Info Icon */
.swal2-info .swal2-info-ring {
    border-color: #17a2b8 !important;
}

.swal2-info [class^=swal2-info-line] {
    background-color: #17a2b8 !important;
}

/* SweetAlert2 Loading */
.swal2-loading .swal2-loader {
    border-color: var(--accent-primary) transparent var(--accent-primary) transparent !important;
}

/* SweetAlert2 Toast */
.swal2-toast {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* SweetAlert2 Input */
.swal2-input {
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.swal2-input:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1) !important;
    outline: none !important;
}

/* SweetAlert2 Progress Bar */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)) !important;
}

/* ============================================
   PA KITCHEN - DASHBOARD STYLES
   ============================================ */

/* Dashboard Variables - Paleta Elegante Bosque */
:root {
    --forest-green: #4a7c59;
    --forest-green-dark: #2d4a37;
    --forest-green-light: #6b9c7d;
    --sage-green: #87a96b;
    --eucalyptus: #a8c4a8;
    --primary-gradient: linear-gradient(135deg, #4a7c59 0%, #2d4a37 100%);
    --secondary-gradient: linear-gradient(135deg, #87a96b 0%, #6b9c7d 100%);
    --accent-gradient: linear-gradient(135deg, #a8c4a8 0%, #87a96b 100%);
    --glow-primary: 0 0 20px rgba(74, 124, 89, 0.2);
    --glow-secondary: 0 0 20px rgba(135, 169, 107, 0.2);
    --glow-accent: 0 0 20px rgba(168, 196, 168, 0.3);
}

/* Glow Effects */
.glow-effect {
    box-shadow: var(--glow-primary);
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: var(--glow-secondary), 0 0 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Sidebar Styles */
.sidebar-glow {
    background: white;
    border-right: 2px solid #e5e5e5;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Navigation Area - Scrolleable */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
}

/* Scrollbar personalizado para el sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Navbar Styles */
.navbar-glow {
    background: white;
    border-bottom: 2px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Menu Item Styles */
.menu-item-glow {
    transition: all 0.3s ease;
    margin: 4px 0;
}

.menu-item-glow:hover {
    background: #f0f7f2;
    box-shadow: var(--glow-accent);
    transform: translateX(8px);
}

.menu-item-glow.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--glow-primary);
}

.menu-item-glow.active:hover {
    background: var(--secondary-gradient);
}

/* Card Styles */
.card-glow {
    background: white;
    border: 2px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-glow:hover {
    border-color: var(--forest-green);
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.15);
    transform: translateY(-2px);
}

/* Button Styles */
.btn-glow {
    background: var(--primary-gradient);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    background: var(--secondary-gradient);
    transform: translateY(-2px);
}

/* Logo Glow Effect */
.logo-glow {
    filter: drop-shadow(0 0 5px rgba(74, 124, 89, 0.2));
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-transition {
    transition: transform 0.3s ease-in-out;
}

.content-transition {
    transition: margin-left 0.3s ease-in-out;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(74, 124, 89, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(74, 124, 89, 0.5);
    }
}

/* Estilos para elementos con permisos */
[data-permiso] {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

[data-permiso].permiso-oculto {
    opacity: 0;
    visibility: hidden;
}

[data-permiso]:not(.permiso-oculto) {
    opacity: 1;
    visibility: visible;
}

/* Estilos específicos para el módulo de usuarios */
.usuarios-module {
    animation: fadeInUp 0.6s ease-out;
}

.usuarios-module .table th {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.usuarios-module .table td {
    vertical-align: middle;
    padding: 1rem;
}

.usuarios-module .table tr:hover {
    background: #f8f9fa;
}

/* Estilos para modales personalizados */
.modal-overlay {
    backdrop-filter: blur(4px);
}

.modal-content {
    border: none;
    box-shadow: var(--shadow-heavy);
}

/* Estilos para checkboxes personalizados */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-primary);
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="checkbox"]:hover {
    border-color: var(--accent-secondary);
    box-shadow: var(--glow-accent);
}

/* Estilos para badges de estado */
.badge-activo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-inactivo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Estilos para botones de acción en tabla */
.action-btn {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.action-btn.permissions {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.action-btn.permissions:hover {
    background: rgba(168, 85, 247, 0.2);
}

.action-btn.history {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.action-btn.history:hover {
    background: rgba(168, 85, 247, 0.2);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ===== ESTILOS PARA MÓDULO DE USUARIOS ===== */

/* Estilos para modales personalizados */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    max-height: 90vh;
    margin: 1.75rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.modal-dialog.modal-lg {
    max-width: 800px;
    max-height: 85vh;
}

.modal-dialog.modal-xl {
    max-width: 1140px;
    max-height: 80vh;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: white;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-heavy);
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--primary-gradient);
    color: white;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-close-white {
    color: white;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar personalizado para modales */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.modal-dialog.modal-permisos {
    max-width: 900px;
    max-height: 80vh;
}

.modal-permisos .modal-body {
    max-height: 60vh;
    padding: 1rem 1.5rem;
}

.modal-permisos #lista-permisos {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Scrollbar para lista de permisos */
.modal-permisos #lista-permisos::-webkit-scrollbar {
    width: 6px;
}

.modal-permisos #lista-permisos::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.modal-permisos #lista-permisos::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.modal-dialog.modal-bitacora {
    max-width: 1200px;
    max-height: 85vh;
}

.modal-bitacora .modal-body {
    max-height: 65vh;
    padding: 1rem 1.5rem;
}

.modal-bitacora .card-glow {
    max-height: 40vh;
    overflow-y: auto;
}

/* Estilos para modal de cotización */
.modal-lg .modal-dialog {
  max-width: 90vw;
  width: 800px;
  max-height: 90vh;
}

.modal-lg .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Scrollbar personalizado para modal de cotización */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Radio buttons personalizados para cotización */
input[type="radio"]:checked + div {
  background-color: #2d3748 !important;
  border-color: #2d3748 !important;
  position: relative;
}

input[type="radio"]:checked + div::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

/* Checkboxes personalizados para cotización */
input[type="checkbox"]:checked + div {
  background-color: #2d3748 !important;
  border-color: #2d3748 !important;
}

input[type="checkbox"]:checked + div i {
  opacity: 1 !important;
}

/* Hover effects para opciones */
.modal-lg label:hover {
  background-color: #f7fafc;
}

/* Border utilities */
.border-3 {
  border-width: 3px;
}

/* Estilos para el catálogo de productos */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card.selected {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Aspect ratio utilities */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
}

.aspect-h-9 {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Ring utilities para selección */
.ring-2 {
  box-shadow: 0 0 0 2px var(--tw-ring-color);
}

.ring-blue-500 {
  --tw-ring-color: #3b82f6;
}

/* Modal extra grande */
.modal-xl .modal-dialog {
  max-width: 95vw !important;
  width: 900px !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-xl .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.modal-xl .modal-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 100px; /* Espacio para el footer fijo */
}

/* Modal grande para configuración de productos */
.modal-lg .modal-dialog {
  max-width: 95vw !important;
  width: 900px !important; /* Mismo ancho que modal-xl */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Responsivo para pantallas pequeñas */
@media (max-width: 640px) {
  .modal-lg .modal-dialog,
  .modal-xl .modal-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
  }
}

/* Forzar ancho consistente para todos los modales de productos */
#modalPolloConfig .modal-dialog,
#modalCarneConfig .modal-dialog,
#modalProductoGenerico .modal-dialog,
#modalCotizacion .modal-dialog {
  width: 900px !important;
  max-width: 95vw !important;
}

.modal-lg .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modal-lg .modal-body {
  flex: 1;
  overflow-y: auto;
  max-height: calc(90vh - 200px);
}

/* Botón de regreso */
.btn-back {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-back:hover {
  background-color: #f3f4f6;
  color: #374151;
}

/* Estilos para radio buttons personalizados */
input[type="radio"]:checked + div {
  background-color: #374151 !important;
  border-color: #374151 !important;
}

input[type="radio"]:checked + div::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

/* Estilos para checkboxes personalizados */
input[type="checkbox"]:checked + div {
  background-color: #374151 !important;
  border-color: #374151 !important;
}

input[type="checkbox"]:checked + div i {
  opacity: 1 !important;
}

/* Hover effects para opciones */
label:hover {
  background-color: #f9fafb;
}

/* Estilos para botones de cantidad */
.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: #e5e7eb;
  color: #374151;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Separadores */
.separator {
  width: 100%;
  height: 2px;
  background-color: #e5e7eb;
  margin: 1rem 0;
}

/* Badges de estado */
.status-badge {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.status-badge.required {
  background-color: #fef2f2;
  color: #dc2626;
}

/* Animaciones para modales */
.modal.show {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Backdrop blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Estilos para el catálogo mejorado */
.product-card.selected {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

/* Grid layout específico para productos */
.grid-cols-\[1fr_100px\] {
  grid-template-columns: 1fr 100px;
}

/* Scrollbar para tabla de bitácora */
.modal-bitacora .card-glow::-webkit-scrollbar {
    width: 8px;
}

.modal-bitacora .card-glow::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.modal-bitacora .card-glow::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

.modal-bitacora .card-glow::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--border-color);
    background: #f8f9fa;
    gap: 0.5rem;
}

/* Estilos para formularios */
.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

/* Inputs para modales (sin iconos) */
.modal-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: white;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.modal-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Las definiciones de .elegant-input:focus y .elegant-input::placeholder ya están arriba para el login */

/* Estilos para DataTables personalizados */
.dataTables_wrapper {
    position: relative;
    clear: both;
    zoom: 1;
}

.dataTables_length {
    float: left;
    margin-bottom: 1rem;
}

.dataTables_length select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    background: white;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0 0.5rem;
}

.dataTables_filter {
    float: right;
    margin-bottom: 1rem;
}

.dataTables_filter input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    background: white;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.dataTables_info {
    clear: both;
    float: left;
    padding-top: 0.755em;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.dataTables_paginate {
    float: right;
    text-align: right;
    padding-top: 0.25em;
}

.dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0.5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    color: var(--text-primary);
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.dataTables_paginate .paginate_button.current {
    color: white;
    background: var(--primary-gradient);
    border-color: var(--accent-primary);
}

.dataTables_paginate .paginate_button.disabled {
    color: #9ca3af;
    background: #f3f4f6;
    cursor: not-allowed;
}

.dataTables_paginate .paginate_button.disabled:hover {
    color: #9ca3af;
    background: #f3f4f6;
    border-color: transparent;
}

/* Estilos para la tabla de usuarios */
#tabla-usuarios {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

#tabla-usuarios thead th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    padding: 1rem;
    text-align: left;
    border: none;
}

#tabla-usuarios tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

#tabla-usuarios tbody tr:hover {
    background: #f8f9fa;
    transition: background-color 0.3s ease;
}

#tabla-usuarios tbody tr:nth-child(even) {
    background: #fafafa;
}

#tabla-usuarios tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

/* Estilos para badges de estado */
.badge-activo {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.badge-inactivo {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* Estilos para botones de acción en tabla */
.action-btn {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 0.125rem;
    cursor: pointer;
    border: none;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.2);
}

.action-btn.permissions {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.action-btn.permissions:hover {
    background: rgba(168, 85, 247, 0.2);
}

.action-btn.history {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.action-btn.history:hover {
    background: rgba(168, 85, 247, 0.2);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Estilos para checkboxes personalizados */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-primary);
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

input[type="checkbox"]:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="checkbox"]:hover {
    border-color: var(--accent-secondary);
    box-shadow: var(--glow-accent);
}

/* Estilos para el módulo de usuarios */
.usuarios-module {
    animation: fadeInUp 0.6s ease-out;
}

.usuarios-module .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.usuarios-module .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    margin: 0;
}

/* Estilos para filtros */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.col-span-full {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Estilos para espacios */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

/* Estilos para flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Estilos para texto */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-900 {
    color: #111827;
}

.text-white {
    color: white;
}

/* Estilos para márgenes y padding */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Estilos para overflow */
.overflow-x-auto {
    overflow-x: auto;
}

/* Estilos para transiciones */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Estilos para hover */
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:bg-gray-300:hover {
    background-color: #d1d5db;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Estilos para border */
.border-b {
    border-bottom-width: 1px;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.border-b:hover {
    border-bottom-color: var(--border-color);
}

/* Estilos para cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Estilos para display */
.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

/* Estilos para width y height */
.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-full {
    width: 100%;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-full {
    height: 100%;
}

/* Estilos para gap */
.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Estilos para min-width */
.min-w-0 {
    min-width: 0px;
}

/* Estilos para truncate */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== ESTILOS PARA CRM KANBAN ===== */

/* Contenedor principal del Kanban */
.kanban-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
    padding: 0.5rem;
}

/* Columnas del Kanban */
.kanban-column {
    min-width: 280px;
    max-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.kanban-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Header de las columnas */
.kanban-header {
    padding: 1rem 1.25rem;
    color: white;
    font-weight: 600;
}

.kanban-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

/* Contenido de las columnas */
.kanban-content {
    padding: 1rem;
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
    background: #f8fafc;
}

/* Scrollbar personalizado para columnas */
.kanban-content::-webkit-scrollbar {
    width: 6px;
}

.kanban-content::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 3px;
}

.kanban-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.kanban-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Tarjetas de leads */
.lead-card {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lead-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lead-card:last-child {
    margin-bottom: 0;
}

/* Prioridades de las tarjetas */
.lead-card.prioridad-baja {
    border-left-color: #6b7280;
}

.lead-card.prioridad-media {
    border-left-color: #3b82f6;
}

.lead-card.prioridad-alta {
    border-left-color: #f59e0b;
}

.lead-card.prioridad-urgente {
    border-left-color: #ef4444;
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }
}

/* Contenido de las tarjetas */
.lead-card-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.lead-card-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

.lead-card-company {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.lead-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lead-card-row {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #4b5563;
}

.lead-card-row i {
    width: 16px;
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.lead-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.lead-card-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.lead-card-value {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

/* Badge de origen */
.origen-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.origen-whatsapp {
    background: #dcfce7;
    color: #166534;
}

.origen-web {
    background: #dbeafe;
    color: #1e40af;
}

.origen-telegram {
    background: #e0e7ff;
    color: #3730a3;
}

.origen-facebook {
    background: #ddd6fe;
    color: #5b21b6;
}

.origen-instagram {
    background: #fce7f3;
    color: #be185d;
}

.origen-referido {
    background: #fed7aa;
    color: #c2410c;
}

.origen-otro {
    background: #f3f4f6;
    color: #374151;
}

/* Estados vacíos */
.kanban-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}

.kanban-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.kanban-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* Drag and drop (para futuras implementaciones) */
.lead-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.kanban-column.drag-over {
    background: #f0f9ff;
    border: 2px dashed var(--accent-primary);
}

/* Responsive para Kanban */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
        gap: 1rem;
    }
    
    .kanban-column {
        min-width: 100%;
        max-width: 100%;
    }
    
    .kanban-content {
        max-height: 300px;
    }
}

/* Animaciones para las tarjetas */
.lead-card-enter {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicadores de prioridad */
.priority-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.priority-indicator.baja {
    background: #6b7280;
}

.priority-indicator.media {
    background: #3b82f6;
}

.priority-indicator.alta {
    background: #f59e0b;
}

.priority-indicator.urgente {
    background: #ef4444;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}