/* Contenedor General - Hereda tipografía del tema */
.ap-benef {
    width: 100%;
    margin: 20px auto;
}

/* BUSCADOR */
.ap-buscador {
    position: relative;
    margin-bottom: 30px;
}
.ap-buscador input {
    width: 100%;
    padding: 15px 20px 15px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}
.ap-buscador input:focus {
    border-color: #003399;
    box-shadow: 0 0 15px rgba(0,51,153,0.08);
}
.ap-buscador svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    fill: #a0aec0;
}

/* FILTROS */
.ap-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}
.ap-filtro-btn {
    background: #f7fafc;
    border: 1.5px solid #edf2f7;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ap-filtro-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}
.ap-filtro-btn.activo {
    background: #003399;
    color: #fff;
    border-color: #003399;
}

/* GRID DINÁMICO */
.ap-benef-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 3), 1fr);
    gap: 25px;
    min-height: 200px;
}

/* TARJETAS */
.ap-benef-card {
    background: #fff;
    border: 1px solid #f0f4f8;
    border-radius: 15px;
    padding: 30px 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ap-benef-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,51,153,0.1);
}
.ap-benef-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    border-radius: 15px 15px 0 0;
    background: #003399; /* Color default */
}

.ap-benef-cat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #003399;
    margin-bottom: 15px;
}

.ap-benef-card h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #1a202c;
}

.ap-benef-excerpt {
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ap-benef-descuento {
    display: inline-block;
    background: #f0fff4;
    color: #276749;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 15px;
}

.ap-benef-link {
    display: block;
    background: #003399;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.ap-benef-link:hover {
    background: #002266;
}

/* ESTADOS */
.ap-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #a0aec0;
    font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ap-benef-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .ap-benef-grid { grid-template-columns: 1fr !important; }
}