/* Fresh & Premium Store Aesthetics - Gaiatech.Shop Redesign */

:root {
    --brand-lime: #76A34F;
    --brand-lime-light: #8CB566;
    --brand-dark: #05080A;
    --brand-gray: #0A0F14;
    --glass-bg: rgba(10, 15, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-dark);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}
#navbar-container {
    max-width: 100% !important;
}

/* Glassmorphism Evolution */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--brand-lime);
    transform: translateY(-5px);
}

/* Texture Overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* Premium Navigation */
#navbar {
    transition: all 0.5s ease;
}

#navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#navbar.scrolled #navbar-container {
    background: rgba(5, 8, 10, 0.95);
    backdrop-filter: blur(30px);
    border-color: rgba(118, 163, 79, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes glowPulse { 0% { box-shadow: 0 0 5px rgba(118, 163, 79, 0.2); } 50% { box-shadow: 0 0 20px rgba(118, 163, 79, 0.5); } 100% { box-shadow: 0 0 5px rgba(118, 163, 79, 0.2); } }

.animate-fadeIn { animation: fadeIn 1s ease forwards; }
.animate-slideUp { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-glow { animation: glowPulse 3s infinite; }

/* Custom Reveal */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cloud Cards Extra Refinement */
.cloud-card-premium {
    background: linear-gradient(145deg, rgba(26, 38, 52, 0.9) 0%, rgba(10, 15, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

.cloud-card-premium.active {
    border-color: var(--brand-lime);
    box-shadow: 0 25px 60px rgba(118, 163, 79, 0.15);
}

/* Typography Overrides */
.font-display {
    letter-spacing: -0.02em;
}

/* Slide Logic */
.slide {
    transition: opacity 1.5s ease-in-out;
}
.slide.active {
    opacity: 1 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--brand-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(118, 163, 79, 0.2);
    border-radius: 10px;
}

/* Hide scrollbar for horizontal scroll containers */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Gaiatech Form & Modal UI */
.g-modal-card {
    background: #0A0F14 !important;
    border: 1px solid rgba(118, 163, 79, 0.2) !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9) !important;
    padding: 0 !important;
}

.g-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border-radius: 0.5rem !important;
    height: 36px !important;
    padding: 0 0.75rem !important;
    font-size: 11px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.g-input:hover { border-color: rgba(118, 163, 79, 0.4) !important; }
.g-input:focus { border-color: var(--brand-lime) !important; }

.g-label {
    display: block !important;
    font-size: 9px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-bottom: 0.25rem !important;
    padding-left: 0.25rem !important;
}

.g-btn-primary {
    background: linear-gradient(135deg, #76A34F 0%, #5a8a38 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    border-radius: 6px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    font-size: 9px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border: none !important;
    width: fit-content !important;
    color: white !important;
}

.g-btn-primary:hover {
    transform: scale(0.98) !important;
    background: #8CB566 !important;
}

/* Responsividad Extra */
@media (max-width: 1024px) {
    .mobile-bg-overlay-container {
        position: relative !important;
        overflow: hidden;
    }
    
    .mobile-bg-overlay {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .mobile-bg-overlay::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(5, 8, 10, 0.6), rgba(5, 8, 10, 0.9));
        z-index: 5;
    }

    .mobile-content-above {
        position: relative !important;
        z-index: 10 !important;
    }
}

/* ========================================
   MOBILE STYLES (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* --- Navbar --- */
    #navbar-container {
        padding: 0.5rem 0.75rem !important;
    }

    /* --- Hero Section --- */
    #inicio {
        padding-top: 4.5rem !important;
        padding-bottom: 2rem !important;
        min-height: auto !important;
    }
    #inicio h1 {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
        text-align: center !important;
        overflow-wrap: break-word;
    }
    #inicio p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* --- Floating Cart Button --- */
    .fixed.bottom-10.right-10 {
        bottom: 1.25rem !important;
        right: 1rem !important;
        width: 3rem !important;
        height: 3rem !important;
        border-radius: 1rem !important;
    }
    .fixed.bottom-10.right-10 i {
        font-size: 1rem !important;
    }
    .fixed.bottom-10.right-10 span {
        width: 1rem !important;
        height: 1rem !important;
        font-size: 7px !important;
        top: -0.15rem !important;
        right: -0.15rem !important;
    }

    /* --- Cloud Section --- */
    #cloud {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    #cloud h2 {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }
    #cloud-description {
        font-size: 0.8rem !important;
    }

    /* Cloud Cards - Compact */
    #cloud-container .grid {
        gap: 0.75rem !important;
    }
    #cloud-container .group {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }
    #cloud-container .group h4 {
        font-size: 1.1rem !important;
    }
    #cloud-container .group .text-3xl {
        font-size: 1.3rem !important;
    }
    #cloud-container .group .text-xl {
        font-size: 0.9rem !important;
    }
    #cloud-container .group .space-y-3 {
        margin-bottom: 0.75rem !important;
    }
    #cloud-container .group .space-y-3 div {
        font-size: 10px !important;
    }
    /* Cloud Card pricing box compact */
    #cloud-container .group .p-5 {
        padding: 0.75rem !important;
    }
    #cloud-container .group .rounded-3xl {
        border-radius: 0.75rem !important;
    }
    /* Cloud Card buttons - COMPACT */
    #cloud-container .group .space-y-4.mt-auto button,
    #cloud-container .group .space-y-4.mt-auto a {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        font-size: 9px !important;
        border-radius: 0.5rem !important;
    }
    #cloud-container .group .space-y-4.mt-auto {
        gap: 0.25rem !important;
    }
    #cloud-container .group .mb-6 {
        margin-bottom: 0.5rem !important;
    }
    #cloud-container .group .mb-8 {
        margin-bottom: 0.5rem !important;
    }

    /* --- Catalog Section --- */
    #catalogo {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    #catalogo h2 {
        font-size: 2rem !important;
    }
    #catalogo .mb-24 {
        margin-bottom: 1.5rem !important;
    }

    /* Dynamic catalog tab buttons - compact */
    #category-tabs .menu-tab {
        padding: 0.35rem 0.6rem !important;
        font-size: 8px !important;
        border-radius: 0.5rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* --- Cart Sidebar --- */
    #cart-sidebar .p-10 {
        padding: 0.75rem !important;
    }
    #cart-items {
        padding: 0.75rem !important;
    }
    #cart-items .gap-4 {
        gap: 0.5rem !important;
    }
    #cart-items .p-4 {
        padding: 0.5rem !important;
        border-radius: 0.75rem !important;
    }
    #cart-items img {
        width: 2.5rem !important;
        height: 2.5rem !important;
        border-radius: 0.5rem !important;
    }
    #cart-items h4 {
        font-size: 11px !important;
    }
    #cart-items small {
        font-size: 8px !important;
    }
    #cart-items button {
        width: 1.5rem !important;
        height: 1.5rem !important;
        border-radius: 0.375rem !important;
    }
    #cart-items button i {
        font-size: 8px !important;
    }

    /* --- ALL Modals compact --- */
    #product-modal .g-modal-card,
    #checkout-modal .g-modal-card,
    #cloud-selection-modal .g-modal-card {
        padding: 0 !important;
        max-height: 92vh !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0.75rem !important;
    }

    /* Product Modal */
    #product-modal img#modal-product-image {
        height: 90px !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
    #modal-product-name {
        font-size: 0.8rem !important;
    }
    #modal-product-description {
        font-size: 10px !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    #modal-product-features div {
        font-size: 9px !important;
        padding: 0.25rem 0.4rem !important;
    }
    #modal-product-price {
        font-size: 1rem !important;
    }

    /* Checkout Modal */
    #checkout-modal .g-modal-card {
        max-width: 100% !important;
    }
    #checkout-modal .p-6,
    #checkout-modal .p-5 {
        padding: 0.75rem !important;
    }
    #checkout-form {
        gap: 0.5rem !important;
    }
    .g-input {
        height: 32px !important;
        font-size: 10px !important;
    }
    textarea.g-input {
        height: auto !important;
        min-height: 40px !important;
    }
    .g-label {
        font-size: 8px !important;
        margin-bottom: 0.1rem !important;
    }
    /* Payment method buttons compact */
    #checkout-modal .grid.gap-3 button {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        font-size: 8px !important;
    }
    /* Contact method buttons compact */
    #checkout-modal .flex.gap-2 button {
        height: 1.75rem !important;
        font-size: 7px !important;
    }

    /* All modal close buttons */
    #product-modal .absolute.top-3.right-3,
    #checkout-modal .absolute.top-6.right-6,
    #cloud-selection-modal .absolute.top-3.right-3 {
        top: 0.5rem !important;
        right: 0.5rem !important;
        width: 1.5rem !important;
        height: 1.5rem !important;
        z-index: 50 !important;
    }

    /* g-btn-primary mobile override */
    .g-btn-primary {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        font-size: 8px !important;
        padding: 0 0.75rem !important;
    }

    /* About section */
    #nosotros {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    #nosotros h2 {
        font-size: 1.5rem !important;
    }

    /* Footer compact */
    footer {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    footer .gap-20 {
        gap: 2rem !important;
    }
    footer .mb-32 {
        margin-bottom: 2rem !important;
    }
}