/* css/style.css - Tech-Cyberpunk Premium */

:root {
    --bg-absolute: #000000;
    --bg-secondary: #050508;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    
    /* Brand Colors */
    --cyan: #00FFFF;
    --cyan-glow: rgba(0, 255, 255, 0.4);
    --cyan-border: rgba(0, 255, 255, 0.2);
    
    --violet: #BD00FF;
    --violet-glow: rgba(189, 0, 255, 0.4);
    --violet-border: rgba(189, 0, 255, 0.2);
    
    --gradient: linear-gradient(135deg, var(--cyan), var(--violet));
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-absolute);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
}

/* Background Cyberpunk Elements (Clean, Minimal) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(0, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 0%, rgba(189, 0, 255, 0.05) 0%, transparent 40%);
    z-index: -2;
    pointer-events: none;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--cyan-glow));
}

/* Exchange Rates */
.exchange-rates {
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--cyan-border);
    padding: 6px 16px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.05);
}

.rate-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rate-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.rate-value {
    color: var(--cyan);
    font-weight: 700;
    text-shadow: 0 0 5px var(--cyan-glow);
}

.rate-value.bcv {
    color: var(--violet);
    text-shadow: 0 0 5px var(--violet-glow);
}

.rate-loading {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    animation: pulse 1.5s infinite;
}

.cart-toggle {
    background: transparent;
    border: none;
    color: var(--cyan);
    cursor: pointer;
    position: relative;
    padding: 8px;
    transition: var(--transition);
}

.cart-toggle:hover {
    color: var(--text-primary);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--cyan));
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gradient);
    color: var(--bg-absolute);
    font-size: 0.75rem;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--violet-glow);
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 5% 4rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-weight: 500;
}

/* Products Grid */
.products-section {
    padding: 2rem 5% 5rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    text-align: center;
    font-family: var(--font-body);
    font-style: normal;
    letter-spacing: 4px;
}

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

/* Product Card - Clean Containers */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    padding-bottom: 1.5rem;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-border);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.05);
}

.product-image-container {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    font-size: 0.7rem;
    font-family: var(--font-body);
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.product-info {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Massive Clean Price */
.product-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cyan);
}

/* Minimalist Outline Buttons */
.btn {
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    background: transparent;
    color: var(--text-primary);
    width: 100%;
}

.btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 255, 255, 0.05);
}

.btn.added {
    border-color: var(--violet);
    color: var(--violet);
    box-shadow: inset 0 0 10px rgba(189, 0, 255, 0.2), 0 0 15px var(--violet-glow);
    text-shadow: 0 0 5px var(--violet);
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    height: 100vh;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-left: 1px solid var(--violet-border);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.cart-modal.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.close-btn:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.02);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.cart-item-info p {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.remove-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.remove-item:hover {
    color: var(--violet);
    text-shadow: 0 0 10px var(--violet);
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-absolute);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.cart-total span:last-child {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--gradient);
    color: var(--bg-absolute);
    border: none;
}

.checkout-btn:hover {
    box-shadow: 0 0 20px var(--violet-glow);
    color: #fff;
    background: var(--bg-absolute);
    border: 1px solid var(--violet);
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 var(--cyan); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px var(--violet); }
    100% { transform: scale(1); box-shadow: 0 0 0 var(--cyan); }
}

.pulse-anim {
    animation: pulse 0.4s ease-out;
}

/* Product Preview Modal - Vertical Minimalist */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.preview-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.preview-content {
    background: var(--bg-absolute);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
}

.preview-modal.open .preview-content {
    transform: translateY(0);
}

.preview-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.preview-close:hover {
    color: var(--text-primary);
}

.preview-image-container {
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #050508;
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.preview-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preview-title {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
}

.preview-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 2rem;
}

.preview-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-size: 1rem;
    text-align: left;
    width: 100%;
    font-family: var(--font-body);
}

/* Utilities for JS States */
.loading, .error-msg {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.8rem 4%;
    }

    .exchange-rates {
        order: 3;
        width: 100%;
        justify-content: center;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .hero { padding: 4rem 5% 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-image-container { height: 200px; padding: 1rem; }
    .product-name { font-size: 0.95rem; }
    .product-price { font-size: 1.3rem; }

    .cart-modal { width: 100%; right: -100%; }

    .preview-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .preview-image-container { height: 40vh; }
    .preview-title { font-size: 1.4rem; }
    .preview-price { font-size: 2rem; }
    .preview-details { padding: 1.5rem; }
}

/* ============================================================ */
/* Footer SEO - Información local Barinas                       */
/* ============================================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 5% 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.site-footer h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
    font-family: var(--font-body);
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.6rem;
}

.footer-info a {
    color: var(--cyan);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px var(--cyan-glow);
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 0;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 5% 1.5rem;
    }
    .site-footer h2 {
        font-size: 1.1rem;
    }
}

/* ============================================================ */
/* Floating WhatsApp Button                                     */
/* ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 25px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

body.cart-open .whatsapp-float {
    transform: scale(0) rotate(90deg);
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}
