@font-face{font-family:Roboto;src:url('../assets/Roboto.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--background:#fff;--surface:#f5f5f5;--text:#000;--muted:#525252;--accent:#1a5da9;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-6:1.5rem;--space-8:2rem;--space-12:3rem;--space-16:4rem;--space-24:6rem;--fs-hero:clamp(2.5rem,7vw,5rem);--fs-h2:clamp(1.75rem,4vw,3rem);--fs-body:clamp(1rem,1.6vw,1.125rem);--radius:12px;--maxw:1140px;--nav-height:8rem;--section-space:clamp(4rem,10vw,8rem);--ease:cubic-bezier(.2,.8,.2,1);--duration:500ms;font-family:Roboto,Arial,sans-serif;font-size:16px;color:var(--text);background:var(--background);scroll-behavior:smooth;scroll-padding-bottom:var(--space-24)}
*{box-sizing:border-box}body{margin:0}h1,h2,h3,p,figure,ul{margin:0}h1,h2,h3{line-height:1.15;font-weight:500;letter-spacing:-.035em;text-wrap:balance}h1{font-size:var(--fs-hero)}h2{font-size:var(--fs-h2)}h3{font-size:clamp(1.25rem,2vw,1.5rem)}p,li{font-size:var(--fs-body);line-height:1.6;max-width:68ch}p{text-wrap:pretty}a{color:inherit;text-underline-offset:var(--space-1)}button{cursor:pointer;font:inherit;color:inherit;background:none}a,button{touch-action:manipulation;font-size:1rem}button{border:1px solid currentColor;min-height:48px;padding:var(--space-3) var(--space-4)}a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid currentColor;outline-offset:2px}img{display:block;width:100%;height:auto;max-width:100%}[hidden]{display:none!important}.container{width:min(var(--maxw),100% - 2*var(--space-6));margin-inline:auto}.narrow{max-width:760px}.section{padding-block:var(--section-space);display:grid}section{scroll-margin-top:var(--nav-height)}.section h2+p{margin-top:var(--space-6)}.skip{position:fixed;top:var(--space-2);left:var(--space-2);z-index:100;background:var(--background);color:var(--text);padding:var(--space-4)}.skip:not(:focus){clip-path:inset(100%);width:1px;height:1px;overflow:hidden;padding:0}.navigation{position:sticky;top:0;z-index:20;background:var(--background);color:var(--text)}.nav-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2);padding-block:var(--space-2)}.brand{display:flex;align-items:baseline;gap:var(--space-2);font-size:2rem;font-weight:500;letter-spacing:-.08em;text-decoration:none;min-height:48px}.brand span{font-size:1rem;font-weight:400;letter-spacing:-.02em}nav{display:flex;justify-content:space-between;width:100%;gap:var(--space-1)}nav a{min-height:48px;display:flex;align-items:center;text-decoration:none;border-bottom:2px solid transparent}nav a[aria-current=true]{border-color:currentColor}nav a:hover{text-decoration:underline}
.hero{display:grid;background:var(--text);color:var(--background);grid-template-columns:1fr 1fr;isolation:isolate}.hero-copy{grid-column:1/-1;grid-row:1;padding:var(--space-12) var(--space-6);align-self:center}.byline{margin-bottom:var(--space-6)}.hero-copy h2{font-size:var(--fs-body);line-height:1.6;letter-spacing:0;font-weight:500;margin-top:var(--space-6)}.hero-copy>p:not(.byline){margin-top:var(--space-2)}.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4);margin-top:var(--space-8)}.button,.btn-wsp{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-3);padding:var(--space-4) var(--space-6);min-height:56px;border-radius:var(--radius);background:var(--accent);color:var(--background);text-decoration:none;transition:transform var(--duration) var(--ease),opacity var(--duration) var(--ease)}.button:hover,.btn-wsp:hover{transform:translateY(-2px);text-decoration:underline}.button:active,.btn-wsp:active{transform:scale(.98)}.secondary{display:inline-flex;align-items:center;min-height:48px}.hero-picture{position:relative;min-width:0;aspect-ratio:4/5;overflow:hidden}.hero-picture img{width:100%;height:100%;object-fit:cover}.slot-label{position:absolute;left:var(--space-4);right:var(--space-4);top:50%;color:var(--muted);text-align:center;font-size:1rem;line-height:1.6}.film-layer{position:relative;min-width:0;overflow:hidden;background:var(--text);aspect-ratio:4/5}.film-layer video,.film-canvas{width:100%;height:100%;object-fit:cover;display:block}.film-canvas{position:absolute;inset:0;visibility:hidden;pointer-events:none}.has-film-frame .film-canvas{visibility:visible}.has-film-frame video{opacity:0}#film-toggle{position:absolute;left:var(--space-2);right:var(--space-2);bottom:var(--space-2);background:var(--text);color:var(--background);z-index:1;padding:var(--space-2);border-radius:var(--radius)}
.obra{text-align:center}.obra p{margin-inline:auto}.obra ul{list-style:none;padding:0;margin-top:var(--space-8);display:grid;gap:var(--space-4);text-align:left}.obra li{padding-left:var(--space-6);position:relative}.obra li:before{content:'';position:absolute;left:0;top:.65em;width:var(--space-2);height:var(--space-2);background:var(--text)}.proceso{background:var(--surface)}.section-heading{display:grid;gap:var(--space-6);margin-bottom:var(--space-12)}.section-heading p{color:var(--muted)}.process-grid{display:grid;gap:var(--space-8)}.process-grid article{padding-top:var(--space-6);border-top:1px solid var(--muted)}.process-grid p{color:var(--muted);margin-top:var(--space-4)}.gallery-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-8)}.photo-open{position:relative;display:block;width:100%;padding:0;border:0;background:var(--surface);aspect-ratio:4/3}.photo-open img{height:100%;object-fit:cover}.expand{position:absolute;bottom:var(--space-3);right:var(--space-3);display:flex;align-items:center;justify-content:center;width:48px;height:48px;color:var(--text);background:var(--background);border-radius:var(--radius);font-size:1.5rem;transition:transform var(--duration) var(--ease)}.photo-open:hover .expand{transform:scale(1.1)}figcaption{margin-top:var(--space-4);font-size:1rem;line-height:1.6}.contacto{background:var(--accent);color:var(--background);text-align:center}.contacto p{margin-inline:auto}.btn-wsp{width:100%;max-width:390px}.contacto .btn-wsp{background:var(--background);color:var(--accent);margin-top:var(--space-8)}.btn-wsp svg{flex-shrink:0}.footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-4);padding-block:var(--space-8);padding-bottom:calc(var(--space-24) + env(safe-area-inset-bottom))}.footer p{font-size:1rem}.mobile-cta{position:fixed;bottom:0;left:0;right:0;z-index:15;display:flex;justify-content:center;padding:var(--space-3) var(--space-4);padding-bottom:max(var(--space-3),env(safe-area-inset-bottom));background:var(--background);border-top:1px solid var(--muted)}
dialog{border:1px solid var(--muted);padding:var(--space-6);width:min(960px,100% - 2*var(--space-4));max-height:90svh;color:var(--text);background:var(--background);border-radius:var(--radius)}dialog::backdrop{background:var(--text);opacity:.8}.dialog-header,.dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4)}.dialog-header h2{font-size:1.25rem}.dialog-controls{justify-content:center;margin-top:var(--space-4)}#gallery-image{margin-top:var(--space-6);max-height:55svh;object-fit:contain}#gallery-caption{margin-top:var(--space-4);text-align:center}.is-modal{overflow:hidden}.reveal-ready{opacity:0;transform:translateY(16px)}.reveal-visible{opacity:1;transform:none;transition:opacity var(--duration) var(--ease),transform var(--duration) var(--ease);transition-delay:var(--delay,0ms)}
@media(min-width:768px){:root{--nav-height:5rem}.nav-row{flex-wrap:nowrap}nav{width:auto;gap:var(--space-6)}.hero{grid-template-columns:22% 45% 33%;min-height:calc(100svh - var(--nav-height))}.hero-copy{grid-column:2;grid-row:1;padding:var(--space-12) var(--space-8)}.hero-picture{grid-column:1;grid-row:1;aspect-ratio:16/9;min-height:100%}.film-layer{grid-column:3;grid-row:1;aspect-ratio:auto}.film-layer video,.film-canvas{position:absolute;inset:0;object-fit:contain}.process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-heading{grid-template-columns:1fr 1fr;align-items:end;gap:var(--space-12)}.mobile-cta{display:none!important}.footer{padding-bottom:var(--space-8)}}
@media(min-width:1024px){.hero-copy{padding-inline:var(--space-12)}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.process-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.galeria .container{--maxw:1440px}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;transform:none!important}.reveal-ready{opacity:1}.skip:not(:focus){transform:none}}

.hero-picture{width:100%}

/* 15/09: mismos assets originales, fondos fotográficos en todos los capítulos. */
.section{position:relative;isolation:isolate;background:var(--text);color:var(--background)}
.section-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}
.section::before{content:'';position:absolute;inset:0;background:var(--text);opacity:.74;z-index:-1;pointer-events:none}
.proceso::before,.galeria::before{opacity:.8}
.section-heading p,.process-grid p{color:var(--background)}
.obra li:before{background:var(--background)}
.process-grid article{border-color:var(--background)}
.photo-open{overflow:hidden}.photo-open img{transition:transform var(--duration) var(--ease)}
@media(hover:hover) and (pointer:fine){.photo-open:hover img{transform:scale(1.025)}}
.hero-picture img{object-position:48% center}
.footer{width:100%;max-width:none;padding-inline:var(--space-6);background:linear-gradient(#000c,#000c),url('../assets/villegas-detalle.webp') center 80%/cover;color:var(--background)}
.navigation{background:linear-gradient(#000e,#000e),url('../assets/villegas-aerea.webp') center 35%/cover;color:var(--background)}
@media(min-width:768px){.footer{padding-inline:max(var(--space-6),calc((100% - var(--maxw))/2))}}
/* Portada: fotografía del edificio a todo el fondo, incluido detrás del texto. */
.hero{position:relative}
.hero .hero-picture{position:absolute;inset:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;z-index:-2}
.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0005 0%,#000b 35%,#000b 65%,#0004 100%);z-index:-1;pointer-events:none}
.hero .film-layer{grid-column:2;grid-row:2}
@media(min-width:768px){.hero .film-layer{grid-column:3;grid-row:1}}
@media(max-width:767px){.hero::before{background:#000a}.hero .hero-picture img{object-position:48% center}}
/* Escena de apertura: contenido inicial hacia fotografía completa. */
.hero{display:block;height:190svh}
.hero::before{display:none}
.hero-stage{position:sticky;top:var(--nav-height);height:calc(100svh - var(--nav-height));min-height:680px;display:grid;grid-template-columns:1fr 1fr;isolation:isolate;overflow:hidden;background:var(--text)}
.hero-stage::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0005,#000b 35%,#000b 65%,#0004);z-index:-1;opacity:calc(1 - var(--scene-fade,0));pointer-events:none}
.hero-stage .hero-copy,.hero-stage .film-layer{opacity:calc(1 - var(--scene-fade,0));transform:translateY(var(--scene-shift,0px))}
.hero-full-building{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--text);opacity:var(--scene-fade,0);pointer-events:none;z-index:2}
@media(min-width:768px){.hero-stage{grid-template-columns:22% 45% 33%;min-height:580px}}
@media(max-width:767px){.hero-stage{grid-template-rows:auto minmax(0,1fr)}.hero-stage .hero-copy{padding-block:var(--space-6)}.hero-stage .film-layer{aspect-ratio:auto}.hero-stage .film-layer video,.hero-stage .film-canvas{position:absolute;inset:0;object-fit:cover}.hero-stage::before{background:#000a}.hero-stage .hero-actions{margin-top:var(--space-4)}}
@media(prefers-reduced-motion:reduce){.hero{height:auto}.hero-stage{position:relative;top:auto;height:auto;min-height:0}.hero-full-building{display:none}.hero-stage .film-layer{min-height:280px}.hero-stage .hero-copy,.hero-stage .film-layer{opacity:1}}
