.tep-journey,
.tep-program {
    margin-block: 2rem;
}

.tep-journey {
    border-block: 1px solid currentColor;
    padding-block: 1rem;
}

.tep-journey__parent,
.tep-journey__position,
.tep-program__time,
.tep-program__type,
.tep-program__subtitle,
.tep-program__space,
.tep-movie__original {
    margin: 0 0 .35rem;
}

.tep-program__subtitle {
    font-size: .95em;
    opacity: .78;
}

.tep-journey__navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .75rem;
}

.tep-program__items,
.tep-program__journeys,
.tep-movie__showtimes,
.tep-program__people {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tep-program__item,
.tep-program__journeys > li,
.tep-movie {
    border-top: 1px solid rgba(0, 0, 0, .18);
    padding-block: 1.25rem;
}

.tep-program__item {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(5.5rem, auto) 1fr;
}

.tep-program__person {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin-block: .75rem;
}

.tep-program__portrait img {
    border-radius: 50%;
    display: block;
    height: 3rem;
    object-fit: cover;
    width: 3rem;
}

.tep-cinema-day {
    margin-block: 2rem;
}

.tep-program--cinema .tep-movie {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: 7.1875rem minmax(0, 1fr);
    min-width: 0;
}

.tep-program--cinema .tep-movie--no-poster {
    grid-template-columns: minmax(0, 1fr);
}

.tep-program--cinema .tep-movie__body,
.tep-program--cinema .tep-movie__poster {
    min-width: 0;
}

.tep-program--cinema .tep-movie__body {
    align-content: start;
    display: grid;
    justify-items: start;
}

.tep-program--cinema .tep-movie__poster {
    overflow: hidden;
    border-radius: .45rem;
}

.tep-program--cinema .tep-movie__poster img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.tep-movie__shorts {
    margin: 1rem 0;
}

.tep-movie__shorts h5 {
    margin: 0 0 0.4rem;
    font-size: 1em;
}

.tep-movie__shorts ol {
    margin: 0;
    padding-left: 1.25rem;
}

.tep-program--cinema .tep-screening {
    text-align: left;
}

.tep-program--cinema .tep-screening__identity,
.tep-program--cinema .tep-screening__time,
.tep-program--cinema .tep-screening__title,
.tep-program--cinema .tep-screening__director,
.tep-program--cinema .tep-screening__context {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tep-program--cinema .tep-screening__identity {
    display: grid;
    gap: .2rem;
    margin: 0 0 .75rem;
    width: 100%;
}

.tep-program--cinema .tep-screening__time {
    margin: 0;
    color: #cb3f19;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.tep-program--cinema .tep-screening__title {
    margin: 0;
    font-family: var(--font-editorial, Georgia, "Times New Roman", serif);
    font-size: 1.25rem;
    hyphens: auto;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.tep-program--cinema .tep-screening__director,
.tep-program--cinema .tep-screening__context {
    margin: 0;
    color: #61716d;
    font-size: .875rem;
    line-height: 1.35;
}

.tep-program--cinema .tep-screening__director span {
    font-weight: 400;
}

.tep-program--cinema .tep-screening__context > span,
.tep-program--cinema .tep-screening__context > strong {
    display: block;
}

.tep-screening__price {
    color: inherit;
    font-weight: 600;
}

.tep-program--cinema .tep-screening__technical {
    display: block;
    max-width: 100%;
    margin: .375rem 0 0;
    padding: 0;
    color: #61716d;
    font-size: .875rem;
    line-height: 1.35;
    list-style: none;
    overflow-wrap: anywhere;
}

.tep-program--cinema .tep-screening__technical li {
    display: inline;
}

.tep-program--cinema .tep-screening__technical li + li::before {
    content: " · ";
    color: #cb3f19;
}

.tep-program__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.75rem;
    margin-top: .25rem;
    padding: .6rem 1rem;
    border-radius: 999px;
    background: #cb3f19;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tep-program__button:hover,
.tep-program__button:focus-visible {
    background: #192c27;
    color: #fff;
}

.tep-program__button:focus-visible {
    outline: 3px solid #d8af19;
    outline-offset: 3px;
}

.tep-calendar-button {
    width: fit-content;
    min-height: 2.5rem;
    margin-top: .75rem;
    padding: .45rem .5rem;
    gap: .3rem;
    color: #cb3f19;
    background: transparent;
    border: 1px solid #cb3f19;
    font-size: .8125rem;
    line-height: 1.2;
    text-align: left;
}

.tep-calendar-button:hover,
.tep-calendar-button:focus-visible {
    color: #fff;
    background: #cb3f19;
}

.tep-calendar-button:active {
    color: #fff;
    background: #192c27;
    border-color: #192c27;
    transform: translateY(1px);
}

.tep-calendar-button__icon {
    flex: 0 0 .9rem;
    width: .9rem;
    height: .9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 640px) {
    .tep-program__item {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 672px) {
    .tep-program--cinema .tep-movie {
        gap: 1.25rem;
        grid-template-columns: 9.25rem minmax(0, 1fr);
    }

    .tep-program--cinema .tep-screening__title {
        font-size: 1.375rem;
    }
}

@media (max-width: 304px) {
    .tep-program--cinema .tep-movie {
        grid-template-columns: 1fr;
    }

    .tep-program--cinema .tep-movie__poster {
        max-width: 12rem;
    }
}
/* =========================================================
   EVENTOS CON PROGRAMA — componente compacto y encapsulado
   ========================================================= */
.tp-program-event {
    --tp-program-text: #172126;
    --tp-program-muted: #667076;
    --tp-program-accent: #b33a3f;
    --tp-program-accent-hover: #8f2930;
    --tp-program-surface: #fff;
    --tp-program-surface-soft: #f6f7f7;
    --tp-program-border: #e1e5e6;
    --tp-program-radius: 13px;
    --tp-program-radius-small: 8px;
    --tp-program-serif: var(--font-editorial, Georgia, "Times New Roman", serif);
    --tp-program-sans: var(--font-ui, Arial, Helvetica, sans-serif);
    color: var(--tp-program-text);
    font-family: var(--tp-program-sans);
}

.tp-program-event .tep-event-program-block {
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
}

.tp-program-event .tp-program {
    margin: 0;
    color: var(--tp-program-text);
}

.tp-program [hidden] {
    display: none !important;
}

.tp-program__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.tp-program .tp-program__title {
    margin: 0;
    color: var(--tp-program-text);
    font-family: var(--tp-program-serif);
    font-size: clamp(1.7rem, 6vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.tp-program .tp-program__all {
    flex: 0 0 auto;
    margin: 0;
    color: var(--tp-program-accent);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tp-program .tp-program__all:hover,
.tp-program .tp-program__all:focus-visible {
    color: var(--tp-program-accent-hover);
}

.tp-program .cinema-days {
    margin: 0;
    padding: 0;
    border: 0;
}

.tp-program .tp-program__days {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 0 2px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.tp-program .tp-program__days::-webkit-scrollbar {
    display: none;
}

.tp-program .tp-program__days li {
    flex: 0 0 auto;
}

.tp-program .tp-program__day-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 15px;
    color: var(--tp-program-text);
    background: var(--tp-program-surface);
    border: 1px solid var(--tp-program-border);
    border-radius: var(--tp-program-radius-small);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.tp-program .tp-program__day-button:hover,
.tp-program .tp-program__day-button:focus-visible {
    border-color: #c7cdcf;
}

.tp-program .tp-program__day-button[aria-current="date"] {
    color: #fff;
    background: var(--tp-program-accent);
    border-color: var(--tp-program-accent);
}

.tp-program__list {
    display: grid;
    gap: 10px;
}

.tp-program .tp-program-day {
    margin: 0;
    padding: 12px 14px;
    background: var(--tp-program-surface);
    border: 1px solid var(--tp-program-border);
    border-radius: var(--tp-program-radius);
    box-shadow: none;
}

.tp-program .tp-program-day__title {
    margin: 0 0 10px;
    padding: 0;
    color: var(--tp-program-text);
    border: 0;
    font-family: var(--tp-program-sans);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

.tp-program-day__activities {
    display: grid;
}

.tp-program-activity {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 12px;
    min-width: 0;
}

.tp-program-activity + .tp-program-activity {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--tp-program-border);
}

.tp-program-activity__time {
    margin: 0;
    padding-top: 2px;
    color: var(--tp-program-muted);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.tp-program-activity__content {
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid var(--tp-program-border);
}

.tp-program-activity__type {
    margin: 0 0 2px;
    color: var(--tp-program-accent);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.tp-program .tp-program-activity__title {
    margin: 0;
    color: var(--tp-program-text);
    font-family: var(--tp-program-sans);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.tp-program-activity__meta,
.tp-program-activity__description,
.tp-program-activity__links {
    margin: 2px 0 0;
    color: var(--tp-program-muted);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tp-program-activity__meta-line {
    display: block;
}

.tp-program-activity__description > :last-child,
.tp-program-activity__links {
    margin-bottom: 0;
}

.tp-program-activity__links .tep-program__link {
    color: var(--tp-program-text);
    font-weight: 600;
}

.tp-program-activity__calendar {
    display: inline-block;
    margin-top: 3px;
    color: var(--tp-program-accent);
    background: transparent;
    border: 0;
    border-radius: 2px;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tp-program-activity__calendar:hover,
.tp-program-activity__calendar:focus-visible {
    color: var(--tp-program-accent-hover);
}

.tp-program-activity__calendar:focus-visible {
    outline: 2px solid var(--tp-program-accent);
    outline-offset: 3px;
}

.tep-event-daily-hours p {
    margin: 4px 0;
}

@media (min-width: 700px) {
    .tp-program .tp-program-day {
        padding: 15px 16px;
    }

    .tp-program-activity {
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 14px;
    }

    .tp-program-activity__content {
        padding-left: 16px;
    }

    .tp-program .tp-program-activity__title {
        font-size: 0.9rem;
    }
}

@media (max-width: 374px) {
    .tp-program__header {
        align-items: flex-start;
    }

    .tp-program .tp-program__all {
        max-width: 110px;
        text-align: right;
    }

    .tp-program .tp-program-day {
        padding-inline: 11px;
    }

    .tp-program-activity {
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 8px;
    }

    .tp-program-activity__content {
        padding-left: 9px;
    }

    .tp-program .tp-program-activity__title {
        font-size: 0.82rem;
    }
}
