/* ========== PRODUCTOS DESTACADOS (portada, integrado con el carrusel de categorías) ========== */
/* Tokens compartidos con .cat-showcase: azul #0A66C2, grises #111722/#f6f8fb, radios 14-16px,
   overline caps + título con subrayado degradado. */

.productos-destacados {
    background-color: #ffffff;
    padding: 24px 0 80px;
}

/* ---------- Encabezado de sección ---------- */
.pd-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.pd-overline {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0A66C2;
    margin-bottom: 6px;
}
.pd-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    color: #111722;
    letter-spacing: .3px;
    margin: 0;
}
.pd-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0A66C2, #63B3FF);
    margin-top: 10px;
}
.pd-all {
    font-size: .85rem;
    font-weight: 600;
    color: #37495d;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s;
}
.pd-all:hover { color: #0A66C2; }
.pd-all i { transition: transform .18s; }
.pd-all:hover i { transform: translateX(3px); }

/* ---------- Card de producto ---------- */
.producto-card {
    border-radius: 16px !important;
    border: 1px solid #e6ecf3 !important;
    box-shadow: 0 2px 10px rgba(17, 23, 34, .06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(17, 23, 34, .16) !important;
    border-color: #cdd9e8 !important;
}

.producto-img-wrapper { background: #fff; }
.producto-img-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.producto-card:hover .producto-img-wrapper img {
    transform: scale(1.05);
}

/* Badges como píldoras */
.producto-card .badge {
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .42em .85em;
    box-shadow: 0 4px 10px rgba(17, 23, 34, .18);
}

/* Etiqueta de categoría sobre el título */
.pd-cat-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7c8aa0;
    margin-top: 2px;
}

/* Precios */
.pd-price {
    font-weight: 800;
    font-size: 1.3rem;
    color: #111722;
    letter-spacing: .2px;
}
.producto-card:hover .pd-price { color: #0A66C2; }
.pd-price { transition: color .2s; }
.pd-price-old {
    font-size: .9rem;
    color: #9aa7b8;
    text-decoration: line-through;
}

/* ---------- Botones ---------- */
.producto-card .btn {
    border-radius: 10px !important;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: .5rem .9rem;
    transition: all .18s ease;
}
.pd-btn-primary {
    background: linear-gradient(135deg, #0A66C2 0%, #0D7CE6 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 102, 194, .25);
}
.pd-btn-primary:hover {
    background: linear-gradient(135deg, #0857A6 0%, #0A66C2 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(10, 102, 194, .35);
}
.pd-btn-ghost {
    background: #fff;
    border: 1px solid #d7dfe9;
    color: #37495d;
}
.pd-btn-ghost:hover {
    background: #f6f8fb;
    border-color: #0A66C2;
    color: #0A66C2;
}

/* CTA "Ver todos los productos" */
.pd-cta {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #111722 0%, #24344d 100%);
    border-radius: 999px;
    padding: 15px 34px;
    box-shadow: 0 8px 22px rgba(17, 23, 34, .22);
    transition: all .2s ease;
}
.pd-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 23, 34, .3);
    background: linear-gradient(135deg, #0A66C2 0%, #0D7CE6 100%);
}

/* Ajuste para textos largos */
.producto-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
