/*
==============================================
ARCHIVO 2: catalogo.css (PÁGINA DE CATÁLOGO)
==============================================
*/

/* Contenedor Principal */
.moto-grid-style {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(204, 0, 0, 0.15);
    border-color: var(--honda-red);
}

.card-img {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    position: relative;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.card-img img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.product-card:hover .card-img img {
    transform: scale(1.05);
}

.card-info {
    padding: 25px;
    text-align: left;
    background: #ffffff;
}

.card-brand {
    font-size: 0.7rem;
    color: var(--honda-red);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 800;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    min-height: 2.5rem;
    line-height: 1.3;
}

.price-container {
    margin: 18px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.5rem;
    color: var(--honda-red-dark);
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
}

.btn-wa-card {
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-wa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-ver {
    width: 100%;
    background: transparent;
    border: 2px solid var(--honda-red-dark);
    color: var(--honda-red-dark);
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-ver:hover {
    background: var(--honda-red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(153, 0, 0, 0.3);
}

/* Layout Principal */
.catalogo-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 35px;
    padding: 50px 0;
}

/* Barra Lateral de Filtros */
.filters-sidebar {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    height: fit-content;
    max-height: 88vh;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.filter-header-main span {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.filter-header-main span i {
    color: var(--honda-red);
    margin-right: 8px;
}

.filters-scroll-wrapper {
    overflow-y: auto;
    padding-right: 12px;
}

.filters-scroll-wrapper::-webkit-scrollbar {
    width: 5px;
}

.filters-scroll-wrapper::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 10px;
}

.filters-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.filters-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--honda-red);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
    padding-left: 5px;
}

.filter-group label:hover {
    color: var(--honda-red-dark);
    padding-left: 8px;
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--honda-red);
    cursor: pointer;
}

.btn-link-clear {
    background: none;
    border: none;
    color: var(--honda-red-dark);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-link-clear:hover {
    color: var(--honda-red-light);
}

/* Rango de Precio */
.price-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.price-fields input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.price-fields input:focus {
    border-color: var(--honda-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.price-fields span {
    color: #666;
    font-weight: 700;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: #e0e0e0;
    outline: none;
    accent-color: var(--honda-red);
    cursor: pointer;
}

/* Colores */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: var(--honda-red);
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
    transform: scale(1.2);
}

.color-dot.active::after {
    transform: translate(-50%, -50%) scale(1);
}

.color-dot.red { background: #E4002B; }
.color-dot.black { background: #000; }
.color-dot.white { background: #fff; border-color: #999; }
.color-dot.blue { background: #0046ad; }

/* Colores en tarjetas */
.card-colors {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    justify-content: flex-start;
    align-items: center;
}

.color-dot-sm {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.color-dot-sm:hover {
    transform: scale(1.3);
    border-color: #666;
}

/* Header del Catálogo */
.catalogo-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.catalogo-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.catalogo-header p {
    color: #666;
    font-size: 1.05rem;
}

.catalogo-header p span {
    font-weight: 700;
    color: var(--honda-red-dark);
}

/* RESPONSIVE MÓVIL */
@media (max-width: 992px) {
    .catalogo-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 35px;
    }
    
    .moto-grid-style {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .catalogo-header h1 {
        font-size: 2.2rem;
    }
    
    .moto-grid-style {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }
    
    .card-img {
        padding: 20px;
        min-height: 160px;
    }
    
    .card-img img {
        height: 150px;
    }
    
    .card-info {
        padding: 20px;
    }

    .filters-sidebar {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .moto-grid-style {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .catalogo-header h1 {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .price-value {
        font-size: 1.3rem;
    }
}