/* Contenedor principal adaptable */
.nota-main {
    padding: 0;
    background-color: var(--bg);
}

.nota-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

/* Artículo de la nota */
.nota-contenido {
    width: 100%;
}

.nota-imagen-principal{
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}
.nota-imagen-principal img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
/* .nota-imagen-principal img {
    width: 100%;
    height: auto;
} */

.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.nota-contenido h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--fg);
}

.nota-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.nota-meta a {
    color: var(--blue);
    text-decoration: none;
}

.nota-texto p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: 24px;
}

.nota-texto h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--blue);
}

/* Tarjeta de autor */
.autor-card {
    display: flex;
    flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: #f5f9ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 25px 25px 0;
  padding: 25px;
  margin: 50px 0;
  max-width: 80%;
}

.autor-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.autor-card h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.autor-card p {
   margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Sidebar y Comportamiento Sticky */
.nota-sidebar {
    width: 100%;
    margin-bottom: 40px;
}

.sidebar-sticky-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    font-size: 20px;
    font-family: 'Bai Jamjuree', sans-serif;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 8px;
    margin-bottom: 4px;
    color: var(--fg);
}

.sidebar-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sidebar-img-link img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-info h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    line-height: 1.4;
}

.sidebar-info h4 a {
    color: var(--fg);
    text-decoration: none;
}

.sidebar-info h4 a:hover {
    color: var(--blue);
}

.sidebar-date {
    font-size: 13px;
    color: var(--muted);
}

/* Versión Desktop (Grid y Sticky Real) */
@media (min-width: 992px) {
    .nota-container {
        display: grid;
        grid-template-columns: 1fr 360px;
        gap: 48px;
        align-items: start;
    }

    .nota-sidebar {
        position: sticky;
        top: 116px; /* Deja espacio considerando la altura del header fijo (aprox. 84px + 32px de margen) */
    }
    .autor-card {
        flex-direction: row;
    }
}