/* ============================================
   MOTO CENTER - Estilos Corporativos
   Colores: #FF4D00 - #FF6A00 (Naranja Racing)
            #000000 (Negro Profundo)
            #FFFFFF (Blanco Puro)
   Tipografía: Montserrat
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --naranja-racing: #FF4D00;
    --naranja-racing-light: #FF6A00;
    --negro-profundo: #000000;
    --blanco-puro: #FFFFFF;
    --gris-oscuro: #1a1a1a;
    --gris-medio: #2a2a2a;
    --gris-claro: #3a3a3a;
    
    --font-primary: 'Montserrat', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 8px rgba(255, 77, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 77, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(255, 77, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 77, 0, 0.5);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--negro-profundo);
    color: var(--blanco-puro);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    color: var(--naranja-racing);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--naranja-racing-light);
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--naranja-racing);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
    filter: drop-shadow(0 0 10px rgba(255, 77, 0, 0.3));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 77, 0, 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--blanco-puro);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--naranja-racing);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--naranja-racing);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--naranja-racing) 0%, var(--naranja-racing-light) 100%);
    color: var(--blanco-puro);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--naranja-racing);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 77, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 106, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1200px;
    padding: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--blanco-puro) 0%, var(--naranja-racing-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--naranja-racing) 0%, var(--naranja-racing-light) 100%);
    color: var(--blanco-puro);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--blanco-puro);
    border: 2px solid var(--naranja-racing);
}

.btn-secondary:hover {
    background: var(--naranja-racing);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--blanco-puro);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px);
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja-racing) 0%, var(--naranja-racing-light) 100%);
    border-radius: 2px;
}

/* ============================================
   GRID DE PRODUCTOS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--gris-oscuro);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--gris-claro);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja-racing) 0%, var(--naranja-racing-light) 100%);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--naranja-racing);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    color: var(--naranja-racing);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-category {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--naranja-racing);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    flex: 1;
}

/* ============================================
   FILTROS
   ============================================ */
.filters-container {
    background: var(--gris-oscuro);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid var(--gris-claro);
}

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

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--naranja-racing);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    padding: 0.8rem;
    background: var(--gris-medio);
    border: 1px solid var(--gris-claro);
    border-radius: 8px;
    color: var(--blanco-puro);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--naranja-racing);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.filter-select option {
    background: var(--gris-medio);
    color: var(--blanco-puro);
}

/* ============================================
   BUSCADOR
   ============================================ */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    background: var(--gris-oscuro);
    border: 2px solid var(--gris-claro);
    border-radius: 50px;
    color: var(--blanco-puro);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--naranja-racing);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--naranja-racing);
    font-size: 1.2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gris-oscuro);
    padding: 3rem 5%;
    border-top: 2px solid var(--naranja-racing);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--naranja-racing);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    display: block;
}

.footer-section a:hover {
    color: var(--naranja-racing);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gris-medio);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--naranja-racing);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gris-claro);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.8);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 5%;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--naranja-racing) 0%, var(--naranja-racing-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--naranja-racing);
    font-size: 1.2rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--naranja-racing);
    color: var(--blanco-puro);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #25D366;
}

.badge-warning {
    background: #FFA500;
}

/* ============================================
   MODAL DE DETALLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--gris-oscuro);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    position: relative;
    border: 2px solid var(--naranja-racing);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--naranja-racing);
    border: none;
    border-radius: 50%;
    color: var(--blanco-puro);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--naranja-racing-light);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--gris-claro);
}

.modal-brand {
    color: var(--naranja-racing);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-category {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--gris-medio);
    margin-bottom: 2rem;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--naranja-racing);
    margin-bottom: 2rem;
    text-align: center;
}

.modal-colors {
    margin-bottom: 2rem;
}

.modal-colors h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--naranja-racing);
}

.color-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-badge {
    padding: 0.5rem 1rem;
    background: var(--gris-medio);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--gris-claro);
}

.modal-specs {
    margin-bottom: 2rem;
}

.modal-specs h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--naranja-racing);
}

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

.spec-detail {
    background: var(--gris-medio);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--naranja-racing);
}

.spec-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blanco-puro);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid var(--gris-claro);
}

.modal-actions .btn {
    flex: 1;
}

/* ============================================
   BOTONES DE FAVORITOS Y COMPARAR
   ============================================ */
.favorite-btn, .compare-btn {
    position: absolute;
    top: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--blanco-puro);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.favorite-btn {
    right: 1rem;
}

.compare-btn {
    right: 3.5rem;
    width: auto;
    padding: 0 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.favorite-btn:hover, .compare-btn:hover {
    background: var(--naranja-racing);
    transform: scale(1.1);
}

.favorite-btn.active {
    background: var(--naranja-racing);
    color: var(--blanco-puro);
}

.compare-btn.active {
    background: #25D366;
}

.product-card {
    position: relative;
}

/* ============================================
   BADGES
   ============================================ */
.badge-new {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #FF4D00, #FF6A00);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.badge-bestseller {
    background: #FFD700;
    color: #000;
}

.badge-offer {
    background: #DC3545;
}

.badge-stock {
    background: #FFA500;
}

/* ============================================
   CALCULADORA Y COMPARADOR
   ============================================ */
.calc-price {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gris-medio);
    border-radius: 12px;
}

.calc-price label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price-display {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--naranja-racing);
}

.calc-results {
    background: var(--gris-medio);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gris-claro);
}

.result-item:last-child {
    border-bottom: none;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gris-oscuro);
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--gris-claro);
}

.compare-table th {
    background: var(--gris-medio);
    font-weight: 700;
}

.compare-table tr:hover {
    background: var(--gris-medio);
}

/* ============================================
   BOTÓN FLOTANTE DE COMPARAR
   ============================================ */
.compare-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, var(--naranja-racing), var(--naranja-racing-light));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 998;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.compare-float:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.compare-count {
    background: white;
    color: var(--naranja-racing);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================================
   ORDENAR Y FILTROS AVANZADOS
   ============================================ */
.sort-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sort-label {
    font-weight: 600;
    color: var(--naranja-racing);
}

.sort-select {
    padding: 0.8rem 1.5rem;
    background: var(--gris-oscuro);
    border: 1px solid var(--gris-claro);
    border-radius: 8px;
    color: var(--blanco-puro);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sort-select:hover {
    border-color: var(--naranja-racing);
}

.results-count {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ============================================
   SLIDER DE PRECIO
   ============================================ */
.price-slider-container {
    margin-top: 1rem;
}

.price-slider {
    width: 100%;
    height: 6px;
    background: var(--gris-claro);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--naranja-racing);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--naranja-racing);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.price-value {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--naranja-racing);
}

/* ============================================
   GALERÍA DE IMÁGENES
   ============================================ */
.image-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--gris-medio);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.gallery-image.active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.gallery-nav:hover {
    background: var(--naranja-racing);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-dot.active {
    background: var(--naranja-racing);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-image, .image-gallery {
        height: 250px;
    }
    
    .modal-price {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .compare-float {
        bottom: 80px;
        right: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .favorite-btn, .compare-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
