/* AprenderGratis Sidebar
   GeneratePress ya controla la estructura y el ancho de la columna.
   Este archivo solo diseña el contenido interior.
*/

.ag-sidebar {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ag-sidebar *,
.ag-sidebar *::before,
.ag-sidebar *::after {
    box-sizing: border-box;
}

.ag-sidebar__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.ag-sidebar__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2563eb;
}

.ag-sidebar__title {
    margin: 0 0 20px;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    color: #111;
    overflow-wrap: normal;
    word-break: normal;
}

.ag-sidebar__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.ag-resource-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 18px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background: #fff;

    color: #111;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ag-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
    color: #111;
}

.ag-resource-card--featured {
    border-color: #cfe0ff;
    background: #f7faff;
}

.ag-resource-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: #f2f5f9;
    font-size: 22px;
}

.ag-resource-card__content {
    display: block;
    min-width: 0;
}

.ag-resource-card__content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.3;
    color: #111;
    overflow-wrap: normal;
    word-break: normal;
}

.ag-resource-card__content small {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    overflow-wrap: normal;
    word-break: normal;
}

.ag-resource-card__arrow {
    font-size: 20px;
    line-height: 1;
    color: #2563eb;
}

/* Separación entre las tarjetas del plugin y el primer widget/anuncio */
.inside-right-sidebar .ag-sidebar {
    margin-bottom: 24px;
}

/* Ocultar en móvil: GeneratePress coloca normalmente
   la sidebar debajo del artículo y sería demasiado extensa. */
@media (max-width: 768px) {
    .ag-sidebar {
        display: none;
    }
}