/* Design System Tokens */
:root {
    --bg-color: #0A0A0A;
    --surface-color: #131313;
    --primary-color: #FF4D00;
    --primary-glow: rgba(255, 77, 0, 0.4);
    --text-main: #E5E2E1;
    --text-dim: #A0A0A0;
    --accent-color: #FF4D00;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(30, 30, 30, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1400px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .btn {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

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

.accent {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

img {
    max-width: 100%;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

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

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.5);
    background-color: #ff5e1a;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(255, 77, 0, 0.1);
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Super high z-index */
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.7); /* More opaque at start */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#main-nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.8;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('assets/hero_bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding-top: 180px; /* More space for the fixed nav */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: var(--card-hover-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* Subtle background */
    z-index: -1;
    transition: var(--transition);
    filter: grayscale(100%); /* Black and white by default */
}

.service-card:hover::before {
    opacity: 0.6; /* Increased opacity on hover for more color impact */
    transform: scale(1.1);
    filter: grayscale(0%); /* Full color on hover */
}

.service-card i, .service-card h3, .service-card p {
    position: relative;
    z-index: 2;
}

/* Individual backgrounds */
.s-mec::before { background-image: url('assets/s_mec.png'); }
.s-comp::before { background-image: url('assets/s_comp.png'); }
.s-diag::before { background-image: url('assets/s_diag.png'); }
.s-elec::before { background-image: url('assets/s_elec.png'); }
.s-inj::before { background-image: url('assets/s_inj.png'); }
.s-frenos::before { background-image: url('assets/s_frenos.png'); }
.s-trans::before { background-image: url('assets/s_trans.png'); }
.s-repar::before { background-image: url('assets/s_repar.png'); }

.service-card i {
    font-size: 2.5rem;
    color: var(--text-main); /* White */
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.service-card p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

/* Why Choose Us & Tech Sections */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-section.reversed {
    direction: rtl;
}

.split-section.reversed .split-content,
.split-section.reversed .split-image {
    direction: ltr;
}

.split-content .tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.split-content h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Masivo */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-main);
}

.tech-features {
    list-style: none;
    margin: 30px 0 40px; /* More bottom margin */
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.tech-features li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.image-glass-frame {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.image-glass-frame img {
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.split-image {
    position: relative;
}

.split-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 100%; /* Default to full */
    margin: 0 auto;
}

.img-small {
    max-width: 60% !important; /* Specific for the mechanic */
}

.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.check-list li i {
    color: var(--primary-color);
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.counter {
    display: flex;
    flex-direction: column;
}

.counter .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.counter .text {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Visual Impact */
#visual-impact {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.impact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/impact_moto.png') no-repeat center center/cover;
    background-attachment: fixed;
    z-index: 0;
}

.impact-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.impact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.impact-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
}

/* Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Default shadow */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.glow-active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow);
    transform: scale(1.15);
}

.process-step.glow-active h3 {
    color: var(--primary-color);
    transform: translateY(-5px);
    transition: all 0.5s ease;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card .stars {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--text-main);
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--surface-color);
    font-weight: 600;
    transition: var(--transition);
}

.faq-question:hover {
    background: #1a1a1a;
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: var(--surface-color);
}

.faq-item.open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    border-color: var(--primary-color);
}

.faq-item.open .faq-answer {
    padding: 20px 30px;
    max-height: 1000px; /* Large enough for any content */
    opacity: 1;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Final CTA */
#final-cta {
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('assets/hero_bg.png') center/cover;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background: #050505;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-dim);
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    margin-bottom: 25px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .split-section {
        grid-template-columns: 1fr;
    }
    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }
    .process-timeline::before {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, #main-nav .btn {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .logo img {
        height: 65px; /* Slightly larger on mobile too */
        transform: translateY(8px);
    }
    #hero {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-bottom: 60px; /* Add space at the bottom */
    }
    .hero-content {
        padding-top: 140px;
        text-align: center;
        width: 100%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .process-timeline {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.reveal-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

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

.reveal-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.reveal-delay-2.active {
    opacity: 1;
    transform: translateY(0);
}
/* Contact Form Styles */
.custom-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.form-group { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-light); }
.form-group input, .form-group textarea { padding: 12px 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5); color: white; font-family: inherit; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); }
.w-100 { width: 100%; margin-top: 10px; }
.contact-info-card { padding: 30px; border-radius: 15px; background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); }
.contact-info-card h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.contact-details { margin-top: 20px; display: flex; flex-direction: column; gap: 15px; }
.detail-item { display: flex; align-items: center; gap: 15px; font-size: 1rem; color: var(--text-light); }
.detail-item i { font-size: 1.2rem; color: var(--primary-color); width: 20px; text-align: center; }

/* Chatbot Styles */
#chatbot-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; font-family: 'Inter', sans-serif; }
.chatbot-btn { width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: white; border: none; font-size: 30px; cursor: pointer; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; transition: transform 0.3s; }
.chatbot-btn:hover { transform: scale(1.1); }
.pulse-ring { position: absolute; width: 100%; height: 100%; background: #25D366; border-radius: 50%; z-index: -1; animation: pulseChat 2s infinite; }
@keyframes pulseChat { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.chatbot-window { position: absolute; bottom: 80px; right: 0; width: 350px; height: 450px; background: #1a1a1a; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chatbot-container.chatbot-open .chatbot-window { opacity: 1; pointer-events: all; transform: translateY(0); }
.chatbot-container.chatbot-open .chatbot-btn { background: #333; }
.chatbot-container.chatbot-open .pulse-ring { display: none; }
.chat-header { background: #25D366; padding: 15px; display: flex; justify-content: space-between; align-items: center; color: white; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: white; overflow: hidden; border: 2px solid rgba(255,255,255,0.5); }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-header h4 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.online-status { font-size: 0.75rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 5px; }
.online-status::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
#chat-close { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; opacity: 0.8; }
#chat-close:hover { opacity: 1; }
.chat-body { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #111; }
.chat-msg { padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; line-height: 1.4; max-width: 85%; }
.bot-msg { background: #222; color: #fff; border-bottom-left-radius: 2px; align-self: flex-start; border: 1px solid rgba(255,255,255,0.05); }
.user-msg { background: #25D366; color: white; border-bottom-right-radius: 2px; align-self: flex-end; }
.chat-options { display: flex; flex-direction: column; gap: 8px; margin-top: 5px; }
.chat-opt { padding: 8px 12px; border-radius: 20px; border: 1px solid #25D366; background: transparent; color: #25D366; font-size: 0.85rem; cursor: pointer; text-align: left; transition: all 0.2s; }
.chat-opt:hover { background: #25D366; color: #111; }
.chat-input-area { padding: 10px 15px; background: #1a1a1a; border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; align-items: center; }
#chat-input { flex: 1; padding: 10px 15px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); background: #222; color: white; outline: none; font-size: 0.9rem; }
#chat-send { background: #25D366; color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) { .chatbot-window { width: calc(100vw - 40px); right: -10px; bottom: 70px; } }
