/* ================================================================
   ABCRiego — Categorías Destacadas (bento grid)
   Shortcode: [abcriego_categorias_destacadas]
   ================================================================ */

.abcriego-cat-destacadas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    box-sizing: border-box;
}

/* Header */
.acd-header {
    text-align: center;
    margin-bottom: 36px;
}

.acd-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.05em;
    color: #1c2438;
    margin: 0 0 8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.acd-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #5a6275;
    margin: 0;
}

/* ── Bento grid ───────────────────────────────────────────────── */
.acd-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 208px 208px;
    gap: 20px;
}

/* ── Cards ───────────────────────────────────────────────────── */
.acd-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(20, 30, 55, .08);
    text-decoration: none;
    display: block;
    background: #1c2438;
    transition: transform .25s ease, box-shadow .25s ease;
}

.acd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(20, 30, 55, .16);
    text-decoration: none;
}

.acd-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}

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

/* Tarjeta destacada — columnas 1-2, filas 1-2 */
.acd-featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Tarjetas pequeñas — se ubican automáticamente en col 3 y 4, fila 1 */
.acd-bento .acd-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.acd-bento .acd-card:nth-child(3) {
    grid-column: 4;
    grid-row: 1;
}

/* Tarjeta ancha inferior — columnas 3-4, fila 2 */
.acd-wide {
    grid-column: 3 / 5;
    grid-row: 2;
}

/* ── Overlay con degradado ────────────────────────────────────── */
.acd-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 22, 16, .80) 0%,
        rgba(13, 22, 16, .20) 50%,
        rgba(13, 22, 16, .00) 78%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 22px;
    z-index: 1;
}

/* Etiqueta "Destacada" */
.acd-pill {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1C8D58;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 14px;
    border-radius: 999px;
    z-index: 2;
    line-height: 1.6;
}

.acd-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
}

.acd-featured .acd-card-title {
    font-size: 26px;
}

.acd-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, .88);
    margin: 0;
    line-height: 1.5;
}

/* ── Tablet (768-1024) ────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
    .acd-bento {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 180px 180px;
        gap: 14px;
    }
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .abcriego-cat-destacadas {
        padding: 32px 16px 40px;
    }

    .acd-title {
        font-size: 22px;
    }

    .acd-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 140px 140px;
        gap: 12px;
    }

    .acd-featured {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .acd-bento .acd-card:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .acd-bento .acd-card:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .acd-wide {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .acd-featured .acd-card-title {
        font-size: 20px;
    }

    .acd-card-title {
        font-size: 15px;
    }
}
