:root {
    --color-primary: #5DB51C;
    /* Multimaqsa Green */
    --color-secondary: #E8D30D;
    /* Multimaqsa Yellow */
    --color-dark: #0a0a0a;
    --color-dark-surface: #1a1a1a;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-silver: #a0a0a0;

    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.5);
    --header-offset: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #4a9116;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 181, 28, 0.4);
}

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

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

.quick-access-dropdown {
    position: relative;
    z-index: 9999;
    display: block;
    width: min(260px, 100%);
    margin: 1.5rem auto;
    text-align: center;
}

.btn-quick-access {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 180px;
    background-color: #29a72a;
    color: #ffffff;
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    box-shadow: 0 10px 22px rgba(41, 167, 42, 0.22);
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    line-height: 1.1;
}

.btn-quick-access:hover,
.btn-quick-access:focus {
    background-color: #248b23;
    transform: translateY(-1px);
}

.dropdown-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.quick-access-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.quick-access-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    width: 100%;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.quick-access-dropdown.open .quick-access-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-access-item,
.quick-access-heading {
    display: block;
    padding: 0.85rem 1rem;
    text-align: left;
}

.quick-access-item {
    color: #263b22;
    transition: background-color 0.2s ease;
}

.quick-access-item:hover,
.quick-access-item:focus {
    background-color: transparent;
    color: inherit;
    outline: none;
}

.quick-access-heading {
    color: #4f5b4b;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quick-access-divider {
    height: 1px;
    margin: 0.3rem 0;
    background: #e3ece2;
}

@media (max-width: 768px) {
    .quick-access-dropdown {
        width: 100%;
    }
    .btn-quick-access {
        width: 100%;
    }
    .quick-access-menu {
        max-width: 100%;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition-fast);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    padding: 0.8rem 5%;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
}

.logo img {
    height: 75px;
    width: auto;
    transition: var(--transition-fast);
}

.header.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 2.5rem;
}

.nav-gap {
    width: 2.5rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--color-silver);
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    background-color: var(--color-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
    background-color: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

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

.hero-subtitle {
    color: var(--color-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.2s;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.4s;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--color-silver);
    margin-bottom: 2.5rem;
    max-width: 600px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.6s;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.8s forwards 0.8s;
}

/* Stats Ribbon */
.stats-ribbon {
    display: flex;
    justify-content: space-around;
    background-color: var(--color-primary);
    padding: 3rem 5%;
    position: relative;
    z-index: 10;
    margin-top: -1px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    display: block;
}

.stat-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Exclusive Distribution Section */
.exclusive-distribution {
    padding: 5rem 5% 2rem;
    background-color: var(--color-dark);
    text-align: center;
}

.exclusive-distribution .section-header {
    margin-bottom: 0;
}

.distribution-connector {
    width: 100%;
    max-width: 600px;
    height: 100px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.distribution-connector svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.connector-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2;
    stroke-dasharray: 6, 6;
}

.connector-dot {
    fill: var(--color-primary);
    filter: drop-shadow(0 0 8px var(--color-primary));
}

.distribution-brands {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 1rem;
}

.brand-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    background-color: var(--color-dark-surface);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background-color: #1f1f1f;
}

.brand-logo-container {
    width: 100%;
    max-width: 220px;
    height: 140px;
    border-radius: 12px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover .brand-logo {
    transform: scale(1.15);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.2;
    transition: var(--transition-slow);
    filter: blur(25px);
}

.captain-theme .logo-glow {
    background-color: var(--color-primary);
}

.rippa-theme .logo-glow {
    background-color: var(--color-primary);
}

.brand-card:hover .logo-glow {
    opacity: 0;
    width: 100%;
    height: 100%;
}

.brand-card h3 {
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.brand-card p {
    color: var(--color-silver);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .distribution-brands {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .distribution-connector {
        display: none;
    }

    .exclusive-distribution {
        padding-top: 4rem;
    }
}

/* Features/Services */
.services {
    padding: 6rem 5%;
    background-color: var(--color-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

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

.service-card {
    background-color: var(--color-dark-surface);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    background-color: #1f1f1f;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--color-silver);
    margin-bottom: 1.5rem;
}

.service-card > a {
    margin-top: auto;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
}

/* Products Section */
.products {
    padding: 3rem 5% 6rem;
    scroll-margin-top: calc(var(--header-offset) + 0.25rem);
    background-color: #151515;
    perspective: 1200px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem 2rem;
    perspective: 1200px;
}

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 420px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(93, 181, 28, 0.1);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    transform: scale(1);
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    z-index: 1;
    transition: all 0.6s ease;
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 190px;
    z-index: 2;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.product-info h3 {
    color: var(--color-white);
    margin: 0 0 1rem;
    font-size: 2rem;
    position: relative;
    min-height: 3rem;
    line-height: 1.05;
}

.product-info h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    opacity: 0;
    transition: all 0.6s ease;
}

.product-info p {
    color: var(--color-silver);
    margin: 0;
    opacity: 0;
    transition: all 0.6s ease 0.1s;
    line-height: 1.5;
    font-size: 0.95rem;
}

.product-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(93, 181, 28, 0.3), 0 0 30px rgba(93, 181, 28, 0.15), 0 0 0 1px rgba(93, 181, 28, 0.3);
    border-color: rgba(93, 181, 28, 0.4);
}

.product-card:hover .product-img {
    transform: scale(1.15) rotateX(-5deg);
}

.product-card:hover .product-info {
    transform: translateY(0);
}

.product-card:hover .product-info h3::before {
    opacity: 1;
    width: 60px;
}

.product-card:hover .product-info p {
    opacity: 1;
}

/* Contact/CTA Section */
.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('hero_tractor_bg.html') center/cover fixed;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--color-silver);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer-col p {
    color: var(--color-silver);
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    gap: 0;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #000;
    width: auto;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    background: #000;
    transform: scale(1.0);
}

.footer-socials img {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-silver);
    font-size: 0.9rem;
}

.footer-bottom-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.footer-bottom-brand-logo {
    height: 24px;
    width: auto;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
    }
    .footer-bottom-brand {
        margin-top: 0.5rem;
    }
}

.powered-by-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.powered-by-link:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 8px rgba(232, 211, 13, 0.4);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

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

    .nav-left,
    .nav-right {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-gap {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .stats-ribbon {
        flex-direction: column;
        gap: 2rem;
    }
}

/* =========================================
   VARIANTE: HEADER FLOTANTE (SPLIT MENU)
   Para activarlo, añade la clase "header-floating" al <header>
   ========================================= */
.header.header-floating {
    flex-direction: row;
    gap: 0;
    padding: 1.5rem 5%;
}

.header.header-floating .logo-wrapper {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1001;
    transition: var(--transition-slow);
    border-radius: 0 0 40px 40px;
}

.header.header-floating.scrolled .logo-wrapper {
    border-radius: 0 0 20px 20px;
}

.header.header-floating .logo-wrapper .logo {
    position: relative;
    padding: 8px 18px 9px;
    border-radius: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 2;
    transition: var(--transition-slow);
}

.header.header-floating.scrolled .logo-wrapper .logo {
    padding: 4px 12px 7px;
}

.header.header-floating .logo-wrapper .logo a {
    position: relative;
    z-index: 1;
    display: block;
}

/* El resplandor difuminado externo */
.header.header-floating .logo-glow-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    filter: blur(12px);
    z-index: 1;
    transition: var(--transition-slow);
}

/* El gradiente que rota para el borde interno y externo */
.header.header-floating .logo::before, 
.header.header-floating .logo-glow-anim::before {
    content: '';
    position: absolute;
    z-index: -2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 300%;
    height: 300%;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-image: conic-gradient(rgba(0,0,0,0), var(--color-primary), var(--color-secondary), rgba(0,0,0,0) 30%);
    animation: rotate-glow 4s linear infinite;
}

/* El fondo sólido para ocultar el interior del gradiente */
.header.header-floating .logo::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 0;
    width: calc(100% - 4px);
    height: calc(100% - 2px);
    background: rgba(10, 10, 10, 0.85);
    border-radius: inherit;
    backdrop-filter: blur(10px);
    transition: var(--transition-slow);
}

@keyframes rotate-glow {
  100% {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}

.header.header-floating .logo img {
    height: 90px;
    filter: drop-shadow(0 5px 15px rgba(93, 181, 28, 0.2));
}

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

.header.header-floating nav {
    flex: 1;
}

.header.header-floating .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0;
}

.header.header-floating .nav-left,
.header.header-floating .nav-right {
    flex: 1;
    gap: 3rem;
}

.header.header-floating .nav-left {
    justify-content: flex-end;
}

.header.header-floating .nav-right {
    justify-content: flex-start;
}

@media (min-width: 769px) {
    .header.header-floating .nav-right li:last-child {
        margin-left: auto;
    }
}

.header.header-floating .nav-gap {
    width: clamp(150px, 20vw, 280px);
}

@media (max-width: 992px) {
    .header.header-floating .nav-gap {
        width: clamp(120px, 15vw, 200px);
    }
}

@media (max-width: 768px) {
    .header.header-floating {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
    }

    .header.header-floating .logo {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        padding: 0;
        background: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .header.header-floating.scrolled .logo {
        padding: 0;
        background: none;
    }

    .header.header-floating .logo img {
        height: 60px;
        filter: none;
    }

    .header.header-floating .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 1.25rem 1rem 1.5rem;
        gap: 1rem;
        text-align: center;
    }

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

    .header.header-floating .nav-left,
    .header.header-floating .nav-right {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .header.header-floating .nav-gap {
        display: none;
    }

    .header.header-floating .nav-links li:nth-child(2) {
        margin-right: 0;
    }
}

/* =========================================
   INTERACTIVE 3D MODEL / HOTSPOTS
   ========================================= */
.interactive-model-section {
    padding: 6rem 5%;
    background-color: var(--color-dark-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.interactive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.tractor-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.tractor-main-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: hotspotPulse 2s infinite ease-out;
}

.hotspot-core {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.hotspot:hover .hotspot-core,
.hotspot.active .hotspot-core {
    transform: scale(1.3);
    background-color: var(--color-secondary);
}

@keyframes hotspotPulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hotspot-panel {
    flex: 1;
    min-width: 300px;
    background-color: #111;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.panel-content.active {
    display: block;
}

.panel-img-container {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-img-container .panel-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #fff;
    display: block;
    transition: transform 0.5s ease;
}

.panel-img-container:hover .panel-img {
    transform: scale(1.05);
}

.panel-content h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.panel-content p {
    color: var(--color-silver);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.btn-back {
    background: transparent;
    color: var(--color-secondary);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back::before {
    content: '←';
    font-size: 1.2rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .interactive-container {
        flex-direction: column;
    }

    .hotspot-panel {
        min-height: auto;
    }
}

/* =========================================
   WHATSAPP WIDGET
   ========================================= */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-primary);
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--color-dark);
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.whatsapp-popup.active {
    transform: scale(1);
    opacity: 1;
}

.whatsapp-header {
    background-color: #075e54;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.whatsapp-profile {
    position: relative;
}

.whatsapp-profile .profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #25D366;
    border-radius: 50%;
    border: 2px solid #075e54;
}

.whatsapp-info {
    color: white;
    flex: 1;
}

.whatsapp-info h4 {
    margin: 0 0 3px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.whatsapp-info p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.whatsapp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.whatsapp-close:hover {
    color: white;
}

.whatsapp-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 10L10 20l10 10L30 20zM80 10L70 20l10 10L90 20zM50 40L40 50l10 10L60 50zM20 70L10 80l10 10L30 80zM80 70L70 80l10 10L90 80z' fill='%23d0c9c1' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.whatsapp-message {
    background-color: white;
    padding: 12px 15px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 90%;
    color: #111;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.whatsapp-message p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.whatsapp-message p:last-of-type {
    margin-bottom: 0;
}

.message-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
}

.whatsapp-footer {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
    color: white;
}

@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-popup {
        width: 300px;
        bottom: 70px;
        right: -10px;
    }
}

/* Captain / Rippa navigation */
#modelo-rippa{
    margin-top:140px;
}

#modelo-3d,
#modelo-rippa{
    scroll-margin-top:140px;
}

.brand-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.brand-link:hover{
    cursor:pointer;
}
/* =========================================
   AGRICOLA PAGE ONLY
   Centers "Aditamentos para Tractores"
   without affecting index.html
   ========================================= */

.agricola-grid .full-width-center {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.agricola-grid .full-width-center .product-card {
    width: 100%;
    max-width: 350px;
}

.products-grid-enhanced{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
gap:3rem 2rem;
align-items:start;
}
.product-column{display:flex;flex-direction:column;align-items:center}
.product-column .quick-access-dropdown{width:min(260px,100%);margin:0 0 1rem 0;}
.product-column .product-card{width:100%;}


.quick-access-item:hover,.quick-access-item:focus{background:transparent !important;color:inherit !important;box-shadow:none !important;}


.quick-access-item{
    border:1px solid transparent;
    border-radius:6px;
    transition: color .2s ease,border-color .2s ease;
}

.quick-access-item:hover,
.quick-access-item:focus{
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    background: transparent !important;
    outline:none;
}


.quick-access-item:hover,
.quick-access-item:focus{
    color:#1f4f08 !important;
    border:1px solid var(--color-primary) !important;
    background-color:#cfeab8 !important;
    outline:none;
}


.quick-access-item,
.quick-access-item:hover,
.quick-access-item:focus{
    border-radius:14px !important;
}
