* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Nuevo: cursor personalizado */
}

/* Cursor personalizado */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Fondo con transición para el blur */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1574623452334-1e0ac2b3ccb4?w=1920&q=80') center/cover no-repeat;
    transition: filter 0.6s ease;
    z-index: -1;
}

.background.blurred {
    filter: blur(8px);
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header con tabs */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 20px;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .tab {
        padding: 12px 30px;
        font-size: 18px;
    }

    .cart {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .cart-icon {
        font-size: 24px;
    }

    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }

    .content {
        padding: 0 20px 40px;
    }

    .products-grid {
        gap: 20px;
        justify-content: center;
    }

    .product-card {
        width: 120px;
    }

    .product-card.expanded {
        width: 250px;
    }

    .product-image {
        height: 120px;
    }

    .product-card.expanded .product-image {
        height: 150px;
    }

    .product-name {
        font-size: 10px;
    }

    .product-price {
        font-size: 14px;
    }

    .btn-add {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .cart-modal {
        width: 95%;
        max-height: 70vh;
    }

    .cart-header {
        padding: 15px;
    }

    .cart-title {
        font-size: 20px;
    }

    .cart-items {
        padding: 15px;
    }

    .cart-footer {
        padding: 15px;
    }

    .checkout-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        gap: 25px;
    }

    .product-card {
        width: 130px;
    }

    .product-card.expanded {
        width: 280px;
    }

    .product-image {
        height: 130px;
    }

    .product-card.expanded .product-image {
        height: 160px;
    }
}

.tab {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 50px;
    border-radius: 20px;
    color: white;
    font-size: 22px;
    font-weight: 600;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.tab.active {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Carrito */
.cart {
    position: fixed;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.cart:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.cart-icon {
    font-size: 28px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Contenido */
.content {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 60px 60px;
    position: relative;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* Productos Grid */
.products-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0;
    width: 140px;
    cursor: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    overflow: hidden;
    opacity: 0.9;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    opacity: 1;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 300px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image {
    width: 100%;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card.expanded .product-image {
    height: 180px;
    font-size: 70px;
}

.product-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 10px;
}

.product-price {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 10px;
}

.btn-add {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(76, 209, 55, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.product-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: none;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.product-card.expanded .product-description {
    display: block;
    opacity: 1;
}

.product-actions {
    display: none;
}

.btn-add:hover {
    background: rgba(76, 209, 55, 1);
    transform: scale(1.1);
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* CORRECCIÓN: Discount badge reposicionado */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.4s ease;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Modal del Carrito */
.cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    overflow: hidden;
    flex-direction: column;
}

.cart-modal.active {
    display: flex;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-size: 24px;
    font-weight: bold;
    color: #2d3436;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: none;
    color: #636e72;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #2d3436;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    background: rgba(116, 185, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    color: #2d3436;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #636e72;
    font-size: 14px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #74b9ff;
    color: white;
    font-weight: bold;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #0984e3;
}

.quantity-btn.remove {
    background: #ff7675;
}

.quantity-btn.remove:hover {
    background: #d63031;
}

.item-quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    color: #2d3436;
}

.checkout-btn {
    background: #00b894;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: none;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #00a085;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #636e72;
}

.empty-cart-icon {
    font-size: 50px;
    margin-bottom: 15px;
}


