:root {
    /* Paleta principal */
    --black-pure:  #000000;
    --black-soft:  #080808;
    --black-card:  #121212;
    --black-mid:   #111111;
    --black-deep:  #050505;
    --dark-gray:   #222222;   /* FIX: variable que faltaba */
    --neon-yellow: #dfff00;
    --neon-glow:   rgba(223, 255, 0, 0.3);

    /* Texto */
    --text-white:  #ffffff;
    --text-gray:   #a0a0a0;

    /* Transición global */
    --transition:  all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    background-color: var(--black-soft);
    color: var(--text-white);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   2. HEADER Y NAVEGACIÓN
   FIX: eliminada la declaración duplicada de .logo y
        .main-header .container (que sobreescribía el flex del nav-wrapper).
        La regla de flex ya viene del .nav-wrapper — no es necesaria
        otra en .main-header .container.
   ============================================================ */
.main-header {
    background: var(--black-pure);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--dark-gray);
    padding: 10px 0;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Versión escritorio: una sola fila */
@media (min-width: 768px) {
    .nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
        height: 80px;
    }
}

/* FIX: una sola declaración de .logo con todos sus valores */
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--neon-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.nav-link {
    flex: 1;
    text-align: center;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 5px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-link.active {
    color: var(--neon-yellow);
    border-bottom: 3px solid var(--neon-yellow);
    background: rgba(223, 255, 0, 0.05);
}

/* Carrito: posición absoluta en móvil, estática en escritorio */
.header-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

@media (min-width: 768px) {
    .header-actions {
        position: static;
    }
}


/* ============================================================
   3. BOTONES RACING (SISTEMA UNIFICADO)
   FIX: .cart-btn solo sobreescribe background/border/color
        (ya hereda el clip-path y padding del grupo).
        Eliminado el !important de .cart-sidebar.open y
        .cart-overlay.show — innecesario con la especificidad correcta.
   ============================================================ */

/* Botón base Racing (amarillo neón) */
.btn-add,
.btn-checkout,
#modal-add-btn {
    background-color: var(--neon-yellow);
    color: var(--black-pure);
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    padding: 12px 25px;
}

.btn-add:hover,
.btn-checkout:hover,
#modal-add-btn:hover {
    background-color: white;
    box-shadow: 0 0 20px var(--neon-glow);
    transform: scale(1.02);
}

/* Variante carrito: contorno neón, sin relleno */
.cart-btn {
    background: transparent;
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    padding: 12px 25px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
}

/* Botón genérico de confirmación (checkout, contacto) */
.btn-primary {
    display: inline-block;
    background-color: var(--neon-yellow);
    color: var(--black-pure);
    border: none;
    padding: 14px 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.btn-primary:hover {
    background-color: white;
    box-shadow: 0 0 20px var(--neon-glow);
}

/* Botón cerrar sidebar (X) */
.btn-close {
    background: var(--dark-gray);
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close:hover {
    background: var(--neon-yellow);
    color: black;
    transform: rotate(90deg);
}


/* ============================================================
   4. HERO SECTION
   FIX: reglas de móvil movidas al bloque @media del final.
        Corregido .btn-hero-secondary:hover → .btn-hero-history:hover
        (la clase correcta del HTML).
   ============================================================ */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    background-image: url('/img/portada-panigale.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    text-align: left;
}

.hero-tag {
    color: var(--neon-yellow);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 900;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--neon-yellow);
    -webkit-text-stroke: 1px var(--neon-yellow);
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn-hero-primary {
    background-color: var(--neon-yellow);
    color: var(--black-pure);
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    box-shadow: 0 0 10px rgba(223, 255, 0, 0.2);
}

.btn-hero-primary:hover {
    background-color: #fff;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 30px rgba(223, 255, 0, 0.5);
}

.btn-hero-history {
    background-color: transparent;
    color: #fff;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    text-decoration: none;
}

/* FIX: clase corregida de .btn-hero-secondary → .btn-hero-history */
.btn-hero-history:hover {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
    background: rgba(223, 255, 0, 0.05);
}


/* ============================================================
   5. BARRA DE CONFIANZA
   ============================================================ */
.trust-bar {
    background: var(--black-card);
    padding: 30px 0;
    border-bottom: 1px solid var(--dark-gray);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-icon {
    font-size: 1.8rem;
}

.trust-item h3 {
    font-size: 0.9rem;
    color: var(--neon-yellow);
    text-transform: uppercase;
    margin: 0;
}

.trust-item p {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
}


/* ============================================================
   6. CARRUSEL DE MARCAS
   FIX: eliminada la declaración duplicada de @keyframes scroll.
        Consolidada en una sola al final de la sección.
        Eliminada la declaración duplicada de .brand-logo img
        (la segunda sobreescribía height: 40px con height: 90px).
        Dejamos la de 90px que era la intención final.
   ============================================================ */
.brand-slider-section {
    overflow: hidden;
}

.brand-slider-section .container {
    padding-bottom: 20px;
}

.brand-slider-container {
    background: var(--black-deep);
    padding: 20px 0;
    overflow: hidden;
    border-bottom: 1px solid #111;
}

.brand-slider-container:hover .brand-track {
    animation-play-state: paused;
    cursor: pointer;
}

.brand-track {
    display: flex;
     width: max-content;
    animation: scroll-marcas 20s linear infinite;
}

/* FIX: una sola declaración de .brand-card */
.brand-card {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 20px;
}

/* FIX: una sola declaración de .brand-card img (altura: 90px, intención final) */
.brand-card img {
    max-width: 70%;
    max-height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    object-fit: contain;
    transition: 0.3s;
}

.brand-card img:hover {
    opacity: 1;
}

/* FIX: renombrada scroll-infinito → scroll-marcas para evitar conflicto
        con la vieja @keyframes scroll que apuntaba a un cálculo diferente */
@keyframes scroll-marcas {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 5px)); }
}


/* ============================================================
   7. NAVEGACIÓN DE CATEGORÍAS
   ============================================================ */
.category-navigation {
    margin: 40px auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.category-card {
    background: var(--black-card);
    border: 1px solid #1a1a1a;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card span {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-gray);
}

.category-card:hover,
.category-card.active {
    border-color: var(--neon-yellow);
    transform: translateY(-5px);
}

.category-card.active span {
    color: var(--neon-yellow);
}

.cat-img-wrapper {
    width: 100%;
    height: 120px;
    background: #000;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--dark-gray);
}

.cat-img-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}


/* ============================================================
   8. BUSCADOR Y FILTRO DE PRECIO
   ============================================================ */
.search-section {
    margin: 2rem 0;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    background: var(--black-card);
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    outline: none;
    font-size: 1rem;
}

.search-box input:focus {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 15px var(--neon-glow);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Filtro de precio */
.sort-section {
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.sort-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
}

.custom-select {
    position: relative;
    width: 250px;
}

.custom-select select {
    width: 100%;
    background: #111;
    color: white;
    border: 1px solid #333;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition);
    border-radius: 0;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.custom-select select:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 15px var(--neon-glow);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--neon-yellow);
    background: #1a1a1a;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-yellow);
    font-size: 0.7rem;
    pointer-events: none;
}

@media (min-width: 768px) {
    .sort-wrapper {
        flex-direction: row;
    }
}


/* ============================================================
   9. CATÁLOGO (GRID + TARJETA)
   FIX: eliminado opacity: 1 !important de .card.
        La animación GSAP arranca desde opacity:0 → 1;
        forzarlo con !important la rompía visualmente en el primer render.
        Solucionado: GSAP hace el trabajo, CSS no interfiere.
   ============================================================ */
.grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding-bottom: 5rem;
}

.empty-catalog {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-gray);
    padding: 60px 0;
    font-size: 1rem;
}

.card {
    background: var(--black-card);
    border: 1px solid var(--dark-gray);
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-yellow);
}

.card-image {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0c0c0c;
    cursor: pointer;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: var(--neon-yellow);
    color: var(--black-pure);
    padding: 4px 15px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.status-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 4px;
}

.sold-out {
    background-color: #ff0000;
    color: white;
}

.low-stock {
    background: #ffa500;
    color: black;
}

.card.out-of-stock {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.card.out-of-stock .img-trigger {
    cursor: not-allowed;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 0.9rem;
    height: 3rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-rating {
    font-size: 0.8rem;
    color: var(--neon-yellow);
    margin-bottom: 0.5rem;
}

.price {
    color: var(--neon-yellow);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #121212 25%, #1a1a1a 50%, #121212 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}


/* ============================================================
   10. CARRITO SIDEBAR
   FIX: eliminados todos los !important.
        La especificidad correcta (clase + estado) es suficiente.
   ============================================================ */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--dark-gray);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: #0d0d0d;
    z-index: 5000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--dark-gray);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 4000;
    display: none;
}

.cart-overlay.show {
    display: block;
}

.cart-items-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 60px 20px;
    font-size: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    align-items: center;
    background: #111;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--dark-gray);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #000;
    border-radius: 4px;
    padding: 5px;
}

.cart-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
}

.cart-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-qty {
    background: #222;
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-qty:hover {
    background: var(--neon-yellow);
    color: black;
}

.cart-item-price {
    color: var(--neon-yellow);
    font-weight: 900;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #555;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-remove-item:hover {
    color: #ff4d4d;
    transform: scale(1.2);
}

.cart-footer {
    background: #000;
    padding: 30px 20px;
    border-top: 2px solid var(--dark-gray);
}

.total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.total-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 2px;
    font-weight: 800;
}

.total-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(223, 255, 0, 0.3);
}

.btn-checkout-final {
    width: 100%;
    padding: 20px;
    background-color: var(--neon-yellow);
    color: black;
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.btn-checkout-final:hover {
    background-color: white;
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--neon-glow);
}

.btn-empty-link {
    background: transparent;
    border: none;
    color: #444;
    width: 100%;
    margin-top: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: 0.3s;
}

.btn-empty-link:hover {
    color: #ff4d4d;
}

/* Cupones */
.coupon-section {
    padding: 0 20px 15px;
    display: flex;
    gap: 10px;
}

#coupon-input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 8px;
    font-size: 0.8rem;
    outline: none;
}

#btn-apply-coupon {
    background: #222;
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
    padding: 5px 15px;
    font-weight: 900;
    cursor: pointer;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: 0.2s;
}

#btn-apply-coupon:hover {
    background: var(--neon-yellow);
    color: black;
}

.coupon-msg {
    padding: 0 20px;
    font-size: 0.7rem;
    margin-bottom: 10px;
    min-height: 1rem;
}

.coupon-msg.success { color: #00ff00; }
.coupon-msg.error   { color: #ff4d4d; }


/* ============================================================
   11. MODAL DE PRODUCTO
   FIX: eliminados todos los !important del bloque ".close-btn, #close-modal".
        La especificidad "posición absoluta dentro de .modal-content"
        ya es suficiente sin forzar nada.
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 6000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--black-card);
    border: 1px solid var(--neon-yellow);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    padding: 50px;
    overflow-y: auto;
    position: relative;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Imagen principal con efecto lupa */
.modal-img-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    background: #373737;
    border-radius: 8px;
    touch-action: none;
}

#modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    display: block;
    filter: drop-shadow(0 10px 30px #000);
}

.modal-img-container:hover #modal-img {
    transform: scale(2.5);
}

/* Miniaturas */
.thumbnails-grid {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumb-btn {
    width: 60px;
    height: 60px;
    border: 2px solid #222;
    background: #000;
    cursor: pointer;
    padding: 2px;
    transition: 0.3s;
    border-radius: 4px;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* FIX: una sola declaración de .thumb-btn:hover */
.thumb-btn:hover,
.thumb-btn.active {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 10px var(--neon-glow);
}

/* Info del modal */
.modal-info h2 {
    font-size: 2rem;
    color: var(--neon-yellow);
    font-weight: 900;
}

.modal-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 10px 0;
}

.modal-specs {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--neon-yellow);
}

.modal-specs ul li {
    list-style: none;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.modal-footer-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.modal-footer-price h3 {
    color: var(--neon-yellow);
    font-size: 1.8rem;
    font-weight: 900;
}

/* Selector de tallas */
.modal-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.size-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-size {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    width: 40px;
    height: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-size.selected {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
    background: rgba(223, 255, 0, 0.1);
}

/* FIX: botón cerrar modal sin !important */
#close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    background: var(--neon-yellow);
    color: black;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

#close-modal:hover {
    background: white;
    transform: scale(1.1);
}


/* ============================================================
   12. CHECKOUT MODAL
   FIX: eliminada la primera declaración redundante del bloque
        "CHECKOUT REDESIGN" (líneas ~580-630 del original).
        Consolidado en una sola declaración por componente.
        Eliminados todos los !important — la especificidad
        dentro de .checkout-container-pro es suficiente.
   ============================================================ */

/* Contenedor */
.checkout-container-pro {
    max-width: 1100px;
    width: 95%;
    padding: 0;
    background: #111;
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
}

/* Botón cerrar checkout */
.btn-close-pro {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--neon-yellow);
    color: black;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 100;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 4px;
}

.btn-close-pro:hover {
    background: white;
    transform: scale(1.1);
}

/* Grid de dos columnas */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
}

.checkout-left {
    padding: 40px;
    background: #111;
    border-right: 1px solid var(--dark-gray);
}

.checkout-right {
    padding: 40px;
    background: #080808;
    display: flex;
    flex-direction: column;
}

/* Títulos */
.ch-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 30px;
}

/* Inputs del formulario */
.rider-form input,
.rider-form textarea {
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    width: 100%;
    margin-top: 5px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.rider-form input:focus,
.rider-form textarea:focus {
    border-color: var(--neon-yellow);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.form-row-pro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.section-label {
    display: block;
    margin: 20px 0 10px;
    font-weight: 800;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

/* Opciones de entrega */
.delivery-options-pro {
    display: flex;
    gap: 15px;
    margin: 15px 0 25px;
}

/* FIX: una sola declaración de .delivery-card */
.delivery-card {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--dark-gray);
    background: var(--black-deep);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.delivery-card .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.delivery-card.active {
    border-color: var(--neon-yellow);
    background: rgba(223, 255, 0, 0.05);
}

/* Info box tienda */
.info-box-neon {
    background: rgba(223, 255, 0, 0.05);
    border: 1px solid var(--neon-yellow);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* Resumen del pedido (miniaturas) */
.checkout-summary-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 15px;
}

.checkout-item-row img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    flex-shrink: 0;
}

.checkout-item-info p {
    font-size: 0.85rem;
    font-weight: 700;
}

.checkout-item-info small {
    color: var(--text-gray);
    font-size: 0.75rem;
}

/* Totales */
.checkout-totals-pro {
    border-top: 1px solid var(--dark-gray);
    padding-top: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.total-highlight {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-yellow);
    border-top: 1px solid var(--dark-gray);
    padding-top: 15px;
}

/* Botón confirmar */
.btn-confirm-order {
    width: 100%;
    background: var(--neon-yellow);
    color: black;
    border: none;
    padding: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 20px;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    transition: var(--transition);
    font-size: 1rem;
}

.btn-confirm-order:hover {
    background: white;
    box-shadow: 0 0 20px var(--neon-glow);
}

.secure-tag {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-top: 15px;
}


/* ============================================================
   13. VISTAS SPA (NOSOTROS / CONTACTO / MARCA)
   FIX: .view-section usa display:none sin !important.
        El !important en .view-section.active lo mantenemos
        SOLO aquí porque necesita vencer la especificidad de
        los selectores de layout que podrían aplicar display:grid.
   ============================================================ */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* Vista Nosotros */
.content-page {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header .subtitle {
    color: var(--neon-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    font-size: 0.8rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-yellow);
}

.stat-item p {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-gray);
}

/* Vista Contacto */
.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-method {
    background: var(--black-card);
    padding: 40px;
    border: 1px solid var(--dark-gray);
    transition: 0.3s;
}

.contact-method:hover {
    border-color: var(--neon-yellow);
}

.contact-method .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.contact-method h3 {
    color: var(--neon-yellow);
    margin-bottom: 10px;
}

/* Vista Marca — Hero banner */
.brand-hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    margin-bottom: 50px;
    border-bottom: 3px solid var(--neon-yellow);
    overflow: hidden;
}

.brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    z-index: 1;
}

.brand-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* FIX: una sola declaración de .btn-back (la versión correcta: neón amarillo) */
.btn-back {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
    background: var(--neon-yellow);
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    transition: 0.3s;
}

.btn-back:hover {
    background: white;
    transform: scale(1.1);
}

/* FIX: una sola declaración de #brand-title */
#brand-title {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -2px;
    color: white;
}

/* FIX: una sola declaración de #brand-slogan */
#brand-slogan {
    color: var(--neon-yellow);
    font-size: 1.2rem;
    margin-top: 15px;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

/* Títulos de sección */
.section-title-small {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Filtros legacy (por si se usan) */
.filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-gray);
    padding: 8px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
}


/* ============================================================
   14. NOTIFICACIONES TOAST
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 7000;
}

.toast {
    background: var(--black-card);
    border-left: 5px solid var(--neon-yellow);
    padding: 15px 25px;
    margin-top: 10px;
    animation: slideIn 0.3s ease;
    font-size: 0.9rem;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}


/* ============================================================
   15. FOOTER
   FIX: border-top usaba var(--dark-gray) que no estaba definida.
        Ahora sí está definida en :root.
   ============================================================ */
.main-footer {
    background-color: var(--black-deep);
    border-top: 1px solid var(--dark-gray);
    padding: 80px 0 40px;
    margin-top: 100px;
}

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

.footer-info h3 {
    color: var(--text-white);
    margin: 15px 0 5px;
}

.footer-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links h3,
.footer-social h3 {
    color: var(--neon-yellow);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-links p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icons a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--neon-yellow);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.8rem;
}


/* ============================================================
   16. UTILIDADES
   FIX: .conten-page (typo) reemplazado por .content-page
        que es lo que usa el HTML.
   ============================================================ */
.content-page {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-page h2 {
    color: var(--neon-yellow);
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}


/* ============================================================
   17. MEDIA QUERIES — MOBILE FIRST (CONSOLIDADO)
   FIX: las reglas de móvil que estaban sueltas fuera de @media
        (hero h1, hero-btns, btn-hero-primary, etc.) ahora viven aquí.
   ============================================================ */

/* ── Pantallas pequeñas: hasta 600px ── */
@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-card {
        padding: 15px 5px;
    }
}

/* ── Pantallas medianas: hasta 768px ── */
@media (max-width: 768px) {

    /* Hero */
    .hero {
        height: 60vh;
        background-attachment: scroll; /* fixed causa jank en iOS */
    }

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

    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-btns {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-history {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.85rem;
        text-align: center;
    }

    /* Catálogo */
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    /* Modal de producto */
    .modal-content {
        padding: 60px 20px 30px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-img-container {
        max-height: 300px;
    }

    .modal-info h2 {
        font-size: 1.4rem;
    }

    /* Nosotros */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-row {
        justify-content: center;
    }

    /* Vista de marca */
    #brand-title {
        font-size: 3rem;
    }

    .brand-hero {
        height: 350px;
        padding: 30px;
    }
}

/* ── Checkout: hasta 850px ── */
@media (max-width: 850px) {

    .checkout-grid {
        grid-template-columns: 1fr;
        display: block;
    }

    .checkout-left {
        border-right: none;
        border-bottom: 1px solid var(--dark-gray);
        padding: 25px 15px;
    }

    .checkout-right {
        background: #0a0a0a;
        border-top: 1px solid var(--dark-gray);
        padding: 25px 15px;
    }

    .modal-content.checkout-container-pro {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        padding-top: 60px;
    }

    .form-row-pro {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .delivery-options-pro {
        gap: 10px;
    }

    .delivery-card {
        padding: 15px 5px;
        font-size: 0.7rem;
    }

    .checkout-item-row img {
        width: 50px;
        height: 50px;
    }

    .ch-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .total-highlight {
        font-size: 1.5rem;
        text-align: center;
    }
}