/* Ficha individual de Estudio. Aislada del patron visual legacy .yg-retiro. */
.yg-studio-detail {
    --yg-sd-line: #dedbd2;
    --yg-sd-soft: #f4f1e8;
    --yg-sd-surface: #fff;
    --yg-sd-muted: #6d716b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem clamp(3rem, 7vw, 6rem);
    color: var(--yg-text);
}

.yg-studio-detail a { color: var(--yg-primary-dark); }
.yg-studio-detail a:focus-visible,
.yg-studio-detail button:focus-visible { outline: 3px solid var(--yg-primary); outline-offset: 3px; }
.yg-sd-header { max-width: 920px; margin: clamp(2rem, 5vw, 4.4rem) 0 clamp(1.5rem, 3vw, 2.4rem); }
.yg-sd-eyebrow,
.yg-sd-enquiry__eyebrow,
.yg-sd-claim__eyebrow { margin: 0 0 0.45rem; color: var(--yg-primary-dark); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.11em; text-transform: uppercase; }
.yg-sd-title { max-width: 17ch; margin: 0; color: var(--yg-title); font-size: clamp(2.45rem, 6vw, 4.9rem); line-height: 0.98; letter-spacing: -0.045em; }
.yg-sd-context { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.35rem; margin-top: 1rem; color: var(--yg-sd-muted); }
.yg-sd-location { display: inline-flex; align-items: center; gap: 0.42rem; }
.yg-sd-byline a { font-weight: 700; text-underline-offset: 0.18em; }

.yg-sd-media { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 0.75rem; min-height: clamp(390px, 50vw, 610px); margin-bottom: clamp(1.7rem, 4vw, 3.2rem); }
.yg-sd-media > a { display: block; min-width: 0; overflow: hidden; border-radius: 14px; background: #e9e4d8; cursor: zoom-in; }
.yg-sd-media__main { grid-row: 1 / 3; }
.yg-sd-media__secondary:nth-of-type(n+4) { display: none; }
.yg-sd-media__hidden { display: none !important; }
.yg-sd-media__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.22s ease; }
.yg-sd-media > a:hover .yg-sd-media__image { transform: scale(1.02); }
.yg-sd-media--single { display: block; min-height: 0; }
.yg-sd-media--single .yg-sd-media__main { height: clamp(360px, 52vw, 640px); }
.yg-sd-media__all { position: absolute; right: 1rem; bottom: 1rem; min-height: 42px; padding: 0.65rem 1rem; border: 1px solid rgba(46,59,43,.16); border-radius: 999px; background: rgba(255,255,255,.95); color: var(--yg-title); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 18px rgba(46,59,43,.15); }
.yg-sd-media__all:hover { background: var(--yg-primary); color: #fff; }

.yg-sd-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.2rem, 5vw, 5rem); align-items: start; }
.yg-sd-primary { min-width: 0; grid-column: 1; grid-row: 2; }
.yg-sd-columns--no-facts .yg-sd-primary { grid-row: 1; }
.yg-sd-facts { grid-column: 1; grid-row: 1; padding: 1.15rem 1.3rem; margin: 0; border: 1px solid var(--yg-sd-line); border-radius: 14px; background: var(--yg-sd-soft); }
.yg-sd-facts dl { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0; }
.yg-sd-facts dl div { min-width: min(220px, 100%); }
.yg-sd-facts dt { margin-bottom: 0.25rem; color: var(--yg-primary-dark); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.yg-sd-facts dd { margin: 0; color: var(--yg-title); font-family: var(--yg-font-title); font-size: 1.05rem; font-weight: 600; }

.yg-sd-section,
.yg-studio-detail #yg-solicitud { scroll-margin-top: 6.5rem; }
.yg-sd-section { margin-bottom: clamp(2.8rem, 6vw, 4.8rem); }
.yg-sd-section > h2 { margin: 0 0 1.15rem; font-size: clamp(1.75rem, 3.5vw, 2.4rem); letter-spacing: -0.025em; }
.yg-sd-prose { max-width: 72ch; font-size: 1.04rem; line-height: 1.78; }
.yg-sd-prose > :first-child { margin-top: 0; }
.yg-sd-prose > :last-child { margin-bottom: 0; }
.yg-sd-section-intro { margin: -0.45rem 0 1rem; color: var(--yg-sd-muted); }
.yg-sd-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.yg-sd-chips li { margin: 0; padding: 0.5rem 0.8rem; border: 1px solid var(--yg-sd-line); border-radius: 999px; background: var(--yg-sd-soft); color: var(--yg-title); font-size: 0.9rem; font-weight: 650; }

.yg-sd-address { padding: 1.05rem 1.2rem; border-left: 4px solid var(--yg-primary); background: var(--yg-sd-soft); color: var(--yg-title); font-style: normal; line-height: 1.6; }
.yg-sd-map { aspect-ratio: 16 / 9; min-height: 300px; margin-top: 1rem; overflow: hidden; border: 1px solid var(--yg-sd-line); border-radius: 14px; }
.yg-sd-map iframe { width: 100%; height: 100%; border: 0; }
.yg-sd-text-link { display: inline-flex; margin-top: 0.9rem; font-weight: 700; text-underline-offset: 0.2em; }

.yg-sd-organizer { padding: clamp(1.25rem, 3vw, 1.8rem); border: 1px solid var(--yg-sd-line); border-radius: 16px; background: var(--yg-sd-soft); }
.yg-sd-organizer__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.yg-sd-organizer__head h3 { margin: 0; font-size: 1.45rem; }
.yg-sd-organizer__image { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; }

.yg-sd-enquiry { position: sticky; top: 6rem; grid-column: 2; grid-row: 1 / span 2; padding: 1.45rem; border: 1px solid var(--yg-sd-line); border-radius: 16px; background: var(--yg-sd-surface); box-shadow: var(--yg-shadow); }
.yg-sd-enquiry h2 { margin: 0 0 1rem; font-size: 1.55rem; }
.yg-sd-primary-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1rem; border: 2px solid var(--yg-primary); border-radius: 999px; background: var(--yg-primary); color: #fff !important; font-weight: 750; text-align: center; text-decoration: none; }
.yg-sd-primary-cta:hover { border-color: var(--yg-primary-dark); background: var(--yg-primary-dark); }
.yg-sd-enquiry__note { margin: 0.75rem 0 0; color: var(--yg-sd-muted); font-size: 0.84rem; line-height: 1.5; }
.yg-sd-direct { display: flex; flex-wrap: wrap; gap: 0.48rem; margin-top: 1rem; }
.yg-sd-direct a { display: inline-flex; align-items: center; min-height: 38px; padding: 0.45rem 0.78rem; border: 1px solid var(--yg-sd-line); border-radius: 999px; font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.yg-sd-direct a:hover { border-color: var(--yg-primary); background: var(--yg-sd-soft); }
.yg-sd-social { display: flex; gap: 1rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--yg-sd-line); }
.yg-sd-social a { font-size: 0.84rem; font-weight: 650; }

.yg-sd-claim { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 1.45rem; margin-bottom: clamp(2.8rem, 6vw, 4.8rem); border: 1px dashed #c9a86a; border-radius: 14px; background: #fbf7ee; }
.yg-sd-claim h2 { margin: 0; font-size: 1.35rem; }
.yg-sd-claim p:not(.yg-sd-claim__eyebrow) { margin: 0.35rem 0 0; }
.yg-sd-claim > a { flex: none; padding: 0.65rem 0.9rem; border: 1px solid var(--yg-primary); border-radius: 999px; font-size: 0.88rem; font-weight: 700; text-decoration: none; }

.yg-studio-detail .yg-sd-contact-section { padding: clamp(1.35rem, 4vw, 2.2rem); margin-top: clamp(3rem, 7vw, 5rem); border: 1px solid var(--yg-sd-line); border-radius: 16px; background: var(--yg-sd-surface); box-shadow: var(--yg-shadow-sm); }
.yg-studio-detail .yg-sd-contact-section:focus { outline: none; }
.yg-studio-detail .yg-sd-contact-section__eyebrow { margin: 0 0 0.25rem; color: var(--yg-primary-dark); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.yg-studio-detail .yg-sd-contact-section h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.yg-studio-detail .yg-sd-contact-section__org { margin: 0.45rem 0 1.2rem; color: var(--yg-sd-muted); }
.yg-studio-detail .yg-sd-contact-section .yg-lead__form { gap: 0.45rem; }
.yg-studio-detail .yg-sd-contact-section .yg-lead__label { margin-top: 0.7rem; font-size: 0.78rem; }
.yg-studio-detail .yg-sd-contact-section .yg-lead__input { min-height: 46px; padding: 0.72rem 0.78rem; background: #fbfaf7; font-size: 1rem; }
.yg-studio-detail .yg-sd-contact-section textarea.yg-lead__input { min-height: 132px; resize: vertical; }
.yg-studio-detail .yg-sd-contact-section .yg-lead__info,
.yg-studio-detail .yg-sd-contact-section .yg-lead__legal-note { font-size: 0.82rem; line-height: 1.5; }
.yg-studio-detail .yg-sd-contact-section .yg-lead__consent { font-size: 0.9rem; line-height: 1.5; }
.yg-studio-detail .yg-sd-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: inherit; font-weight: 750; cursor: pointer; }
.yg-studio-detail .yg-sd-contact-section .yg-lead__submit:hover { background: var(--yg-primary-dark); }
.yg-studio-detail .yg-share { max-width: 820px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; }

@media (max-width: 820px) {
	.yg-sd-media { grid-template-columns: minmax(0, 1.65fr) minmax(190px, .85fr); min-height: 430px; }
	.yg-sd-columns { grid-template-columns: 1fr; gap: 1.5rem; }
	.yg-sd-facts { grid-column: 1; grid-row: 1; }
	.yg-sd-enquiry { position: static; grid-column: 1; grid-row: 2; }
	.yg-sd-primary { grid-column: 1; grid-row: 3; }
	.yg-sd-columns--no-facts .yg-sd-enquiry { grid-row: 1; }
	.yg-sd-columns--no-facts .yg-sd-primary { grid-row: 2; }
}

@media (max-width: 600px) {
    .yg-studio-detail { padding-inline: 1rem; }
    .yg-sd-header { margin-top: 1.7rem; }
    .yg-sd-title { max-width: none; font-size: clamp(2.2rem, 12vw, 3.2rem); }
    .yg-sd-context { align-items: flex-start; flex-direction: column; }
    .yg-sd-media { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 96px; min-height: 0; gap: 0.45rem; }
    .yg-sd-media__main { grid-column: 1 / -1; grid-row: 1; height: min(78vw, 390px); }
    .yg-sd-media__secondary { grid-row: 2; }
    .yg-sd-media__secondary:nth-of-type(n+5) { display: none; }
    .yg-sd-media--single { display: block; }
    .yg-sd-media--single .yg-sd-media__main { height: min(78vw, 390px); }
    .yg-sd-media__all { right: 4.75rem; bottom: 0.65rem; min-height: 38px; padding: 0.5rem 0.7rem; font-size: 0.76rem; }
    .yg-sd-facts dl { display: grid; gap: 1rem; }
    .yg-sd-map { min-height: 260px; }
    .yg-sd-claim { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .yg-sd-media__image { transition: none; }
    .yg-sd-media > a:hover .yg-sd-media__image { transform: none; }
}
