/* Scope: El centro and its photograph viewer only. */
#espacio .centre-photo{display:block;position:relative;overflow:hidden;color:var(--beige);background:var(--cacao);text-decoration:none}
#espacio .centre-photo>span{position:absolute;right:14px;bottom:14px;padding:11px 16px;background:var(--cacao);color:var(--beige);font-size:12px;line-height:1.6;border:1px solid var(--beige)}
#espacio .centre-photo:focus-visible{outline-offset:-5px;outline-color:var(--beige)}
#espacio .centre-lead>figure .centre-photo{flex:1;display:flex}
#espacio .centre-lead>figure .centre-photo img{width:100%;height:100%}
#espacio .centre-scenes .scene-detail img{aspect-ratio:4/3}
.centre-viewer{padding:0;border:1px solid var(--taupe);background:var(--cacao);color:var(--beige);width:min(1100px,94vw);max-width:94vw;max-height:94svh;overflow:auto}
.centre-viewer::backdrop{background:rgba(31,24,20,.88)}
.centre-viewer .viewer-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 22px;border-bottom:1px solid var(--taupe)}
.centre-viewer h2{font-size:22px;letter-spacing:-.02em;margin:0}
.centre-viewer button{min-height:44px;padding:9px 16px;border:1px solid var(--beige);background:transparent;color:var(--beige);flex-shrink:0}
.centre-viewer img{width:100%;height:68svh;object-fit:contain;background:var(--cacao)}
.centre-viewer figcaption{padding:18px 22px;font-size:14px;line-height:1.6;max-width:850px}
@media(max-width:700px){#espacio .centre-lead>figure .centre-photo img{height:auto;min-height:0}.centre-viewer .viewer-head{padding:12px 16px;gap:12px}.centre-viewer h2{font-size:18px}.centre-viewer img{height:60svh}.centre-viewer figcaption{padding:16px;font-size:13px}}
@media(prefers-reduced-motion:no-preference){#espacio .centre-photo img{transition:transform .65s ease}#espacio .centre-photo:hover img{transform:scale(1.025)}}

/* R2.18: excluded cabin photograph; rebalance the two remaining scenes. */
@media(min-width:701px){#espacio .centre-scenes{grid-template-columns:1.1fr 1fr;gap:8%;max-width:1040px;margin-left:auto;margin-right:auto}#espacio .scene-detail{margin-top:100px}}

/* R2.19: real consultation footage, with its whole landscape frame preserved. */
#espacio .centre-lead>figure{justify-content:center}
#espacio .centre-film{position:relative;aspect-ratio:16/9;width:100%;overflow:hidden}
#espacio .centre-film .centre-poster{width:100%;height:100%;min-height:0;aspect-ratio:16/9;object-fit:contain}
#espacio .centre-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:1}
/* Keep the native poster/video visible before playing, as in the working hero.
   Hiding it until a playback event can prevent the first visible frame on iOS. */
#espacio .centre-film.has-error video{opacity:0}
#espacio .centre-lead>figure figcaption{line-height:1.6;padding:18px 22px}
#espacio .centre-media-actions{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:12px;align-items:center}
#espacio .centre-video-control,#espacio .centre-photo-original{font:inherit;font-size:12px;min-height:44px;padding:10px 12px;border:1px solid var(--taupe);background:var(--cacao);color:var(--beige);cursor:pointer;flex:none;display:inline-flex;align-items:center}
#espacio .centre-video-control[hidden],#espacio .centre-photo-original img[hidden]{display:none}
#espacio .centre-lead>figure .centre-photo-original{flex:none;display:inline-flex}
#espacio address{font-style:normal;line-height:1.8;margin:18px 0 24px}
@media(prefers-reduced-motion:reduce){#espacio .centre-film video{display:none}}

/* R2.20: entrance photograph alongside two real, independently controlled films. */
#espacio .centre-scenes{row-gap:42px;align-items:start}
#espacio .centre-scenes .centre-poster{aspect-ratio:16/9;width:100%;height:100%;object-fit:contain}
#espacio .centre-scenes .centre-video-control{margin-top:18px}
#espacio .scene-espera h3,#espacio .scene-recepcion h3{font-size:clamp(27px,2.4vw,34px);margin:14px 0}
@media(min-width:701px){#espacio .centre-scenes{grid-template-columns:1fr 1.15fr;column-gap:7%}#espacio .scene-entrance{grid-column:1;grid-row:1 / span 2}#espacio .scene-espera{grid-column:2;grid-row:1}#espacio .scene-recepcion{grid-column:2;grid-row:2}}

/* R2.38: controls belong to the film, not the caption. */
#espacio .centre-film .centre-video-control{position:absolute;right:12px;bottom:12px;z-index:2;margin:0}

/* R2.74: preserve the complete portrait footage and existing editorial palette. */
#espacio .centre-film{aspect-ratio:9/16}
#espacio .centre-film .centre-poster{aspect-ratio:9/16;object-fit:contain;max-height:none}
#espacio .centre-lead>figure{width:100%;max-width:380px;justify-self:center}
#espacio .centre-lead{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
#espacio .centre-scenes{max-width:1080px;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-left:auto;margin-right:auto}
#espacio .centre-scenes>figure{grid-column:auto;grid-row:auto;margin-top:0}
#espacio .scene-entrance .centre-photo img{aspect-ratio:9/16;object-fit:cover;max-height:none}
.centre-gallery{margin:40px 0;border-top:1px solid var(--taupe);border-bottom:1px solid var(--taupe)}
.centre-gallery>summary{cursor:pointer;min-height:56px;padding:18px 0;font:inherit;display:flex;justify-content:space-between;align-items:center}
.centre-gallery>summary::-webkit-details-marker{display:none}
.centre-gallery[open]>summary span{transform:rotate(45deg)}
.centre-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-bottom:24px}
.centre-gallery-grid img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
.centre-gallery>summary:focus-visible{outline:2px solid var(--cacao);outline-offset:4px}
@media(max-width:700px){#espacio .centre-lead{display:block}#espacio .centre-lead>figure{max-width:none}#espacio .centre-scenes{grid-template-columns:1fr;gap:36px}.centre-gallery-grid{grid-template-columns:1fr;gap:20px}}

/* R2.75: restore the approved landscape consultation without cropping. */
#espacio .centre-restored-consultation{margin:40px auto 56px;max-width:1080px}
#espacio .centre-restored-consultation h3{font-size:clamp(26px,3vw,38px);margin:0 0 22px}
#espacio .centre-restored-consultation .centre-film,#espacio .centre-restored-consultation .centre-poster{aspect-ratio:16/9;object-fit:contain}

/* R2.76: one shared composition; equal panels, original footage proportions. */
.centre-consultations{margin:36px auto 56px;max-width:1080px}
.centre-consultations>h3{font-size:clamp(28px,3vw,40px);margin:0 0 26px}
.consultation-pair{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch}
#espacio .consultation-panel{margin:0;min-width:0;background:var(--cacao);display:flex;align-items:center}
#espacio .consultation-panel .centre-film{width:100%;height:430px;aspect-ratio:auto;background:var(--cacao)}
#espacio .consultation-panel .centre-poster,#espacio .consultation-panel video{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.centre-consultations .centre-story{margin-top:28px;padding:28px;background:var(--cacao);color:var(--beige)}
.centre-consultations .centre-story h3{font-size:clamp(25px,2.6vw,34px)}
.centre-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.consultation-pair{grid-template-columns:1fr;gap:20px}#espacio .consultation-panel .centre-film{height:360px}.centre-consultations .centre-story{padding:24px}.centre-gallery-grid{grid-template-columns:1fr}}

/* Keep unused space in the page background, without heavy video frames. */
#espacio .consultation-panel,#espacio .consultation-panel .centre-film{background:transparent}
.centre-consultations .centre-story{background:transparent;color:var(--cacao);padding:28px 0 0;border-top:1px solid var(--taupe)}
@media(min-width:701px){.centre-consultations .centre-story{display:grid;grid-template-columns:1fr 1fr;gap:12px 40px}.centre-consultations .centre-story .eyebrow{grid-column:1/-1}.centre-consultations .centre-story h3{margin:0}.centre-consultations .room-counts{grid-column:1/-1}}

/* R2.77: equal height with native 9:16 and 16:9 widths. */
.consultation-pair{grid-template-columns:81fr 256fr;align-items:start}
#espacio .consultation-portrait .centre-film{height:auto;aspect-ratio:9/16}
#espacio .consultation-landscape .centre-film{height:auto;aspect-ratio:16/9}
@media(max-width:700px){.consultation-pair{grid-template-columns:1fr}#espacio .consultation-portrait{width:100%;max-width:320px;justify-self:center}}

/* R2.78: both consultation films in native portrait format. */
.consultation-pair{grid-template-columns:1fr 1fr;max-width:800px;margin-inline:auto}
#espacio .consultation-panel .centre-film{height:auto;aspect-ratio:9/16}
@media(max-width:700px){.consultation-pair{grid-template-columns:1fr;max-width:320px}#espacio .consultation-panel{width:100%}}
