:root {
    --fiat-orange: #d6441b;
    --fiat-orange-hover: #b83713;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    
    --transition: all 0.3s ease;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    background-color: var(--fiat-orange);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    border: 2px solid var(--fiat-orange);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(214, 68, 27, 0.2);
}

.nav-links a:hover {
    background-color: var(--fiat-orange-hover);
    border-color: var(--fiat-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214, 68, 27, 0.4);
}

.btn-black {
    background-color: var(--dark-gray) !important;
    border-color: var(--dark-gray) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-black:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background-color: var(--fiat-orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Hero Section */
.hero {
    background: url('../images/fondo-tractor-trabajo.jpg') center/cover;
    padding: 6rem 2rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.7) 60%, rgba(26,26,26,0.2) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    .hero-content {
        text-align: center;
    }
}

/* Brands Section */
.brands-section {
    background-color: var(--white);
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.8);
    transition: var(--transition);
}

.brand-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* About Section */
.about-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem 2.5rem;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--fiat-orange);
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Mission, Vision & Tradition */
.mission-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--fiat-orange);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.3rem;
    color: var(--fiat-orange);
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Values Section */
.values-section {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

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

.value-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--fiat-orange);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Catalog Section */
.catalog-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--fiat-orange);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--fiat-orange);
    color: var(--white);
    border-color: var(--fiat-orange);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--fiat-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.product-part-number {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: monospace;
    background: var(--light-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-col p, .footer-col ul {
    color: #a0a0a0;
}

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

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #a0a0a0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--fiat-orange);
}

/* Footer Social */
.footer-social {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
}

.footer-social h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    color: white;
}

.social-facebook { background: #1877F2; }
.social-facebook:hover { background: #0d5fc5; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(24,119,242,0.4); }

.social-tiktok { background: #000000; }
.social-tiktok:hover { background: #333; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.social-whatsapp { background: #25D366; }
.social-whatsapp:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37,211,102,0.4); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #888;
    font-size: 0.9rem;
}

/* Video Section */
.video-section {
    background-color: var(--dark-gray);
    padding: 4rem 2rem;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--fiat-orange);
}

.video-container video {
    width: 100%;
    display: block;
}

/* Floating Social Sidebar */
.floating-social {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.float-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.float-whatsapp { background: #25D366; animation: pulse-green 2s infinite; }
.float-facebook { background: #1877F2; }
.float-tiktok { background: #000000; border: 2px solid #fff; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-content h1 { animation: fadeInUp 0.8s ease-out; }
.hero-content p { animation: fadeInUp 0.8s ease-out 0.2s both; }
.hero-content .btn-primary { animation: fadeInUp 0.8s ease-out 0.4s both; }
.about-section { animation: slideInLeft 0.7s ease-out; }

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
    .floating-social {
        right: 10px;
        bottom: 10px;
    }
    .float-btn {
        width: 48px;
        height: 48px;
    }
}
