/* Página pública /ofertaacademica/<slug>/ (detalle de curso/programa).
   Diseño robusto: la página nunca debe verse vacía aunque el curso no tenga
   descripción, plan de estudio ni dirigido-a cargados. Paleta corporativa
   (#0A509B primario, #F59C1A CTA ámbar) coherente con inscripcion.css. */

.det-wrap { color: #334155; }

/* ----- Hero / encabezado ----- */
.det-hero {
    background: linear-gradient(135deg, #0A509B 0%, #1574d6 100%);
    border-radius: 16px;
    padding: 28px 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(10, 80, 155, .18);
    margin-bottom: 26px;
}
.det-hero h1 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .5rem;
}
.det-hero-lead {
    color: #DBEAFE;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 760px;
}
.det-meta { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: 1rem; }
.det-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .78rem;
    color: #fff;
    line-height: 1.3;
    backdrop-filter: blur(2px);
}
.det-meta-item i { font-size: .78rem; opacity: .9; }
.det-meta-item b { font-weight: 700; }

/* ----- Tarjetas de contenido ----- */
.det-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.det-card-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEF2F7;
}
.det-card-title i {
    color: #0A509B;
    background: #EFF6FF;
    width: 34px; height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: .95rem;
}
.det-prose { font-size: .95rem; line-height: 1.65; color: #334155; }
.det-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.det-prose h1, .det-prose h2, .det-prose h3, .det-prose h4 { color: #0F172A; }

/* Listas con check */
.det-list { list-style: none; margin: 0; padding: 0; }
.det-list li {
    position: relative;
    padding: 7px 0 7px 30px;
    font-size: .92rem;
    color: #334155;
    border-bottom: 1px dashed #EEF2F7;
}
.det-list li:last-child { border-bottom: none; }
.det-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 0; top: 8px;
    color: #16A34A;
    font-size: .82rem;
}

/* ----- Estado vacío ----- */
.det-empty {
    text-align: center;
    padding: 18px 10px 6px;
}
.det-empty i.det-empty-ico {
    font-size: 2.4rem;
    color: #94A3B8;
    margin-bottom: .5rem;
}
.det-empty p { color: #64748B; font-size: .95rem; margin: 0 auto; max-width: 460px; }

/* Datos clave en grid (relleno cuando falta contenido) */
.det-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.det-fact {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}
.det-fact i { color: #0A509B; font-size: 1.05rem; }
.det-fact-val { display: block; font-size: 1.15rem; font-weight: 800; color: #0F172A; margin-top: 6px; }
.det-fact-lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #64748B; margin-top: 2px; }

/* ----- Docentes ----- */
.det-docentes { display: flex; flex-wrap: wrap; gap: 12px; }
.det-docente {
    display: flex; align-items: center; gap: .65rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    padding: 6px 16px 6px 6px;
}
.det-docente-ava {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #0A509B;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
    flex-shrink: 0;
}
.det-docente b { color: #0F172A; font-size: .9rem; }
.det-docente small { display: block; color: #64748B; font-size: .76rem; }

/* ----- Plan de pagos / cuotas ----- */
.det-pago-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.det-pago-box {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    background: #F8FAFC;
}
.det-pago-box .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #64748B; }
.det-pago-box .val { display: block; font-size: 1.5rem; font-weight: 800; color: #0A509B; margin-top: 4px; }
.det-pago-box.promo .val { color: #16A34A; }
.det-pago-box del { color: #94A3B8; font-size: .9rem; }

.det-plan {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 14px;
}
.det-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: #EFF6FF;
    border-bottom: 1px solid #DBEAFE;
    padding: 11px 16px;
    flex-wrap: wrap;
}
.det-plan-head b { color: #0F172A; font-size: .98rem; }
.det-plan-head .badge-cuotas {
    background: #0A509B; color: #fff;
    border-radius: 999px; padding: .2rem .65rem;
    font-size: .74rem; font-weight: 600;
}
.det-plan-head .plan-total { color: #0A509B; font-weight: 800; }
.det-cuotas-lista { list-style: none; margin: 0; padding: 6px 16px 10px; }
.det-cuotas-lista li {
    display: flex; align-items: center; gap: .65rem;
    padding: 8px 0;
    border-bottom: 1px dashed #E2E8F0;
}
.det-cuotas-lista li:last-child { border-bottom: none; }
.det-cuota-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: #0A509B; color: #fff; font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.det-cuota-info { flex: 1; min-width: 0; font-size: .85rem; }
.det-cuota-info b { color: #0F172A; }
.det-cuota-val { color: #0F172A; font-weight: 700; }
.det-pago-nota { font-size: .82rem; color: #64748B; margin: 14px 0 0; }
.det-pago-nota i { color: #0A509B; }

/* ----- Barra lateral ----- */
.det-side { position: sticky; top: 90px; }
.det-side-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .07);
}
.det-side-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #EEF2F7; }
.det-side-body { padding: 18px 20px 22px; }
.det-side-price { text-align: center; margin-bottom: 14px; }
.det-side-price .lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: #64748B; }
.det-side-price .val { display: block; font-size: 2rem; font-weight: 800; color: #0A509B; line-height: 1.1; }
.det-side-price del { color: #94A3B8; font-size: 1rem; }
.det-side-price .promo-now { color: #16A34A; font-weight: 700; font-size: .9rem; }

.det-btn {
    display: flex; align-items: center; justify-content: center;
    gap: .5rem;
    width: 100%;
    border: none;
    border-radius: 11px;
    padding: 13px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .12s, box-shadow .12s, background .15s;
    margin-bottom: 10px;
}
.det-btn-primary {
    background: linear-gradient(135deg, #F59C1A 0%, #f0820f 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 156, 26, .28);
}
.det-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245, 156, 26, .35); }
.det-btn-wa { background: #25D366; color: #fff; }
.det-btn-wa:hover { color: #fff; background: #1ebe5a; transform: translateY(-1px); }

.det-features { list-style: none; margin: 16px 0 0; padding: 0; }
.det-features li {
    display: flex; align-items: center; gap: .6rem;
    padding: 11px 0;
    border-bottom: 1px solid #EEF2F7;
    font-size: .9rem;
}
.det-features li:last-child { border-bottom: none; }
.det-features li i { color: #0A509B; width: 20px; text-align: center; }
.det-features li .label { color: #64748B; flex: 1; }
.det-features li .value { color: #0F172A; font-weight: 700; }
.det-cupos-ok { color: #16A34A !important; }
.det-cupos-low { color: #DC2626 !important; }

.det-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.det-doc-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600; font-size: .88rem;
    text-decoration: none;
    border: 1px solid transparent;
}
.det-doc-cron { background: #FEF3DD; color: #92590B; border-color: #F2D58F; }
.det-doc-cron:hover { color: #92590B; background: #fde9c4; }
.det-doc-prog { background: #EFF6FF; color: #0A509B; border-color: #BFDBFE; }
.det-doc-prog:hover { color: #0A509B; background: #e0eefe; }

@media (max-width: 991px) {
    .det-side { position: static; margin-top: 8px; }
    .det-hero { padding: 22px 20px; }
    .det-hero h1 { font-size: 1.4rem; }
}
