/* ===================================================
   PRODUCTOS DESTACADOS – Tabs + Grid estático
   Aplica sólo dentro de .prd-section
   =================================================== */

.prd-section {
    --prd-brand:      #6eaba5;
    --prd-brand-dk:   #5a9490;
    --prd-text:       #1e293b;
    --prd-gray:       #64748b;
    --prd-border:     #e8f0ee;
    --prd-radius:     14px;
    --prd-gap:        20px;
}

/* ─── Navegación tabs ───────────────────────────── */
.prd-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--prd-border);
}

.prd-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: .7rem 1.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
    line-height: 1;
}

.prd-tab-btn.active {
    color: var(--prd-brand);
    border-bottom-color: var(--prd-brand);
}

.prd-tab-btn:hover:not(.active) {
    color: var(--prd-text);
}

/* ─── Grid ──────────────────────────────────────── */
.prd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--prd-gap);
}

.prd-grid--hidden {
    display: none !important;
}

@media (max-width: 991px) {
    .prd-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── Card ──────────────────────────────────────── */
.prd-card {
    background: #ffffff;
    border: 1px solid var(--prd-border);
    border-radius: var(--prd-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.prd-card:hover {
    transform: scale(1.025);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .10);
}

/* ─── Imagen ────────────────────────────────────── */
.prd-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f6f5;
    border-radius: var(--prd-radius) var(--prd-radius) 0 0;
}

.prd-img-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
}

.prd-img-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.prd-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .38s ease;
}

.prd-card:hover .prd-img-wrap img {
    transform: scale(1.05);
}


/* ─── Cuerpo ────────────────────────────────────── */
.prd-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}

.prd-nombre {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--prd-text);
    text-decoration: none;
    line-height: 1.35;
    display: block;
}

.prd-nombre:hover {
    color: var(--prd-brand);
    text-decoration: none;
}

/* COTIZAR → */
.prd-cta {
    font-family: 'Poppins', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    color: var(--prd-brand);
    text-decoration: none;
    text-align: right;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-top: auto;
    display: block;
    padding-top: .4rem;
    transition: color .18s ease, letter-spacing .18s ease;
}

.prd-cta:hover {
    color: var(--prd-brand-dk);
    letter-spacing: .1em;
    text-decoration: none;
}

/* ─── Ocultar precios heredados ─────────────────── */
.prd-section .price {
    display: none !important;
}

/* ─── Responsive mobile ─────────────────────────── */
@media (max-width: 575px) {
    .prd-nav {
        margin-bottom: 1.25rem;
    }
    .prd-tab-btn {
        font-size: .82rem;
        padding: .55rem .9rem;
    }
    .prd-grid {
        gap: 12px;
    }
    .prd-body {
        padding: .6rem .7rem .75rem;
    }
    .prd-nombre {
        font-size: .78rem;
    }
    .prd-cta {
        font-size: .65rem;
    }
}
