/* Base Styles and Variables */
:root {
    --primary-red: #D32F2F;
    --primary-red-hover: #B71C1C;
    --dark-slate: #1A202C;
    --darker-slate: #11151c;
    --light-bg: #F7FAFC;
    --white: #FFFFFF;
    --text-main: #2D3748;
    --text-muted: #718096;
    --whatsapp-green: #25D366;
    --whatsapp-green-hover: #128C7E;
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

body {
    background-color: var(--white);
    line-height: 1.6;
    font-size: 1.15rem;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.text-center p, .contact-card p, .hero .subtitle, footer p {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-slate);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px 0;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 90px;
}

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

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-slate);
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-fast);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width var(--transition-fast);
}

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

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-slate);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--dark-slate) 0%, var(--darker-slate) 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; /* Offset for fixed header */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle pattern or image overlay could go here */
    background-image: radial-gradient(circle at right, rgba(211, 47, 47, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px auto;
    display: block;
    filter: brightness(0) invert(1);
    animation: fadeInUp 1s ease both;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease both;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #cbd5e0;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

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

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

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

.bg-dark {
    background-color: var(--dark-slate);
    color: var(--white);
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
    margin-bottom: 10px;
}

.light-text h2 {
    color: var(--white);
}

.light-text p {
    color: #cbd5e0;
}

/* About Section */
.features-list {
    list-style: none;
    margin-top: 20px;
}

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

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

.about-fachada-img, .rounded-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Maintenance Cards */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.dark-card {
    background: var(--dark-slate);
    border-radius: 20px;
    padding: 60px;
    margin-top: 80px;
}


.shadow-pop {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.shadow-pop:hover {
    transform: scale(1.02);
}

.tractor-showcase-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 0 auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}

.tractor-showcase-img:hover {
    transform: scale(1.03);
}

/* Contact Grid */
.contact-card {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.contact-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--white);
    font-size: 1.2rem;
}

.contact-card p {
    color: #cbd5e0;
}

.text-alert {
    color: var(--primary-red) !important;
    font-weight: 700;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
    margin: 10px 0;
}

/* Footer */
footer {
    background-color: var(--darker-slate);
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.footer-logo-img {
    max-width: 220px;
    filter: brightness(0) invert(1);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-green-hover);
    transform: scale(1.1);
    color: #FFF;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-icon {
        display: block;
    }
    
    .logo img {
        height: auto;
        max-height: 60px;
        max-width: 70vw;
    }

    .hero {
        text-align: center;
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 60px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}
