/* ===== VARIABLES CSS PERSONALIZADAS ===== */
:root {
    --logic-red: #C8102E;
    --logic-black: #1a1a1a;
    --logic-gray: #f3f4f6;
}

/* ===== TIPOGRAFÍA ===== */
body {
    font-family: 'Inter', sans-serif;
    color: var(--logic-black);
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* ===== COLORES DE MARCA ===== */
.text-logic-red {
    color: var(--logic-red) !important;
}

.text-logic-black {
    color: var(--logic-black) !important;
}

.text-logic-gray {
    color: var(--logic-gray) !important;
}

.bg-logic-red {
    background-color: var(--logic-red) !important;
}

.bg-logic-black {
    background-color: var(--logic-black) !important;
}

.bg-logic-gray {
    background-color: var(--logic-gray) !important;
}

.border-logic-red {
    border-color: var(--logic-red) !important;
}

.border-logic-black {
    border-color: var(--logic-black) !important;
}

/* ===== BOTONES PERSONALIZADOS ===== */
.btn-logic-red {
    background-color: var(--logic-red);
    border-color: var(--logic-red);
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-logic-red:hover {
    background-color: #a00d25;
    border-color: #a00d25;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.3);
}

.btn-logic-black {
    background-color: var(--logic-black);
    border-color: var(--logic-black);
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-logic-black:hover {
    background-color: var(--logic-red);
    border-color: var(--logic-red);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-logic-black {
    border: 2px solid var(--logic-black);
    color: var(--logic-black);
    font-weight: 700;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-logic-black:hover {
    background-color: var(--logic-black);
    color: white;
    transform: translateY(-2px);
}

/* ===== TRANSICIONES ===== */
.transition-all {
    transition: all 0.3s ease;
}

/* ===== NAVBAR ===== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    position: relative;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--logic-red);
}

.navbar-nav .nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: var(--logic-red);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:not(.active):hover::after {
    left: 1rem;
    right: 1rem;
}

.navbar-brand:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

/* ===== DROPDOWN DE USUARIO ===== */
.user-dropdown-toggle {
    padding: 8px 15px !important;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6c757d;
}

.user-dropdown-toggle:hover {
    transform: scale(1.05);
    background: rgba(200, 16, 46, 0.1);
    color: var(--logic-red);
}

.user-dropdown-toggle::after {
    display: none !important;
}

.user-dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: var(--logic-black);
}

.user-dropdown-menu .dropdown-item:hover {
    background: rgba(200, 16, 46, 0.1);
    color: var(--logic-red);
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.user-dropdown-menu .dropdown-divider {
    margin: 5px 0;
    border-color: #e9ecef;
}

/* ===== LOGO ===== */
.logo-img {
    object-fit: contain;
    max-width: 100%;
}

/* Logo badge animado - prevenir pixelado */
.logo-badge {
    will-change: transform;
    backface-visibility: hidden;
}

.logo-img-fixed {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--logic-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a00d25;
}

/* ===== SELECCIÓN DE TEXTO ===== */
::selection {
    background-color: var(--logic-red);
    color: white;
}

::-moz-selection {
    background-color: var(--logic-red);
    color: white;
}

/* ===== CARDS ===== */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--logic-red) !important;
    transform: translateY(-8px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 0 100%;
    transition: all 0.3s ease;
}

.service-card:hover::before {
    background: rgba(200, 16, 46, 0.2);
    transform: scale(1.5);
}

/* ===== HERO SECTION ===== */
.hero-image-container {
    position: relative;
    transform: rotate(3deg);
    transition: transform 0.7s ease;
}

.hero-image-container:hover {
    transform: rotate(0deg);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* ===== ANIMACIONES ===== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== TECH PATTERN BACKGROUND ===== */
.bg-tech-pattern {
    background-color: var(--logic-black);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== FORMULARIOS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--logic-red);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--logic-black);
}

/* ===== UTILIDADES ADICIONALES ===== */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-gradient-red {
    background: linear-gradient(135deg, var(--logic-red) 0%, #a00d25 100%);
}

.shadow-red {
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.3);
}

/* ===== FOOTER ===== */
footer {
    border-top: 3px solid #333;
}

/* ===== BADGES ===== */
.badge-logic-red {
    background-color: var(--logic-red);
    color: white;
}

/* ===== SEPARADORES DIAGONALES ===== */
.diagonal-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.diagonal-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 1rem;
        border-left: 4px solid transparent;
    }

    .navbar-nav .nav-link.active {
        border-left-color: var(--logic-red);
        background-color: rgba(243, 244, 246, 0.5);
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== ALERT CUSTOMIZADO ===== */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ===== HERO CAROUSEL CUSTOMIZADO ===== */
.hero-image-container .carousel-item {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.hero-image-container .carousel-inner {
    border-radius: inherit;
}

.hero-image-container .carousel-control-prev-icon,
.hero-image-container .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: var(--logic-red);
    border-radius: 50%;
    padding: 5px;
}

/* Mantener rotación 3deg del contenedor */
.hero-image-container {
    transform: rotate(3deg);
    transition: transform 0.7s ease;
}

.hero-image-container:hover {
    transform: rotate(0deg);
}

/* Controles ocultos, visibles al hover */
.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 50px;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}

/* Indicadores personalizados */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--logic-red);
    opacity: 0.5;
    border: none;
}

.carousel-indicators .active {
    opacity: 1;
}

.carousel-indicators {
    bottom: 20px;
}

/* Animación suave entre slides */
.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    opacity: 1;
}

.carousel-item-next:not(.carousel-item-start),
.carousel-item-prev:not(.carousel-item-end) {
    opacity: 0;
}

/* ===== APP ROOT CONTAINER ===== */
#app-root {
    position: relative;
    z-index: 1;
}

/* ===== FONDOS SEMITRANSPARENTES PARA MATRIX ===== */
.navbar.bg-white {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.hero-section.bg-white,
section.bg-white {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

section.bg-light,
.bg-light {
    background-color: rgba(248, 249, 250, 0.9) !important;
}

footer.bg-logic-black {
    background-color: rgba(26, 26, 26, 0.98) !important;
}

/* Cards semitransparentes (excepto las oscuras de servicios) */
.card:not(.bg-dark) {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* ===== SINGLE PAGE APP - SCROLL TO TOP BUTTON ===== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.4);
}

/* ===== SPA SECTIONS ===== */
.spa-section {
    scroll-margin-top: 80px; /* Offset para el navbar fijo */
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== RESPONSIVE SCROLL TO TOP ===== */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== CATÁLOGO PROFESIONAL - ESTILO TIENDA ===== */

/* Card de Producto Profesional */
.product-card-pro {
    background: linear-gradient(145deg, #1e1e1e 0%, #2a2a2a 100%);
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-pro:hover {
    transform: translateY(-8px);
    border-color: var(--logic-red);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(200, 16, 46, 0.15);
}

/* Imagen Container */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #151515;
    aspect-ratio: 4/3;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-pro:hover .product-image {
    transform: scale(1.08);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-new {
    background: linear-gradient(135deg, #00c853 0%, #009624 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category {
    background: rgba(200, 16, 46, 0.9);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Overlay de acciones */
.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card-pro:hover .product-actions-overlay {
    transform: translateY(0);
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
}

.action-btn:hover {
    background: white;
    color: var(--logic-black);
    transform: scale(1.1);
}

.action-btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
}

.action-btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: white;
}

/* Contenido */
.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--logic-red);
    font-weight: 600;
    margin-bottom: 6px;
}

.product-brand-model {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.product-brand-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.product-model-tag {
    color: #666;
    font-size: 0.75rem;
}

.product-name {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Características rápidas */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.feature-tag {
    font-size: 0.65rem;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feature-tag i {
    font-size: 0.7rem;
    color: var(--logic-red);
}

/* Sección de precio */
.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.price-current {
    color: var(--logic-red);
    font-size: 1.4rem;
    font-weight: 800;
}

/* Disponibilidad */
.product-availability {
    margin-bottom: 12px;
}

.availability-in-stock {
    color: #00c853;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.availability-out-stock {
    color: #ff5252;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botón consultar */
.btn-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-consult:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Sidebar de Filtros */
.filter-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filter-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    color: #888;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.filter-check {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-check:last-child {
    border-bottom: none;
}

.filter-check .form-check-input {
    background-color: #333;
    border-color: #555;
    cursor: pointer;
}

.filter-check .form-check-input:checked {
    background-color: var(--logic-red);
    border-color: var(--logic-red);
}

.filter-check .form-check-label {
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.filter-count {
    color: #666;
    font-size: 0.75rem;
}

/* Barra superior del catálogo */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.results-info {
    color: #888;
    font-size: 0.9rem;
}

.results-info strong {
    color: white;
}

/* Selector de ordenamiento */
.sort-select {
    background: #1e1e1e;
    border: 1px solid #444;
    color: white;
    padding: 8px 32px 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.sort-select:focus {
    border-color: var(--logic-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
}

/* Toggle vista grid/lista */
.view-toggle {
    display: flex;
    gap: 4px;
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    border-color: #666;
    color: white;
}

.view-toggle-btn.active {
    background: var(--logic-red);
    border-color: var(--logic-red);
    color: white;
}

/* Barra de búsqueda */
.search-box-catalog {
    position: relative;
}

.search-box-catalog input {
    background: #1e1e1e;
    border: 1px solid #444;
    color: white;
    padding: 12px 16px 12px 44px;
    border-radius: 8px;
    width: 100%;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-box-catalog input:focus {
    border-color: var(--logic-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.search-box-catalog input::placeholder {
    color: #666;
}

.search-box-catalog .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
}

/* Vista Lista */
.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.products-grid.list-view .product-item {
    width: 100%;
    max-width: 100%;
    flex: none;
}

.products-grid.list-view .product-card-pro {
    flex-direction: row;
    max-height: 200px;
}

.products-grid.list-view .product-image-wrapper {
    width: 220px;
    min-width: 220px;
    aspect-ratio: auto;
    height: 100%;
}

.products-grid.list-view .product-content {
    padding: 16px 24px;
}

.products-grid.list-view .product-name {
    font-size: 1.1rem;
    -webkit-line-clamp: 1;
}

.products-grid.list-view .product-description {
    -webkit-line-clamp: 2;
}

/* Breadcrumb oscuro */
.breadcrumb-dark {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-dark .breadcrumb-item a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-dark .breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-dark .breadcrumb-item.active {
    color: var(--logic-red);
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: #555;
    content: "›";
}

/* Animación de productos */
.product-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item.filtering-out {
    opacity: 0;
    transform: scale(0.95);
}

.product-item.hidden {
    display: none !important;
}

/* Mobile Filtros Button */
.btn-mobile-filters {
    background: #1e1e1e;
    border: 1px solid #444;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-weight: 500;
}

.btn-mobile-filters:hover {
    background: #2a2a2a;
    border-color: var(--logic-red);
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .products-grid.list-view .product-card-pro {
        flex-direction: column;
        max-height: none;
    }

    .products-grid.list-view .product-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .filter-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 576px) {
    .product-content {
        padding: 16px;
    }

    .price-current {
        font-size: 1.2rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-toolbar > * {
        width: 100%;
    }

    .view-toggle {
        display: none;
    }
}

/* ========================================
   CARRITO DE COMPRAS Y FAVORITOS
   ======================================== */

/* === BADGE DEL CARRITO EN HEADER === */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    background: var(--logic-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(200, 16, 46, 0.4);
    animation: cartBadgePop 0.3s ease;
}

@keyframes cartBadgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* === BOTÓN FAVORITO EN CARDS === */
.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.btn-favorite:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-favorite i {
    font-size: 1rem;
    color: #999;
    transition: all 0.2s ease;
}

.btn-favorite.active i,
.btn-favorite:hover i {
    color: var(--logic-red);
}

.btn-favorite.active i {
    animation: heartPop 0.3s ease;
}

/* Botón favorito grande (para página de producto) */
.btn-favorite-lg {
    position: relative;
    width: 48px;
    height: 48px;
}

.btn-favorite-lg i {
    font-size: 1.3rem;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* === BOTÓN AGREGAR AL CARRITO === */
.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--logic-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-add-cart:active {
    transform: translateY(0);
}

.btn-add-cart i {
    font-size: 0.9rem;
}

/* Botón pequeño para cards compactas */
.btn-add-cart-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* === TOGGLE DE FAVORITOS EN CATÁLOGO === */
.favorites-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-toggle-wrapper .form-check-input {
    width: 40px;
    height: 22px;
    cursor: pointer;
    background-color: #ccc;
    border: none;
}

.favorites-toggle-wrapper .form-check-input:checked {
    background-color: var(--logic-red);
}

.favorites-toggle-wrapper .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.25);
}

.favorites-toggle-wrapper label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.favorites-toggle-wrapper label i {
    color: var(--logic-red);
}

/* === TOAST DE NOTIFICACIÓN ELEGANTE === */
.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 10000;
    opacity: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cart-toast-warning {
    background: rgba(255, 152, 0, 0.95);
    color: #1a1a1a;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* === PÁGINA DEL CARRITO === */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h3 {
    color: #555;
    margin-bottom: 10px;
}

.cart-empty p {
    color: #888;
    margin-bottom: 20px;
}

/* Items del carrito */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 1rem;
}

.cart-item-price {
    color: var(--logic-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

/* Controles de cantidad */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #555;
    transition: all 0.15s ease;
}

.quantity-btn:hover {
    background: #eee;
    color: var(--logic-red);
}

.quantity-btn:active {
    background: #ddd;
}

.quantity-value {
    width: 50px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #333;
    background: white;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* Botón eliminar */
.btn-remove-item {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-remove-item:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Resumen del carrito */
.cart-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.cart-summary h4 {
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.cart-summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    padding-top: 12px;
    border-top: 2px solid #ddd;
    margin-top: 12px;
}

.cart-summary-row.total .amount {
    color: var(--logic-red);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-checkout {
    background: #25D366;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-checkout:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-clear-cart {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-clear-cart:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* === RESPONSIVE CARRITO === */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .cart-item-actions {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .cart-summary {
        position: static;
    }

    .cart-toast {
        left: 20px;
        right: 20px;
        transform: translateX(0) translateY(20px);
        bottom: 20px;
        border-radius: 12px;
        text-align: center;
    }

    .cart-toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* ========================================
   SISTEMA DE OFERTAS / DESCUENTOS
   ======================================== */

/* === BADGE DE OFERTA EN CATÁLOGO === */
.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

/* === PRECIOS EN CATÁLOGO === */
.product-price-original {
    color: #888;
    font-size: 0.85rem;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-price-offer {
    color: #dc3545 !important;
    font-weight: 800;
}

/* === PRECIO DETALLE DEL PRODUCTO === */
.product-detail-price-original {
    font-size: 1.3rem;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

/* === BADGE MINI (Productos Relacionados) === */
.offer-badge-mini {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 5;
}

.product-price-original-mini {
    color: #999;
    font-size: 0.8rem;
    text-decoration: line-through;
    margin: 0 0 2px 0;
}

/* === PRECIO EN CARRITO === */
.cart-item-price-original {
    color: #999;
    font-size: 0.85rem;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}
