/* ============================================================
   Academia Biblia Adentro — sistema visual
   ============================================================ */
:root {
    --ac-terracota: #C26A3D;
    --ac-terracota-oscuro: #a8562e;
    --ac-azul: #1F3A5F;
    --ac-azul-claro: #2b4f7d;
    --ac-arena: #E7D8B9;
    --ac-oro: #D4AF37;
    --ac-papiro: #f9f7f3;
    --ac-tinta: #2c2c2c;
    --ac-gris: #6b7280;
    --ac-linea: #e8e2d6;
    --ac-verde: #1E6B2A;
    --ac-verde-fondo: #D8EFD9;
}

.ac-body {
    margin: 0;
    font-family: 'Source Sans Pro', 'Inter', Arial, sans-serif;
    background: var(--ac-papiro);
    color: var(--ac-tinta);
    line-height: 1.65;
}
.ac-body h1, .ac-body h2, .ac-body h3, .ac-body h4 {
    font-family: 'Merriweather', Georgia, serif;
    color: var(--ac-azul);
}

/* ------------------------------- barra superior */
.ac-nav {
    background: var(--ac-azul);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 3px solid var(--ac-terracota);
}
.ac-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.ac-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #fff;
}
.ac-brand:hover { color: #fff; }
.ac-mark {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(145deg, var(--ac-arena), #c4b59a);
    display: flex; align-items: center; justify-content: center;
    color: var(--ac-azul); font-family: 'Merriweather', serif;
    font-size: 1.15rem; font-weight: 900;
}
.ac-brand-text strong {
    display: block; font-family: 'Merriweather', serif; font-size: 1rem;
    color: var(--ac-arena); line-height: 1.1;
}
.ac-brand-text small {
    display: block; font-size: .74rem; letter-spacing: .22em;
    text-transform: uppercase; color: rgba(255,255,255,.75);
}
.ac-links {
    display: flex; gap: 18px; align-items: center;
    list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.ac-links a {
    color: rgba(255,255,255,.86); text-decoration: none;
    font-size: .92rem; font-weight: 600; padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.ac-links a:hover, .ac-links a.is-active {
    color: #fff; border-bottom-color: var(--ac-terracota);
}
.ac-nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.ac-btn {
    display: inline-block; border: 0; border-radius: 40px; cursor: pointer;
    padding: 10px 22px; font-weight: 700; font-size: .9rem;
    text-decoration: none; transition: all .2s; line-height: 1.2;
}
.ac-btn-primary { background: var(--ac-terracota); color: #fff; }
.ac-btn-primary:hover { background: var(--ac-terracota-oscuro); color: #fff; }
.ac-btn-ghost {
    border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent;
}
.ac-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.ac-btn-outline {
    border: 1px solid var(--ac-azul); color: var(--ac-azul); background: transparent;
}
.ac-btn-outline:hover { background: var(--ac-azul); color: #fff; }
.ac-btn-sm { padding: 7px 16px; font-size: .82rem; }

.ac-sitenote {
    background: var(--ac-arena); border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .82rem; color: var(--ac-azul);
}
.ac-sitenote-inner {
    max-width: 1200px; margin: 0 auto; padding: 7px 20px;
    display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.ac-sitenote a { color: var(--ac-azul); text-decoration: none; font-weight: 600; }
.ac-sitenote a:hover { color: var(--ac-terracota); }
.ac-sitenote .sep { margin-left: auto; }

/* ------------------------------- pie */
.ac-footer {
    background: #16293f; color: rgba(255,255,255,.72); padding: 50px 0 26px;
    margin-top: 0; font-size: .9rem;
}
.ac-footer h5 {
    color: var(--ac-arena); font-family: 'Merriweather', serif;
    font-size: .95rem; margin-bottom: 14px;
}
.ac-footer a { color: rgba(255,255,255,.72); text-decoration: none; display: block; padding: 3px 0; }
.ac-footer a:hover { color: var(--ac-terracota); }
.ac-footer .ac-legal {
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px;
    font-size: .78rem; color: rgba(255,255,255,.55);
}

/* ------------------------------- utilidades de página */
.ac-page-head {
    background: linear-gradient(135deg, var(--ac-azul), #16293f);
    color: #fff; padding: 64px 0 50px;
}
.ac-eyebrow {
    color: var(--ac-oro); letter-spacing: .26em; font-size: .74rem;
    text-transform: uppercase; font-weight: 700;
}
.ac-page-head h1 {
    color: #fff; font-size: 2.3rem; margin: 12px 0 14px; font-weight: 900;
}
.ac-page-head p { color: rgba(255,255,255,.82); max-width: 720px; margin: 0; }
.ac-meta-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; color: var(--ac-arena); font-size: .92rem; }
.ac-meta-row i { color: var(--ac-oro); margin-right: 6px; }

.ac-section { padding: 64px 0; }
.ac-section-alt { background: #fff; }
.ac-section h2 { font-size: 1.85rem; font-weight: 900; margin-bottom: 10px; }
.ac-sub { color: var(--ac-gris); max-width: 700px; }
.ac-kicker {
    color: var(--ac-terracota); font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; font-size: .74rem;
}

/* ------------------------------- tarjetas */
.ac-card {
    background: #fff; border: 1px solid var(--ac-linea); border-radius: 18px;
    padding: 28px; height: 100%; border-top: 4px solid var(--ac-terracota);
    box-shadow: 0 10px 30px rgba(31,58,95,.06); transition: all .25s;
}
.ac-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,58,95,.12); }
.ac-card h3 { font-size: 1.16rem; line-height: 1.3; margin: 14px 0 10px; }
.ac-card .ac-meta { font-size: .82rem; color: var(--ac-gris); margin: 10px 0 14px; }
.ac-card .ac-meta span { margin-right: 14px; }
.ac-card .ac-meta i { color: var(--ac-terracota); margin-right: 4px; }
.ac-card p { color: #4b5563; font-size: .93rem; }
.ac-badge {
    display: inline-block; font-size: .69rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; padding: 4px 11px; border-radius: 20px;
    background: #F4E3D7; color: #8A3B12;
}
.ac-badge-free { background: var(--ac-verde-fondo); color: var(--ac-verde); }
.ac-link {
    color: var(--ac-azul); font-weight: 700; text-decoration: none;
    font-size: .9rem; border-bottom: 1px solid var(--ac-terracota); padding-bottom: 2px;
}
.ac-link:hover { color: var(--ac-terracota); }

/* ------------------------------- módulos / listados */
.ac-module {
    display: flex; gap: 16px; align-items: flex-start; background: #fff;
    border: 1px solid var(--ac-linea); border-radius: 14px;
    padding: 18px 20px; margin-bottom: 12px;
}
.ac-module .ac-num {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--ac-azul); color: #fff; display: flex;
    align-items: center; justify-content: center;
    font-family: 'Merriweather', serif; font-weight: 700;
}
.ac-module h4 { font-size: 1.02rem; margin: 0 0 3px; font-weight: 700; }
.ac-module .ac-mod-meta { font-size: .82rem; color: var(--ac-gris); }

.ac-free-item {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--ac-linea); border-radius: 12px;
    padding: 14px 18px; margin-bottom: 10px; text-decoration: none;
    color: var(--ac-azul); font-weight: 600; font-size: .92rem;
}
.ac-free-item:hover { border-color: var(--ac-terracota); color: var(--ac-terracota); }
.ac-free-item small { color: var(--ac-gris); font-weight: 400; }

/* ------------------------------- bloques de apoyo */
.ac-panel {
    background: #fff; border: 1px solid var(--ac-linea); border-radius: 16px; padding: 24px;
}
.ac-panel h5 { font-family: 'Merriweather', serif; font-size: 1rem; margin-bottom: 12px; }
.ac-panel ul { padding-left: 0; list-style: none; margin: 0; font-size: .9rem; color: #4b5563; }
.ac-panel li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.ac-panel li:last-child { border-bottom: 0; }

.ac-cta {
    background: linear-gradient(135deg, var(--ac-azul), var(--ac-azul-claro));
    color: #fff; padding: 60px 0; text-align: center;
}
.ac-cta h2 { color: #fff; font-weight: 900; }
.ac-cta p { color: rgba(255,255,255,.82); }

.ac-stats { background: var(--ac-arena); padding: 30px 0; }
.ac-stat { text-align: center; }
.ac-stat .ac-num-big {
    font-family: 'Merriweather', serif; font-size: 1.9rem; font-weight: 900; color: var(--ac-azul);
}
.ac-stat .ac-lbl {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #5a6472;
}

.ac-note {
    background: #fff; border: 1px solid var(--ac-linea); border-left: 4px solid var(--ac-terracota);
    border-radius: 12px; padding: 16px 18px; font-size: .88rem; color: var(--ac-gris);
}

/* ------------------------------- aula (LMS) */
.ac-shell { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ac-aula-hero {
    background: linear-gradient(135deg, var(--ac-azul), #16293f);
    color: #fff; padding: 46px 0 40px; margin-bottom: 30px;
}
.ac-aula-hero h1 { color: #fff; font-size: 1.9rem; margin: 0 0 8px; }
.ac-aula-hero p { color: rgba(255,255,255,.8); margin: 0; }

@media (max-width: 768px) {
    .ac-nav-inner { padding: 10px 14px; gap: 12px; }
    .ac-links { gap: 12px; font-size: .85rem; }
    .ac-page-head h1 { font-size: 1.7rem; }
    .ac-card { padding: 22px; }
    .ac-section { padding: 44px 0; }
}

/* ------------------------------- panel del estudiante */
.ac-dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
@media (max-width: 900px) { .ac-dash-grid { grid-template-columns: 1fr; } }
.ac-course { background:#fff; border:1px solid var(--ac-linea); border-radius:16px; overflow:hidden; height:100%; transition:all .2s; }
.ac-course:hover { box-shadow:0 14px 34px rgba(31,58,95,.12); transform:translateY(-3px); }
.ac-course-img { height:130px; background-size:cover; background-position:center; background-color:#dfe3ea; position:relative; }
.ac-course-img .ac-badge { position:absolute; top:10px; left:10px; }
.ac-course-body { padding:16px 18px; }
.ac-course-body h3 { font-size:1.02rem; margin:0 0 6px; line-height:1.3; }
.ac-course-body p { font-size:.86rem; color:var(--ac-gris); margin:0 0 10px; }
.ac-progress { height:9px; background:#eef0f3; border-radius:10px; overflow:hidden; margin:6px 0 12px; }
.ac-progress-bar { height:100%; background:var(--ac-terracota); border-radius:10px; }
.ac-empty { background:#fff; border:1px dashed var(--ac-linea); border-radius:16px; padding:50px 24px; text-align:center; color:var(--ac-gris); }
.ac-quick a { display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:10px; color:var(--ac-azul); text-decoration:none; font-size:.9rem; font-weight:600; }
.ac-quick a:hover { background:var(--ac-papiro); color:var(--ac-terracota); }
.ac-quick a i { width:18px; text-align:center; color:var(--ac-terracota); }
.ac-lesson { display:flex; gap:14px; align-items:center; background:#fff; border:1px solid var(--ac-linea); border-radius:12px; padding:13px 16px; margin-bottom:8px; }
.ac-lesson-n { flex:0 0 30px; width:30px; height:30px; border-radius:50%; background:var(--ac-papiro); color:var(--ac-azul); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.82rem; }
.ac-price-box { background:#fff; border:1px solid var(--ac-linea); border-radius:16px; padding:24px; }
.ac-price { font-family:'Merriweather',serif; font-size:2rem; color:var(--ac-azul); font-weight:900; line-height:1; }

/* ------------------------------- programa del curso */
.ac-prog { margin-bottom: 48px; }
.ac-prog-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end;
    border-bottom: 1px solid var(--ac-linea); padding-bottom: 18px; margin-bottom: 18px; }
.ac-prog-head h2 { font-size: 1.6rem; margin: 4px 0 6px; }
.ac-prog-progress { flex: 0 0 260px; min-width: 220px; }
.ac-prog-mod { font-size: 1.02rem; margin: 22px 0 10px; color: var(--ac-azul); }
.ac-lec { width: 100%; background: #fff; border: 1px solid var(--ac-linea); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.ac-lec summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ac-lec summary::-webkit-details-marker { display: none; }
.ac-lec-n { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--ac-papiro);
    color: var(--ac-azul); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .88rem; }
.ac-lec-t { flex: 1; min-width: 0; }
.ac-lec-t strong { display: block; color: var(--ac-azul); font-size: .98rem; line-height: 1.3; }
.ac-lec-t small { color: var(--ac-gris); font-size: .8rem; }
.ac-lec-arrow { color: var(--ac-gris); transition: transform .2s; }
.ac-lec[open] .ac-lec-arrow { transform: rotate(180deg); }
.ac-lec[open] { border-color: var(--ac-terracota); box-shadow: 0 8px 24px rgba(31,58,95,.08); }
.ac-lec-body { padding: 0 18px 18px 66px; color: #4b5563; font-size: .93rem; }
.ac-lec-res { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--ac-gris); margin: 10px 0 16px; }
.ac-lec-res i { color: var(--ac-terracota); margin-right: 4px; }
.ac-lec-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) {
    .ac-lec-body { padding-left: 18px; }
    .ac-prog-progress { flex: 1 1 100%; }
}

/* ------------------------------- estado de inscripciones */
.ac-closed {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ac-linea);
    border-left: 4px solid var(--ac-terracota);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0;
}
.ac-closed > i { color: var(--ac-terracota); font-size: 1.2rem; margin-top: 2px; }
.ac-closed strong { display: block; color: var(--ac-azul); margin-bottom: 4px; font-size: 1rem; }
.ac-closed p { margin: 0 0 10px; color: var(--ac-gris); font-size: .92rem; }
.ac-closed .ac-btn { margin-right: 8px; margin-top: 2px; }
.ac-badge-prep { background: #FFF3CD; color: #7A5200; }
.ac-btn-disabled,
.ac-btn[disabled] {
    background: #e9ecef !important;
    color: #8a8f98 !important;
    border: 1px solid #dee2e6 !important;
    cursor: not-allowed;
    pointer-events: none;
}
.ac-card-prep { border-top-color: var(--ac-oro); }
.ac-featured {
    background: #fff;
    border: 1px solid var(--ac-linea);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(31,58,95,.06);
}
.ac-featured h3 { font-size: 1.25rem; margin: 8px 0 10px; }
.ac-featured .ac-meta { font-size: .84rem; color: var(--ac-gris); margin-bottom: 12px; }
.ac-featured .ac-meta span { margin-right: 16px; }
.ac-featured .ac-meta i { color: var(--ac-terracota); margin-right: 5px; }
