/* ══════════════════════════════════════════════════
   ISNL — oferta-page.css
   Page Hero · Oferta listado · Oferta CTA
══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   OFERTA — LISTADO
══════════════════════════════════════════════════ */
.oferta-section { background: var(--light); }

.oferta-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}
.oferta-count { font-size: 14px; color: var(--gray); }
.oferta-count strong { color: var(--navy); font-size: 16px; }
.oferta-clear {
    font-size: 12px;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 12px;
    border: 1px solid rgba(229,47,50,0.3);
    border-radius: 3px;
    transition: all var(--transition);
}
.oferta-clear:hover { background: var(--red); color: var(--white); }

/* Cards grid */
.oferta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.oferta-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.oferta-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(251,213,33,0.25), 0 8px 24px rgba(1,30,49,0.15);
    border-color: var(--yellow);
}

/* Card header */
.oferta-card-header {
    background: var(--navy);
    padding: 24px;
    position: relative;
    overflow: hidden;
    background-size: 105%;
    background-position: center top;
}

/* Overlay oscuro cuando hay imagen de fondo */
.oferta-card-header.has-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(1,30,49,0.65) 0%,
        rgba(1,30,49,0.88) 100%
    );
    z-index: 0;
}

/* Sin imagen: círculo decorativo original */
.oferta-card-header:not(.has-img)::before {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(251,213,33,0.07);
    z-index: 0;
}

.oferta-card-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.oferta-card-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.oferta-card-duracion {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}

/* Card body */
.oferta-card-body { padding: 20px; flex: 1; }
.oferta-bullets {
    list-style: none;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}
.oferta-bullets li {
    font-size: 13px;
    color: #4a5568;
    padding: 5px 0 5px 16px;
    position: relative;
    border-bottom: 1px solid #f8fafc;
}
.oferta-bullets li:last-child { border-bottom: none; }
.oferta-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 13px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--yellow);
}

/* Sedes y resueltos */
.oferta-sedes-block { display: flex; flex-direction: column; gap: 8px; }
.oferta-sedes-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 4px;
}
.oferta-sede-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.oferta-sede-row:last-child { border-bottom: none; padding-bottom: 0; }
.oferta-sede-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    width: fit-content;
}
.oferta-sede-tag.david       { background: rgba(1,30,49,0.07);   color: var(--navy); }
.oferta-sede-tag.santiago    { background: rgba(229,47,50,0.08); color: var(--red); }
.oferta-sede-tag.changuinola { background: rgba(22,163,74,0.08); color: var(--green); }
.oferta-resuelto {
    font-size: 10px;
    color: var(--gray);
    padding-left: 10px;
    font-style: italic;
}

/* Card footer */
.oferta-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e2e8f0;
}
.oferta-btn-plan {
    padding: 13px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.oferta-btn-plan:hover { background: var(--light); }
.oferta-btn-plan.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.oferta-btn-inscribir {
    padding: 13px 14px;
    font-size: 12px;
    font-weight: 700;
    background: var(--navy);
    color: var(--yellow);
    text-decoration: none;
    text-align: center;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.oferta-btn-inscribir:hover { background: var(--yellow); color: var(--navy); }

/* Empty state */
.oferta-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--gray);
}
.oferta-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.oferta-empty p    { font-size: 15px; }


/* ══════════════════════════════════════════════════
   RESPONSIVE — OFERTA
══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .oferta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .oferta-grid      { grid-template-columns: 1fr; }
    .oferta-cta-inner { flex-direction: column; gap: 24px; }
    .oferta-cta-btns  { width: 100%; }
    .oferta-cta-btns a { justify-content: center; }
    .sede-summary     { gap: 8px; flex-wrap: wrap; }
    .sede-pill        { font-size: 12px; padding: 7px 12px; }
}

@media (max-width: 480px) {
    /* Footer de cada card: botones apilados */
    .oferta-card-footer      { grid-template-columns: 1fr; }
    .oferta-btn-plan,
    .oferta-btn-inscribir    { border-right: none; border-bottom: 1px solid #e2e8f0; }
    .oferta-btn-inscribir    { border-bottom: none; }

    .sede-summary { flex-direction: column; align-items: flex-start; }
    .sede-pill    { width: 100%; }
}