:root {
    /* Primary Colors */
    --primary: #002a5f;
    --primary-light: #1d417a;
    --secondary: #ac322e;
    --secondary-light: #fd6e64;
    
    /* Neutral Colors */
    --background: #f8f9fa;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-muted: #515154;
    --outline: #e5e5e7;
    
    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-smooth: opacity 0.4s ease, transform 0.4s ease;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section.color-bg {
    background-color: var(--surface);
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

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

/* Buttons & Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,42,95,0.2); }

.btn-secondary { background-color: var(--secondary); color: white; }
.btn-secondary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(172,50,46,0.2); }

.btn-outline { background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; backdrop-filter: blur(10px); }
.btn-outline:hover { background-color: rgba(255,255,255,0.2); }

.btn-whatsapp { 
    background-color: #25D366; 
    color: white; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    width: fit-content;
    align-self: center;
    border-radius: 999px !important;
    transition: var(--transition);
    text-decoration: none !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    color: white !important;
}

.icon-wp { 
    width: 22px !important; 
    height: 22px !important; 
    flex-shrink: 0;
    margin-right: 12px;
    fill: white;
}

.btn-full { 
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    color: var(--secondary-light);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.is-scrolled {
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header.is-scrolled .header-content {
    padding: 0.3rem var(--spacing-sm);
}

.header.is-scrolled .logo img {
    height: 55px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem var(--spacing-sm);
    transition: padding 0.4s ease;
}

.logo img { height: 75px; transition: height 0.4s ease; }

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-shrink: 0; }

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,42,95,0.9) 0%, rgba(0,42,95,0.4) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
    color: white;
    padding-top: 220px;
    padding-bottom: 100px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero h1 span { font-size: 0.6em; font-weight: 400; opacity: 0.9; }

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-actions { 
    display: flex; 
    gap: 1rem; 
    flex-wrap: wrap;
}

.fiscal-data {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Sections */
.section-subtitle {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.section-desc {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-muted);
}

/* About Section */
.about-text p { margin-bottom: 1rem; color: var(--text-muted); }

.values-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-top: 2rem;
}

.values-card h3 { color: var(--primary); margin-bottom: 1.5rem; }

.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.values-list li .material-symbols-outlined { color: var(--secondary); font-variation-settings: 'FILL' 1; }

.image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    height: 100%;
}

.about-img { width: 100%; height: 100%; object-fit: cover; }

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, var(--primary));
    padding: 3rem 2rem 2rem;
    color: white;
}

.label-heading { text-transform: uppercase; font-size: 0.7rem; font-weight: 800; opacity: 0.8; }
.image-label p { font-size: 1.3rem; font-weight: 700; }

/* Fleet Slider */
.fleet { background: var(--surface); padding-bottom: calc(var(--spacing-xl) * 1.5); }
.fleet-title { text-align: center; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-size: 1.5rem; }
.fleet-slider-wrapper { position: relative; padding: 0 60px; }
.fleet-slider { overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.fleet-slider::-webkit-scrollbar { display: none; }
.slider-track { display: flex; gap: var(--spacing-md); padding-bottom: 2rem; }
.slider-item { flex: 0 0 320px; height: 450px; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.05); cursor: pointer; }
.slider-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.slider-item:hover img { transform: scale(1.1); }

.slider-arrow {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--outline);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

.slider-arrow:hover { background: var(--primary); color: white; transform: scale(1.1); }
@media (max-width: 768px) { .slider-arrow { display: none; } }

/* Services */
.service-card {
    background: var(--background);
    padding: 3rem 2rem;
    border-radius: 2rem;
    border: 1px solid var(--outline);
    transition: var(--transition);
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.05); }

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0,42,95,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon-box { background: var(--primary); color: white; }
.icon-box .material-symbols-outlined { font-size: 2.5rem; }

/* Support (5x1000) Section */
.support {
    background-color: var(--background);
}

.support-card {
    background: var(--surface);
    border-radius: 2.5rem;
    padding: 4rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.03);
    border: 1px solid var(--outline);
    display: flex;
    align-items: center;
    gap: 4rem;
    overflow: hidden;
}

.support-content {
    flex: 1;
}

.support-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.support-visual {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.support-img {
    width: 100%;
    height: auto;
    max-width: 400px;
}

.fiscal-code-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.fiscal-code-box {
    background: var(--background);
    padding: 1rem 2rem;
    border-radius: 1.2rem;
    border: 2px dashed var(--primary);
    display: flex;
    flex-direction: column;
}

.fs-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.fs-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.support-signature {
    font-size: 0.8rem !important;
    font-weight: 600;
    color: var(--text-muted) !important;
    opacity: 0.7;
    margin-bottom: 0 !important;
}

@media (max-width: 992px) {
    .support-card {
        flex-direction: column;
        padding: 3rem;
        text-align: center;
    }
    
    .support-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        order: -1;
    }
    
    .fiscal-code-container {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .support-card {
        padding: 2rem 1.5rem;
    }
    
    .fs-number {
        font-size: 1.4rem;
    }
    
    .fiscal-code-box {
        width: 100%;
    }
    
    .fiscal-code-container .btn {
        width: 100%;
    }
}

/* Contact Section */
.contact-list { list-style: none; margin: var(--spacing-lg) 0; }
.contact-list li { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.contact-btns { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.contact-btns .btn { flex: 1; min-width: 180px; width: auto !important; }

.contact-form-container {
    background: var(--surface);
    padding: 3rem;
    border-radius: 2.5rem;
    box-shadow: 0 40px 80px rgba(0,0,0,0.05);
    border: 1px solid var(--outline);
}

.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background-color: var(--background);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,42,95,0.05);
}

.form-privacy { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 2rem; }
.form-privacy input { width: auto; }
.form-privacy label { margin: 0; text-transform: none; color: var(--text-muted); font-size: 0.8rem; font-weight: 400; cursor: pointer; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--outline); padding: 4rem 0; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.footer-logo { height: 50px; margin-bottom: 1rem; }
.copyright { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.8rem; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); }
.footer-credit { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.footer-credit a { color: var(--text); font-weight: 800; text-decoration: none; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    border-radius: 1rem;
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover { color: #bbb; }

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Responsive Grid/Flex Adjustment */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero { height: auto; padding: 8rem 0; }
    .hero-actions { flex-direction: column; }
    .contact-btns { flex-direction: column; }
    .contact-btns .btn { width: 100%; }
    .nav { 
        position: fixed; 
        left: 0; 
        top: 0; 
        width: 100%; 
        height: 100dvh;
        min-height: 100dvh;
        background: rgba(255, 255, 255, 0.98) !important; 
        padding: 4rem 2rem; 
        display: flex; /* Ensure display flex is active for centering */
        flex-direction: column; 
        align-items: center;
        justify-content: center;
        gap: 3rem;
        z-index: 2000;
        backdrop-filter: blur(20px) !important;
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    .nav.nav-active { 
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-list { 
        flex-direction: column; 
        align-items: center; 
        gap: 2.5rem; 
    }
    .nav-link { 
        font-size: 1.5rem; 
    }
    .nav-cta {
        width: 100%;
        max-width: 250px;
    }
    .nav-toggle { display: block; z-index: 2001; }
    .form-row { grid-template-columns: 1fr; }
}

/* Final Layout Overrides */
.contact-btns { 
    display: flex !important; 
    flex-direction: row !important; 
    flex-wrap: wrap !important; 
    gap: 1.5rem !important; 
    margin-top: 2rem !important; 
}

@media (max-width: 1024px) {
    .contact-btns { flex-direction: column !important; }
    .contact-btns .btn { width: 100% !important; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,42,95,0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(172,50,46,0.4);
}
