@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Base Dark Colors */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 30, 0.8);
    
    /* Accents (Emerald / Neon Tech) */
    --primary: #10B981;
    --primary-hover: #059669;
    --whatsapp: #25D366;
    --accent-glow: rgba(16, 185, 129, 0.15);
    
    /* Typography Colors */
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    
    /* Structural */
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.bg-light { background-color: transparent; } /* Ignorado en dark mode */

/* Gradiente para textos destacados */
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navigation (Glassmorphism)
   ========================================================================== */
.site-header {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.site-branding a {
    text-decoration: none;
    color: var(--text-main);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--text-main);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px; /* Pill shape for modern look */
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), #047857);
    color: #FFF !important;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34D399, var(--primary));
}

.button-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-highlight);
    backdrop-filter: blur(10px);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.button-white {
    background: var(--text-main);
    color: var(--bg-dark);
}
.button-white:hover {
    background: #E4E4E7;
}

.button-block {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    text-align: center;
    padding: 160px 20px 80px;
    overflow: hidden;
}

/* Decorative Glow Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-container h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media(max-width: 768px) {
    .hero-container h1 { font-size: 3rem; }
}

.hero-container p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

.hero-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.hero-image svg { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* ==========================================================================
   Cards Base (Glassmorphism)
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

/* ==========================================================================
   Steps Section
   ========================================================================== */
.steps-section { padding: 120px 0; }
.section-title { font-size: 3rem; margin-bottom: 64px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.step-card { text-align: center; padding: 40px 24px; }
.step-icon { 
    width: 80px; height: 80px; 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--primary); 
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem; font-weight: 800; 
    border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 32px; 
}
.step-card h3 { font-size: 1.75rem; margin-bottom: 16px; }
.step-card p { color: var(--text-muted); font-size: 1.1rem; }

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section { padding: 100px 0; border-top: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-card { padding: 48px 32px; text-align: left; }
.icon-svg { width: 48px; height: 48px; color: var(--primary); margin-bottom: 32px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.feature-card p { color: var(--text-muted); }

/* ==========================================================================
   Pricing Table
   ========================================================================== */
.pricing { padding: 120px 0; }
.pricing-header p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 64px; }
.pricing-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-bottom: 100px; align-items: center; }

.pricing-card { 
    padding: 48px; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}

.pricing-card.featured { 
    border-color: var(--primary); 
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(20, 20, 20, 0.8) 100%);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
    transform: scale(1.05);
    z-index: 10;
}

@media(max-width: 1024px) {
    .pricing-card.featured { transform: scale(1); }
}

.badge { 
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%); 
    background: var(--primary); color: #fff; padding: 6px 20px; 
    border-radius: 100px; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--text-muted); }
.pricing-card.featured h3 { color: var(--primary); }
.price { font-size: 4rem; font-weight: 800; margin-bottom: 16px; font-family: 'Outfit', sans-serif; }
.price span { font-size: 1.25rem; color: var(--text-muted); font-weight: 400; }
.plan-desc { color: var(--text-muted); margin-bottom: 40px; min-height: 48px; }
.features-list { list-style: none; margin-bottom: 48px; flex-grow: 1; }
.features-list li { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; color: var(--text-main); font-size: 1.05rem; }
.features-list li svg { width: 24px; height: 24px; color: var(--primary); flex-shrink: 0; }
.features-list li.disabled { color: var(--text-muted); text-decoration: line-through; opacity: 0.5; }
.features-list li.disabled svg { color: var(--text-muted); }

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-grid { display: grid; gap: 16px; }
.faq-item { padding: 32px; }
.faq-item h4 { font-size: 1.25rem; margin-bottom: 16px; }
.faq-item p { color: var(--text-muted); margin: 0; line-height: 1.8; }

/* ==========================================================================
   Tutorials
   ========================================================================== */
.tutorials { padding: 120px 0; }
.tutorials-header { max-width: 600px; margin: 0 auto 80px; }
.search-bar { display: flex; gap: 16px; margin-top: 40px; }
.search-bar input { flex-grow: 1; padding: 16px 24px; border: 1px solid var(--border); border-radius: 100px; font-size: 1rem; background: rgba(255,255,255,0.05); color: var(--text-main); }
.search-bar input:focus { outline: none; border-color: var(--primary); }
.tutorials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.tutorial-video-placeholder { background: rgba(255,255,255,0.02); height: 200px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--border); border-bottom: 1px solid var(--border); }
.tutorial-content { padding: 32px; }
.tutorial-content h3 { font-size: 1.25rem; margin-bottom: 16px; }
.tutorial-content p { color: var(--text-muted); margin-bottom: 24px; }
.tutorial-content a { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 120px 0; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
@media(max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info p { color: var(--text-muted); margin: 24px 0 48px; font-size: 1.1rem; }
.contact-card { padding: 32px; display: flex; gap: 24px; margin-bottom: 24px; align-items: flex-start; }
.contact-card .icon { font-size: 2.5rem; }
.contact-card h4 { margin-bottom: 8px; font-size: 1.25rem; }
.contact-card p { margin: 0 0 24px 0; color: var(--text-muted); }
.contact-form-container { padding: 48px; }
.contact-form-container h3 { margin-bottom: 32px; font-size: 2rem; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea { width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; background: rgba(255,255,255,0.03); color: var(--text-main); font-size: 1rem; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.05); }

/* ==========================================================================
   Legal Template
   ========================================================================== */
.legal-container { max-width: 800px; padding: 120px 24px; }
.legal-header { border-bottom: 1px solid var(--border); padding-bottom: 40px; margin-bottom: 40px; }
.legal-header h1 { font-size: 3.5rem; margin-bottom: 16px; }
.last-updated { color: var(--primary); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-content h2 { margin: 48px 0 24px; font-size: 2rem; }
.legal-content p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; font-size: 1.1rem; }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section { position: relative; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--border); }
.cta-section::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%); z-index: -1;
}
.cta-section h2 { font-size: 3.5rem; margin-bottom: 24px; }
.cta-section p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 48px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0; text-align: center; }
.site-footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-navigation ul { list-style: none; display: flex; justify-content: center; gap: 32px; margin-top: 32px; }
.footer-navigation a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; transition: var(--transition); }
.footer-navigation a:hover { color: var(--text-main); }

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section { padding: 120px 0; border-top: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 60px; }
.testimonial-card { padding: 40px; }
.testimonial-stars { color: #F59E0B; font-size: 1.25rem; margin-bottom: 24px; letter-spacing: 2px; }
.testimonial-text { font-size: 1.1rem; font-style: italic; color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-author-img { width: 50px; height: 50px; border-radius: 50%; background: var(--border); display: block; object-fit: cover; }
.testimonial-author-info h4 { font-size: 1rem; margin-bottom: 4px; color: var(--text-main); }
.testimonial-author-info span { font-size: 0.85rem; color: var(--primary); font-weight: 500; }

/* ==========================================================================
   Scroll Animations (Intersection Observer)
   ========================================================================== */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-fade {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); }
.reveal-fade { transform: none; }

/* Delay classes for staggered grid animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* When element intersects viewport */
.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* ==========================================================================
   Dashboard App UI (Panel Vendedor)
   ========================================================================== */
body.dashboard-page { background-color: var(--bg-dark); margin: 0; padding: 0; overflow-x: hidden; }

.dashboard-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.dashboard-sidebar { width: 260px; background: #0A0A0A; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; }
.sidebar-header { padding: 32px 24px; border-bottom: 1px solid var(--border); }
.sidebar-header h2 { font-size: 1.25rem; margin: 0 0 8px 0; color: #fff; }

.sidebar-nav { flex: 1; padding: 24px 16px; display: flex; flex-direction: column; gap: 8px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-muted); text-decoration: none; border-radius: 8px; font-weight: 500; transition: var(--transition); }
.sidebar-nav a svg { width: 20px; height: 20px; stroke-width: 2; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.05); color: #fff; }
.sidebar-nav a.active { background: rgba(16, 185, 129, 0.1); color: var(--primary); }

.sidebar-footer { padding: 24px; border-top: 1px solid var(--border); }
.logout-link { display: flex; align-items: center; gap: 12px; color: #EF4444; text-decoration: none; font-weight: 500; }
.logout-link svg { width: 20px; height: 20px; }

/* Main Content */
.dashboard-main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-height: 100vh; }
.dashboard-header { height: 72px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 40px; background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 90; }
.header-search input { background: transparent; border: none; color: #fff; width: 300px; padding: 8px 0; font-size: 0.95rem; }
.header-search input:focus { outline: none; }

.dashboard-content { padding: 40px; flex: 1; max-width: 1200px; }
.dashboard-content h1 { margin-bottom: 32px; font-size: 2rem; }

/* Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.stat-card { padding: 24px; display: flex; align-items: center; gap: 20px; }
.stat-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; justify-content: center; align-items: center; }
.stat-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.stat-info { display: flex; flex-direction: column; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.stat-value { color: #fff; font-size: 1.75rem; font-weight: 700; }

.dashboard-panel { padding: 32px; }

/* Responsive Dashboard */
@media(max-width: 900px) {
    .dashboard-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .dashboard-main { margin-left: 0; }
    .dashboard-header { padding: 0 20px; }
    .dashboard-content { padding: 20px; }
}

/* ==========================================================================
   Storefront Público & Cart
   ========================================================================== */
.storefront-header { padding: 60px 0; border-bottom: 1px solid var(--border); }
.store-logo, .store-logo-placeholder { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px auto; display: flex; justify-content: center; align-items: center; background: var(--border); font-size: 2.5rem; color: var(--text-muted); font-weight: 700; border: 4px solid var(--bg-dark); box-shadow: 0 0 0 2px var(--primary); }
.store-name { font-size: 2.5rem; margin-bottom: 8px; color: #fff; }
.store-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.product-link { text-decoration: none; color: inherit; display: block; height: 100%; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.product-card:hover .product-link { transform: translateY(-4px); }
.add-to-cart-btn { transition: all 0.2s ease; }

.floating-cart { box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(12px); transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.floating-cart:hover { transform: scale(1.05); }

/* Cart Modal */
.cart-sidebar { animation: slideInRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ==========================================================================
   Public Pages Responsive Adjustments
   ========================================================================== */
@media(max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .header-container {
        flex-wrap: nowrap;
        height: auto;
        padding: 15px 20px;
        justify-content: space-between;
    }
    .site-branding {
        width: auto;
        text-align: left;
    }
    .main-navigation {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .main-navigation.active {
        display: block; /* Shown when toggled */
    }
    .main-navigation ul {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        padding: 0 20px !important;
        width: 100%;
    }
    .main-navigation ul li {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
    .main-navigation ul li[style*="margin-left"] {
        margin-left: 0 !important;
    }
    .main-navigation ul li a.button {
        display: inline-block;
        width: 100%;
    }
    
    .hero-section {
        padding: 60px 15px 40px;
    }
    .hero-container h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    .hero-container p {
        font-size: 1.05rem !important;
        margin-bottom: 30px !important;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .hero-actions .button {
        width: 100%;
    }
    .hero-image svg:last-of-type {
        position: relative !important;
        right: 0 !important;
        bottom: 0 !important;
        margin-top: -30px;
        width: 140px !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
        filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.5)) !important;
    }
}
