:root {
    --bg-main: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #111827;
    --text-muted: #4b5563;
    --accent-blue: #dc2626; /* Rojo Primario */
    --accent-blue-hover: #b91c1c; /* Rojo Oscuro */
    --accent-cyan: #ef4444; /* Rojo Claro */
    --accent-cyan-hover: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    --form-gap: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    background-image: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, rgba(0, 0, 0, 0.02) 100%);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    
    -webkit-
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    /* Optimización para renderizado */
    content-visibility: auto;
}

.main-content h1, .main-content h2, .main-content h3 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

/* Layout Shell */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000000;
    border-bottom: 2px solid var(--accent-blue);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 0.75rem 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    font-weight: 500;
    cursor: pointer;
    
    border: none;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-danger {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    
    z-index: 1000;
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1) rotate(-10deg);
}

/* Forms */
.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 1rem;
    
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Search Bar */
.search-container {
    position: relative;
}

.filter-bar {
    position: sticky;
    top: 75px; /* Navbar height + small offset */
    z-index: 90;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.filter-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .filter-bar {
        top: 130px; /* Higher offset for mobile navbar */
        padding: 0.75rem 1rem;
    }
    .filter-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }
    .sort-container, .sort-container select {
        width: 100% !important;
    }
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    padding-left: 2.5rem;
    border-radius: 2rem;
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    border-radius: 1rem;
    overflow: hidden;
    
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
    
}

.product-img-container {
    height: 160px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-img-container img.loaded {
    opacity: 1;
    
    background: none;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    opacity: 0;
}

.product-img-container img.loaded {
    opacity: 1;
}

.product-card:hover .product-img-container img {
    transform: scale(1.05);
}

.no-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    
    pointer-events: none;
    z-index: 5;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.product-badge.new {
    left: 1rem;
    right: auto;
    background: var(--success);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.product-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.product-price.oferta {
    color: var(--success);
}

.product-price-old {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* Dashboard & Admin */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.stat-info h3 { margin: 0; font-size: 1.75rem; }
.stat-info p { margin: 0; color: var(--text-muted); font-size: 0.8rem; }

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.4rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

th {
    background: #f9fafb;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover td {
    background: #f3f4f6;
}

tbody tr {
    cursor: pointer;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 95%;
    max-width: 750px;
    padding: 1.5rem;
    border-radius: 1rem;
    transform: translateY(20px);
    
    max-height: 95vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    
}

.modal-close:hover {
    color: var(--text-main);
}

/* Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-Recibida { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.status-EnDiagnostico, .status-EnDiagnóstico { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-EnReparacion, .status-EnReparación { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.status-EsperandoRepuestos { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-Finalizada { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-Entregada { background: rgba(156, 163, 175, 0.1); color: var(--text-muted); }

/* Utility */
.d-none { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--form-gap);
    margin-bottom: var(--form-gap);
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--form-gap);
}

.col-span-2 { grid-column: span 2; }

@media (max-width: 600px) {
    .form-grid, .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .col-span-2 { grid-column: span 1; }
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: center;
    }
    .main-content {
        padding: 1rem;
    }
}

/* Catalog Layout */
.catalog-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.catalog-sidebar {
    width: 250px;
    padding: 1.5rem;
    border-radius: 1rem;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
    text-align: left !important;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    
    color: var(--text-muted);
    font-weight: 500;
}

.category-item:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-blue);
}

.category-item.active {
    background: var(--accent-blue);
    color: white;
}

.catalog-main {
    flex: 1;
}

@media (max-width: 768px) {
    .catalog-layout {
        flex-direction: column;
    }
    .catalog-sidebar {
        width: 100%;
        position: static;
    }
    
    .category-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-item {
        white-space: nowrap;
    }
}

/* Icon Selector */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    
    color: var(--text-muted);
}

.icon-option:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--accent-blue);
}

.icon-option.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone--over {
    border-color: var(--accent-blue);
    background: rgba(220, 38, 38, 0.05);
    color: var(--accent-blue);
}

.drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.drop-zone-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0.3;
}

.drop-zone--has-image .drop-zone-preview {
    display: block;
}

.drop-zone--has-image .drop-zone-prompt {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}
/* Footer */
.footer {
    margin-top: 4rem;
    background: #000000;
    color: #ffffff;
    border-top: 3px solid var(--accent-blue);
    padding: 4rem 2rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-blue);
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-section i {
    color: var(--accent-cyan);
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    color: #9ca3af;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    
}

.social-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }
    .footer-content {
        gap: 2rem;
    }
}

/* Animación para resaltar producto desde WhatsApp */
.product-card.highlighted {
    border: 2px solid var(--accent-blue) !important;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2) !important;
}

.highlight-pulse {
    /* Animación removida para mejorar velocidad */
    border-color: var(--accent-blue);
}

/* Admin Status Bar */
.admin-status-bar {
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--accent-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item i {
    color: var(--accent-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online { background: var(--success); box-shadow: 0 0 5px var(--success); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 5px var(--danger); }

/* Animaciones y Notificaciones */
.anim-spin {
    
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--dark);
    color: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transform: translateY(150%);
    
    border-left: 4px solid var(--accent-blue);
}

.toast-notification.active {
    transform: translateY(0);
}

.toast-notification.success { border-left-color: var(--success); background: #ecfdf5; color: #065f46; }
.toast-notification.error { border-left-color: var(--danger); background: #fef2f2; color: #991b1b; }
.toast-notification.warning { border-left-color: var(--warning); background: #fffbeb; color: #92400e; }

/* Modal Top Position */
.modal-overlay.top {
    align-items: flex-start;
    padding-top: 2rem;
}

.modal-content.success-top {
    background: #10b981;
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    max-width: 500px;
}

.modal-content.success-top h2, .modal-content.success-top p {
    color: white;
}

.modal-content.success-top .btn-primary {
    background: white;
    color: #10b981;
    box-shadow: none;
}

/* Searchable Client Selector Component */
.searchable-select-container {
    position: relative;
    width: 100%;
}

.searchable-select-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.searchable-select-search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.searchable-select-input {
    padding-left: 2.2rem !important;
    padding-right: 2.2rem !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.searchable-select-input-wrapper.has-selection .searchable-select-input {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.02);
    font-weight: 600;
}

.searchable-select-input-wrapper.has-selection .searchable-select-search-icon {
    color: var(--success);
}

.searchable-select-clear {
    position: absolute;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 0;
    transition: all 0.2s ease;
}

.searchable-select-clear:hover {
    background: var(--danger);
    color: white;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    margin-top: 0.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.searchable-select-dropdown.hide {
    display: none;
}

.searchable-select-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.searchable-select-item:last-child {
    border-bottom: none;
}

.searchable-select-item:hover {
    background: rgba(220, 38, 38, 0.06);
}

.searchable-select-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.searchable-select-item-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    display: flex;
    gap: 0.75rem;
}

.searchable-select-item-details i {
    color: var(--accent-cyan);
    margin-right: 0.2rem;
}

.searchable-select-no-results {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.searchable-select-quick-create {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-top: 1px dashed var(--glass-border);
    background: rgba(220, 38, 38, 0.02);
    border-radius: 0.4rem;
    text-align: left;
}

.searchable-select-quick-create h4 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.searchable-select-quick-create h4 i {
    color: var(--success);
}

.quick-create-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.quick-create-inputs input {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

/* Client Mode Selector inside Repairs Modal */
.client-mode-selector {
    display: flex;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
}

.client-mode-selector button {
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    box-shadow: none !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.client-mode-selector button:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.02);
}

.client-mode-selector button.active {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
}

/* Promotional Carousel Styles */
.promotional-carousel {
    position: relative;
    height: 380px;
    overflow: hidden;
    width: 100%;
    background: #0d0d0d;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.carousel-slide-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    max-width: 500px;
    padding: 1.5rem;
    border-radius: 0.75rem;
    z-index: 4;
    color: white;
    pointer-events: none; /* Let clicks pass through to the link */
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-slide-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-align: left !important;
}

.carousel-slide-desc {
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--accent-blue);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn--left { left: 1.5rem; }
.carousel-btn--right { right: 1.5rem; }

.carousel-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-indicator.active {
    background: var(--accent-blue);
    transform: scale(1.25);
}

@media (max-width: 1024px) {
    .promotional-carousel {
        height: 300px;
    }
    .carousel-slide-content {
        bottom: 2.5rem;
        left: 1.5rem;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .promotional-carousel {
        height: auto;
        aspect-ratio: 16 / 5;
        min-height: 96px;
        max-height: none;
    }
    .carousel-slide {
        background-size: cover;
        background-position: center;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    .carousel-btn--left { left: 0.5rem; }
    .carousel-btn--right { right: 0.5rem; }
    .carousel-slide-content {
        bottom: 2.5rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.65);
    }
    .carousel-slide-title {
        font-size: 1.25rem;
    }
    .carousel-slide-desc {
        font-size: 0.85rem;
    }
    .carousel-nav {
        bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    .carousel-slide-content {
        bottom: 2rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem;
    }
    .carousel-slide-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    .carousel-slide-desc {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .carousel-nav {
        bottom: 0.5rem;
    }
}



/* ===== CARRITO DE COMPRAS ===== */
.floating-cart { position: fixed; bottom: 84px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: var(--glass-shadow); border: none; cursor: pointer; z-index: 998; transition: transform .2s, background .2s; }
.floating-cart:hover { background: var(--accent-blue-hover); transform: scale(1.06); }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--accent-cyan); color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-overlay { position: fixed; inset: 0; background: rgba(17,24,39,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 1000; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--bg-secondary); box-shadow: -8px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column; }
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--glass-border); }
.cart-header h3 { margin: 0; display: flex; gap: .5rem; align-items: center; font-size: 1.05rem; }
.cart-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }
#cart-main, #cart-checkout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 3rem 1rem; display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.cart-empty i { font-size: 2.6rem; opacity: .35; }
.cart-item { display: flex; gap: .8rem; background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: .9rem; padding: .7rem; }
.cart-item-img { width: 64px; height: 64px; border-radius: .6rem; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.cart-item-cat { font-size: .75rem; color: var(--text-muted); }
.cart-item-price { font-size: .85rem; color: var(--accent-blue); font-weight: 600; margin: .15rem 0; }
.cart-item-actions { display: flex; align-items: center; gap: .45rem; margin-top: .3rem; }
.cart-qty-btn { width: 26px; height: 26px; border-radius: .45rem; border: 1px solid var(--glass-border); background: var(--bg-secondary); cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-qty { min-width: 20px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-item-subtotal { margin-left: auto; font-weight: 700; font-size: .85rem; }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.05rem; margin-left: .2rem; }
.cart-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--glass-border); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: .8rem; }
.checkout-fields { padding: 1rem 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: .85rem; }
.checkout-fields label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.checkout-fields input, .checkout-fields select, .checkout-fields textarea { padding: .6rem .7rem; border-radius: .6rem; border: 1px solid var(--glass-border); font-family: inherit; font-size: .95rem; background: var(--bg-main); color: var(--text-main); }
.cart-success { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 2rem; text-align: center; }
.cart-success i { font-size: 3.2rem; color: var(--success); }
.btn-primary { background: var(--accent-blue); color: #fff; border: none; border-radius: .7rem; padding: .75rem 1rem; font-weight: 700; cursor: pointer; font-size: .95rem; }
.btn-primary:hover { background: var(--accent-blue-hover); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--glass-border); border-radius: .7rem; padding: .7rem 1rem; font-weight: 600; cursor: pointer; }
.btn-cart { background: var(--accent-blue); color: #fff; }
.btn-cart:hover { background: var(--accent-blue-hover); }
