/* Ficha individual de Taller. Todo queda aislado bajo .yg-workshop-detail. */
.yg-workshop-detail {
    --yg-wd-surface: #fff;
    --yg-wd-soft: #f5f2eb;
    --yg-wd-line: rgba(47, 55, 43, .16);
    --yg-wd-muted: #696a62;
    padding: 0 0 6rem;
    color: var(--yg-title);
}
.yg-workshop-detail .yg-wd-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.yg-workshop-detail .yg-wd-header { max-width: 930px; margin: clamp(2rem, 5vw, 4.25rem) 0 clamp(1.6rem, 3vw, 2.5rem); }
.yg-workshop-detail .yg-wd-eyebrow,
.yg-workshop-detail .yg-wd-enquiry span,
.yg-workshop-detail .yg-wd-date span,
.yg-workshop-detail .yg-wd-facts dt {
    color: var(--yg-primary-dark);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}
.yg-workshop-detail .yg-wd-eyebrow { margin: 0 0 .55rem; }
.yg-workshop-detail .yg-wd-title { max-width: 20ch; margin: 0; font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
.yg-workshop-detail .yg-wd-subtitle { max-width: 68ch; margin: .8rem 0 0; color: var(--yg-text); font-family: var(--yg-font-title); font-size: clamp(1.12rem, 2.2vw, 1.45rem); font-style: italic; line-height: 1.45; }
.yg-workshop-detail .yg-wd-context { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; margin-top: 1rem; color: var(--yg-wd-muted); }
.yg-workshop-detail .yg-wd-context span { display: inline-flex; align-items: center; }
.yg-workshop-detail .yg-wd-context a { color: var(--yg-primary-dark); font-weight: 700; text-underline-offset: .18em; }

.yg-workshop-detail .yg-wd-past { margin-bottom: 2rem; padding: 1.15rem 1.3rem; border-left: 4px solid #aa7046; background: #fbf3ea; }
.yg-workshop-detail .yg-wd-past h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.yg-workshop-detail .yg-wd-past p { margin: 0 0 .55rem; color: var(--yg-wd-muted); }
.yg-workshop-detail .yg-wd-past a { color: var(--yg-primary-dark); font-weight: 700; }

.yg-workshop-detail .yg-wd-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); align-items: start; gap: clamp(1.25rem, 3vw, 2.35rem); margin-bottom: clamp(3rem, 6vw, 4rem); }
.yg-workshop-detail .yg-wd-intro-grid--no-media { grid-template-columns: minmax(320px, 640px); justify-content: end; }
.yg-workshop-detail .yg-wd-media { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--yg-wd-line); border-radius: var(--yg-radius); background: linear-gradient(145deg, #e9e4d9, #f8f6f1); box-shadow: var(--yg-shadow-sm); }
.yg-workshop-detail .yg-wd-media > a { position: relative; display: block; height: clamp(330px, 42vw, 530px); color: inherit; text-decoration: none; cursor: zoom-in; }
.yg-workshop-detail .yg-wd-media__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.yg-workshop-detail .yg-wd-media--poster > a { display: grid; place-items: center; height: min(52vw, 530px); min-height: 360px; }
.yg-workshop-detail .yg-wd-media--poster .yg-wd-media__image { width: 100%; height: 100%; object-fit: contain; }
.yg-workshop-detail .yg-wd-media__action { position: absolute; right: 1rem; bottom: 1rem; padding: .5rem .8rem; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--yg-title); font-size: .79rem; font-weight: 700; box-shadow: 0 3px 14px rgba(46,59,43,.15); }
.yg-workshop-detail .yg-wd-media a:hover .yg-wd-media__action,
.yg-workshop-detail .yg-wd-media a:focus-visible .yg-wd-media__action { background: var(--yg-primary); color: #fff; }
.yg-workshop-detail .yg-wd-media a:focus-visible,
.yg-workshop-detail .yg-wd-poster a:focus-visible { outline: 3px solid var(--yg-primary); outline-offset: -4px; }

.yg-workshop-detail .yg-wd-enquiry { padding: 1.45rem; border: 1px solid var(--yg-wd-line); border-radius: var(--yg-radius); background: var(--yg-wd-surface); box-shadow: var(--yg-shadow); }
.yg-workshop-detail .yg-wd-enquiry__item + .yg-wd-enquiry__item,
.yg-workshop-detail .yg-wd-enquiry__item + .yg-wd-price,
.yg-workshop-detail .yg-wd-price + .yg-wd-enquiry__item { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--yg-wd-line); }
.yg-workshop-detail .yg-wd-enquiry__item { display: grid; gap: .22rem; }
.yg-workshop-detail .yg-wd-enquiry__item strong { font-family: var(--yg-font-title); font-size: 1.18rem; line-height: 1.32; }
.yg-workshop-detail .yg-wd-enquiry__item p { margin: 0; color: var(--yg-wd-muted); font-size: .94rem; line-height: 1.45; }
.yg-workshop-detail .yg-wd-price { display: grid; gap: .35rem; }
.yg-workshop-detail .yg-wd-price p { margin: 0; color: var(--yg-title); font-size: 1rem; font-weight: 600; line-height: 1.55; text-align: left; white-space: pre-line; overflow-wrap: anywhere; }
.yg-workshop-detail .yg-wd-primary-cta,
.yg-workshop-detail .yg-wd-mobile-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 1.25rem; padding: .75rem 1rem; border-radius: 999px; background: var(--yg-primary); color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.yg-workshop-detail .yg-wd-primary-cta:hover,
.yg-workshop-detail .yg-wd-primary-cta:focus-visible,
.yg-workshop-detail .yg-wd-mobile-cta:hover,
.yg-workshop-detail .yg-wd-mobile-cta:focus-visible { background: var(--yg-primary-dark); color: #fff; }
.yg-workshop-detail .yg-wd-primary-cta:focus-visible,
.yg-workshop-detail .yg-wd-mobile-cta:focus-visible { outline: 3px solid var(--yg-amber); outline-offset: 2px; }
.yg-workshop-detail .yg-wd-enquiry__note { margin: .8rem 0 0; color: var(--yg-wd-muted); font-size: .86rem; line-height: 1.5; }
.yg-workshop-detail .yg-wd-direct-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .85rem; }
.yg-workshop-detail .yg-wd-direct-actions a { color: var(--yg-primary-dark); font-size: .92rem; font-weight: 700; text-underline-offset: .18em; }

.yg-workshop-detail .yg-wd-content { max-width: 820px; margin-inline: auto; }
.yg-workshop-detail .yg-wd-section + .yg-wd-section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.yg-workshop-detail .yg-wd-section { scroll-margin-top: 7rem; }
.yg-workshop-detail .yg-wd-section > h2 { margin: 0 0 1.1rem; font-size: clamp(1.85rem, 3.5vw, 2.65rem); line-height: 1.15; }
.yg-workshop-detail .yg-wd-prose { color: var(--yg-text); font-size: 1.04rem; line-height: 1.75; }
.yg-workshop-detail .yg-wd-prose > :first-child { margin-top: 0; }
.yg-workshop-detail .yg-wd-prose > :last-child { margin-bottom: 0; }
.yg-workshop-detail .yg-wd-prose h2,
.yg-workshop-detail .yg-wd-prose h3 { margin-top: 1.6em; }
.yg-workshop-detail .yg-wd-prose a { color: var(--yg-primary-dark); text-underline-offset: .18em; }
.yg-workshop-detail .yg-wd-prose ul,
.yg-workshop-detail .yg-wd-prose ol { padding-left: 1.35rem; }

.yg-workshop-detail .yg-wd-dates { display: grid; gap: .75rem; }
.yg-workshop-detail .yg-wd-date { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .7fr); gap: 1rem; align-items: center; padding: 1rem 1.15rem; border: 1px solid var(--yg-wd-line); border-radius: var(--yg-radius-sm); background: #fff; }
.yg-workshop-detail .yg-wd-date.is-current { border-left: 4px solid var(--yg-primary); background: rgba(122,155,94,.08); }
.yg-workshop-detail .yg-wd-date.is-past { background: var(--yg-wd-soft); }
.yg-workshop-detail .yg-wd-date h3 { margin: .15rem 0 0; font-size: 1.2rem; }
.yg-workshop-detail .yg-wd-date p { margin: 0; color: var(--yg-wd-muted); line-height: 1.45; }
.yg-workshop-detail .yg-wd-more-dates { margin-top: .9rem; }
.yg-workshop-detail .yg-wd-more-dates summary { width: fit-content; color: var(--yg-primary-dark); font-weight: 700; cursor: pointer; }
.yg-workshop-detail .yg-wd-more-dates[open] summary { margin-bottom: .75rem; }
.yg-workshop-detail .yg-wd-poster { width: min(620px, 100%); margin: 0; }
.yg-workshop-detail .yg-wd-poster a { display: block; border-radius: var(--yg-radius-sm); overflow: hidden; background: var(--yg-wd-soft); box-shadow: var(--yg-shadow-sm); cursor: zoom-in; }
.yg-workshop-detail .yg-wd-poster__image { display: block; width: 100%; height: auto; }
.yg-workshop-detail .yg-wd-teacher { margin: 0 0 1.1rem; font-family: var(--yg-font-title); font-size: 1.4rem; font-weight: 650; }
.yg-workshop-detail .yg-wd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.yg-workshop-detail .yg-wd-facts div { padding: .9rem 1rem; border-left: 3px solid var(--yg-primary); background: var(--yg-wd-soft); }
.yg-workshop-detail .yg-wd-facts dd { margin: .25rem 0 0; color: var(--yg-text); }
.yg-workshop-detail .yg-wd-organizer { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem; border: 1px solid var(--yg-wd-line); border-radius: var(--yg-radius); background: var(--yg-wd-soft); }
.yg-workshop-detail .yg-wd-organizer__image { width: 80px; height: 80px; flex: none; border-radius: 50%; object-fit: cover; }
.yg-workshop-detail .yg-wd-organizer h3 { margin: 0 0 .45rem; font-size: 1.35rem; }
.yg-workshop-detail .yg-wd-organizer h3 a { color: var(--yg-title); text-underline-offset: .18em; }

.yg-workshop-detail .yg-wd-contact-section { max-width: 820px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: clamp(1.35rem, 4vw, 2.2rem); border: 1px solid var(--yg-wd-line); border-radius: var(--yg-radius); background: #fff; box-shadow: var(--yg-shadow-sm); scroll-margin-top: 7rem; }
.yg-workshop-detail .yg-wd-contact-section:focus { outline: none; }
.yg-workshop-detail .yg-wd-contact-section__eyebrow { margin: 0 0 .25rem; color: var(--yg-primary-dark); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.yg-workshop-detail .yg-wd-contact-section h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.yg-workshop-detail .yg-wd-contact-section__org { margin: .45rem 0 1.2rem; color: var(--yg-wd-muted); }
.yg-workshop-detail .yg-wd-contact-section .yg-lead__form { gap: .45rem; }
.yg-workshop-detail .yg-wd-contact-section .yg-lead__label { margin-top: .7rem; font-size: .78rem; }
.yg-workshop-detail .yg-wd-contact-section .yg-lead__input { min-height: 46px; padding: .72rem .78rem; background: #fbfaf7; font-size: 1rem; }
.yg-workshop-detail .yg-wd-contact-section textarea.yg-lead__input { min-height: 132px; resize: vertical; }
.yg-workshop-detail .yg-wd-contact-section .yg-lead__info,
.yg-workshop-detail .yg-wd-contact-section .yg-lead__legal-note { font-size: .82rem; line-height: 1.5; }
.yg-workshop-detail .yg-wd-contact-section .yg-lead__consent { font-size: .9rem; line-height: 1.5; }
.yg-workshop-detail .yg-wd-contact-section .yg-lead__submit { width: 100%; min-height: 48px; margin-top: 1rem; border: 0; border-radius: 999px; background: var(--yg-primary); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; }
.yg-workshop-detail .yg-wd-contact-section .yg-lead__submit:hover,
.yg-workshop-detail .yg-wd-contact-section .yg-lead__submit:focus-visible { background: var(--yg-primary-dark); }

.yg-workshop-detail .yg-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; max-width: 820px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding-top: 1.25rem; border-top: 1px solid var(--yg-wd-line); }
.yg-workshop-detail .yg-share__btn,
.yg-workshop-detail .yg-share__opt { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--yg-wd-line); border-radius: 999px; background: transparent; color: var(--yg-primary-dark); font: 600 .92rem/1.2 var(--yg-font-body); text-decoration: none; cursor: pointer; }
.yg-workshop-detail .yg-share__btn:hover,
.yg-workshop-detail .yg-share__opt:hover { background: var(--yg-primary); color: #fff; }
.yg-workshop-detail .yg-share__panel { display: flex; flex-wrap: wrap; gap: .5rem; }
.yg-workshop-detail .yg-share__panel[hidden] { display: none; }
.yg-workshop-detail .yg-share__msg { min-height: 1.25em; margin: 0; color: var(--yg-primary-dark); font-size: .88rem; }
.yg-workshop-detail a.yg-wd-mobile-cta { display: none; }

/* Los widgets globales conservan su funcion y nombre accesible, pero no tapan
   la tarjeta lateral de consulta en esta ficha. */
body.single-taller .yg-assistant__launcher,
body.single-taller .yg-whatsapp-help { justify-content: center; width: 52px; min-width: 52px; height: 52px; padding: 0; overflow: hidden; border-radius: 50%; }
body.single-taller .yg-assistant__launcher > span:last-child,
body.single-taller .yg-whatsapp-help > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.single-taller .yg-whatsapp-help__icon { margin: 0; }

@media (max-width: 760px) {
    .yg-workshop-detail { padding-bottom: 5.5rem; }
    .yg-workshop-detail.is-mobile-cta-hidden { padding-bottom: 2rem; }
    .yg-workshop-detail .yg-wd-shell { width: min(100% - 32px, 1180px); }
    .yg-workshop-detail .yg-wd-header { margin-top: 1.65rem; }
    .yg-workshop-detail .yg-wd-title { max-width: none; font-size: clamp(2.1rem, 10vw, 3.1rem); }
    .yg-workshop-detail .yg-wd-context { align-items: flex-start; flex-direction: column; }
    .yg-workshop-detail .yg-wd-intro-grid,
    .yg-workshop-detail .yg-wd-intro-grid--no-media { grid-template-columns: 1fr; }
    .yg-workshop-detail .yg-wd-enquiry { order: -1; }
    .yg-workshop-detail .yg-wd-media > a { height: clamp(230px, 68vw, 330px); }
    .yg-workshop-detail .yg-wd-media--poster > a { min-height: 0; height: min(92vw, 440px); }
    .yg-workshop-detail .yg-wd-media__action { right: .7rem; bottom: .7rem; }
    .yg-workshop-detail .yg-wd-date { grid-template-columns: 1fr; gap: .45rem; }
    .yg-workshop-detail .yg-wd-facts { grid-template-columns: 1fr; }
    .yg-workshop-detail .yg-wd-organizer { align-items: center; }
    .yg-workshop-detail a.yg-wd-mobile-cta { position: fixed; right: .75rem; bottom: max(.65rem, env(safe-area-inset-bottom)); left: .75rem; z-index: 70; display: flex; width: auto; min-height: 52px; margin: 0; box-shadow: 0 10px 28px rgba(47,51,44,.26); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
    .yg-workshop-detail .yg-wd-mobile-cta.is-hidden { opacity: 0; transform: translateY(120%); visibility: hidden; pointer-events: none; }
    .single-taller .yg-whatsapp-help { bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4.4rem)); }
    .single-taller .yg-assistant { bottom: max(9.25rem, calc(env(safe-area-inset-bottom) + 8.65rem)); }
}

@media (prefers-reduced-motion: reduce) {
    .yg-workshop-detail .yg-wd-mobile-cta { transition: none; }
}
