/* ── Grid — valores base (Elementor los sobreescribe por breakpoint) ── */
.pgb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
}
.pgb-small-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.pgb-small-grid .pgb-card:last-child {
    grid-column: 1 / -1;
}

/* ── Card ─────────────────────────────────────────────────── */
.pgb-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    min-height: 200px;
}
.pgb-card--large { min-height: 420px; }

.pgb-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
}
.pgb-card:hover::after { transform: scale(1.06); }

/* ── Overlays ─────────────────────────────────────────────── */
.pgb-overlay {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.pgb-overlay--dark   { background: rgba(15,15,15,0.60); opacity: 1; }
.pgb-overlay--orange { background: rgba(194,100,10,0.75); opacity: 0; }

.pgb-card:hover .pgb-overlay--dark   { opacity: 0; }
.pgb-card:hover .pgb-overlay--orange { opacity: 1; }

/* ── Contenido ────────────────────────────────────────────── */
.pgb-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.pgb-icon { margin-bottom: 10px; line-height: 1; }
.pgb-icon i,
.pgb-icon svg {
    color: #fff;
    fill: #fff;
    font-size: 34px;
    width: 34px;
    height: 34px;
    display: block;
}

.pgb-title {
    color: #fff;
    margin: 0;
    line-height: 1.3;
    font-size: 16px;
    font-weight: 700;
}

.pgb-desc {
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    margin: 8px 0 10px;
    font-size: 13px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}
.pgb-card:hover .pgb-desc { max-height: 120px; opacity: 1; }

.pgb-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.pgb-card:hover .pgb-link { opacity: 1; transform: translateY(0); }
.pgb-link span { transition: transform 0.2s ease; }
.pgb-link:hover span { transform: translateX(3px); }

/* ── Línea inferior ───────────────────────────────────────── */
.pgb-line {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e05a00, #c0392b);
    z-index: 3;
    transition: opacity 0.4s ease;
}
.pgb-card:hover .pgb-line { opacity: 0; }
