:root {
    --primary-color: #00a8cc;
    --secondary-color: #0097e6;
    --accent-color: #ff6b6b;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --success-color: #28a745;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8fafc;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0c7b93 0%, #00a8cc 50%, #0097e6 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="10" fill="rgba(255,255,255,0.03)"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Category Filters */
.category-filters {
    padding: 20px 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* System Cards */
.system-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid #e9ecef;
    position: relative;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 204, 0.15);
}

.system-card.featured {
    border: 2px solid var(--accent-color);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.system-header {
    padding: 30px 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8fdff, #e6f7ff);
}

.system-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.system-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 15px 0;
}

.system-price-period {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.system-body {
    padding: 25px;
}

.system-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.system-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.system-features li i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: var(--dark-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* CART-ITEM - SOLUCIÓN DEFINITIVA SIN PARPADEO */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
   
    border-radius: 10px;
    border: 1px solid #e9ecef;
    
    position: relative;
    /* Propiedades para prevenir parpadeo */
  
    backface-visibility: hidden;
    perspective: 1000px;
   
}

/* HOVER SIMPLE SIN TRANSFORM QUE CAUSA PARPADEO */
.cart-item:hover {
    background-color: #f0f0f0;
    /* ELIMINADO COMPLETAMENTE: transform: translateX(-5px) */
}

.cart-total {
    padding: 20px;
    
    border-top: 1px solid #dee2e6;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.cart-overlay.show {
    display: block;
}

/* Cart Counter */
.cart-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.cart-counter:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.cart-counter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5722;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

.notification.error {
    background-color: #dc3545;
    border-left: 4px solid #bd2130;
}

.notification.info {
    background-color: #17a2b8;
    border-left: 4px solid #117a8b;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .category-filters {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Custom Buttons */
.btn-wolqi {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-wolqi:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 204, 0.3);
    color: white;
}

.btn-wolqi-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-wolqi-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Checkout Button */
.btn-checkout {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 5px;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quick Checkout Form */
#quickCheckoutForm .form-control {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

#quickCheckoutForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 204, 0.25);
}