/* ============================================
   Cursos Presenciales — Agoralíngua
   Acordeón: .apg-presencial-course
   Grid:     .apg-presencial-card
   ============================================ */

/* ── Acordeón ── */

.apg-presencial-course {
    background: #fff;
    border: 0.5px solid #e0ddd6;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.apg-presencial-course__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 0.5px solid #e0ddd6;
}

.apg-presencial-course__title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.apg-presencial-course__cta a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0f6e56;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #1d9e75;
    border-radius: 20px;
    padding: 6px 18px;
    transition: background 0.15s, color 0.15s;
}

.apg-presencial-course__cta a:hover {
    background: #1d9e75;
    color: #fff;
}

.apg-presencial-course__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.apg-presencial-course__meta-item {
    padding: 12px 20px;
    border-right: 0.5px solid #e0ddd6;
    border-bottom: 0.5px solid #e0ddd6;
}

.apg-presencial-course__meta-item:last-child {
    border-right: none;
}

.apg-presencial-course__meta-item strong {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888780;
    margin-bottom: 4px;
}

.apg-presencial-course__meta-item span {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.45;
}

/* Bloque de notas — acordeón */
.apg-presencial-course__notas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 12px 20px 14px;
    background: #e1f5ee;
    border-top: 0.5px solid #9fe1cb;
}

.apg-presencial-course__nota-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #085041;
    background: #fff;
    border: 0.5px solid #5dcaa5;
    border-radius: 20px;
    padding: 5px 14px;
    line-height: 1.3;
}

/* Estado vacío */
.apg-presencial-course--empty {
    border-style: dashed;
}

.apg-presencial-course__meta--empty .apg-presencial-course__meta-item--empty {
    padding: 20px;
    border: none;
}

.apg-presencial-course__meta--empty strong {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #5f5e5a;
    margin-bottom: 6px;
}

.apg-presencial-course__meta--empty span {
    font-size: 13px;
    color: #888780;
}

/* ── Grid de cards ── */

.apg-presencial-products__intro {
    margin-bottom: 24px;
}

.apg-presencial-products__title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.apg-presencial-products__subtitle {
    font-size: 14px;
    color: #5f5e5a;
    margin: 0;
}

.apg-presencial-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.apg-presencial-card {
    background: #fff;
    border: 0.5px solid #e0ddd6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.apg-presencial-card__head {
    background: #e1f5ee;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 0.5px solid #9fe1cb;
}

.apg-presencial-card__pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #085041;
    border: 0.5px solid #5dcaa5;
    border-radius: 20px;
    padding: 3px 12px;
    background: #fff;
}

.apg-presencial-card__pill--soft {
    background: transparent;
    color: #0f6e56;
}

.apg-presencial-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apg-presencial-card__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apg-presencial-card__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888780;
    margin: 0;
}

.apg-presencial-card__text {
    font-size: 13px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.45;
}

/* Bloque de notas — card */
.apg-presencial-card__notas {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #e1f5ee;
    border: 0.5px solid #9fe1cb;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 4px;
}

.apg-presencial-card__nota {
    font-size: 12px;
    color: #0f6e56;
    line-height: 1.4;
}

.apg-presencial-card__footer {
    padding: 14px 16px;
    border-top: 0.5px solid #e0ddd6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.apg-presencial-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.apg-presencial-card__price .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.apg-presencial-card__price-total {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.apg-presencial-card__price-reserva {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #5a5a5a;
    margin-top: 2px;
}

.apg-presencial-card__button {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #1d9e75;
    border: none;
    border-radius: 20px;
    padding: 9px 20px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.apg-presencial-card__button:hover {
    background: #0f6e56;
    color: #fff;
}

.apg-presencial-products__empty p {
    font-size: 14px;
    color: #5f5e5a;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .apg-presencial-course__meta {
        grid-template-columns: 1fr 1fr;
    }

    .apg-presencial-course__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .apg-presencial-products__grid {
        grid-template-columns: 1fr;
    }
}
