/* ============================================
   MotoMoto - Tema CSS Principal
   ============================================ */

:root {
    --primary-color: #dc3545; /* Rojo */
    --secondary-color: #212529; /* Oscuro */
    --accent-color: #ff6b35; /* Naranja */
    --success-color: #28a745; /* Verde */
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Acelerar transiciones de Bootstrap collapse para el navbar */
@media (max-width: 991.98px) {
    .navbar-motomoto .collapse {
        transition: none !important;
        transition-duration: 0s !important;
    }
    
    .navbar-motomoto .collapsing {
        transition: none !important;
        transition-duration: 0s !important;
        transition-property: none !important;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    padding-top: 80px; /* Espacio exacto para el navbar fijo inicial */
    transition: padding-top 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Ajustar padding cuando el navbar está scrolled */
body.navbar-scrolled {
    padding-top: 60px; /* Espacio exacto para el navbar scrolled */
}

/* Ajustar margin-top de hero section cuando el navbar está scrolled */
body.navbar-scrolled .hero-section {
    margin-top: 0; /* Sin margen negativo cuando navbar está scrolled */
}

/* Navbar */
.navbar-motomoto {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: visible !important; /* Allow dropdown to show below navbar */
    max-height: none !important; /* No height restriction */
    height: auto !important; /* Auto height */
}

/* Navbar cuando se hace scroll */
.navbar-motomoto.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.navbar-motomoto .navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    transition: font-size 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-motomoto.scrolled .navbar-brand {
    font-size: 1.5rem;
}

.navbar-motomoto .navbar-nav.me-auto {
    margin-left: 1.5rem !important;
}

.navbar-motomoto .navbar-nav {
    overflow: visible; /* Allow dropdown to show outside nav */
}

.navbar-motomoto .nav-link {
    color: var(--white) !important;
    margin: 0 0.75rem;
    transition: all 0.3s;
    font-size: 1.15rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.75rem !important;
}

.navbar-motomoto.scrolled .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.6rem !important;
}

.navbar-motomoto .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Eliminar outline azul del botón dropdown */
.navbar-motomoto .nav-link.dropdown-toggle,
.navbar-motomoto .nav-link.dropdown-toggle:hover,
.navbar-motomoto .nav-link.dropdown-toggle:focus,
.navbar-motomoto .nav-link.dropdown-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-motomoto .nav-link.dropdown-toggle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-motomoto .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-motomoto .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Carrito con animación */
.navbar-motomoto .nav-link[href*="cart"] {
    position: relative;
    animation: cartPulse 3s ease-in-out infinite;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.navbar-motomoto .nav-link[href*="cart"]:hover {
    animation: cartShake 0.5s ease-in-out;
}

@keyframes cartShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px) rotate(-5deg);
    }
    75% {
        transform: translateX(5px) rotate(5deg);
    }
}

.cart-badge {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    animation: badgeBlink 2s ease-in-out infinite;
}

@keyframes badgeBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Carrito móvil - visible solo en pantallas pequeñas */
.cart-mobile {
    position: relative;
    color: var(--white) !important;
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem !important;
    margin-right: 0.5rem;
    animation: cartPulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    order: 2;
}

.cart-mobile:hover {
    color: var(--primary-color) !important;
    animation: cartShake 0.5s ease-in-out;
}

.cart-mobile .cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
}

/* Asegurar que el navbar container use flexbox */
.navbar-motomoto .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: visible !important; /* Allow dropdown to show below navbar */
    position: relative;
    max-height: none !important; /* No height restriction */
    height: auto !important; /* Auto height */
}

/* Ajustar orden de elementos en móvil */
.navbar-motomoto .navbar-brand {
    order: 0;
    flex-shrink: 1;
    min-width: 0;
}

.navbar-motomoto .navbar-toggler {
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
}

.navbar-motomoto .navbar-collapse {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    overflow: visible !important; /* Allow dropdown to show outside collapse */
    max-height: none !important; /* No height restriction */
    height: auto !important; /* Auto height */
}

/* Dropdown Menu - Desktop (Large Screens) */
@media (min-width: 992px) {
    /* Prevent navbar from creating scroll */
    .navbar-motomoto {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .navbar-motomoto .container {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .navbar-motomoto .navbar-collapse {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .navbar-motomoto .navbar-nav {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .navbar-motomoto .nav-item {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    .navbar-motomoto .nav-item.dropdown {
        position: relative !important;
        overflow: visible !important;
    }

    /* Eliminar outline azul del botón dropdown en desktop */
    .navbar-motomoto .nav-link.dropdown-toggle,
    .navbar-motomoto .nav-link.dropdown-toggle:hover,
    .navbar-motomoto .nav-link.dropdown-toggle:focus,
    .navbar-motomoto .nav-link.dropdown-toggle:active,
    .navbar-motomoto .nav-link.dropdown-toggle:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    .navbar-motomoto .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        z-index: 1050 !important;
        min-width: 200px;
        margin-top: 0.125rem;
        background-color: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-radius: 0.375rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        transform-origin: top right;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        display: block !important;
        visibility: hidden;
    }

    .navbar-motomoto .dropdown-menu.show {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    /* Animación de entrada más fluida */
    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Animación de salida más fluida */
    @keyframes dropdownFadeOut {
        from {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        to {
            opacity: 0;
            transform: translateY(-10px) scale(0.95);
        }
    }

    /* Aplicar animación cuando se muestra */
    .navbar-motomoto .dropdown-menu.show {
        animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Ocultar cuando no está mostrado, con animación de salida */
    .navbar-motomoto .dropdown-menu:not(.show) {
        animation: dropdownFadeOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
}

.navbar-motomoto .dropdown-item {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar-motomoto .dropdown-item:hover,
.navbar-motomoto .dropdown-item:focus {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: var(--primary-color) !important;
}

.navbar-motomoto .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin: 0.5rem 0;
}


/* Hero Section */
.hero-section {
    background-size: 105%;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    margin-top: 0; /* Sin margen negativo - el hero comienza justo después del navbar */
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Masking Container para el efecto de texto animado */
.masking-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-section h1,
.masked-text {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: bold;
    display: block;
    text-align: center;
}

/* Efecto de texto con máscara animada */
.masked-text {
    color: transparent;
    background-image: url('https://images.unsplash.com/photo-1732535725600-f805d8b33c9c?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: 200%;
    background-position: 0 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-background 20s infinite alternate linear;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.2), 
                 0 0 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    filter: brightness(1.8) contrast(1.2);
}

@keyframes animate-background {
    0% {
        background-position: 0 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-section .btn-hero {
    display: inline-block;
    margin-top: 1rem;
    border: none;
    background: transparent;
    padding: 0;
    transition: transform 0.35s ease;
    transform-origin: center center;
    will-change: transform;
    animation: heroCatalogBreath 3.4s ease-in-out infinite;
}

@keyframes heroCatalogBreath {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.042);
    }
}

.hero-section .btn-hero img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.hero-section .btn-hero:hover {
    animation: none;
    transform: translateY(-4px) scale(1.06);
}

.hero-section .btn-hero:hover img {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-section .btn-hero {
        animation: none;
    }
}

/* Botones Ir a OFERTAS e Ir a PRODUCTOS */
.btn-offers-action {
    background-color: #ff2a2a;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
    box-shadow: 0 4px 10px rgba(255, 42, 42, 0.3);
}

.btn-offers-action:hover {
    background-color: #e62222;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 42, 42, 0.5);
}

/* Category Banner */
.category-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.category-item {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s;
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
}

.category-item:nth-child(2) {
    clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}

.category-item:nth-child(3) {
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.category-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

.category-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: background 0.3s;
    z-index: 1;
}

.category-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

.category-item:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Security Banner */
.security-banner {
    background-color: var(--white);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.security-banner h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.security-title-image-left,
.security-title-image-right {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.security-images-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-items: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.security-image-item {
    flex: 0 0 auto;
}

.security-image {
    max-width: 120px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(20%);
}

.security-image:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Brands Banner */
.brands-banner {
    background-color: var(--white);
    padding: 0.8rem 0; /* Reducido de 1.6rem a 0.8rem para menos espacio vertical */
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    width: 100%;
}

.brands-scroll-wrapper {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}
.navbar-logo {
    height: 150px; /* Ajusta la altura según necesites */
    width: auto;
}
.brands-scroll {
    display: inline-flex;
    animation: scrollInfinite 50s linear infinite;
    gap: 2rem; /* Reducido de 3.2rem a 2rem para juntar más las marcas */
    will-change: transform;
    width: max-content;
}

.brands-scroll:hover {
    animation-play-state: paused;
}

.brand-logo {
    max-height: 96px; /* Altura máxima estandarizada (80px + 20%) */
    max-width: 180px; /* Ancho máximo estandarizado (150px + 20%) */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
    cursor: pointer;
    flex-shrink: 0;
    display: block;
}

/* HRO: 15% más grande */
.brand-logo-hro {
    max-height: 110px; /* 96px + 15% = 110.4px */
    max-width: 207px; /* 180px + 15% = 207px */
}

/* motocentric y KOVIX: 20% más grandes */
.brand-logo-motocentric {
    max-height: 115px; /* 96px + 20% = 115.2px */
    max-width: 216px; /* 180px + 20% = 216px */
}

.brand-logo-kovix {
    max-height: 115px; /* 96px + 20% = 115.2px */
    max-width: 216px; /* 180px + 20% = 216px */
}

/* 4RS mantiene tamaño estándar */
.brand-logo-4rs {
    max-height: 96px; /* Mismo tamaño estándar */
    max-width: 180px;
}

/* ICH: 20% más pequeño */
.brand-logo-ich {
    max-height: 77px; /* 96px - 20% = 76.8px */
    max-width: 144px; /* 180px - 20% = 144px */
}

/* SHOT: 20% más grande */
.brand-logo-shot {
    max-height: 115px; /* 96px + 20% = 115.2px */
    max-width: 216px; /* 180px + 20% = 216px */
}

/* SHAFT mantiene tamaño estándar (sin clase especial) */

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

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    height: 110px; /* Altura ajustada para reducir espacio vertical */
    width: 216px; /* Ancho fijo del contenedor (180px + 20%) */
    min-width: 216px; /* Asegurar ancho mínimo */
    flex-shrink: 0;
}

.brand-logo-text {
    font-size: 0.96rem;
    font-weight: bold;
    padding: 0.8rem;
    color: var(--text-color);
    transition: color 0.3s;
    white-space: nowrap;
}

.brand-logo-link:hover .brand-logo-text {
    color: var(--primary-color);
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-33.333% - 1.6rem));
    }
}

/* Product Cards */
/* Product Card Wrapper - 4 tarjetas por fila */
@media (min-width: 992px) {
    .product-card-wrapper.col-lg-3 {
        flex: 0 0 25% !important; /* 4 tarjetas por fila = 25% cada una */
        max-width: 25% !important;
    }
    
    /* Alinear precio y botones en la parte inferior en pantallas grandes */
    .product-card-wrapper .product-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    
    .product-card-wrapper .product-card-body {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        justify-content: space-between !important;
    }
    
    .product-card-wrapper .product-card-link-text {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card-wrapper .product-card-link-text::after {
        content: '' !important;
        flex-grow: 1 !important;
        min-height: 0 !important;
        display: block !important;
    }
    
    .product-card-wrapper .product-card-price {
        margin-top: auto !important;
    }
    
    .product-card-wrapper .product-card-actions {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .product-card-wrapper.col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    
    /* Alinear precio y botones en la parte inferior en pantallas medianas */
    .product-card-wrapper .product-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    
    .product-card-wrapper .product-card-body {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        justify-content: space-between !important;
    }
    
    .product-card-wrapper .product-card-link-text {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card-wrapper .product-card-link-text::after {
        content: '' !important;
        flex-grow: 1 !important;
        min-height: 0 !important;
        display: block !important;
    }
    
    .product-card-wrapper .product-card-price {
        margin-top: auto !important;
    }
    
    .product-card-wrapper .product-card-actions {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 767px) {
    /* Asegurar márgenes iguales en los bordes y separación decente entre tarjetas */
    .container {
        padding-left: 8px !important;
        padding-right: -50px !important;
        max-width: 100% !important;
    }
    
    .container > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .product-card-wrapper.col-sm-6 {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
    
    /* Primera columna (odd): sin padding izquierdo, con padding derecho */
    .product-card-wrapper.col-sm-6:nth-child(odd) {
        padding-left: 0 !important;
        padding-right: 4px !important;
    }
    
    /* Segunda columna (even): con padding izquierdo, sin padding derecho */
    .product-card-wrapper.col-sm-6:nth-child(even) {
        padding-left: 4px !important;
        padding-right: 0 !important;
    }
    
    /* Ajustar tarjetas de Todos los Productos en pantallas pequeñas */
    .product-card-wrapper .product-card-image-container {
        height: 180px !important;
    }
    
    .product-card-wrapper .product-card-img {
        height: 180px !important;
    }
    
    .product-card-wrapper .product-card {
        min-height: auto !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card-wrapper .product-card-body {
        padding: 0.25rem 0.5rem 0.15rem 0.5rem !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card-wrapper .product-card-link-text {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .product-card-wrapper .product-card-link-text::after {
        content: '' !important;
        flex-grow: 1 !important;
        min-height: 0 !important;
        display: block !important;
    }
    
    .product-card-wrapper .product-card-title {
        font-size: 1rem !important;
        min-height: 2rem !important;
        max-height: 2rem !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        line-height: 1 !important;
    }
    
    .product-card-wrapper .product-card-description {
        font-size: 0.42rem !important;
        min-height: 0.9rem !important;
        max-height: 0.9rem !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        line-height: 1 !important;
        padding: 0 !important;
    }
    
    .product-card-wrapper .product-card-price {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    .product-card-wrapper .product-card-actions {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        gap: 0.3rem !important;
    }
    
    .product-card-wrapper .product-card-body .product-card-actions {
        margin-top: 0 !important;
    }
    
    .product-card-wrapper .btn-view-detail {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.85rem !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-card-wrapper .btn-add-cart {
        padding: 0.4rem !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-card-wrapper .price-normal,
    .product-card-wrapper .price-offer {
        font-size: 1.32rem !important; /* Aumentado sutilmente 10% adicional en móvil (1.2rem * 1.1) */
        line-height: 1 !important;
        color: red !important;
    }
    
    .product-card-wrapper .price-original {
        font-size: 1.056rem !important; /* Aumentado sutilmente 10% adicional en móvil (0.96rem * 1.1) */
        line-height: 1 !important;
    }
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

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

.product-card-image-container {
    width: 100%;
    height: 253px; /* Aumentado 15% (de 220px) */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    perspective: 1214px; /* Aumentado 15% (de 1056px) */
    transform-style: preserve-3d;
}

.product-card-img {
    width: 100%;
    height: 253px; /* Aumentado 15% (de 220px) */
    object-fit: contain;
    cursor: pointer;
    background-color: #f8f9fa;
    padding: 0.759rem; /* Aumentado 15% (de 0.66rem) */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: rotateY(90deg) scale(0.8);
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.5s ease-in-out;
    backface-visibility: hidden;
    transform-origin: left center;
}

.product-card-img.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    z-index: 1;
}

.product-card-img.flip-out {
    transform: rotateY(-90deg) scale(0.8);
    opacity: 0;
    z-index: 0;
}

.product-card-img.flip-in {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 2;
}

.product-card-body {
    padding: 0.2rem 0.75rem 0.3rem 0.75rem; /* Padding vertical mínimo */
    flex-grow: 0; /* No crece */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
}

/* Enlace que envuelve texto, descripción y precio en tarjetas de productos */
.product-card-image-wrapper {
    display: block;
    width: 100%;
    position: relative;
}

.product-card-link-text {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.product-card-link-text:hover {
    text-decoration: none;
    color: inherit;
}

.product-card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0; /* Sin margen */
    color: var(--text-color);
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1.05;
    height: auto;
    min-height: 2.1rem;
    max-height: 2.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-description {
    color: #495057;
    font-size: 0.7rem;
    margin-bottom: 0; /* Sin margen */
    margin-top: 0;
    line-height: 1.05;
    height: auto;
    min-height: 1.1rem;
    max-height: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Solo 1 línea */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    flex-shrink: 0;
}

/* Espacio flexible que empuja precio/alerta hacia abajo */
.product-card-link-text::after {
    content: '';
    flex-grow: 0;
    min-height: 0;
    order: 10;
    height: 0;
    display: none;
}

/* Alerta antes del precio, ambos después del espacio flexible */
.stock-alert-small {
    order: 20;
    flex-shrink: 0;
}

.product-card-price {
    order: 30;
    flex-shrink: 0;
    margin-top: 0; /* Sin margen */
    margin-bottom: 0;
    cursor: pointer;
}

/* Cuando hay alerta, el precio está justo después (menos margen) */
.product-card-link-text .stock-alert-small ~ .product-card-price {
    margin-top: 0.05rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.08rem; /* Aumentado 20% (0.9rem * 1.2) */
}

.price-offer {
    color: red;
    font-size: 1.38rem; /* Aumentado 20% (1.15rem * 1.2) */
    font-weight: bold;
    line-height: 1.2;
}

.price-normal {
    font-size: 1.38rem; /* Aumentado 20% (1.15rem * 1.2) */
    font-weight: bold;
    color: red;
    line-height: 1.2;
}

/* Asegurar que los precios sean rojos y más grandes incluso con clases de Bootstrap */
.price-normal.fs-2,
.price-offer.fs-2 {
    font-size: 2.4rem !important; /* Aumentado 20% (2rem * 1.2) */
    color: red !important;
}

.price-normal.fs-5,
.price-offer.fs-5 {
    font-size: 1.44rem !important; /* Aumentado 20% (1.2rem * 1.2) */
    color: red !important;
}

.product-card-actions {
    display: flex;
    gap: 0.4rem; /* Reducido 20% (de 0.5rem) */
    margin-top: 0.15rem; /* Espacio mínimo */
    padding-top: 0;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    cursor: pointer;
}

.product-card-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.product-card-actions > * {
    position: relative;
    z-index: 1;
}

.btn-view-detail {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem; /* Reducido 20% (de 0.5rem 1rem) */
    border-radius: 3px; /* Reducido proporcionalmente */
    font-size: 0.8rem; /* Reducido 20% (asumiendo tamaño base de 1rem) */
    flex: 1;
    transition: background-color 0.3s;
}

.btn-view-detail:hover {
    background-color: #c82333;
    color: var(--white);
}

.btn-add-cart {
    background-color: var(--success-color);
    color: var(--white);
    border: none;
    padding: 0.4rem; /* Reducido 20% (de 0.5rem) */
    border-radius: 3px; /* Reducido proporcionalmente */
    width: 32px; /* Reducido 20% (de 40px) */
    font-size: 0.8rem; /* Reducido 20% */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #218838;
    color: var(--white);
}

/* Offers Section */
.offers-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.offers-section .section-title {
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%; /* Altura completa del contenedor */
    min-height: 422px; /* Aumentado 10% (de 384px) */
    max-width: 85%; /* Aumentado 5% (de 80%) */
    margin: 0 auto; /* Centrar la tarjeta */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.3);
    border-color: var(--primary-color);
}

.offer-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    color: var(--white);
    padding: 0.525rem 1.05rem; /* Reducido 30% (de 0.75rem 1.5rem) */
    border-radius: 18px; /* Reducido proporcionalmente */
    font-size: 0.7rem; /* Reducido 30% (de 1rem) */
    font-weight: 900;
    z-index: 100;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.7px; /* Reducido proporcionalmente */
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4); /* Reducido proporcionalmente */
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Promotional Banner Rotativo */
.promotional-banner-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0.25) 100%);
    padding: 0.5rem 0;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.promotional-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.promotional-banner-slider {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promotional-banner-item {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    height: 100%;
    text-align: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.promotional-banner-item.active {
    transform: translateX(0);
    pointer-events: auto;
}

.promotional-banner-item.slide-out {
    transform: translateX(-100%);
}

.promotional-banner-item.slide-in {
    transform: translateX(100%);
}

.promotional-banner-text {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .promotional-banner-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .promotional-banner-slider {
        height: 36px;
    }
    
    .promotional-banner-section {
        padding: 0.4rem 0;
    }
    
    .promotional-banner-item {
        padding: 0 0.75rem;
    }
}

@media (max-width: 576px) {
    .promotional-banner-text {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        line-height: 1.3;
    }
    
    .promotional-banner-slider {
        height: 34px;
    }
    
    .promotional-banner-section {
        padding: 0.35rem 0;
    }
    
    .promotional-banner-item {
        padding: 0 0.5rem;
    }
    
    .promotional-banner-container {
        padding: 0 0.75rem;
    }
}

/* Service Banner */
.service-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 2rem 0;
    background-color: var(--white);
    padding: 2rem 0;
}

.service-item {
    padding: 2rem;
    text-align: center;
    border-right: 1px solid var(--border-color);
    position: relative;
}

.service-item:last-child {
    border-right: none;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.service-item:last-child::after {
    display: none;
}

.service-main-image {
    max-width: 160px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.service-small-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0.5rem auto;
}

/* Imagen de gratismetro más pequeña */
.service-small-image-metro {
    max-width: 120px; /* 40% más pequeña que 200px (200px * 0.6 = 120px) */
    max-height: 120px;
}

.service-small-image-maps {
    max-width: 78px;
    max-height: 78px;
}

.service-maps-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
    text-decoration: none;
    color: inherit;
}

.service-maps-stack:hover .service-maps-caption {
    text-decoration: underline;
}

.service-maps-caption {
    font-size: 0.72rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Ciclo 2.6s: sacudida más marcada 0.6s (~23.08%), pausa 2s, se repite */
@keyframes service-maps-shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    3.85% {
        transform: translate(-1.75px, 0.9px) rotate(-0.85deg);
    }
    7.7% {
        transform: translate(1.5px, -1.1px) rotate(0.95deg);
    }
    11.55% {
        transform: translate(-1.25px, 0.75px) rotate(-0.65deg);
    }
    15.4% {
        transform: translate(1.05px, -0.75px) rotate(0.55deg);
    }
    19.25% {
        transform: translate(-0.6px, 0.35px) rotate(-0.28deg);
    }
    23.08%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.service-maps-shake {
    animation: service-maps-shake 2.6s linear infinite;
    transform-origin: center center;
    will-change: transform;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Best Sellers Carousel */
.best-sellers-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.best-sellers-section .container {
    max-width: 65%; /* Reducido 30% de 80% (80% * 0.7 = 56%) */
    margin: 0 auto;
}

/* Responsividad: en pantallas medianas y pequeñas, usar más ancho */
@media (max-width: 992px) {
    .best-sellers-section .container {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .best-sellers-section .container {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .best-sellers-section .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

.best-sellers-section .section-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: none;
    position: relative;
    padding-bottom: 0.75rem;
}

.best-sellers-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.best-seller-item-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Hover en el wrapper para evitar conflictos con elementos hijos */
.best-seller-item-wrapper:hover .best-seller-card {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.4), 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}

.best-seller-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 25px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.25), 0 8px 16px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

/* Las flechas del carrusel mantienen su z-index alto */
.best-seller-card .carousel-arrow {
    position: absolute;
    z-index: 10;
}

.best-seller-image-section {
    flex: 1;
    padding: 1rem;
    min-width: 200px;
}

.carousel-main-container {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
}

.carousel-main-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.carousel-main {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    font-size: 2rem;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-arrow.prev-arrow {
    left: 15px;
    transform: translateY(-50%);
}

.carousel-arrow.next-arrow {
    right: 15px;
    left: auto;
    transform: translateY(-50%);
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.15);
    background-color: #c82333;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.carousel-arrow.prev-arrow:hover {
    transform: translateY(-50%) scale(1.15);
}

.carousel-arrow.next-arrow:hover {
    transform: translateY(-50%) scale(1.15);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.prev-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.next-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.carousel-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 3px solid transparent;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.carousel-thumb:hover {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carousel-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.best-seller-info-section {
    flex: 1;
    padding: 1rem;
    border-left: 1px solid var(--border-color);
}

.best-seller-info {
    text-align: left;
}

/* Enlace que envuelve texto, descripción y precio en más vendidos */
.best-seller-link-text {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.best-seller-link-text:hover {
    text-decoration: none;
    color: inherit;
}

.best-seller-info h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
    cursor: pointer;
}

.best-seller-info .product-short-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.best-seller-price {
    margin-bottom: 1rem;
    cursor: pointer;
}

.best-seller-price .price-offer {
    font-size: 1.8rem; /* Aumentado 20% (1.5rem * 1.2) */
    font-weight: bold;
    color: red;
}

.best-seller-price .price-original {
    font-size: 1.2rem; /* Aumentado 20% (1rem * 1.2) */
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.best-seller-price .price-normal {
    font-size: 1.8rem; /* Aumentado 20% (1.5rem * 1.2) */
    font-weight: bold;
    color: red;
}

.best-seller-add-form {
    display: block;
    width: 100%;
    margin: 0;
}

.best-seller-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s;
}

.best-seller-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Botón Ver Más con animación de brillo */
.btn-ver-mas {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #ff6b35);
    border: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-ver-mas::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-ver-mas:hover::before {
    left: 100%;
}

.btn-ver-mas::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: shinePulse 2s ease-in-out infinite;
}

@keyframes shinePulse {
    0%, 100% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    50% {
        width: 300px;
        height: 300px;
        opacity: 0.3;
    }
}

.btn-ver-mas:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

/* Cart Page */
.cart-page-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Ajustar columnas: productos (45%), formularios (55%) */
@media (min-width: 992px) {
    .cart-page-container .row > .col-lg-6:first-child {
        flex: 0 0 45% !important;
        max-width: 45% !important;
    }

    .cart-page-container .row > .col-lg-6:last-child {
        flex: 0 0 55% !important;
        max-width: 55% !important;
    }
}

.cart-items-container {
    min-height: 400px;
    padding-right: 1rem; /* Reducir padding entre contenedores */
}

.cart-item {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    transition: box-shadow 0.3s;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cart-item-image-container {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.cart-item-title-section {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    line-height: 1.3;
}

.cart-item-size {
    font-size: 0.85rem;
}

.cart-item-delete-form {
    flex-shrink: 0;
}

.cart-item-delete-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.85rem;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item-price-section {
    margin-bottom: 0.5rem;
}

.cart-item-details h5 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    min-width: 0;
}

.cart-item-total {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 1rem;
}

.quantity-label {
    font-size: 0.9rem;
    margin-bottom: 0;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.cart-item-actions .quantity-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* No permitir que se comprima */
    white-space: nowrap;
    min-width: fit-content; /* Asegurar ancho mínimo */
}

.cart-item-actions > .ms-auto {
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: fit-content;
}

/* Botón eliminar debajo de la imagen */
.cart-item-image-container form.d-inline {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

.cart-item-image-container form.d-inline .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem; /* Ligeramente más pequeño */
    width: 100%;
    max-width: 100px;
}

/* Controles de cantidad con botones + y - */
.quantity-controls {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quantity-controls:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.quantity-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 36px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
}

.quantity-btn.quantity-increase {
    background-color: #28a745;
}

.quantity-btn.quantity-increase:hover:not(:disabled) {
    background-color: #218838;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-btn.quantity-increase:active:not(:disabled) {
    background-color: #1e7e34;
    transform: scale(0.98);
}

.quantity-btn.quantity-decrease:hover:not(:disabled) {
    background-color: #c82333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-btn.quantity-decrease:active:not(:disabled) {
    background-color: #bd2130;
    transform: scale(0.98);
}

.quantity-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.quantity-input,
input.quantity-input,
.quantity-controls input,
.quantity-controls input[type="number"] {
    width: 60px !important;
    min-width: 60px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    background-color: #f8f9fa !important;
    color: var(--text-color) !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
    line-height: 36px !important;
    vertical-align: middle !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button,
.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.quantity-input:focus,
.quantity-controls input:focus,
.quantity-controls input[type="number"]:focus {
    outline: none !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    background-color: #f8f9fa !important;
}

.quantity-input:hover,
.quantity-controls input:hover {
    border: none !important;
    box-shadow: none !important;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-form label {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cart-summary-container {
    position: sticky;
    top: 20px;
    padding-left: 1rem; /* Reducir padding entre contenedores */
    padding-right: 1rem; /* Agregar padding derecho para ver bordes */
}

.cart-summary {
    background-color: var(--white);
    padding: 1.25rem; /* Reducido de 2rem */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-summary h4 {
    font-size: 1.3rem; /* Reducido de 1.5rem */
    font-weight: bold;
    margin-bottom: 0.75rem; /* Reducido de 1.5rem */
    padding-bottom: 0.5rem; /* Reducido de 1rem */
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0; /* Reducido de 0.5rem */
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    font-size: 1.3rem; /* Reducido de 1.5rem */
    font-weight: bold;
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 0.5rem; /* Reducido de 1rem */
}

/* Reducir espaciado en sección de cupón */
.cart-summary .card {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.cart-summary .card-body {
    padding: 0.75rem !important;
}

.cart-summary .card-body h6 {
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem;
}

/* Checkout Form */
.checkout-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    margin-right: 0; /* Asegurar que se vea el borde derecho */
}

.checkout-section h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.checkout-option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.checkout-option:hover {
    border-color: var(--primary-color);
}

.checkout-option input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: bold;
}

/* Estilos específicos para métodos de envío (similar a métodos de pago) */
.checkout-option-shipping {
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    margin: 0;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.checkout-option-shipping:hover {
    border-color: var(--primary-color);
}

.checkout-option-shipping input[type="radio"] {
    margin: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
    cursor: pointer;
}

.checkout-option-shipping input[type="radio"]:checked + .checkout-shipping-label {
    color: var(--primary-color);
}

.checkout-shipping-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    cursor: pointer;
    flex-grow: 1;
    pointer-events: none;
}

.checkout-option-shipping.selected {
    border-color: var(--primary-color);
    background-color: #fff5f5;
}

.checkout-option-shipping.selected .checkout-shipping-label {
    color: var(--primary-color);
}

.checkout-option-shipping.selected .checkout-shipping-label strong {
    color: var(--primary-color);
}

.shipping-name {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Fallback para navegadores que soportan :has() */
@supports selector(:has(*)) {
    .checkout-option-shipping:has(input[type="radio"]:checked) {
        border-color: var(--primary-color);
        background-color: #fff5f5;
    }
    
    .checkout-option-shipping:has(input[type="radio"]:checked) .checkout-shipping-label {
        color: var(--primary-color);
    }
    
    .checkout-option-shipping:has(input[type="radio"]:checked) .checkout-shipping-label strong {
        color: var(--primary-color);
    }
}

.checkout-option-payment:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: #fff5f5;
}

.checkout-option.selected {
    border-color: var(--primary-color);
    background-color: #fff5f5;
}

/* Estilos específicos para métodos de pago */
.checkout-option-payment {
    min-height: 55px; /* Reducido de 70px */
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem; /* Reducido de 0.75rem 1rem */
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.checkout-option-payment:hover {
    border-color: var(--primary-color);
}

.checkout-option-payment input[type="radio"] {
    margin: 0;
    margin-right: 0.5rem; /* Reducido de 0.75rem */
    flex-shrink: 0;
    cursor: pointer;
}

.checkout-option-payment input[type="radio"]:checked + .checkout-payment-label {
    color: var(--primary-color);
}

.checkout-payment-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    cursor: pointer;
    flex-grow: 1;
    pointer-events: none;
}

.checkout-option-payment.selected {
    border-color: var(--primary-color);
    background-color: #fff5f5;
}

.checkout-option-payment.selected .checkout-payment-label {
    color: var(--primary-color);
    font-weight: bold;
}

/* Fallback para navegadores que soportan :has() */
@supports selector(:has(*)) {
    .checkout-option-payment:has(input[type="radio"]:checked) {
        border-color: var(--primary-color);
        background-color: #fff5f5;
    }
    
    .checkout-option-payment:has(input[type="radio"]:checked) .checkout-payment-label {
        color: var(--primary-color);
        font-weight: bold;
    }
}

.payment-name {
    flex: 1;
    font-size: 0.85rem; /* Reducido de 0.95rem */
    line-height: 1.3; /* Reducido de 1.4 */
}

.payment-image-container {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-left: 0.5rem; /* Reducido de 0.75rem */
}

.payment-image {
    max-width: 80px;
    max-height: 60px;
    width: 80px;
    height: 60px;
    object-fit: contain;
    object-position: center;
}

.payment-image-placeholder {
    width: 80px;
    height: 60px;
    display: block;
}

/* Contenedor de imagen de pago seguro */
.payment-secure-image-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.payment-secure-image {
    max-width: 280px;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

/* Mensaje de MercadoPago */
.mercado-pago-message {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.6rem 0.9rem;
    background-color: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.mercado-pago-message i {
    color: #0066cc;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.mercado-pago-message span {
    flex: 1;
    min-width: 0;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Form Styles */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Select styles for mobile */
.form-select {
    font-size: 1rem;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Mobile responsive for selects */
@media (max-width: 768px) {
    .form-select {
        font-size: 16px; /* Evita zoom en iOS */
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Asegurar que los selects no se desborden */
    #shipping-region,
    #shipping-comuna {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Mejorar el contenedor de campos de envío en móvil */
    [id^="shipping-fields-"] {
        padding: 0.5rem 0;
    }
    
    [id^="shipping-fields-"] .row {
        margin: 0;
    }
    
    [id^="shipping-fields-"] .col-12 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .checkout-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .checkout-section h5 {
        font-size: 1.1rem;
    }
    
    /* Asegurar que los labels no se desborden */
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        display: block;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

/* Como Comprar Section */
.como-comprar-section {
    background-color: var(--dark-bg);
    padding: 2.5rem 0;
    margin-top: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.como-comprar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(33, 37, 41, 0.9) 100%);
    pointer-events: none;
}

.como-comprar-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.section-title i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 10px;
    padding: 0.875rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.5s;
}

.step-card:hover::before {
    left: 100%;
}

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.step-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--white);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.step-number span {
    position: relative;
    z-index: 1;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.step-icon {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.15) rotate(10deg);
    color: #ff6b6b;
}

.step-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.4;
}

.step-note {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    margin-top: 1rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.step-note i {
    color: var(--primary-color);
    font-size: 1rem;
}

.step-note-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-note-link:hover {
    color: #ff6b6b;
    text-decoration: none;
    transform: scale(1.05);
}

/* Channels Container */
.channels-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.channels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 10px;
    padding: 0.875rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

.channel-card:nth-child(1) { animation-delay: 0.1s; }
.channel-card:nth-child(2) { animation-delay: 0.2s; }
.channel-card:nth-child(3) { animation-delay: 0.3s; }

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

.channel-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.channel-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

.channel-link-card:hover {
    color: var(--white);
    text-decoration: none;
}

.channel-icon-wrapper {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.channel-card:hover .channel-icon-wrapper {
    background: rgba(220, 53, 69, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.channel-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.channel-text {
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.channel-card:hover .channel-text {
    color: var(--primary-color);
}

.btn-contact {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

.footer-logo {
    max-width: 240px; /* Aumentado 100% (de 120px a 240px) */
    max-height: 120px; /* Aumentado 100% (de 60px a 120px) */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.footer-logo:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* --- Página de contacto --- */
.contact-page-section {
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.contact-page-hero {
    animation: contactHeroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes contactHeroIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    animation: contactBadgePulse 3s ease-in-out infinite;
}

@keyframes contactBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

.contact-page-title {
    font-weight: 800;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-page-title-icon {
    color: var(--primary-color);
    animation: contactIconFloat 3.2s ease-in-out infinite;
}

@keyframes contactIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.contact-page-lead {
    font-size: 1.05rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.contact-form-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(220, 53, 69, 0.25);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-24px);
    animation: contactFormSlide 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(125deg, rgba(220, 53, 69, 0.5), transparent 40%, transparent 60%, rgba(220, 53, 69, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
    animation: contactBorderGlow 5s ease-in-out infinite;
}

@keyframes contactBorderGlow {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

@keyframes contactFormSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-form-card:hover {
    border-color: rgba(220, 53, 69, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(220, 53, 69, 0.15);
}

.contact-form-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-form-card-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(220, 53, 69, 0.45);
    animation: contactIconPulse 2.2s ease-in-out infinite;
}

@keyframes contactIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.contact-form-label {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-form-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-field-wrap {
    margin-bottom: 1.1rem;
    opacity: 0;
    animation: contactFieldIn 0.55s ease-out forwards;
}

.contact-field-wrap[data-field="1"] { animation-delay: 0.2s; }
.contact-field-wrap[data-field="2"] { animation-delay: 0.3s; }
.contact-field-wrap[data-field="3"] { animation-delay: 0.4s; }
.contact-field-wrap[data-field="4"] { animation-delay: 0.5s; }

@keyframes contactFieldIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-input {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(220, 53, 69, 0.28) !important;
    color: var(--white) !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.9rem !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease !important;
}

.contact-form-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.contact-form-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
    outline: none !important;
    transform: translateY(-1px);
}

.contact-form-input:-webkit-autofill,
.contact-form-input:-webkit-autofill:hover,
.contact-form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--white);
    transition: background-color 9999s ease-out 0s;
    box-shadow: 0 0 0 1000px rgba(25, 28, 34, 0.95) inset !important;
}

.contact-form-alert {
    border-radius: 10px;
    border: 1px solid rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.15);
    color: #f8d7da;
}

.contact-submit-btn {
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 12px !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    box-shadow: 0 6px 22px rgba(220, 53, 69, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(220, 53, 69, 0.55) !important;
}

.contact-submit-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    animation: contactShine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes contactShine {
    0% { left: -100%; }
    40%, 100% { left: 120%; }
}

.contact-page-channels {
    max-width: 100%;
    padding: 1.25rem 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    border: 1px solid rgba(220, 53, 69, 0.15);
    opacity: 0;
    transform: translateX(24px);
    animation: contactChannelsSlide 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

@keyframes contactChannelsSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-page-secondary-btn {
    border-width: 2px;
    color: var(--white) !important;
}

.contact-page-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.contact-page-logo-wrap .contact-page-logo {
    animation: contactLogoFade 1s ease 0.5s both;
}

@keyframes contactLogoFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 991px) {
    .contact-page-channels {
        animation: contactHeroIn 0.75s ease 0.1s both;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .best-seller-card {
        flex-direction: column;
    }
    
    .best-seller-image-section {
        min-width: auto;
        width: 100%;
    }
    
    .best-seller-info-section {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .best-seller-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        margin-top: -50px; /* Empujar la imagen hacia arriba para eliminar espacio en blanco */
        background-size: 120%; /* Alejar más el zoom para mostrar más de la imagen */
    }
    
    .hero-section h1,
    .masked-text {
        font-size: 2.2rem;
        font-weight: 800;
        text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.2), 
                     0 0 5px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.5px;
    }
    
    .hero-section .btn-hero {
        padding: 0;
        margin-top: 1.5rem;
    }
    
    .hero-section .btn-hero img {
        max-width: 280px;
    }
    
    body.navbar-scrolled .hero-section {
        margin-top: -40px; /* Mantener empujado cuando navbar está scrolled */
    }

    .category-banner {
        grid-template-columns: 1fr;
    }

    .category-item {
        clip-path: none !important;
        height: 200px;
    }
    
    .category-item:nth-child(2) {
        clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%) !important; /* Mantener bordes diagonales para "Para la Moto" */
    }
    
    .category-item:nth-child(3) {
        clip-path: none !important; /* Solo Accesorios sin clip-path */
    }
    
    .category-item .overlay span {
        font-size: 1.5rem !important;
    }

    .service-banner {
        grid-template-columns: 1fr;
    }

    .service-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .service-item:last-child {
        border-bottom: none;
    }
    
    .service-icon {
        font-size: 2rem;
    }

    /* Solo aplicar altura a tarjetas que NO son de Todos los Productos */
    .offers-section .product-card,
    .best-sellers-section .product-card {
        margin-bottom: 1rem;
    }
    
    .offers-section .product-card-img,
    .best-sellers-section .product-card-img {
        height: 230px; /* Aumentado 15% (de 200px) */
    }
    
    .offers-section .product-card-image-container,
    .best-sellers-section .product-card-image-container {
        height: 230px; /* Aumentado 15% (de 200px) */
    }
    
    /* Tarjetas de Todos los Productos en pantallas medianas */
    .product-card-wrapper .product-card-image-container {
        height: 200px !important;
    }
    
    .product-card-wrapper .product-card-img {
        height: 200px !important;
    }
    
    .product-card-wrapper .product-card {
        min-height: auto !important;
        max-width: 100% !important;
    }
    
    .product-card-wrapper {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    
    .product-card-wrapper .product-card-body {
        padding: 0.25rem 0.5rem 0.15rem 0.5rem !important;
    }
    
    .product-card-wrapper .product-card-link-text {
        gap: 0 !important;
    }
    
    .product-card-wrapper .product-card-title {
        font-size: 0.9rem !important;
        min-height: 1.8rem !important;
        max-height: 1.8rem !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        line-height: 1 !important;
    }
    
    .product-card-wrapper .product-card-description {
        font-size: 0.7rem !important;
        min-height: 1rem !important;
        max-height: 1rem !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        line-height: 1 !important;
        padding: 0 !important;
    }
    
    .product-card-wrapper .product-card-price {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    .product-card-wrapper .product-card-actions {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        gap: 0.3rem !important;
    }
    
    .product-card-wrapper .product-card-body .product-card-actions {
        margin-top: 0 !important;
    }
    
    .product-card-wrapper .btn-view-detail {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    
    .product-card-wrapper .btn-add-cart {
        padding: 0.35rem !important;
        width: 28px !important;
        font-size: 0.75rem !important;
    }
    
    .product-card-wrapper .price-normal,
    .product-card-wrapper .price-offer {
        font-size: 1.2rem !important; /* Aumentado 20% (1rem * 1.2) */
        line-height: 1 !important;
        color: red !important;
    }
    
    .product-card-wrapper .price-original {
        font-size: 0.96rem !important; /* Aumentado 20% (0.8rem * 1.2) */
        line-height: 1 !important;
    }
    
    .product-card-title {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    .cart-item {
        flex-direction: column;
        padding: 1rem;
    }
    
    .cart-item-image-container {
        width: 100%;
        text-align: center;
    }

    .cart-item-image {
        width: 100%;
        max-width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .cart-item-actions {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .cart-item-actions form {
        width: 100%;
    }

    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
    
    /* En móvil, volver a columnas iguales */
    .cart-page-container .row > .col-lg-6:first-child,
    .cart-page-container .row > .col-lg-6:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .cart-items-container {
        padding-right: 0;
    }
    
    .cart-summary-container {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Best sellers responsive */
    .best-seller-card {
        border-radius: 15px;
    }
    
    .best-seller-image-section {
        padding: 1rem;
    }
    
    .carousel-main-container {
        height: 220px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow.prev-arrow {
        left: 5px;
    }
    
    .carousel-arrow.next-arrow {
        right: 5px;
    }
    
    .carousel-thumb {
        width: 50px;
        height: 50px;
    }
    
    .best-seller-info-section {
        padding: 1.5rem;
    }
    
    .best-seller-info h3 {
        font-size: 1.3rem;
    }
    
    .best-seller-price .price-offer,
    .best-seller-price .price-normal {
        font-size: 1.8rem; /* Aumentado 20% (1.5rem * 1.2) */
        color: red;
    }
    
    .best-seller-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .offers-section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
        height: auto;
        margin-top: -40px; /* Empujar la imagen hacia arriba para eliminar espacio en blanco */
        background-size: 250%; /* Zoom adecuado para mostrar más de la imagen sin que se vea muy pequeña */
        background-position: calc(50% - 80px) calc(50% - 20px); /* Desplazar 80px a la izquierda y subir 20px */
    }

    .hero-section h1,
    .masked-text {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        margin-top: 50px; /* Bajar el texto 30px en móvil */
        padding: 0.75rem 1rem;
        font-weight: 800;
        text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.2), 
                     0 0 5px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.5px;
        line-height: 1.3;
    }
    
    
    .hero-section::after {
        background: rgba(0, 0, 0, 0.35); /* Overlay más oscuro para que el texto resalte mejor */
    }
    
    body.navbar-scrolled .hero-section {
        margin-top: -50px; /* Mantener empujado cuando navbar está scrolled */
    }

    .hero-section .btn-hero {
        padding: 0;
        margin-top: 1.5rem;
    }
    
    .category-item {
        height: 150px;
        clip-path: none !important;
    }
    
    .category-item:nth-child(2) {
        clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%) !important; /* Mantener bordes diagonales para "Para la Moto" */
    }
    
    .category-item:nth-child(3) {
        clip-path: none !important; /* Solo Accesorios sin clip-path */
    }
    
    .category-item .overlay span {
        font-size: 1.8rem !important; /* Aumentado 150% (de 1.2rem a 1.8rem) */
        position: relative;
        display: inline-block;
    }
    
    /* Animación de subrayado secuencial para los textos */
    .category-item .overlay span::after {
        content: '';
        position: absolute;
        bottom: -5px;
        height: 3px;
        background: var(--primary-color);
    }
    
    /* Primera (Equipamiento): subrayado de IZQ a DER */
    .category-item:nth-child(1) .overlay span::after {
        left: 0;
        width: 0;
        animation: underline-left-to-right 4.5s infinite;
        animation-delay: 0s;
    }
    
    /* Segunda (Para la Moto): subrayado de DER a IZQ */
    .category-item:nth-child(2) .overlay span::after {
        right: 0;
        width: 0;
        animation: underline-right-to-left 4.5s infinite;
        animation-delay: 1.5s;
    }
    
    /* Tercera (Accesorios): subrayado de IZQ a DER */
    .category-item:nth-child(3) .overlay span::after {
        left: 0;
        width: 0;
        animation: underline-left-to-right 4.5s infinite;
        animation-delay: 3s;
    }
    
    /* Animación de izquierda a derecha */
    @keyframes underline-left-to-right {
        0%, 18% {
            width: 0;
            left: 0;
        }
        25%, 35% {
            width: 100%;
            left: 0;
        }
        42%, 100% {
            width: 0;
            left: 0;
        }
    }
    
    /* Animación de derecha a izquierda */
    @keyframes underline-right-to-left {
        0%, 18% {
            width: 0;
            right: 0;
        }
        25%, 35% {
            width: 100%;
            right: 0;
        }
        42%, 100% {
            width: 0;
            right: 0;
        }
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .offers-section .section-title,
    .best-sellers-section .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section .btn-hero img {
        max-width: 280px;
        width: 100%;
    }
    
    /* NAVBAR MÓVIL - SIMPLE Y FUNCIONAL */
    @media (max-width: 991.98px) {
        /* Header fijo: Logo | Carrito (centro) | Hamburger */
        .navbar-motomoto {
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: hidden !important;
            overflow-y: visible !important;
            max-height: none !important;
            height: auto !important;
        }
        
        .navbar-motomoto .container {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            overflow-y: visible !important;
            position: relative;
            padding-left: 1rem;
            padding-right: 1rem;
            max-height: none !important;
            height: auto !important;
        }
        
        /* Asegurar que los elementos del header estén en la primera línea */
        .navbar-motomoto .navbar-brand,
        .navbar-motomoto .cart-mobile,
        .navbar-motomoto .navbar-toggler {
            flex-shrink: 0;
        }
        
        .navbar-motomoto .navbar-brand {
            order: 1;
            flex: 0 0 auto;
            flex-shrink: 1;
            max-width: calc(50% - 60px);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .navbar-motomoto .cart-mobile {
            order: 2;
            flex: 0 0 auto;
            flex-shrink: 0;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
        }
        
        .navbar-motomoto .navbar-toggler {
            order: 3;
            flex: 0 0 auto;
            flex-shrink: 0;
            margin-left: auto;
        }
        
        /* Asegurar que el navbar no cambie de tamaño al hacer scroll */
        .navbar-motomoto.scrolled {
            padding: 0.5rem 0 !important;
        }
        
        .navbar-motomoto.scrolled .container {
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        /* Prevenir que el navbar se expanda o desplace elementos */
        .navbar-motomoto.scrolled .navbar-brand {
            font-size: 1.2rem !important;
            max-width: calc(50% - 60px) !important;
        }
        
        .navbar-motomoto.scrolled .cart-mobile {
            left: 50% !important;
            transform: translateX(-50%) !important;
        }
        
        .navbar-motomoto.scrolled .navbar-toggler {
            flex-shrink: 0 !important;
            margin-left: auto !important;
        }
        
        /* Menú colapsable - se despliega completamente empujando el contenido */
        .navbar-motomoto .navbar-collapse {
            position: static !important;
            width: 100% !important;
            flex-basis: 100% !important;
            flex-grow: 0;
            flex-shrink: 0;
            order: 4;
            background: var(--dark-bg);
            margin-top: 0;
            padding: 0;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            max-height: none !important;
            height: auto !important;
            overflow: visible !important;
            display: none;
            transition: none !important; /* Eliminar transición para aparición instantánea */
        }
        
        /* Acelerar la transición de Bootstrap collapse - hacer instantánea */
        .navbar-motomoto .navbar-collapse.collapsing {
            transition: none !important;
            height: auto !important;
            transition-duration: 0s !important;
            transition-property: none !important;
        }
        
        /* Sobrescribir variables de Bootstrap para transición instantánea */
        .navbar-motomoto .navbar-collapse {
            --bs-collapse-transition: none !important;
        }
        
        /* Cuando el menú está abierto */
        .navbar-motomoto .navbar-collapse.show {
            display: block !important;
            transition: none !important;
        }
        
        /* Asegurar que el menú ocupe todo el ancho disponible */
        .navbar-motomoto .navbar-collapse.show {
            width: 100% !important;
            margin-left: -1rem;
            margin-right: -1rem;
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        /* Listas de navegación */
        .navbar-motomoto .navbar-collapse .navbar-nav {
            width: 100%;
            margin: 0 !important;
            flex-direction: column;
        }
        
        /* Items del menú */
        .navbar-motomoto .navbar-collapse .nav-item {
            width: 100%;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        /* Links del menú */
        .navbar-motomoto .navbar-collapse .nav-link {
            padding: 1rem 1.5rem !important;
            color: var(--white) !important;
            font-size: 1rem !important;
            display: block;
            width: 100%;
            text-align: left;
        }
        
        .navbar-motomoto .navbar-collapse .nav-link:hover {
            background: rgba(220, 53, 69, 0.1);
            color: var(--primary-color) !important;
        }
        
        .navbar-motomoto .navbar-collapse .nav-link.active {
            color: var(--primary-color) !important;
            background: rgba(220, 53, 69, 0.15);
            font-weight: 600;
        }
        
        /* Botón Registro */
        .navbar-motomoto .navbar-collapse .nav-link.btn {
            background: var(--primary-color) !important;
            color: var(--white) !important;
            margin: 0.5rem 1.5rem !important;
            padding: 0.75rem 1.5rem !important;
            border-radius: 8px;
            text-align: center;
            font-weight: 600;
            width: calc(100% - 3rem);
            display: block;
        }
        
        .navbar-motomoto .navbar-collapse .nav-link.btn:hover {
            background: #c82333 !important;
        }
        
        /* Ocultar carrito del menú (ya está en header) */
        .navbar-motomoto .navbar-collapse .nav-link[href*="cart"] {
            display: none !important;
        }
        
        /* Ocultar dropdown toggle en móvil */
        .navbar-motomoto .navbar-collapse .nav-item.dropdown {
            display: none !important;
        }
        
        /* Dropdown - Mobile only (ya no se usa, pero por si acaso) */
        .navbar-motomoto .navbar-collapse .dropdown-menu {
            background: rgba(33, 37, 41, 0.98);
            border: none;
            margin-top: 0;
            border-radius: 0;
            position: static !important; /* Static in mobile collapse */
            display: block !important;
        }
        
        .navbar-motomoto .navbar-collapse .dropdown-item {
            color: var(--white) !important;
            padding: 0.75rem 1.5rem;
        }
        
        .navbar-motomoto .navbar-collapse .dropdown-item:hover {
            background: rgba(220, 53, 69, 0.2);
            color: var(--primary-color) !important;
        }
    }
    
    .brand-logo {
        max-height: 60px; /* Aumentado para estandarizar en móvil */
        max-width: 120px; /* Añadido max-width para consistencia */
        height: auto;
        width: auto;
    }
    
    /* Ajustar tamaños específicos en móvil manteniendo proporciones */
    .brand-logo-hro {
        max-height: 69px; /* 60px + 15% */
        max-width: 138px; /* 120px + 15% */
    }
    
    .brand-logo-motocentric,
    .brand-logo-kovix {
        max-height: 72px; /* 60px + 20% */
        max-width: 144px; /* 120px + 20% */
    }
    
    .brand-logo-ich {
        max-height: 48px; /* 60px - 20% = 48px */
        max-width: 96px; /* 120px - 20% = 96px */
    }
    
    .brand-logo-shot {
        max-height: 72px; /* 60px + 20% = 72px */
        max-width: 144px; /* 120px + 20% = 144px */
    }
    
    .brand-logo-4rs {
        max-height: 60px; /* Mantiene tamaño estándar */
        max-width: 120px;
    }
    
    .brand-logo-link {
        height: 75px; /* Ajustado para móvil */
        width: 144px; /* Ajustado para móvil */
        min-width: 144px;
    }
    
    .brands-scroll {
        gap: 2rem;
    }
    
    .security-title-image-left,
    .security-title-image-right {
        max-height: 30px;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .best-seller-card {
        border-radius: 20px;
    }

    .product-card-actions {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: nowrap;
    }

    .btn-view-detail {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
    
    .btn-add-cart {
        flex-shrink: 0;
    }
    
    /* Solo aplicar altura grande a tarjetas que NO son de Todos los Productos */
    .offers-section .product-card-image-container,
    .best-sellers-section .product-card-image-container {
        height: 437px; /* Aumentado 15% (de 380px) */
    }
    
    .offers-section .product-card-img,
    .best-sellers-section .product-card-img {
        height: 437px; /* Aumentado 15% (de 380px) */
    }
    
    /* Tarjetas de Todos los Productos en pantallas muy pequeñas */
    .product-card-wrapper .product-card-image-container {
        height: 200px !important;
    }
    
    .product-card-wrapper .product-card-img {
        height: 200px !important;
    }
    
    .product-card-wrapper .product-card {
        min-height: auto !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card-wrapper .product-card-body {
        padding: 0.15rem 0.5rem 0.1rem 0.5rem !important;
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card-wrapper .product-card-link-text {
        flex-grow: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .product-card-wrapper .product-card-link-text::after {
        content: '' !important;
        flex-grow: 1 !important;
        min-height: 0 !important;
        display: block !important;
    }
    
    /* Asegurar márgenes iguales en los bordes y separación decente entre tarjetas */
    .container {
        padding-left: 8px !important;
        padding-right: 4px !important;
        max-width: 100% !important;
    }
    
    .container > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .product-card-wrapper.col-sm-6 {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
    
    /* Primera columna (odd): sin padding izquierdo, con padding derecho */
    .product-card-wrapper.col-sm-6:nth-child(odd) {
        padding-left: 0 !important;
        padding-right: 4px !important;
    }
    
    /* Segunda columna (even): con padding izquierdo, sin padding derecho */
    .product-card-wrapper.col-sm-6:nth-child(even) {
        padding-left: 4px !important;
        padding-right: 0 !important;
    }
    
    .product-card-wrapper .product-card-title {
        font-size: 0.95rem !important;
        min-height: 1.9rem !important;
        max-height: 1.9rem !important;
        line-height: 1 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    .product-card-wrapper .product-card-description {
        font-size: 0.42rem !important;
        min-height: 0.85rem !important;
        max-height: 0.85rem !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        line-height: 1 !important;
        padding: 0 !important;
    }
    
    .product-card-wrapper .product-card-price {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    .product-card-wrapper .product-card-actions {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        gap: 0.3rem !important;
    }
    
    .product-card-wrapper .product-card-body .product-card-actions {
        margin-top: 0 !important;
    }
    
    .product-card-wrapper .btn-view-detail {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.85rem !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-card-wrapper .btn-add-cart {
        padding: 0.4rem !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .product-card-wrapper .price-normal,
    .product-card-wrapper .price-offer {
        font-size: 1.254rem !important; /* Aumentado sutilmente 10% adicional en móvil (1.14rem * 1.1) */
        line-height: 1 !important;
        color: red !important;
    }
    
    .product-card-wrapper .price-original {
        font-size: 0.99rem !important; /* Aumentado sutilmente 10% adicional en móvil (0.9rem * 1.1) */
        line-height: 1 !important;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
    
    .cart-item-image {
        max-width: 150px;
        height: 150px;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
    
    .checkout-section {
        padding: 1rem;
    }
    
    .checkout-section h5 {
        font-size: 1rem;
    }
    
    /* Ajustes para métodos de pago en móvil */
    .checkout-option-payment {
        min-height: 60px;
        padding: 0.5rem 0.75rem;
        overflow: hidden;
    }
    
    .checkout-option-payment input[type="radio"] {
        margin-right: 0.5rem;
    }
    
    .payment-name {
        font-size: 0.85rem;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
    }
    
    .payment-image-container {
        width: 50px;
        height: 40px;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
    
    .payment-image {
        max-width: 50px;
        max-height: 40px;
        width: 50px;
        height: 40px;
        object-fit: contain;
    }
    
    .payment-image-placeholder {
        width: 50px;
        height: 40px;
    }
    
    .checkout-payment-label {
        gap: 0.25rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .payment-secure-image {
        max-width: 200px;
        max-height: 40px;
    }
    
    .mercado-pago-message {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .best-seller-image-section {
        padding: 0.75rem;
    }
    
    .carousel-main-container {
        height: 180px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .carousel-thumb {
        width: 40px;
        height: 40px;
    }
    
    .best-seller-info-section {
        padding: 1rem;
    }
    
    .best-seller-info h3 {
        font-size: 1.1rem;
    }
    
    .best-seller-price .price-offer,
    .best-seller-price .price-normal {
        font-size: 1.716rem; /* Aumentado sutilmente 10% adicional en móvil (1.56rem * 1.1) */
        color: red;
    }
    
    .best-seller-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .security-banner h3 {
        font-size: 1.2rem;
        flex-wrap: nowrap !important; /* Evitar que las imágenes se envuelvan en móvil */
        gap: 0.5rem !important; /* Reducir espacio entre elementos */
    }
    
    .security-title-image-left,
    .security-title-image-right {
        max-height: 42px !important; /* Aumentado 20% (de 35px a 42px) */
        width: auto;
        flex-shrink: 0; /* Evitar que las imágenes se reduzcan */
        display: inline-block !important;
    }
    
    .security-images-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .security-image {
        max-width: 100px;
        max-height: 70px;
    }
    
    .service-main-image {
        max-width: 200px; /* Aumentado 150% (de 80px a 200px = 80px * 2.5) */
        max-height: 150px; /* Aumentado 150% (de 60px a 150px = 60px * 2.5) */
        margin-bottom: 0.5rem !important; /* Reducir espacio debajo de la imagen */
        margin-top: 0 !important; /* Eliminar espacio arriba */
    }
    
    /* Reducir margen superior de la primera imagen (Envíos) a la mitad */
    .service-item:first-child .service-main-image {
        margin-top: -0.75rem !important; /* Reducir margen superior a la mitad */
    }
    
    .service-small-image {
        max-width: 115px; /* Aumentado 15% (de 100px a 115px) */
        max-height: 34.5px; /* Aumentado 15% (de 30px a 34.5px) */
        margin: 0.25rem auto !important; /* Reducir espacio arriba y abajo */
    }
    
    .service-title {
        font-size: 1.05em !important; /* Aumentado 5% */
    }
    
    .service-text {
        font-size: 0.945rem !important; /* Aumentado 5% (de 0.9rem a 0.945rem) */
    }
    
    .service-item {
        padding: 1.5rem 2rem !important; /* Reducir padding vertical para menos espacio en blanco */
    }
    
    /* Reducir padding superior del primer contenedor (Envíos) a la mitad */
    .service-item:first-child {
        padding-top: 0.75rem !important; /* Reducir padding superior a la mitad (de 1.5rem a 0.75rem) */
    }
    
    .btn-offers-action {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        margin: 0.25rem;
    }
    
    .como-comprar-section {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .section-title i {
        font-size: 1.1rem;
    }
    
    .steps-container {
        gap: 0.5rem;
    }
    
    .step-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1rem;
    }
    
    .step-icon {
        font-size: 1.1rem;
    }
    
    .step-text {
        font-size: 0.85rem;
    }
    
    .step-note {
        padding: 0.6rem 0.875rem;
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }
    
    .channels-container {
        max-width: 100%;
        margin-top: 1.5rem;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .channel-card {
        padding: 0.75rem;
    }
    
    .channel-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .channel-logo {
        width: 28px;
        height: 28px;
    }
    
    .channel-text {
        font-size: 0.75rem;
    }
    
    .btn-contact {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .footer-logo {
        max-width: 200px; /* Aumentado 100% (de 100px a 200px) */
        max-height: 100px; /* Aumentado 100% (de 50px a 100px) */
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .cart-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Filter Bar Compact Responsive */
    .filter-bar-compact {
        padding: 1rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-categories {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: calc((100% - 1rem) / 3);
        min-width: 0;
        flex: 0 0 calc((100% - 1rem) / 3);
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    
    .filter-sort {
        justify-content: center;
        width: 100%;
    }
    
    .sort-select {
        flex: 1;
        min-width: auto;
        width: 100%;
    }
    
    .sort-icon {
        display: none;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

/* Stock Alert */
.stock-alert {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-weight: bold;
}

.stock-alert-small {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.2rem;
    margin-top: 0;
    flex-shrink: 0;
}

/* Sobrescribir el mb-2 de Bootstrap en la alerta dentro de las tarjetas */
.product-card-link-text .stock-alert-small.mb-2 {
    margin-bottom: 0.2rem !important;
    margin-top: 0 !important;
}

/* Stock Alert Badge - Esquina inferior derecha */
.stock-alert-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: 2px solid var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse-alert 2s infinite;
}

.stock-alert-badge i {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: bold;
}

@keyframes pulse-alert {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.6);
    }
}

/* Compact Filter Bar */
.filter-bar-compact {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.1), transparent);
    transition: left 0.4s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(220, 53, 69, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.filter-btn.active i {
    color: var(--white);
}

.filter-btn i {
    color: var(--primary-color);
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: scale(1.15) rotate(5deg);
}

.filter-btn.filter-offer {
    position: relative;
    animation: subtle-shine 2.5s ease-in-out infinite;
}

.filter-btn.filter-offer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2.5s infinite;
    border-radius: 20px;
}

.filter-btn.filter-offer.active {
    animation: pulse-glow 1.5s infinite;
}

.filter-btn.filter-offer.active::after {
    animation: shimmer-active 1.5s infinite;
}

@keyframes subtle-shine {
    0%, 100% {
        box-shadow: 0 3px 12px rgba(220, 53, 69, 0.5);
    }
    50% {
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.7);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes shimmer-active {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 22px rgba(220, 53, 69, 0.6);
    }
    50% {
        box-shadow: 0 7px 28px rgba(220, 53, 69, 0.8);
    }
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.sort-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.sort-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 2px solid rgba(220, 53, 69, 0.2);
    border-radius: 20px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dc3545' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.sort-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.page-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Product Detail - Category Badge & Brand Logo
   ============================================ */

/* Categoría animada y destacada */
.category-badge-animated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.6rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    position: relative;
    overflow: hidden;
    animation: categoryPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.15px;
    text-decoration: none;
    min-width: 70px;
    height: 22px;
}

.category-badge-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: categoryShine 3s infinite;
}

.category-badge-animated i {
    font-size: 0.65rem;
    animation: categoryIconBounce 1.5s ease-in-out infinite;
}

.category-badge-animated:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.6);
    color: var(--white);
    text-decoration: none;
}

@keyframes categoryPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 3px 12px rgba(220, 53, 69, 0.6);
    }
}

@keyframes categoryShine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

@keyframes categoryIconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Marca animada y destacada */
.brand-badge-animated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.6rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: brandPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.15px;
    text-decoration: none;
    min-width: 70px;
    height: 22px;
}

.brand-badge-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: brandShine 3s infinite;
}

.brand-badge-animated i {
    font-size: 0.65rem;
    animation: brandIconBounce 1.5s ease-in-out infinite;
}

.brand-badge-animated:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    color: var(--white);
    text-decoration: none;
}

@keyframes brandPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    }
}

@keyframes brandShine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

@keyframes brandIconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .category-badge-animated {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
        min-width: 65px;
        height: 20px;
    }
    
    .category-badge-animated i {
        font-size: 0.6rem;
    }
    
    .brand-badge-animated {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
        min-width: 65px;
        height: 20px;
    }
    
    .brand-badge-animated i {
        font-size: 0.6rem;
    }
}

/* ============================================
   Product Detail - Related Products
   ============================================ */

/* Contenedor de productos relacionados */
.related-products-section .product-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 !important;
}

/* Body de tarjetas relacionadas - altura fija para consistencia */
.related-product-card-body {
    padding: 0.5rem 0.75rem 0.5rem 0.75rem !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: calc(2.34rem + 0.4rem + 1.32rem + 1rem) !important; /* título + margin + precio + padding */
    height: auto !important;
    margin: 0 !important;
}

/* Título de productos relacionados - altura fija para 2 líneas */
.related-product-title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.4rem 0 !important;
    padding: 0 !important;
    color: var(--text-color) !important;
    cursor: pointer;
    line-height: 1.3 !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.34rem !important; /* 0.9rem * 1.3 * 2 líneas = 2.34rem */
    height: 2.34rem !important;
    max-height: 2.34rem !important;
    transition: color 0.2s ease;
}

.related-product-title:hover {
    color: var(--primary-color);
}

/* Precio de productos relacionados - centrado y clickeable */
.related-product-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.related-product-price:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Ajustar altura de imagen en productos relacionados */
.related-products-section .product-card-image-container {
    height: 200px;
    margin: 0 !important;
    padding: 0 !important;
}

.related-products-section .product-card-img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
}

/* Eliminar cualquier espacio adicional en productos relacionados */
.related-products-section .product-card > a {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

/* Responsive para productos relacionados */
@media (max-width: 768px) {
    /* Centrar productos relacionados en móvil */
    .related-products-section .row {
        justify-content: center !important;
    }
    
    .related-products-section .col-sm-6 {
        display: flex;
        justify-content: center;
    }
    
    .related-products-section .product-card {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Agrandar texto 30%: 0.85rem * 1.3 = 1.105rem */
    .related-product-title {
        font-size: 1.105rem !important;
        -webkit-line-clamp: 2;
        min-height: 2.873rem !important; /* 1.105rem * 1.3 * 2 líneas = 2.873rem */
        height: 2.873rem !important;
        max-height: 2.873rem !important;
    }
    
    /* Agrandar precio 30%: 1rem * 1.3 = 1.3rem */
    .related-product-price {
        font-size: 1.3rem !important;
    }
    
    .related-products-section .product-card-image-container,
    .related-products-section .product-card-img {
        height: 180px;
    }
    
    .related-product-card-body {
        min-height: calc(2.873rem + 0.4rem + 1.56rem + 1rem) !important;
    }
}

/* ============================================
   Product Detail - Image Zoom Effect (Desktop Only)
   ============================================ */

/* Zoom wrapper - solo en escritorio */
@media (min-width: 769px) {
    .product-image-zoom-wrapper {
        position: relative;
        overflow: hidden;
        cursor: zoom-in;
        border-radius: 8px;
        background: #f8f9fa;
        display: inline-block;
        width: 100%;
        max-width: 100%;
    }
    
    .product-image-zoom-wrapper .main-product-image {
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        transform-origin: center center;
        display: block;
        margin: 0 auto;
    }
    
    .product-image-zoom-wrapper.zoom-active {
        cursor: zoom-out;
    }
    
    .product-image-zoom-wrapper.zoom-active .main-product-image {
        transition: transform 0.1s ease-out;
    }
    
    /* Indicador visual sutil al hacer hover */
    .product-image-zoom-wrapper::before {
        content: '';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 10;
        pointer-events: none;
    }
    
    .product-image-zoom-wrapper::after {
        content: '🔍';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 11;
        pointer-events: none;
    }
    
    .product-image-zoom-wrapper:hover::before,
    .product-image-zoom-wrapper:hover::after {
        opacity: 1;
    }
    
    .product-image-zoom-wrapper.zoom-active::before,
    .product-image-zoom-wrapper.zoom-active::after {
        opacity: 0;
    }
}

/* En móvil, desactivar completamente el zoom */
@media (max-width: 768px) {
    .product-image-zoom-wrapper {
        cursor: default;
    }
    
    .product-image-zoom-wrapper .main-product-image {
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================
   Cart - Mobile Responsive & Separator
   ============================================ */

/* Separadora animada entre productos y resumen */
.cart-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem 0;
    position: relative;
}

.separator-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
    animation: separatorPulse 2s ease-in-out infinite;
}

.separator-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.6), transparent);
    animation: separatorShine 3s ease-in-out infinite;
}

.separator-icon {
    margin: 0 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    animation: separatorBounce 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

@keyframes separatorPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

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

@keyframes separatorBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive para carrito en móvil */
@media (max-width: 768px) {
    /* Layout horizontal para items del carrito */
    .cart-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .cart-item-image-container {
        flex-shrink: 0;
        width: 90px;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-item-image {
        width: 90px;
        height: 90px;
        object-fit: cover;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-item-header {
        margin-bottom: 0.5rem;
    }
    
    .cart-item-title {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }
    
    .cart-item-size {
        font-size: 0.8rem;
    }
    
    .cart-item-delete-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .cart-item-info {
        gap: 0.5rem;
    }
    
    .cart-item-price-section {
        margin-bottom: 0.25rem;
    }
    
    .cart-item-price-section .price-normal,
    .cart-item-price-section .price-offer {
        font-size: 0.95rem;
    }
    
    .cart-item-price-section .price-original {
        font-size: 0.8rem;
    }
    
    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .cart-item-actions .quantity-form {
        width: 100%;
        justify-content: space-between;
    }
    
    .quantity-label {
        font-size: 0.85rem;
    }
    
    .cart-item-total {
        text-align: right;
        font-size: 0.95rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .cart-items-container {
        padding-right: 0;
    }
    
    /* Separadora más compacta en móvil */
    .cart-separator {
        margin: 1.5rem 0;
        padding: 0.75rem 0;
    }
    
    .separator-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 0 0.75rem;
    }
}
