:root {
    --primary: #FF5F00;
    --primary-hover: #E65600;
    --secondary: #212121;
    --bg-dark: #0F0F0F;
    --text-light: #F5F5F5;
    --text-muted: #B0B0B0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    transition: margin 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.cart-active .container {
    margin-right: 400px;
    max-width: calc(100% - 400px);
}

/* Header & Navigation */
.glass-header {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    line-height: 1;
}

.logo .accent {
    color: var(--primary);
}

.tagline {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 300;
}

.search-bar {
    position: relative;
    flex: 0 1 400px;
    margin: 0 2rem;
}

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

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 95, 0, 0.2);
}

.cart-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Category Tabs */
.categories-nav {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar { display: none; }

.category-tab {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.category-tab:hover {
    color: white;
    border-color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 95, 0, 0.3);
}

/* Product Grid */
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 95, 0, 0.4);
    box-shadow: var(--shadow-premium);
}

.product-img-container {
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-container i {
    font-size: 4rem;
    color: var(--glass-border);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Side Cart */
.side-cart {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 2000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-cart.active {
    right: 0;
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--glass);
    padding: 1rem;
    border-radius: 12px;
}

.item-info {
    flex: 1;
}

.item-name { font-weight: 600; }
.item-price { color: var(--primary); font-size: 0.9rem; }

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: var(--glass-border);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
}

.delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.delete-btn:hover {
    color: #ff3b30;
    transform: scale(1.1);
}

.cart-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.checkout-btn:disabled {
    background: var(--glass-border);
    cursor: not-allowed;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--secondary);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    max-height: 90vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
}

.submit-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

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

/* Utils */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-premium);
    z-index: 4000;
    transition: transform 0.3s ease-out;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    grid-column: 1 / -1;
    margin: 4rem auto;
}

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

/* --- Landing Page Styles --- */
.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.main-nav a:hover {
    color: var(--primary);
}
.nav-cta {
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: white !important;
}
.nav-cta:hover {
    background: var(--primary-hover);
    box-shadow: 0 5px 15px rgba(255, 95, 0, 0.4);
}

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 95, 0, 0.3);
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
}
.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-blob {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(45deg, var(--primary), #FF1D1D);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0.5;
    animation: blob-bounce 10s infinite alternate;
}
@keyframes blob-bounce {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(360deg) scale(1.1); }
}
.hero-image {
    position: relative;
    z-index: 2;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
    transform: rotate(5deg);
    transition: var(--transition);
}
.hero-image:hover {
    transform: rotate(0deg) scale(1.05);
}

.about-section {
    padding: 6rem 0;
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
}
.text-center {
    text-align: center;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08); /* slight brightness on hover */
}
.accent-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.about-card p {
    color: var(--text-muted);
}
.glass-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .search-bar { order: 3; flex: 1 1 100%; margin: 1rem 0 0 0; }
    .side-cart { width: 100%; right: -100%; }
    
    body.cart-active .container { margin-right: 0; max-width: 100%; }

    .logo-text { font-size: 1.8rem; }
    .section-title { font-size: 2rem; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .main-nav { display: none; } /* On mobile, wait for hamburger or hide */
}

/* --- Nuevas Secciones (Galería, Reseñas, Ubicación) --- */
.gallery-section {
    padding: 5rem 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-premium);
}

.reviews-section {
    padding: 6rem 0;
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.reviews-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.review-card {
    text-align: left;
}
.review-card .stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}
.review-card h4 {
    color: var(--primary);
    font-weight: 600;
}

.location-section {
    padding: 6rem 0;
}
.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.contact-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}
.contact-details i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

/* ─── Location Map Responsive ─────────────────────────────────────── */
.location-map {
    width: 100%;
    min-height: 350px;
    border-radius: 20px;
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    border-radius: 20px;
}

/* ─── Cart Badge Pulse Animation ──────────────────────────────────── */
@keyframes badge-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.cart-btn.pulse {
    animation: badge-pulse 0.6s ease;
}

.cart-btn.pulse .badge {
    animation: badge-pulse 0.6s ease;
    background: #25D366;
}

/* ─── Cart Overlay (Mobile) ───────────────────────────────────────── */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ─── Mobile Responsive Enhancements ──────────────────────────────── */
@media (max-width: 768px) {
    /* Location section: stack vertically with proper spacing */
    .location-section {
        padding: 3rem 0;
    }

    .location-section .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-info {
        padding: 2rem 1.5rem;
    }

    .location-map {
        min-height: 280px;
        border-radius: 16px;
    }

    .location-map iframe {
        min-height: 280px;
        border-radius: 16px;
    }

    .contact-details p {
        font-size: 0.95rem;
    }

    /* Gallery responsive */
    .gallery-section {
        padding: 3rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-img {
        height: 180px;
        border-radius: 14px;
    }

    /* Reviews responsive */
    .reviews-section {
        padding: 3rem 0;
    }

    .reviews-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* About responsive */
    .about-section {
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }

    /* Ensure no horizontal overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 1rem;
    }

    /* Footer spacing */
    .glass-footer {
        padding: 1.5rem 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .contact-details p {
        font-size: 0.9rem;
    }
}
