/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(248, 249, 250, 0.1);
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-family: "League Spartan", sans-serif;
    color: #f8f9fa;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 21px;
}

body {
    font-family: "League Spartan", sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #141414 100%);
    color: #f8f9fa;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "League Spartan", sans-serif;
    font-weight: bold;
}

p, span, a, li, label, input, textarea, select {
    font-family: "League Spartan", sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* =============================================
   HEADER - DESKTOP
============================================= */
.header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 20px 0 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
}

.header-logo {
    width: 140px;
    height: auto;
}

.nav-categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.category-link {
    font-family: "League Spartan", sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.category-link:hover { color: #ff0000; }

.category-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: width 0.3s ease;
}

.category-link:hover::after { width: 100%; }

.header .nav { display: none; }

.header-cart {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    transition: all 0.3s ease;
}

.header-cart:hover { opacity: 0.8; }

.cart-icon-svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.header-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff0000;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.header-cart-count.show { display: flex; }

.logo { display: flex; align-items: center; gap: 15px; }

.logo-img {
    width: 44px;
    height: 44px;
    background: linear-gradient(45deg, #ff0000, #ff6b6b, #ff8787);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(255,0,0,0.25);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,0,0,0.35);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-list li { position: relative; }

.nav-list a {
    font-family: "League Spartan", sans-serif;
    color: #e9ecef;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    position: relative;
    padding: 8px 0;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover { color: #ff0000; }

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff6b6b);
    transition: width 0.3s ease;
}

.nav-list a:hover::after { width: 100%; }

/* Hamburger - mantenido pero oculto */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: rgba(255,0,0,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #f8f9fa;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* =============================================
   HEADER - MOBILE
============================================= */
@media (max-width: 768px) {
    .header {
        padding: 8px 0 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.95) 100%);
    }

    .header .container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        position: relative;
    }

    .logo-container {
        order: 1;
        padding: 6px 0;
    }

    .header-logo { width: 80px !important; }

    .header-cart {
        position: absolute;
        right: 15px;
        top: 6px;
        transform: none;
        order: 2;
    }

    /* Ocultar hamburguesa */
    .mobile-menu-toggle { display: none !important; }

    /* Navbar móvil fijo: sin desplazamiento horizontal */
    .nav-categories {
        display: grid !important;
        order: 3;
        grid-template-columns: repeat(2, minmax(84px, 140px));
        justify-content: center;
        align-items: center;
        column-gap: 8px;
        row-gap: 2px;
        margin-top: 0;
        padding: 2px 12px 0;
        width: 100%;
        overflow-x: hidden !important;
        overflow-x: clip !important;
        overflow-y: visible !important;
        overscroll-behavior-x: none;
        touch-action: pan-y;
        white-space: normal;
        scrollbar-width: none;
        -webkit-overflow-scrolling: auto;
        border-top: none;
    }

    .nav-categories::-webkit-scrollbar { display: none; }

    .category-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 24px;
        font-size: 10px;
        letter-spacing: 0.4px;
        line-height: 1.05;
        padding: 1px 4px;
        white-space: normal;
        text-align: center;
        border-radius: 0;
        transition: all 0.2s ease;
    }

    .category-link:hover,
    .category-link:active {
        background: transparent;
        color: #ff0000;
    }

    .category-link::after { display: none; }

    /* Menú hamburguesa antiguo oculto */
    .nav { display: none !important; }

    section[id] {
        scroll-margin-top: 124px;
    }

    .catalog-page > main {
        padding-top: 24px;
    }

    .catalog-page #catalogo-completo {
        scroll-margin-top: 124px !important;
    }
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
    padding: 300px 0 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,0,0,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(248,249,250,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    padding-top: 20px;
    padding-bottom: 200px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: "League Spartan", sans-serif;
    font-size: 73px;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.hero-subtitle {
    font-family: "League Spartan", sans-serif;
    font-size: 20px;
    color: #adb5bd;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero { padding: 110px 0 20px; }
    .hero-content { padding-top: 0; padding-bottom: 30px; }
    .hero-title { font-size: 32px; letter-spacing: 2px; margin-bottom: 10px; }
    .hero-subtitle { font-size: 13px; padding: 0 20px; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 0 15px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 11px; }
}

/* =============================================
   CATEGORIES SECTION
============================================= */
.categorias-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.categorias-title {
    font-family: "League Spartan", sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #000000;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.categorias-description {
    font-family: "League Spartan", sans-serif;
    font-size: 18px;
    color: #666666;
    text-align: center;
    margin-bottom: 50px;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
}

.categoria-card {
    text-decoration: none;
    text-align: center;
    border: 1px solid #cccccc;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

.categoria-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.categoria-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
}

.categoria-name {
    margin-top: 12px;
    width: 100%;
    text-align: center;
    font-family: "League Spartan", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categoria-card:hover .categoria-name { color: #ff0000; }

@media (max-width: 768px) {
    .categorias-section { padding: 30px 0 20px; }
    .categorias-title { font-size: 24px; margin-bottom: 8px; }
    .categorias-description { font-size: 13px; margin-bottom: 20px; }

    .categorias-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding: 0 20px;
        scrollbar-width: none;
    }

    .categorias-grid::-webkit-scrollbar { display: none; }

    .categoria-card {
        flex: 0 0 auto;
        width: 130px;
        padding: 10px;
        scroll-snap-align: start;
    }

    .categoria-img-wrapper { width: 110px; height: 110px; }
    .categoria-name { font-size: 12px; margin-top: 8px; }
}

/* =============================================
   SECTION TITLES
============================================= */
.section-title {
    font-family: "League Spartan", sans-serif;
    font-size: 47px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff6b6b);
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #ff6b6b;
    text-align: center;
    margin-top: -40px;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .section-title { font-size: 22px; letter-spacing: 1px; margin-bottom: 25px; }
    .section-subtitle { font-size: 13px; margin-top: -15px; margin-bottom: 15px; }
}

/* =============================================
   SECTION THEMES - DARK
============================================= */
/* Glow en section-dark (rojo) */
.section-dark {
    background-color: #000000;
    overflow: visible;
    position: relative;
}

.section-dark .rin-item h4,
.section-dark .piloto-item h4 { color: #ffffff; }

.section-dark .rin-item p,
.section-dark .piloto-item p { color: #aaaaaa; }

.section-dark .price { color: #ffffff !important; }

/* =============================================
   SECTION THEMES - LIGHT
============================================= */
/* Glow en section-light (azul) */
.section-light {
    background-color: #ffffff;
    overflow: visible;
    position: relative;
}

.section-light .rin-item h4,
.section-light .piloto-item h4 { color: #000000; }

.section-light .rin-item p,
.section-light .piloto-item p { color: #555555; }

.section-light .price { color: #000000 !important; }

.section-light .section-title {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-light .scroll-btn { background: rgba(0,0,0,0.85); color: #ffffff; }
.section-light .scroll-btn:hover { background: rgba(0,0,0,1); }

.section-light .product-banner-new { background-color: #ffffff; }
.section-light .banner-title { color: #111111; text-shadow: none; }
.section-light .banner-subtitle { color: #333333; text-shadow: none; }
.section-light .banner-desc { color: #444444; text-shadow: none; }
.section-light .banner-bg-text { color: rgba(0,0,0,0.06); }



/* =============================================
   PRODUCT BANNER - DESKTOP
============================================= */
.product-banner-new {
    width: 100%;
    height: 540px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    z-index: 1;
    /* Glow rojo para secciones oscuras */
    box-shadow: 0 0 180px 80px rgba(180,0,0,0.35);
}

/* Glow azul para secciones claras */
.section-light .product-banner-new {
    box-shadow: 0 0 80px 30px rgba(0,80,200,0.18);
}

.product-banner-new::after { display: none; }

.banner-text-col {
    position: absolute;
    left: 60px;
    bottom: 40px;
    top: auto;
    transform: none;
    z-index: 3;
    width: 30%;
    pointer-events: none;
}

.banner-img-col {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.banner-img-col::before { display: none; }

.banner-product-img {
    height: 410px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
    margin: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}

.banner-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-size: 160px;
    font-weight: 900;
    color: rgba(255,255,255,0.07);
    white-space: nowrap;
    z-index: 0;
    user-select: none;
}

.banner-title {
    font-family: "League Spartan", sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,1);
    margin-bottom: 10px;
    -webkit-font-smoothing: antialiased;
}

.banner-subtitle {
    font-family: "League Spartan", sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0,0,0,1);
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}

.banner-desc {
    font-family: "League Spartan", sans-serif;
    font-size: 20px;
    color: #eeeeee;
    text-shadow: 0 1px 4px rgba(0,0,0,1);
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   PRODUCT BANNER - MOBILE
============================================= */
@media (max-width: 768px) {
    .product-banner-new {
        height: auto;
        min-height: unset;
        flex-direction: column;
        padding: 0;
        overflow: visible;
        background-color: #000000;
    }

    .banner-img-col {
        position: relative;
        width: 100%;
        height: 200px;
        top: auto;
        left: auto;
        order: 1;
    }

    .banner-text-col {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        padding: 14px 18px 18px;
        text-align: center;
        order: 2;
        background-color: #000000;
    }

    .section-light .banner-text-col { background-color: #ffffff; }

    .banner-product-img { height: 180px; }
    .banner-bg-text { font-size: 50px; }
    .banner-title { font-size: 20px; margin-bottom: 4px; }
    .banner-subtitle { font-size: 11px; letter-spacing: 1px; }
    .banner-desc { font-size: 12px; line-height: 1.4; }
}

/* =============================================
   POLE POSITION SECTION
============================================= */
.pole-position {
    padding: 0px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #585858 50%, #0f0f0f 0%);
    position: relative;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.product-card {
    background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(248,249,250,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 4px 16px rgba(255,0,0,0.1);
    border-color: rgba(248,249,250,0.15);
}

.product-card h4 { color: #f8f9fa; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.product-card p { color: #adb5bd; font-size: 14px; line-height: 1.5; }

/* =============================================
   RINES SECTION
============================================= */
.rines {
    padding: 30px 0;
    background-color: #000000;
    position: relative;
}

.rines-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    margin-top: 0px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.rines-grid::-webkit-scrollbar { display: none; }

.grid-wrapper { position: relative; width: 100%; }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000000;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-btn:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left { left: 15px; }
.scroll-btn-right { right: 15px; }

@media (max-width: 768px) {
    .scroll-btn { width: 36px; height: 36px; font-size: 16px; }
    .scroll-btn-left { left: 4px; }
    .scroll-btn-right { right: 4px; }
}

.rin-item {
    background: transparent;
    padding: 20px;
    text-align: left;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    color: #ffffff;
    min-width: 23%;
    max-width: 23%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rin-item:hover { transform: translateY(-5px); }

@media (min-width: 769px) {
    .rines-grid { scroll-snap-type: x mandatory; }
    .rin-item { min-width: 23%; max-width: 23%; }
}

@media (max-width: 768px) {
    .rines-grid { scroll-snap-type: x mandatory; padding: 15px 8px; gap: 15px; }
    .rin-item { min-width: calc(49% - 56px); max-width: calc(49% - 56px); padding: 15px 12px; }
}

.product-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.rin-item h4 {
    font-family: "League Spartan", sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rin-item p {
    font-family: "League Spartan", sans-serif;
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .rin-item h4 { font-size: 16px; margin-bottom: 6px; }
    .rin-item p { font-size: 12px; line-height: 1.4; }
}

@media (max-width: 480px) {
    .rin-item { min-width: calc(49% - 28px); max-width: calc(49% - 28px); padding: 12px 10px; }
    .rin-item h4 { font-size: 14px; }
    .rin-item p { font-size: 11px; }
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

@media (max-width: 768px) {
    .product-footer { gap: 8px; margin-top: 10px; }
}

.price {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 20px !important;
    margin: 0 !important;
}

@media (max-width: 768px) { .price { font-size: 16px !important; } }
@media (max-width: 480px) { .price { font-size: 14px !important; } }

/* =============================================
   F1 TEAM SECTION
============================================= */
.f1-team { padding: 80px 0; }
.f1-team .rin-item h4 { font-size: 19px; }
.f1-team .rin-item p { font-size: 15px; }
.f1-team .rin-item .price { font-size: 24px !important; }

@media (max-width: 768px) {
    .f1-team { padding: 0; }
    .f1-team .rin-item h4 { font-size: 15px; }
    .f1-team .rin-item p { font-size: 12px; }
    .f1-team .rin-item .price { font-size: 15px !important; }
}

/* =============================================
   PRODUCT SIZE HEADERS
============================================= */
.product-size-header { padding: 30px 0 10px; text-align: center; }

.product-size-title {
    font-family: "League Spartan", sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-size-subtitle {
    font-family: "League Spartan", sans-serif;
    font-size: 16px;
    color: #666666;
    font-weight: 400;
}

.section-dark .product-size-title { color: #ffffff; }
.section-dark .product-size-subtitle { color: #aaaaaa; }

@media (max-width: 768px) {
    .product-size-header { padding: 16px 0 6px; }
    .product-size-title { font-size: 20px; letter-spacing: 1px; }
    .product-size-subtitle { font-size: 11px; }
}

/* =============================================
   PILOTO SECTION
============================================= */
.piloto { padding: 100px 0; position: relative; }

.piloto-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    margin-top: 50px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.piloto-grid::-webkit-scrollbar { display: none; }

.piloto-item {
    background: transparent;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    position: relative;
    color: #ffffff;
    min-width: 23%;
    max-width: 23%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.piloto-item:hover { transform: translateY(-5px); }

.piloto-item h4 {
    font-family: "League Spartan", sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.piloto-item p {
    font-family: "League Spartan", sans-serif;
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.5;
}

.piloto-item .price { color: #ffffff !important; }

@media (min-width: 769px) {
    .piloto-grid { scroll-snap-type: x mandatory; }
    .piloto-item { min-width: 23%; max-width: 23%; }
}

@media (max-width: 768px) {
    .piloto { padding: 30px 0; }
    .piloto-grid { scroll-snap-type: x mandatory; margin-top: 15px; padding: 10px 8px 15px; gap: 15px; }
    .piloto-item { min-width: calc(49% - 56px); max-width: calc(49% - 56px); padding: 15px 12px; }
    .piloto-item h4 { font-size: 16px; margin-bottom: 6px; }
    .piloto-item p { font-size: 12px; line-height: 1.4; }

    /* BOTÓN COMPRAR visible en mobile */
    .add-to-cart-btn {
        display: flex !important;
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 8px;
    }
}

/* =============================================
   ALIADOS SECTION
============================================= */
.aliados {
    padding: 80px 0;
    background-color: #000000;
    overflow: hidden;
}

.aliados-carousel { width: 100%; overflow: hidden; margin-top: 50px; }

.aliados-track {
    display: flex;
    gap: 40px;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}

.aliado-logo {
    width: 150px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.aliado-logo:hover { transform: scale(1.1); }

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.aliados-carousel:hover .aliados-track { animation-play-state: paused; }

/* =============================================
   SHOPPING CART
============================================= */
.cart-icon-fixed {
    position: fixed !important;
    top: 20px;
    right: 20px;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 9998 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    animation: cartFloat 3s ease-in-out infinite;
}

.cart-icon-fixed::before { content: none; }
.cart-icon-fixed:hover { transform: scale(1.15) translateY(-3px); }
.cart-icon-fixed:active { transform: scale(0.95); transition: all 0.1s ease; }

.cart-icon-fixed.bounce,
.header-cart.bounce {
    animation: cartBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    50% { transform: scale(1.05); }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes cartFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.cart-symbol {
    font-size: 42px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.cart-icon-fixed:hover .cart-symbol {
    color: #ff0000;
    filter: drop-shadow(0 6px 16px rgba(255,0,0,0.8));
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255,0,0,0.4);
    transition: all 0.3s ease;
}

.cart-count.show { display: flex; animation: countPulse 0.4s ease-out; }
.cart-count.updating { animation: countUpdate 0.3s ease-in-out; }

@keyframes countPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); background: linear-gradient(135deg, #00ff00, #00cc00); }
    100% { transform: scale(1); }
}

/* Cart Modal */
.cart-modal {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    opacity: 0;
    transition: all 0.3s ease;
}

.cart-modal.show { display: flex; opacity: 1; animation: modalFadeIn 0.3s ease-out; }

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-content {
    background-color: #1a1a1a;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 8px 24px rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.2);
    animation: cartSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartSlideIn {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.cart-header {
    background-color: #000000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff0000;
}

.cart-header h3 { color: #ffffff; font-size: 20px; margin: 0; }

.close-cart {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-cart:hover { background-color: rgba(255,0,0,0.2); }

.cart-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff0000 #2a2a2a;
}

.cart-body::-webkit-scrollbar { width: 6px; }
.cart-body::-webkit-scrollbar-track { background: #2a2a2a; border-radius: 3px; }
.cart-body::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #ff0000, #cc0000); border-radius: 3px; }

.cart-items { display: flex; flex-direction: column; gap: 15px; }

.cart-item {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    animation: itemSlideIn 0.3s ease-out;
    margin-bottom: 5px;
}

.cart-item:hover {
    background-color: #333333;
    border-color: rgba(255,0,0,0.3);
    transform: translateX(2px);
}

@keyframes itemSlideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cart-item-info h4 { color: #ffffff; font-size: 14px; margin: 0 0 5px 0; }
.cart-item-price { color: #ff0000; font-weight: bold; font-size: 14px; margin: 0; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }

.quantity-btn {
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover { background-color: #cc0000; }
.quantity { color: #ffffff; font-weight: bold; min-width: 20px; text-align: center; }

.remove-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.remove-btn:hover { background-color: rgba(255,0,0,0.2); }
.empty-cart { text-align: center; color: #cccccc; font-style: italic; padding: 40px 20px; }

.cart-footer {
    background-color: #000000;
    padding: 20px;
    border-top: 1px solid #333;
}

.cart-total { text-align: center; margin-bottom: 15px; color: #ffffff; font-size: 18px; }

.checkout-btn {
    width: 100%;
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover { background-color: #cc0000; }

/* ===== DOS BOTONES DE RIN ===== */
.rin-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Botón 1 Rin — relleno rojo (principal) */
.btn-1rin {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}

.btn-1rin:hover {
    background: linear-gradient(135deg, #ff2020 0%, #e00000 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255,0,0,0.35) !important;
}

/* Botón 2 Rines — outline blanco/negro según tema */
.btn-2rines {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.7) !important;
    box-shadow: none !important;
}

.btn-2rines:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1) !important;
}

/* En sección clara los outline son oscuros */
.section-light .btn-2rines {
    color: #111111 !important;
    border-color: rgba(0,0,0,0.5) !important;
}

.section-light .btn-2rines:hover {
    background: rgba(0,0,0,0.06) !important;
    border-color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

@media (max-width: 768px) {
    .rin-buttons { gap: 6px; }
}

/* Add to cart button */
.add-to-cart-btn {
    font-family: "League Spartan", sans-serif;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ff2020 0%, #e00000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,0,0,0.3);
}

.add-to-cart-btn:hover::before { left: 100%; }
.add-to-cart-btn:active { transform: translateY(-1px); }

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(26,26,26,0.95));
    border: 1px solid #ff0000;
    border-radius: 12px;
    padding: 12px 18px;
    z-index: 3000;
    transform: translateX(100%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 2px 8px rgba(255,0,0,0.2);
    border-left: 4px solid #ff0000;
}

.cart-notification.show { transform: translateX(0) scale(1); opacity: 1; }
.cart-notification.hide { transform: translateX(100%) scale(0.8); opacity: 0; }

.notification-content {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-content span::before {
    content: '✓';
    color: #00ff00;
    font-weight: bold;
    font-size: 16px;
}

/* =============================================
   FOOTER
============================================= */
.footer {
    background-color: #111111;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
    align-items: start;
}

.footer-section + .footer-section {
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 40px;
}

.footer-logo-col { display: flex; align-items: center; justify-content: center; padding: 20px; }
.footer-logo-img { width: 180px; height: auto; }

.footer-info-col h4, .footer-legal-col h4 {
    font-family: "League Spartan", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-info-col p, .footer-legal-col p {
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-legal-col p a { color: #aaaaaa; text-decoration: underline; transition: color 0.3s ease; }
.footer-legal-col p a:hover { color: #ff0000; }

.footer-social-icons { display: flex; gap: 10px; margin-top: 5px; }

.footer-social-icon {
    width: 42px;
    height: 42px;
    background: #2a2a2a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.footer-social-icon:hover { background: #ff0000; }

.footer-social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p { color: #555555; font-size: 13px; letter-spacing: 1px; }

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-section + .footer-section {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-left: 0;
        padding-top: 30px;
    }
    .footer-logo-col { justify-content: flex-start; }
}

/* =============================================
   CONTACT PAGE
============================================= */
.contacto-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #141414 100%);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contacto-info {
    background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(248,249,250,0.08);
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border-left: 3px solid #ff0000;
    transition: all 0.3s ease;
}

.contacto-item:hover { transform: translateX(5px); background: rgba(255,0,0,0.05); }
.contacto-icon { font-size: 32px; min-width: 40px; }

.contacto-details h3 { font-family: "League Spartan", sans-serif; color: #f8f9fa; font-size: 23px; margin-bottom: 8px; font-weight: 600; }
.contacto-details p { color: #adb5bd; font-size: 15px; margin: 4px 0; }
.contacto-details a { color: #ff6b6b; text-decoration: none; transition: color 0.3s ease; }
.contacto-details a:hover { color: #ff0000; }

.social-links { margin-top: 40px; }
.social-links h3 { font-family: "League Spartan", sans-serif; color: #f8f9fa; font-size: 23px; margin-bottom: 15px; }
.social-icons { display: flex; gap: 15px; }

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,0,0,0.1);
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover { background: rgba(255,0,0,0.2); transform: translateY(-3px); }

.contacto-form-container {
    background: linear-gradient(145deg, #1c1c1c, #2a2a2a);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(248,249,250,0.08);
}

.contacto-form { display: flex; flex-direction: column; gap: 25px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }

.form-group label { color: #f8f9fa; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.form-group input, .form-group textarea, .form-group select {
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(248,249,250,0.1);
    border-radius: 10px;
    padding: 15px;
    color: #f8f9fa;
    font-size: 15px;
    font-family: "League Spartan", sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #ff0000;
    background: rgba(255,0,0,0.05);
}

.form-group textarea { resize: vertical; min-height: 120px; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.submit-btn {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255,0,0,0.3);
}

.submit-btn:hover { background: linear-gradient(135deg, #ff2020 0%, #e00000 100%); transform: translateY(-3px); }

.contact-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(26,26,26,0.95));
    border: 1px solid #00ff00;
    border-radius: 12px;
    padding: 15px 20px;
    z-index: 3000;
    transform: translateX(100%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 2px 8px rgba(0,255,0,0.2);
    border-left: 4px solid #00ff00;
}

.contact-notification.show { transform: translateX(0) scale(1); opacity: 1; }
.contact-notification.hide { transform: translateX(100%) scale(0.8); opacity: 0; }

@media (max-width: 968px) {
    .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
    .contacto-info, .contacto-form-container { padding: 30px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .contacto-section { padding: 60px 0; }
    .contacto-info, .contacto-form-container { padding: 20px; }
    .contacto-item { padding: 15px; }
    .social-icon { width: 45px; height: 45px; font-size: 20px; }

    .cart-icon-fixed { top: 8px !important; right: 12px !important; }
    .cart-symbol { font-size: 26px; }
    .cart-count { width: 16px; height: 16px; font-size: 9px; top: -5px; right: -5px; }

    .cart-content { width: 95%; max-height: 90vh; }
    .cart-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cart-item-controls { width: 100%; justify-content: space-between; }

    .cart-notification { right: 10px; left: 10px; transform: translateY(-100px); }
    .cart-notification.show { transform: translateY(0); }
}

/* =============================================
   CATÁLOGO COMPLETO
============================================= */
.catalogo-completo {
    background-color: #000000;
}

/* ── Panel de búsqueda y filtros ── */
.catalog-search-panel {
    margin: 40px 0 30px;
    background: linear-gradient(145deg, #111111 0%, #1c1c1c 100%);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}

.catalog-search-header { margin-bottom: 24px; }

.catalog-search-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.catalog-search-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    max-width: 760px;
}

.catalog-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.catalog-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-filter-group label {
    color: #f8f9fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.catalog-filter-group input,
.catalog-filter-group select {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    padding: 0 16px;
    font-size: 14px;
    font-family: "League Spartan", sans-serif;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.catalog-filter-group input::placeholder { color: rgba(255,255,255,0.38); }
.catalog-filter-group select option { color: #111111; background: #ffffff; }

.catalog-filter-group input:focus,
.catalog-filter-group select:focus {
    border-color: rgba(255,0,0,0.7);
    box-shadow: 0 0 0 3px rgba(255,0,0,0.14);
}

.catalog-results-top {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.catalog-result-count {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 600;
}

.catalog-clear-btn {
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #ffffff;
    padding: 11px 20px;
    border-radius: 999px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.7px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.catalog-clear-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.38);
}

/* ── Grid de productos ── */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 60px;
}

.catalog-card {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.55);
    border-color: rgba(255,0,0,0.25);
}

.catalog-card-image-wrap {
    background: linear-gradient(160deg, #1a1a1a 0%, #111111 100%);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.catalog-card-image {
    width: 100%;
    max-width: 210px;
    height: auto;
    object-fit: contain;
}

.catalog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.catalog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.catalog-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,0,0,0.12);
    color: #ff6060;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.catalog-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #f8f9fa;
    line-height: 1.15;
    transition: color 0.2s ease;
}

.catalog-card-link:hover .catalog-card-title { color: #ff4040; }

.catalog-card-description {
    color: #888888;
    font-size: 13px;
    line-height: 1.5;
    flex: 1;
}

.catalog-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.catalog-card-price {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.catalog-price-note {
    color: #888888;
    font-size: 12px;
    font-weight: 600;
    margin-top: -6px;
}

.catalog-card-actions { display: flex; flex-direction: column; gap: 8px; }

/* Botón principal (comprar) */
.catalog-card-btn {
    font-family: "League Spartan", sans-serif;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    min-height: 46px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 6px 18px rgba(255,0,0,0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
}

.catalog-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255,0,0,0.32);
}

/* Botón secundario (ver producto) */
.catalog-card-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #cccccc;
    text-decoration: none;
    font-family: "League Spartan", sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.catalog-card-secondary:hover {
    border-color: rgba(255,0,0,0.5);
    background: rgba(255,0,0,0.06);
    color: #ffffff;
}

/* Variantes (1 rin / 2 rines) */
.catalog-variant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-variant-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.catalog-variant-btn span { pointer-events: none; }

.catalog-variant-label {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.catalog-variant-price {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0.9;
}

/* Estado vacío */
.catalog-empty {
    text-align: center;
    padding: 60px 20px;
}

.catalog-empty h3 {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 10px;
}

.catalog-empty p {
    color: #666666;
    font-size: 15px;
}

/* ── Responsive catálogo ── */
@media (max-width: 1100px) {
    .catalog-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-search-panel {
        margin: 20px 12px;
        padding: 18px;
        border-radius: 16px;
    }
    .catalog-search-title { font-size: 22px; }
    .catalog-search-subtitle { font-size: 13px; }
    .catalog-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .catalog-results-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 0 12px 40px;
    }
    .catalog-card-image-wrap { min-height: 180px; padding: 16px; }
    .catalog-card-body { padding: 14px; gap: 10px; }
    .catalog-card-title { font-size: 16px; }
    .catalog-card-description { font-size: 12px; }
    .catalog-card-price { font-size: 18px; }
    .catalog-card-btn,
    .catalog-card-secondary { min-height: 42px; font-size: 12px; }
    .catalog-clear-btn { width: 100%; justify-content: center; }
    .catalog-empty h3 { font-size: 20px; }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}
