/* Extensión del lenguaje público de Cursos, sin alterar el portal interno. */
.talleres-page { color: #14213b; }
.talleres-page main { overflow: clip; }
.talleres-hero { padding: 140px 24px 60px; background: #f3f3fc; }
/* La foto ocupa la derecha y se funde por la izquierda para dejar el texto sobre fondo limpio. */
.talleres-hero-background { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; object-position: 40% 30%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%); mask-image: linear-gradient(90deg, transparent, #000 32%); pointer-events: none; }
/* Olas que se desplazan despacio al pie de la portada; la de adelante tiene el color de la sección siguiente. */
.talleres-hero-olas { position: absolute; left: 0; bottom: -1px; z-index: 1; width: 100%; height: 90px; pointer-events: none; }
.talleres-hero-olas use { animation: talleres-ola 26s cubic-bezier(.55, .5, .45, .5) infinite; }
.talleres-hero-olas use:nth-of-type(1) { fill: #ca00621f; animation-delay: -2s; animation-duration: 12s; }
.talleres-hero-olas use:nth-of-type(2) { fill: #8e6bbf2e; animation-delay: -3s; animation-duration: 16s; }
.talleres-hero-olas use:nth-of-type(3) { fill: #004fb01a; animation-delay: -4s; animation-duration: 20s; }
.talleres-hero-olas use:nth-of-type(4) { fill: #f1f5fc; animation-delay: -5s; }
@keyframes talleres-ola {
    from { transform: translate3d(-90px, 0, 0); }
    to { transform: translate3d(85px, 0, 0); }
}
.talleres-hero .cursos-hero-inner { grid-template-columns: 1fr; min-height: 440px; padding-block: 30px; }
.talleres-hero .ch-content { width: min(520px, 45%); }
.talleres-hero .ch-title { font-size: clamp(2.4rem, 3.5vw, 3.6rem); line-height: 1.16; text-wrap: balance; }
.talleres-hero .ch-title strong { color: #004fb0; }
.talleres-hero .ch-desc { max-width: 48ch; }
.talleres-hero .ch-actions { flex-wrap: wrap; gap: 12px; }
.talleres-page .free-courses-section { padding-block: 64px; }
.talleres-programacion { background: #f5f3fc; padding: 76px 0 86px; scroll-margin-top: 100px; }
.talleres-agenda-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.talleres-agenda-intro h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.talleres-agenda-intro h2 span { color: #ca0062; }
.talleres-agenda-intro > div > p { max-width: 62ch; margin: 0; color: #485672; font-size: .95rem; line-height: 1.75; }
.talleres-schedule-status { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin: 0; color: #694183; font-size: .78rem; }
.talleres-schedule-status > span { width: 8px; height: 8px; border-radius: 50%; background: #ca0062; }
.talleres-agenda-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 30px 32px; }
.talleres-search { position: relative; display: flex; align-items: center; gap: 12px; width: min(510px, 100%); background: #fff; border: 1px solid #d6d4e6; border-radius: 10px; padding: 0 16px; }
.talleres-search svg { width: 21px; height: 21px; flex-shrink: 0; color: #675180; }
.talleres-search input { width: 100%; min-width: 0; min-height: 52px; border: 0; outline: 0; background: transparent; color: #14213b; font: inherit; font-size: .85rem; caret-color: #ca0062; }
.talleres-search input::placeholder { color: #625c78; opacity: 1; }
.talleres-search:focus-within { outline: 3px solid #b9005a; outline-offset: 3px; }
.talleres-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#talleres-count { color: #675180; font-size: .82rem; margin: 0; }
.talleres-timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-items: start; margin: 0; padding: 0; }
.talleres-timeline-column { list-style: none; min-width: 0; margin: 0; padding: 0; }
.talleres-timeline [data-workshop-id] { position: relative; min-width: 0; list-style: none; padding: 0 0 16px 28px; }
.talleres-timeline [data-workshop-id]::before { content: ''; position: absolute; top: 25px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #ca0062; box-shadow: 0 0 0 5px #f5f3fc; z-index: 1; }
.talleres-timeline [data-workshop-id]::after { content: ''; position: absolute; top: 30px; bottom: -30px; left: 4px; width: 1px; background: #d6b9dd; }
.talleres-timeline .is-last-visible::after { display: none; }
.talleres-timeline [hidden], .talleres-empty[hidden] { display: none !important; }
.talleres-topic { position: relative; isolation: isolate; display: block; box-sizing: border-box; width: 100%; border: 0; text-align: left; background: linear-gradient(125deg, #ffffffd9, #ffffffa6 65%, #ecdaf426); box-shadow: inset 0 1px 0 #ffffffed, inset 0 0 0 1px #ffffffa8, 0 8px 22px #503e7e0d; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 0; font: inherit; color: #14213b; cursor: pointer; border-radius: 16px; overflow: hidden; }
.talleres-topic::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 88px; z-index: -1; pointer-events: none; background-image: url('../../../images/talleres/ola-lila.svg'); background-repeat: repeat-y; background-size: 88px 480px; background-position: right calc(var(--workshop-wave-shift, 0px) - var(--workshop-wave-offset, 0px)); filter: blur(10px); opacity: .08; mask-image: linear-gradient(to right, transparent, #000 90%); }
.talleres-topic-copy { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 18px 20px; }
.talleres-topic-description { display: block; margin-block: 6px 0; color: #485672; font-size: .82rem; line-height: 1.55; }
.talleres-topic-preview { display: grid; grid-template-rows: 0fr; opacity: 0; overflow: hidden; transition: opacity 150ms ease-out; }
.talleres-topic-preview > span { box-sizing: border-box; display: block; min-height: 0; overflow: hidden; margin-inline: 20px; }
.talleres-topic-preview img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; border-radius: 12px; margin-bottom: 18px; }
.talleres-topic:focus-visible .talleres-topic-preview { grid-template-rows: 1fr; opacity: 1; }
@media (hover: hover) {
    .talleres-topic:hover .talleres-topic-preview { grid-template-rows: 1fr; opacity: 1; }
}
.talleres-topic-status { display: block; color: #775580; font-size: .75rem; margin-bottom: 5px; }
.talleres-topic strong { display: block; font-size: 1.02rem; line-height: 1.45; font-weight: 600; text-wrap: pretty; }
.talleres-topic-link { display: flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; color: #ac0053; margin-top: 12px; }
.talleres-topic-link svg { width: 18px; height: 18px; transition: transform .2s ease-out; }
@media (prefers-reduced-motion: no-preference) {
    .talleres-topic-preview { transition: grid-template-rows 150ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms ease-out; }
    /* Apertura pausada solicitada; el cierre conserva la respuesta breve. */
    .talleres-topic:focus-visible .talleres-topic-preview { transition-duration: 260ms, 150ms; }
    .talleres-topic:focus-visible .talleres-topic-link svg { transform: translateX(4px); }
    @media (hover: hover) {
        .talleres-topic:hover .talleres-topic-preview { transition-duration: 260ms, 150ms; }
        .talleres-topic:hover .talleres-topic-link svg { transform: translateX(4px); }
    }
}
.talleres-topic:focus-visible, .talleres-empty button:focus-visible { outline: 3px solid #b9005a; outline-offset: 3px; }
.talleres-empty { padding: 30px 0; color: #485672; line-height: 1.7; }
.talleres-empty button { border: 0; padding: 8px 0; background: transparent; color: #a10050; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.talleres-page ::selection { background: #f8cce3; color: #14213b; }
/* Cada tarjeta recorta un tramo de la misma curva de su columna.
   El desplazamiento compartido lo actualiza talleres.js, sin pintar los huecos. */
@media (max-width: 1180px) {
    .talleres-hero .cursos-hero-inner { gap: 30px; }
    .talleres-agenda-intro { align-items: start; flex-direction: column; gap: 20px; }
    .talleres-timeline { column-gap: 32px; }
}
@media (max-width: 850px) {
    /* El espacio inferior sigue la altura de la foto (ancho × 872/1580) para que no tape los botones. */
    .talleres-hero { padding: 110px 24px 56vw; background: #f1f5fc; }
    .talleres-hero .cursos-hero-inner { min-height: 0; padding-block: 20px; }
    .talleres-hero .ch-content { width: 100%; max-width: 570px; margin-inline: auto; text-align: center; }
    .talleres-hero-background { inset: auto 0 0 auto; width: 100%; height: auto; max-width: none; object-fit: contain; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
    .talleres-hero-olas { height: 56px; }
    .talleres-hero .ch-desc { margin-inline: auto; }
    .talleres-hero .ch-actions { justify-content: center; }
}
@media (max-width: 600px) {
    .talleres-hero { padding: 105px 20px 72vw; }
    .talleres-hero-background { width: 130%; }
    .talleres-hero .ch-title { font-size: 2.2rem; }
    .talleres-hero .ch-desc { font-size: .95rem; }
    .talleres-page .free-courses-section { padding-block: 42px; }
    .talleres-programacion { padding-block: 48px 54px; }
    .talleres-agenda-intro > div > p { font-size: .88rem; }
    .talleres-agenda-toolbar { align-items: start; flex-direction: column; gap: 16px; }
    .talleres-timeline { grid-template-columns: 1fr; }
    .talleres-timeline [data-workshop-id] { padding-left: 23px; }
    .talleres-topic::before { width: 68px; background-size: 68px 480px; }
    .talleres-topic strong { font-size: .95rem; }
    .talleres-schedule-status { flex-shrink: 1; font-size: .75rem; }
}
@media (prefers-reduced-transparency: reduce) {
    .talleres-topic { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .talleres-topic::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .talleres-topic, .talleres-topic-link svg { transition: none; }
    .talleres-hero-olas use { animation: none; }
}
