/* =========================================
   ESTILOS DE LA PÁGINA DE INICIO (HOME)
   ========================================= */

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?q=80&w=1920&auto=format&fit=crop') center/cover;
    color: white;
    padding: 100px 0;
}

.search-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-card {
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

/* =========================================
   ESTILOS DE LA PÁGINA DE RESULTADOS
   ========================================= */

/* Tarjetas de repuestos */
.repuesto-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.repuesto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

/* Contenedor de la imagen del repuesto */
.repuesto-img-container {
    height: 180px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f3f5;
}

.repuesto-img-container img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
}

/* Etiqueta del código OEM */
.oem-tag {
    background-color: #f1f3f5;
    color: #495057;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Barra lateral de filtros */
.filtros-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* =========================================
   ESTILOS DE DETALLE DE REPUESTO
   ========================================= */

.producto-img-principal {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px solid #e9ecef;
}

.producto-img-principal img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
}

.tabla-comparador tbody tr {
    transition: background-color 0.2s;
    vertical-align: middle;
}

.tabla-comparador tbody tr:hover {
    background-color: #f8f9fa;
}

.mejor-precio-badge {
    background-color: #198754;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proveedor-logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: #adb5bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}