/* ============================================
   PRODUCTOS RECIENTES - ESTILOS FINALES
   VERSIÓN: Con colores personalizados
   ============================================ */

.prd-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   TÍTULO - Letras negras
   ============================================ */
.prd-titulo-principal {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #47abd1;
    display: inline-block;
    width: 100%;
}

/* ============================================
   GRID: 8 PRODUCTOS EN PC
   ============================================ */
.prd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
}

/* ============================================
   TARJETA DE PRODUCTO
   ============================================ */
.prd-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prd-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(71, 171, 209, 0.15);
}

/* ============================================
   IMAGEN CUADRADA
   ============================================ */
.prd-imagen {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prd-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    min-width: 100%;
    min-height: 100%;
    transform: scale(1.02);
}

.prd-item:hover .prd-imagen img {
    transform: scale(1.08);
}

.prd-sin-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: linear-gradient(135deg, #47abd115 0%, #2d8aaa15 100%);
    color: #47abd1;
}

/* ============================================
   INFORMACIÓN CENTRADA
   ============================================ */
.prd-info {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* TÍTULO DEL PRODUCTO - Letras negras */
.prd-titulo {
    font-size: 17px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

/* ============================================
   DATOS DEL PRODUCTO (CENTRADOS)
   ============================================ */
.prd-datos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}

.prd-dato {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    width: fit-content;
    max-width: 100%;
}

/* ============================================
   PRECIO - Rojo fuerte y fondo blanco
   ============================================ */
.prd-precio {
    background: #ffffff;
    color: #cc0000;
    border: 2px solid #cc0000;
    font-size: 15px;
    font-weight: 700;
    padding: 5px 18px;
    margin-bottom: 2px;
}

.prd-precio .woocommerce-Price-amount {
    font-weight: 700;
}

.prd-precio .woocommerce-Price-currencySymbol {
    font-weight: 700;
}

/* ============================================
   Nº CONCESIONARIO - Amarillo metalizado letras negras
   ============================================ */
.prd-numero-concesionario {
    background: linear-gradient(145deg, #ffd700 0%, #f5c800 50%, #e6b800 100%);
    color: #000000;
    border: 1px solid #d4a800;
    box-shadow: inset 0 1px 3px rgba(255, 215, 0, 0.4);
}

/* ============================================
   CONCESIONARIA - Fondo blanco letras negras
   ============================================ */
.prd-concesionaria {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

/* ============================================
   LOCALIDAD - Fondo blanco letras negras
   ============================================ */
.prd-localidad {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

/* ============================================
   KM - Fondo blanco letras negras
   ============================================ */
.prd-km {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

/* ============================================
   AÑO - Fondo blanco letras negras
   ============================================ */
.prd-anio {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
}

/* ============================================
   BOTÓN - Azul metalizado letras negras
   ============================================ */
.prd-boton {
    display: inline-block;
    background: linear-gradient(145deg, #4a9ed1 0%, #3b8ab8 50%, #2d7aa3 100%);
    color: #000000 !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    border: 1px solid #2a6f94;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.prd-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(71, 171, 209, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    color: #000000 !important;
    background: linear-gradient(145deg, #55ade0 0%, #3b8ab8 50%, #2d7aa3 100%);
}

.prd-boton:visited,
.prd-boton:active,
.prd-boton:focus {
    color: #000000 !important;
}

.prd-sin-productos {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #718096;
    border: 1px solid #e8ecf0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .prd-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .prd-titulo-principal {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .prd-contenedor {
        padding: 15px;
    }
    .prd-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .prd-titulo-principal {
        font-size: 22px;
    }
    .prd-titulo {
        font-size: 15px;
        min-height: 40px;
    }
    .prd-dato {
        font-size: 11px;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .prd-contenedor {
        padding: 10px;
    }
    .prd-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .prd-titulo-principal {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .prd-imagen {
        aspect-ratio: 1 / 1;
    }
    .prd-titulo {
        font-size: 14px;
        min-height: 38px;
        margin-bottom: 8px;
    }
    .prd-info {
        padding: 12px 12px 14px;
    }
    .prd-dato {
        font-size: 10px;
        padding: 3px 8px;
        gap: 3px;
    }
    .prd-datos {
        gap: 4px;
        margin-bottom: 10px;
    }
    .prd-boton {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 360px) {
    .prd-grid {
        gap: 10px;
    }
    .prd-titulo-principal {
        font-size: 18px;
    }
    .prd-titulo {
        font-size: 13px;
        min-height: 34px;
    }
    .prd-dato {
        font-size: 9px;
        padding: 2px 6px;
    }
    .prd-info {
        padding: 10px 10px 12px;
    }
    .prd-boton {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
.prd-item {
    animation: fadeInUp 0.4s ease backwards;
}

.prd-item:nth-child(1) { animation-delay: 0.05s; }
.prd-item:nth-child(2) { animation-delay: 0.1s; }
.prd-item:nth-child(3) { animation-delay: 0.15s; }
.prd-item:nth-child(4) { animation-delay: 0.2s; }
.prd-item:nth-child(5) { animation-delay: 0.25s; }
.prd-item:nth-child(6) { animation-delay: 0.3s; }
.prd-item:nth-child(7) { animation-delay: 0.35s; }
.prd-item:nth-child(8) { animation-delay: 0.4s; }

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