/* Bellota V2 — Curso de Maquinaria Agrícola */

.course-author.page-lead {
    color: var(--c-brand);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
}

.course-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-10);
    align-items: start;
}

/* ---------------------------------------------------------------
   Col izquierda: intro + capítulos
   --------------------------------------------------------------- */
.course-intro p {
    color: var(--c-text-body);
    font-size: var(--fs-md);
    line-height: var(--lh-normal);
    margin: 0 0 var(--sp-4);
    max-width: 720px;
}

.course-section-title {
    color: var(--c-brand);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin: var(--sp-8) 0 var(--sp-5);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--c-brand);
}

.course-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--sp-5);
}

.course-chapter {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform var(--t-fast);
}
.course-chapter:hover { transform: translateY(-3px); color: inherit; }
.course-chapter img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    display: block;
}
.course-chapter-title {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
}
.course-chapter-title span:last-child {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-text-strong);
    line-height: 1.3;
    transition: color var(--t-fast);
}
.course-chapter:hover .course-chapter-title span:last-child { color: var(--c-brand); }

.course-chapter-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #bdbdbd;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 2px;
    transition: background var(--t-fast);
    margin-top: 1px;
}
.course-chapter:hover .course-chapter-arrow { background: var(--c-brand); }
.course-chapter-arrow--red { background: var(--c-brand); }

/* ---------------------------------------------------------------
   Col derecha: autor + libros
   --------------------------------------------------------------- */
.course-author-panel {
    background: #d9d9d9;
    border-radius: var(--r-sm);
    overflow: hidden;
    position: sticky;
    top: var(--sp-6);
}
.course-author-photo {
    background: var(--c-brand);
    padding: 8px;
}
.course-author-photo img {
    width: 100%;
    height: auto;
    display: block;
}
.course-author-body {
    padding: var(--sp-5);
}
.course-author-body p {
    color: var(--c-text-body);
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin: 0 0 var(--sp-4);
}
.course-books-title {
    font-weight: var(--fw-bold) !important;
    color: var(--c-text-strong) !important;
    margin-bottom: var(--sp-3) !important;
}
.course-books {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.course-books li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
}
.course-books a {
    color: var(--c-brand);
    text-decoration: underline;
    font-size: var(--fs-sm);
    line-height: 1.4;
}
.course-books a:hover { color: var(--c-brand-dark); }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .course-layout { grid-template-columns: 1fr; }
    .course-author-panel { position: static; }
}
