/* ========================================
   ESTILOS PARA VISTA PÚBLICA DE PRODUCTOS
   ======================================== */

.productos-publicos-container {
    min-height: 100vh;
    background: #E5E7EB;
    position: relative;
}

.productos-publicos-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, transparent 35%, rgba(255,255,255,0.1) 36%, rgba(255,255,255,0.1) 39%, transparent 40%),
        radial-gradient(circle at 25% 50%, transparent 35%, rgba(255,255,255,0.1) 36%, rgba(255,255,255,0.1) 39%, transparent 40%),
        radial-gradient(circle at 75% 50%, transparent 35%, rgba(255,255,255,0.1) 36%, rgba(255,255,255,0.1) 39%, transparent 40%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 20px, 30px 20px;
    pointer-events: none;
}

/* ========================================
   FILTRO DE LLANTAS MEJORADO
   ======================================== */

.card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: #667eea;
    font-size: 1.2rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.15s ease-in-out;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* ========================================
   BOTÓN LIMPIAR FILTROS MEJORADO
   ======================================== */
.btn-limpiar-filtros {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    justify-content: center;
    height: calc(2.375rem + 4px);
    position: relative;
    overflow: hidden;
}

.btn-limpiar-filtros::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-limpiar-filtros:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    color: white;
    border: none;
}

.btn-limpiar-filtros:hover::before {
    left: 100%;
}

.btn-limpiar-filtros:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-limpiar-filtros i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-limpiar-filtros:hover i {
    transform: rotate(180deg);
}

/* Grid de filtros mejorado */
.filtros-row {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.2fr 1.2fr 1.8fr;
    gap: 1.5rem;
    align-items: end;
    padding: 0.5rem 0;
}

.filtro-col {
    display: flex;
    flex-direction: column;
    position: relative;
}

.filtro-col::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.filtro-col:focus-within::after {
    width: 100%;
}

.filtro-boton-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.filtro-boton-col .form-label {
    visibility: hidden;
    margin-bottom: 0.75rem;
    height: 1.5rem;
}

/* Responsive para el botón */
@media (max-width: 768px) {
    .filtros-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .filtro-boton-col .form-label {
        display: none;
    }

    .btn-limpiar-filtros {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        margin-top: 0.5rem;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .filtros-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .filtro-col:nth-child(1) {
        grid-column: 1 / 3;
    }

    .filtro-boton-col {
        grid-column: 1 / 3;
        margin-top: 0.5rem;
    }

    .filtro-boton-col .form-label {
        display: none;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: #E5E7EB;
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1486006920555-c77dcf18193c?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(360deg); }
}

    .hero-section h1 {
        font-weight: 700;
        margin-bottom: 1rem;
        font-size: 2.5rem;
        position: relative;
        z-index: 2;
    }

    .hero-section .lead {
        font-size: 1.2rem;
        opacity: 0.9;
        margin-bottom: 2rem;
        position: relative;
        z-index: 2;
    }

    .hero-section .container {
        position: relative;
        z-index: 2;
    }

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem 1.75rem;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-item:hover::before {
    left: 100%;
}

    .stat-item i {
        font-size: 1.5rem;
        color: #ffc107;
    }

    .stat-item span {
        font-weight: 500;
        color: white;
    }

/* ========================================
   FILTROS Y BÚSQUEDA
   ======================================== */
.filters-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .input-group .form-control {
        border: none;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .input-group .btn {
        border: none;
        padding: 1rem 2rem;
        font-weight: 600;
    }

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-select:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

/* ========================================
   CARDS DE PRODUCTOS - DISEÑO PROFESIONAL
   ======================================== */
.producto-card {
    border: none;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.08),
        0 0 0 1px rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
}

    .producto-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 
            0 20px 40px rgba(0,0,0,0.15),
            0 0 0 1px rgba(102, 126, 234, 0.3);
        background: rgba(255, 255, 255, 1);
    }

    .producto-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .producto-card:hover::before {
        transform: scaleX(1);
    }

/* Contenedor de imagen */
.card-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(241, 243, 244, 0.5);
}

.card-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 50%, rgba(102, 126, 234, 0.05) 100%);
    pointer-events: none;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    padding: 20px;
}

.producto-card:hover .card-img-top {
    transform: scale(1.02);
}

/* Overlay de acción */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.8);
}

.producto-card:hover .card-overlay {
    opacity: 1;
    transform: scale(1);
}

.producto-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .btn {
    background: rgba(255, 255, 255, 0.95);
    color: #495057;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .card-overlay .btn:hover {
        background: white;
        color: #dc3545;
        transform: scale(1.08) translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2);
        border-color: rgba(220, 53, 69, 0.2);
    }

/* Cuerpo de la card */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Badge de medida de llantas */
.medida-llanta {
    margin-bottom: 0.75rem;
}

    .medida-llanta .badge {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
        border: 1px solid #dc3545;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
        transition: all 0.3s ease;
    }

    .medida-llanta .badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }

/* Descripción */
.card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 1rem;
    height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Contenedor de precios */
.precios-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-radius: 15px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.precios-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

    .precios-container .row {
        margin: 0;
    }

    .precios-container .col-6 {
        padding: 0 0.5rem;
    }

    .precios-container small {
        font-size: 0.75rem;
        font-weight: 500;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.text-success {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.text-warning {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Precios sin colores distintivos - todos en color neutro */
.precios-container .text-success,
.precios-container .text-warning,
.precio-valor.efectivo,
.precio-valor.tarjeta {
    color: #2c3e50 !important;
}

/* Información de stock */
.stock-info {
    padding: 0.5rem 0;
    border-top: 1px solid #f1f3f4;
}

    .stock-info small {
        font-size: 0.8rem;
        color: #6c757d;
    }

.text-danger {
    color: #e74c3c !important;
}

.text-success {
    color: #27ae60 !important;
}

/* Botón de detalles */
.btn-primary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .btn-primary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
        background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    }

    .btn-primary:hover::before {
        left: 100%;
    }

/* ========================================
   ESTADOS ESPECIALES
   ======================================== */
.border-danger {
    border-color: #f8d7da !important;
    background: #fdf2f2;
}

.border-warning {
    border-color: #ffeaa7 !important;
    background: #fffbf0;
}

/* ========================================
   ESTADOS DE CARGA Y VACÍO
   ======================================== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner-border {
    color: #2c3e50;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

    .empty-state i {
        color: #6c757d;
        margin-bottom: 1rem;
    }

    .empty-state h4 {
        color: #2c3e50;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .empty-state p {
        color: #6c757d;
        font-size: 1.1rem;
    }

/* ========================================
   FOOTER INFO
   ======================================== */
.footer-info {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.footer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bs-primary);
}

    .footer-info h5 {
        color: #2c3e50;
        font-weight: 600;
    }

.contact-buttons .btn-success {
    background: #27ae60;
    border-color: #27ae60;
    font-weight: 500;
}

    .contact-buttons .btn-success:hover {
        background: #219a52;
        border-color: #219a52;
    }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }

        .hero-section .display-4 {
            font-size: 2.2rem;
        }

    .card-image-container {
        height: 180px;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1rem;
        height: auto;
        -webkit-line-clamp: 2;
    }

    .precios-container {
        padding: 0.75rem;
    }

    .text-success, .text-warning,
    .precios-container .text-success,
    .precios-container .text-warning,
    .precio-valor.efectivo,
    .precio-valor.tarjeta {
        font-size: 1rem;
        color: #2c3e50 !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

        .hero-section .display-4 {
            font-size: 1.8rem;
        }

        .hero-section .lead {
            font-size: 1rem;
        }

    .card-image-container {
        height: 160px;
    }

    .card-img-top {
        padding: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .precios-container .col-6 {
        padding: 0 0.25rem;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
.producto-item {
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto de carga escalonada */
.producto-item:nth-child(1) {
    animation-delay: 0.05s;
}

.producto-item:nth-child(2) {
    animation-delay: 0.1s;
}

.producto-item:nth-child(3) {
    animation-delay: 0.15s;
}

.producto-item:nth-child(4) {
    animation-delay: 0.2s;
}

.producto-item:nth-child(5) {
    animation-delay: 0.25s;
}

.producto-item:nth-child(6) {
    animation-delay: 0.3s;
}

.producto-item:nth-child(7) {
    animation-delay: 0.35s;
}

.producto-item:nth-child(8) {
    animation-delay: 0.4s;
}

/* ========================================
   BUSCADOR INTELIGENTE DE LLANTAS
   ======================================== */

.smart-tire-search {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #0d6efd;
    animation: slideDown 0.3s ease-out;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .smart-tire-search.categoria-activa {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        border-left: 4px solid #1976d2;
        box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.suggestions-dropdown {
    position: relative;
    margin-top: 5px;
}

.suggestion-item {
    background: #d1edff;
    border: 1px solid #b3d7ff;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 3px solid #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .smart-tire-search .row {
        margin-bottom: 1rem;
    }

    .smart-tire-search .btn-group {
        flex-direction: column;
    }

        .smart-tire-search .btn-group .btn {
            border-radius: 0.375rem !important;
            margin-bottom: 0.25rem;
        }
}

/* Estados de inputs */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
}

/* Animaciones de transición */
.smart-tire-search input,
.smart-tire-search select {
    transition: all 0.2s ease;
}

    .smart-tire-search input:focus,
    .smart-tire-search select:focus {
        transform: translateY(-1px);
    }

/* ========================================
   PRODUCTOS GRID
   ======================================== */
.producto-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .producto-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

.producto-imagen-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.producto-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen {
    transform: scale(1.1);
}

.medida-llanta {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.producto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-card:hover .producto-overlay {
    opacity: 1;
}

.btn-ver-detalle {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    position: relative;
    overflow: hidden;
}

    .btn-ver-detalle::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .btn-ver-detalle:hover {
        background: linear-gradient(135deg, #bb2d3b 0%, #a02834 100%);
        transform: scale(1.08) translateY(-3px);
        box-shadow: 0 10px 30px rgba(220, 53, 69, 0.5);
        color: white;
    }

    .btn-ver-detalle:hover::before {
        left: 100%;
    }

.producto-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.producto-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-descripcion {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === PRECIOS === */
.producto-precios {
    margin: 15px 0;
}

.precio-principal {
    text-align: center;
    margin-bottom: 10px;
}

.precio-valor-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #e60000;
    margin-bottom: 5px;
}

.precio-condiciones {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    margin-top: 2px;
    display: block;
}

.precio-tarjeta-info {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.texto-tarjeta {
    font-size: 0.8rem;
    color: #17a2b8;
    font-weight: 500;
}


.producto-stock {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.stock-texto {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Estados de stock */
.producto-card.sin-stock {
    opacity: 0.7;
}

    .producto-card.sin-stock .stock-texto {
        color: #dc3545;
        font-weight: 600;
    }

.producto-card.stock-bajo .stock-texto {
    color: #fd7e14;
    font-weight: 600;
}

.producto-card.stock-normal .stock-texto {
    color: #28a745;
}

/* ========================================
   SIN RESULTADOS
   ======================================== */
.sin-resultados {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

    .sin-resultados i {
        font-size: 4rem;
        margin-bottom: 1rem;
        color: #dee2e6;
    }

    .sin-resultados h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: #495057;
    }

    .sin-resultados p {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .stat-item {
        padding: 0.75rem 1rem;
    }

        .stat-item span {
            font-size: 0.9rem;
        }

    .producto-imagen-container {
        height: 200px;
    }

    .producto-info {
        padding: 1rem;
    }

    .producto-titulo {
        font-size: 1.1rem;
    }

    .smart-tire-search .row {
        margin-bottom: 1rem;
    }

    .smart-tire-search .btn-group {
        flex-direction: column;
    }

        .smart-tire-search .btn-group .btn {
            border-radius: 0.375rem !important;
            margin-bottom: 0.25rem;
        }
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease-out;
}

/* Mejoras de accesibilidad */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:focus,
.form-select:focus {
    outline: none;
}

/* Transiciones suaves */
* {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}