/* Home uses the published .gt gallery's dark grid, rounded photos and glow. */
.en-preview .home-gallery{scroll-margin-top:110px;padding:clamp(36px,5vw,64px) 0;background:var(--ne);color:var(--bl)}
.en-preview .home-gallery h2{color:var(--bl)}
.en-preview .home-gallery__intro{max-width:740px;color:rgba(255,255,255,.8);margin:20px 0 28px;line-height:1.65}
.en-preview .home-gallery__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.en-preview .home-gallery__grid a{display:block;position:relative;overflow:hidden;aspect-ratio:1;border-radius:12px;background:#0d0d0d;cursor:zoom-in}
.en-preview .home-gallery__grid img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s,filter .25s}
.en-preview .home-gallery__grid a:focus-visible{outline:3px solid var(--am);outline-offset:4px}
.en-preview .price-card a[href="#presupuesto-home"]{display:inline-flex;align-items:center;min-height:44px}
.en-preview .price-card a[href="#presupuesto-home"]:focus-visible{outline:3px solid var(--am);outline-offset:4px}
.en-preview .home-gallery__controls{display:none}
.en-preview .home-structure .home-gallery{border-top:1px solid #352b35;padding-block:clamp(32px,4vw,56px)}
.en-preview .home-structure .home-gallery :is(.ey,h2,.home-gallery__intro){text-align:center}
.en-preview .home-structure .home-gallery__intro{margin:14px auto 24px}
@media(min-width:768px){.en-preview .home-gallery__grid{gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));max-width:1200px;margin-inline:auto}.en-preview .home-structure .home-gallery__grid a{aspect-ratio:4/3}}
@media(min-width:1200px){.en-preview .home-gallery__grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:767px){
  .en-preview .home-gallery__grid{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:5px;padding:5px;margin:-5px;scrollbar-width:thin;scrollbar-color:var(--mg) #333}
  .en-preview .home-gallery__grid a{flex:0 0 min(360px,calc(100% - 40px));scroll-snap-align:start}
  .en-preview .home-gallery__grid:focus-visible{outline:3px solid var(--am);outline-offset:4px}
  .en-preview .home-gallery__controls{display:flex;align-items:center;gap:12px;margin-top:18px}
  .en-preview .home-gallery__hint{flex:1;font-size:13px;color:#ccc}
  .en-preview .home-gallery__count{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#fff}
  .en-preview .home-gallery__controls button{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #777;border-radius:50%;background:#222;color:#fff;font-size:28px;cursor:pointer}
  .en-preview .home-gallery__controls button[aria-disabled=true]{opacity:.4;cursor:default}
  .en-preview .home-gallery__controls button:focus-visible{outline:3px solid var(--am);outline-offset:3px}
}
@media(hover:hover){.en-preview .home-gallery__grid a:hover{box-shadow:0 0 20px rgba(230,0,126,.45)}.en-preview .home-gallery__grid a:hover img{transform:scale(1.04);filter:brightness(1.08)}}
/* Native dialog supplies modal focus containment and makes the page inert. */
.home-gallery-dialog{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:64px 60px 24px;border:0;background:rgba(8,8,8,.96);color:#fff;box-sizing:border-box;font-family:Raleway,system-ui,sans-serif}
.home-gallery-dialog[open]{display:flex;align-items:center;justify-content:center}
.home-gallery-dialog::backdrop{background:rgba(8,8,8,.9)}
.home-gallery-dialog figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px;max-width:1100px;width:100%;max-height:100%}
.home-gallery-dialog img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 180px);object-fit:contain;border-radius:12px;background:#0d0d0d;box-shadow:0 0 32px rgba(230,0,126,.25)}
.home-gallery-dialog figcaption{font-size:15px;line-height:1.5;text-align:center;color:#fff;max-width:64ch}
.home-gallery-dialog button{position:absolute;display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:1px solid #777;border-radius:50%;background:#161616;color:#fff;cursor:pointer;font-size:32px;line-height:1}
.home-gallery-dialog button:hover{background:#e6007e}
.home-gallery-dialog button:focus-visible{outline:3px solid #ffed00;outline-offset:3px}
.home-gallery-dialog__close{top:12px;right:12px}
.home-gallery-dialog__prev{left:8px;top:calc(50% - 24px)}
.home-gallery-dialog__next{right:8px;top:calc(50% - 24px)}
@media(max-width:599px){.home-gallery-dialog{padding:72px 12px 88px}.home-gallery-dialog img{max-height:calc(100dvh - 235px)}.home-gallery-dialog__prev,.home-gallery-dialog__next{top:auto;bottom:20px}.home-gallery-dialog__prev{left:calc(50% - 64px)}.home-gallery-dialog__next{right:calc(50% - 64px)}}
@media(prefers-reduced-motion:reduce){.en-preview .home-gallery__grid img{transition:none}.en-preview .home-gallery__grid a:hover img{transform:none}}

/* Keep the complete sign: uncropped sources and an individual focal point. */
.en-preview .home-gallery__grid img{object-fit:var(--gallery-fit,cover);object-position:var(--gallery-position,50% 50%);transform:translateY(var(--gallery-offset,0%)) scale(var(--gallery-zoom,1))}
@media(hover:hover){.en-preview .home-gallery__grid a:hover img{transform:translateY(var(--gallery-offset,0%)) scale(var(--gallery-zoom,1))}}
