.ctj-week {
    --ctj-week-border: #e6e9ee;
    --ctj-week-text: #172033;
    --ctj-week-muted: #5f6b7a;
    --ctj-week-surface: #fff;
    --ctj-week-accent: #315b9a;
    margin: 0 0 2.25rem;
    color: var(--ctj-week-text);
    scroll-margin-top: 96px;
}
.ctj-week__title {
    margin: 0 0 .55rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.22;
    letter-spacing: -.02em;
    text-align: center;
}
.ctj-week__intro {
    max-width: 900px;
    margin: 0 0 1.15rem;
    color: var(--ctj-week-muted);
    line-height: 1.65;
}
.ctj-week__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.ctj-week__watchtower {
    margin-top: 2rem;
}
.ctj-week__grid--watchtower {
    grid-template-columns: minmax(0, 680px);
}
.ctj-week-card {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--ctj-week-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--ctj-week-surface);
    box-shadow: 0 6px 22px rgba(21, 31, 46, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ctj-week-card:hover {
    transform: translateY(-2px);
    border-color: #ccd5e2;
    box-shadow: 0 10px 28px rgba(21, 31, 46, .10);
}
.ctj-week-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none !important;
}
.ctj-week-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f4f8;
}
.ctj-week-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ctj-week-card__icon {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #f5f7fa;
}
.ctj-week-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 15px 15px;
}
.ctj-week-card__eyebrow {
    margin-bottom: 6px;
    color: var(--ctj-week-accent);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.ctj-week-card__title {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.38;
}
.ctj-week-card__excerpt {
    margin-top: 8px;
    color: var(--ctj-week-muted);
    font-size: .9rem;
    line-height: 1.5;
}
.ctj-week-card__cta {
    margin-top: auto;
    padding-top: 12px;
    color: var(--ctj-week-accent);
    font-size: .88rem;
    font-weight: 700;
}
.ctj-week-card__link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -3px;
}
@media (max-width: 1100px) {
    .ctj-week__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ctj-week__grid--watchtower { grid-template-columns: minmax(0, 680px); }
}
@media (max-width: 720px) {
    .ctj-week { margin-bottom: 1.65rem; }
    .ctj-week__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ctj-week__grid--watchtower { grid-template-columns: 1fr; }
    .ctj-week-card { border-radius: 13px; }
    .ctj-week-card__body { padding: 12px; }
    .ctj-week-card__title { font-size: .93rem; }
}
@media (max-width: 460px) {
    .ctj-week__grid { grid-template-columns: 1fr; }
    .ctj-week-card__link { flex-direction: row; }
    .ctj-week-card__media { width: 38%; min-width: 112px; aspect-ratio: 4 / 3; }
    .ctj-week-card__icon { width: 112px; min-height: 110px; }
    .ctj-week-card__body { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ctj-week-card { transition: none; }
    .ctj-week-card:hover { transform: none; }
}

/* En escritorio ancho, las cinco secciones de Vida y Ministerio y La Atalaya
   comparten una única fila. display:contents conserva el HTML semántico. */
@media (min-width: 1101px) {
    .ctj-week {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0 12px;
    }
    .ctj-week > .ctj-week__title,
    .ctj-week > .ctj-week-selector-wrap,
    .ctj-week > .ctj-week__intro,
    .ctj-week > .ctj-week-nav-wrap {
        grid-column: 1 / -1;
    }
    .ctj-week__grid--meeting,
    .ctj-week__watchtower,
    .ctj-week__grid--watchtower {
        display: contents;
    }
    .ctj-week__title--watchtower { display: none; }
    .ctj-week-card { height: 100%; }
}

/* Publicación destacada de la semana en páginas estáticas */
.ctj-section-week {
    --ctj-section-border: #e4e8ef;
    --ctj-section-text: #172033;
    --ctj-section-muted: #626f80;
    --ctj-section-accent: #315b9a;
    --ctj-section-premium: #183a67;
    margin: 1rem 0 2rem;
    color: var(--ctj-section-text);
    scroll-margin-top: 96px;
}
.ctj-section-week__title {
    margin: 0 0 1rem;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -.018em;
    text-align: center;
}
.ctj-section-week__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr);
    gap: 18px;
    align-items: stretch;
}
.ctj-section-week__layout--single {
    grid-template-columns: minmax(0, 760px);
}
.ctj-section-week__publication { min-width: 0; }
.ctj-section-featured,
.ctj-premium-card,
.ctj-section-week__empty {
    height: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ctj-section-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(20, 31, 48, .07);
}
.ctj-section-featured { overflow: hidden; }
.ctj-section-featured__link {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}
.ctj-section-featured__media {
    display: block;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f7;
}
.ctj-section-featured__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ctj-section-featured__icon {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    font-size: 3rem;
}
.ctj-section-featured__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(18px, 2.2vw, 28px);
}
.ctj-section-featured__eyebrow {
    margin-bottom: 7px;
    color: var(--ctj-section-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.3;
    text-transform: uppercase;
}
.ctj-section-featured__post-title {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 750;
    line-height: 1.35;
}
.ctj-section-featured__excerpt {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    color: var(--ctj-section-muted);
    font-size: .92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.ctj-section-featured__cta {
    margin-top: 15px;
    color: var(--ctj-section-accent);
    font-size: .9rem;
    font-weight: 750;
}
.ctj-section-featured__link:hover .ctj-section-featured__post-title,
.ctj-section-featured__link:hover .ctj-section-featured__cta { text-decoration: underline; text-underline-offset: 3px; }
.ctj-section-featured__link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: -3px;
}
.ctj-premium-card {
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 25px);
    border-color: #d8e0eb;
    background: linear-gradient(145deg, #f8fbff 0%, #fff 58%);
}
.ctj-premium-card__badge {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9f0fa;
    color: var(--ctj-section-premium);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .065em;
}
.ctj-premium-card__title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.3;
}
.ctj-premium-card__text {
    margin: 0;
    color: var(--ctj-section-muted);
    font-size: .89rem;
    line-height: 1.5;
}
.ctj-premium-card__benefits {
    display: grid;
    gap: 7px;
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
    color: #344054;
    font-size: .86rem;
    line-height: 1.4;
}
.ctj-premium-card__benefits li { margin: 0; padding: 0; }
.ctj-premium-card__benefits span {
    margin-right: 5px;
    color: #19764a;
    font-weight: 800;
}
.ctj-premium-card__actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
}
.ctj-premium-card__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 9px 13px;
    border: 1px solid var(--ctj-section-premium);
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
}
.ctj-premium-card__button--primary {
    background: var(--ctj-section-premium);
    color: #fff !important;
}
.ctj-premium-card__button--secondary {
    background: #fff;
    color: var(--ctj-section-premium) !important;
}
.ctj-premium-card__button:hover { filter: brightness(.97); }
.ctj-premium-card__button:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.ctj-section-week__empty {
    display: flex;
    min-height: 230px;
    align-items: center;
    gap: 15px;
    padding: 24px;
}
.ctj-section-week__empty-icon { font-size: 2rem; }
.ctj-section-week__empty p {
    margin: 5px 0 0;
    color: var(--ctj-section-muted);
    line-height: 1.5;
}
@media (max-width: 900px) {
    .ctj-section-week__layout { grid-template-columns: minmax(0, 1.45fr) minmax(245px, .75fr); gap: 14px; }
    .ctj-section-featured__link { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .ctj-section-week { margin-bottom: 1.5rem; }
    .ctj-section-week__layout,
    .ctj-section-week__layout--single { grid-template-columns: 1fr; }
    .ctj-section-featured,
    .ctj-premium-card,
    .ctj-section-week__empty { border-radius: 15px; }
    .ctj-section-featured__link { grid-template-columns: 1fr; }
    .ctj-section-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
    .ctj-section-featured__icon { min-height: 160px; }
    .ctj-section-featured__body { padding: 16px; }
    .ctj-premium-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .ctj-premium-card__button { transition: none; }
}

/* Selector y navegación entre semanas */
.ctj-week-selector {
    margin: .8rem 0 1.15rem;
}
.ctj-week-selector__label {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: #475467;
}
.ctj-week-selector__control {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
}
.ctj-week-selector__select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 9px 42px 9px 13px;
    border: 1px solid #d0d7e2;
    border-radius: 12px;
    background-color: #fff;
    color: #172033;
    font: inherit;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(20, 31, 48, .04);
}
.ctj-week-selector__select:hover { border-color: #aeb9c8; }
.ctj-week-selector__select:focus-visible {
    outline: 3px solid rgba(49, 91, 154, .22);
    outline-offset: 1px;
    border-color: #315b9a;
}
.ctj-week-selector__submit {
    min-height: 46px;
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid #315b9a;
    border-radius: 11px;
    background: #315b9a;
    color: #fff;
    font: inherit;
    font-size: .87rem;
    font-weight: 750;
    cursor: pointer;
}
.ctj-week-selector--js .ctj-week-selector__submit { display: none; }

.ctj-week-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1.15rem;
}
.ctj-week-nav__button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    padding: 9px 14px;
    border: 1px solid #d0d7e2;
    border-radius: 11px;
    background: #fff;
    color: #263b5d !important;
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(20, 31, 48, .04);
}
.ctj-week-nav__button:hover {
    border-color: #9dacbf;
    background: #f8fafc;
}
.ctj-week-nav__button:focus-visible {
    outline: 3px solid rgba(49, 91, 154, .22);
    outline-offset: 2px;
}
.ctj-week-nav__button--next { margin-left: auto; }

@media (max-width: 600px) {
    .ctj-week-selector__control { max-width: none; }
    .ctj-week-selector__select { min-height: 44px; font-size: .9rem; }
    .ctj-week-nav { gap: 8px; }
    .ctj-week-nav__button {
        flex: 1 1 50%;
        min-width: 0;
        padding: 9px 10px;
        font-size: .83rem;
    }
}
