/* =========================================================================
   DEALER SYSTEM - LANDING PAGE STYLES (Modern & Sophisticated)
   ========================================================================= */

   :root {
    /* Colors - Dark Premium Theme */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(22, 22, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 42, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    
    --status-red: #ef4444;
    --status-green: #10b981;
    --status-yellow: #f59e0b;
    --status-teal: #14b8a6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-w: 1200px;
    --border-radius: 16px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; border-radius: 12px; }
.btn-full { width: 100%; padding: 16px; font-size: 1.1rem; border-radius: 12px;}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Badges */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.section-badge.warn { background: rgba(239, 68, 68, 0.1); color: var(--status-red); border: 1px solid rgba(239, 68, 68, 0.2); }
.section-badge.success { background: rgba(16, 185, 129, 0.1); color: var(--status-green); border: 1px solid rgba(16, 185, 129, 0.2); }
.section-badge.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.section-badge.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.2); }
.section-badge.teal { background: rgba(20, 184, 166, 0.1); color: var(--status-teal); border: 1px solid rgba(20, 184, 166, 0.2); }

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition-smooth);
}

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

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    padding: 200px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    filter: blur(150px);
    border-radius: 50%;
    opacity: 0.4;
    z-index: -1;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* =========================================================================
   PROBLEM SECTION
   ========================================================================= */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.card-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--status-red);
}

.problem-cards h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.problem-cards p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================================================
   SOLUTION SECTION
   ========================================================================= */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-list i {
    font-size: 1.5rem;
}

.text-gradient {
    color: var(--status-green);
}

.solution-visual {
    position: relative;
}

.dashboard-mockup {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    padding: 24px;
}

.mockup-graph {
    height: 120px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 100%);
    border-top: 2px solid var(--accent-blue);
    border-radius: 4px;
    margin-bottom: 24px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.m-stat {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.floating-alert {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-alert i {
    color: var(--status-red);
    font-size: 1.25rem;
}

/* =========================================================================
   FEATURES BENTO GRID
   ========================================================================= */
.section-header.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.bento-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.bento-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-large .bento-icon { font-size: 4rem; position: absolute; right: 24px; top: 24px; opacity: 0.2; }
.bento-large h3 { font-size: 1.75rem; }
.bento-large p { font-size: 1.1rem; }

.bento-tall { grid-column: span 1; grid-row: span 2; }
.bento-wide { grid-column: span 2; }

/* =========================================================================
   BENEFITS ACCORDION
   ========================================================================= */
.benefits-section {
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.benefits-accordion {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item.active {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(30, 30, 42, 0.8);
}

.accordion-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.accordion-header i {
    transition: var(--transition-fast);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.accordion-item.active .accordion-body {
    padding: 0 24px 24px;
    max-height: 200px;
}

/* =========================================================================
   MODELO COMERCIAL
   ========================================================================= */
.model-box {
    padding: 48px;
    text-align: center;
    border-top: 4px solid var(--status-teal);
}

.model-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 3rem;
    text-align: left;
}

.model-features li {
    display: flex;
    gap: 20px;
}

.model-features i {
    font-size: 2rem;
    color: var(--status-teal);
}

.model-features strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.model-features span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================================================
   CTA SECTION
   ========================================================================= */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(10, 10, 15, 0) 70%);
    z-index: -1;
}

.lead-form {
    max-width: 400px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.5);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 0;
    margin-top: 48px;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.pulse-anim {
    animation: bounceSlow 3s infinite ease-in-out;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================= */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large, .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-content .btn {
        display: none; /* simple mobile fallback */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .problem-cards, .solution-content {
        grid-template-columns: 1fr;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(200px, auto);
    }
    
    .bento-large, .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-large .bento-icon {
        position: static;
        opacity: 1;
        margin-bottom: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
