:root {
    --primary: #2249ba;
    --primary-hover: #193892;
    --primary-light: rgba(34, 73, 186, 0.1);
    --secondary: #3263e6;
    --ml-yellow: #FFE600; /* MercadoLibre Yellow */
    --bg-dark: #f8f9fa; /* Now light gray */
    --bg-card: #ffffff; /* Now pure white */
    --text-light: #212529; /* Now dark text for light bg */
    --text-muted: #6c757d;
    --white: #FFFFFF;
    --border: #dee2e6;
    --shadow-glow: 0 8px 24px rgba(0, 0, 0, 0.05); /* Soft shadow from Ventaja */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    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 24px;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-light);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px rgba(34, 73, 186, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: rgba(0,0,0,0.05);
    border-color: var(--text-muted);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

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

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: #a5b4fc;
    border: 1px solid rgba(90, 79, 207, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

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

.hero-background {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 79, 207, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    filter: blur(60px);
    z-index: 1;
}

/* Mockup Widget */
.mockup-window {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
}

.chat-message.user {
    background-color: #334155;
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.bot {
    background-color: var(--ml-yellow);
    color: #1a1a1a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(90, 79, 207, 0.1);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--white);
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-card), var(--bg-dark));
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(90, 79, 207, 0.1) 0%, transparent 70%);
    padding: 60px 20px;
    border-radius: 24px;
}

.cta h2 {
    font-size: 3rem;
    color: var(--text-light);
}

.cta .subtext {
    margin-top: 24px;
    font-size: 0.9rem;
    display: block;
    color: var(--text-muted);
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.link-group h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        order: 1;
    }
    .hero-image {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    h1 {
        font-size: 3rem;
    }
    .mockup-window {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn {
        display: none;
    }
    h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Lead Form Styles */
.lead-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    margin: 32px auto;
    text-align: left;
    box-shadow: var(--shadow-glow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.w-full {
    width: 100%;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

.form-message.success {
    background-color: rgba(39, 201, 63, 0.1);
    color: #27c93f;
    border: 1px solid rgba(39, 201, 63, 0.2);
}

.form-message.error {
    background-color: rgba(255, 95, 86, 0.1);
    color: #ff5f56;
    border: 1px solid rgba(255, 95, 86, 0.2);
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn:hover {
    color: var(--white);
}
