:root {
    --primary-color: #4092f0;
    --secondary-color: #f7a336;
    --tertiary-color: #e7d7ab;
    --accent-color: #8e44ad;
    --success-color: #25d366;
    --danger-color: #ff6b6b;
    --dark: #2c3e50;
    --light-bg: #f9f6f0;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #faf8f4 0%, var(--light-bg) 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* ===== HEADER ===== */
.store-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-section .store-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.3s ease;
}

.store-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14%,
    42% {
        transform: scale(1.15);
    }

    28%,
    70% {
        transform: scale(1);
    }
}

.logo-text {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-nav {
    display: flex;
    gap: 30px;
}

.store-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.store-nav a:hover,
.store-nav a.active {
    background: var(--primary-color);
    color: white;
}

.cart-button {
    position: relative;
    background: var(--primary-color);
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.cart-button:hover {
    background: #3578d1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* ===== STORE CONTAINER ===== */
.store-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ===== FILTERS SIDEBAR ===== */
.filters-sidebar {
    background: linear-gradient(135deg, rgba(64, 146, 240, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 2px solid rgba(64, 146, 240, 0.2);
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.filter-option:hover {
    background: var(--light-bg);
}

.filter-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.filter-option span {
    font-size: 0.95rem;
}

.sort-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    min-height: 600px;
    background: linear-gradient(135deg, rgba(231, 215, 171, 0.15) 0%, rgba(247, 163, 54, 0.1) 100%);
    padding: 30px;
    border-radius: 16px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-header h2 {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: var(--dark);
}

.products-count {
    color: #666;
    font-size: 0.95rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(64, 146, 240, 0.15);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(142, 68, 173, 0.25);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.product-badge.bestseller {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: white;
}

.product-badge.new {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.product-badge.discount {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fee140 100%);
    color: white;
}

.product-badge.special {
    background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--secondary-color) 100%);
    color: var(--dark);
}

.product-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tertiary-color) 0%, #f5f7fa 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #ffa41c;
    font-size: 0.9rem;
}

.rating-count {
    color: #007185;
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger-color);
}

.price-unit {
    font-size: 0.85rem;
    color: #666;
}

.product-features {
    list-style: none;
    margin-bottom: 15px;
    flex: 1;
}

.product-features li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
    padding-left: 5px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* ===== CART MODAL ===== */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid var(--light-bg);
    background: linear-gradient(135deg, rgba(64, 146, 240, 0.1) 0%, rgba(247, 163, 54, 0.1) 100%);
}

.cart-header h2 {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: var(--dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    color: var(--danger-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.cart-item-price {
    color: var(--danger-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-display {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.3s ease;
}

.remove-item-btn:hover {
    transform: scale(1.2);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.cart-empty p {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 10px;
}

.cart-empty-subtitle {
    font-size: 0.95rem;
    color: #bbb;
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid var(--light-bg);
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.total-amount {
    color: var(--danger-color);
    font-size: 1.8rem;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== FOOTER - VISÍTANOS ===== */
.footer-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 20px 100px 20px;
    text-align: center;
    position: relative;
    z-index: 100;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: start;
}

.footer-info {
    text-align: left;
}

.footer-address,
.footer-phone,
.footer-hours {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #e0e0e0;
}

.footer-phone a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-phone a:hover {
    color: #ffc107;
}

/* Redes Sociales */
.social-links {
    margin-top: 30px;
}

.social-links h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.tiktok {
    background: #000000;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(247, 163, 54, 0.4);
}

.social-icon svg {
    color: white;
}

/* Mapa */
.map-container {
    width: 100%;
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ===== WHATSAPP BUTTON ===== */
.btn-wsp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1500;
    transition: all 0.3s ease;
}

.btn-wsp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-wsp-float img {
    width: 35px;
    height: 35px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .store-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .store-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .cart-modal {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links-footer {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}
/* ===== VISITAS GLOBALES (COUNTER) ===== */
.view-counter-container {
    background: white;
    border: 3px solid #FF512F;
    border-radius: 20px;
    padding: 15px 25px;
    margin: 30px auto;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 15px rgba(255, 81, 47, 0.3);
    animation: pulse-border 2s infinite;
    position: relative;
    overflow: hidden;
}

.counter-icon {
    color: #FF512F;
    background: rgba(255, 81, 47, 0.1);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-content {
    text-align: left;
}

.counter-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.counter-number-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.counter-number {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: #333;
    line-height: 1;
}

.counter-sparkle {
    font-size: 1.2rem;
    animation: spin 3s linear infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(255, 81, 47, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 81, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 81, 47, 0); }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
