/* ===================== BASE ===================== */
html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

a { text-decoration: none; transition: color 0.2s ease; }

#sistemas, #marcas, #tienda { scroll-margin-top: 76px; }

/* ===================== NAVBAR ===================== */
#navbar {
    background: #ffffff;
    box-shadow: 0 1px 0 #e5e7eb;
}

#navbar.navbar-solid {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-link {
    color: #374151;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.nav-link:hover { color: #f47216; }

/* ===================== HERO ===================== */
.hero-section {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding-top: 72px; /* clear the fixed navbar */
}

.hero-btn-primary {
    display: inline-block;
    background: #f47216;
    color: #fff;
    padding: 14px 38px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.2s;
}

.hero-btn-primary:hover {
    background: #e06610;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(244,114,22,0.45);
    color: #fff;
}

.hero-btn-ghost {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 14px 38px;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 3px;
    transition: all 0.2s;
}

.hero-btn-ghost:hover {
    border-color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ===================== SISTEMAS ===================== */
.sistema-tab {
    color: #6b7280;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.sistema-tab.active-tab {
    background: #111111;
    color: #ffffff;
}

.sistema-tab:hover:not(.active-tab) {
    color: #374151;
}

.feature-stat {
    padding: 20px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
}

/* Swiper inside dark section */
.swiper { padding-bottom: 52px !important; }

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #f47216;
    width: 22px;
    border-radius: 4px;
}

/* ===================== SHOP — LIVERPOOL STYLE ===================== */

/* Category buttons */
.cat-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    min-width: 84px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cat-btn:hover {
    border-color: #f47216;
    color: #f47216;
}

.cat-btn.active {
    border-color: #f47216;
    color: #f47216;
    background: #fff8f3;
}

/* Fixed-height icon container — forces every slot to be the same size
   regardless of how much whitespace is baked into the source image */
.cat-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
    display: block;
}

.cat-btn.active .cat-icon,
.cat-btn:hover .cat-icon {
    filter: grayscale(0%);
    opacity: 1;
}

/* Consistent single-line label */
.cat-label {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

/* Product cards */
.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: #d1d5db;
}

/* Grid fade transition */
#product-grid {
    transition: opacity 0.16s ease, transform 0.16s ease;
}

#product-grid.grid-fade {
    opacity: 0;
    transform: translateY(6px);
}

/* ===================== PAYMENT BADGES ===================== */
.pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 18px;
    border-radius: 3px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    color: white;
}

/* ===================== BRAND MARQUEE ===================== */
.marquee-container {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    width: max-content;
    align-items: center;
    animation: scroll 55s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.brand-item {
    flex-shrink: 0;
    width: 260px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 44px;
}

.brand-item img {
    width: auto;
    height: auto;
    max-height: 80px;
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.45;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================== UTILS ===================== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===================== MOBILE ===================== */
@media (max-width: 640px) {
    .hero-btn-primary,
    .hero-btn-ghost {
        padding: 13px 28px;
        font-size: 0.78rem;
        width: 100%;
        text-align: center;
    }

    .brand-item {
        width: 180px;
        height: 80px;
        padding: 0 28px;
    }

    .brand-item img {
        max-height: 52px;
        max-width: 130px;
    }

    .feature-stat { padding: 16px 12px; }
}
