:root{--bg:#fff;--ink:#111;--muted:#6e6e6e;--line:#ececec;--gut:clamp(16px,2.6vw,36px);--head:60px;color-scheme:light}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font:400 15px/1.5 Archivo,system-ui,sans-serif;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100svh}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
.skip{position:absolute;left:-999px}.skip:focus{left:var(--gut);top:8px;z-index:50;background:#fff;padding:6px 10px}
.wrap{padding-left:var(--gut);padding-right:var(--gut)}
.muted{color:var(--muted)}
.pg{padding-top:clamp(16px,4vh,40px);padding-bottom:clamp(40px,8vh,80px)}
.lbl{font-size:1em;font-weight:400;color:var(--ink);margin:clamp(36px,7vh,64px) 0 12px}

/* cabecera y pie */
.top{position:sticky;top:0;z-index:20;height:var(--head);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 var(--gut);background:#fff}
.name{font-weight:600}
#nav{display:flex;gap:clamp(14px,1.8vw,24px)}
#nav a[aria-current]{text-decoration:underline;text-underline-offset:3px}
.burger{display:none}
.foot{margin-top:auto;padding:18px var(--gut);color:var(--muted);font-size:.9em}

/* portada */
.gallery{height:calc(100svh - var(--head) - 56px);min-height:420px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;cursor:grab;padding:0 var(--gut)}
.gallery::-webkit-scrollbar{display:none}
.gallery.drag{cursor:grabbing;user-select:none}
.g-track{display:flex;gap:10px;height:100%;width:max-content}
.g-item{display:flex;flex-direction:column;height:100%;flex:none}
.g-item:hover{text-decoration:none}
.g-item img{height:calc(100% - 26px);width:auto;max-width:none}
.cap{font-size:.85em;padding-top:6px;color:var(--muted);opacity:0;transition:opacity .2s;white-space:nowrap}
.g-item:hover .cap,.g-item:focus-visible .cap{opacity:1}

/* listas */
.works{list-style:none}
.w-row{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid var(--line)}
.works li:first-child .w-row{border-top:1px solid var(--line)}
.hover-img{position:fixed;left:0;top:0;z-index:15;width:min(28vw,400px);pointer-events:none;opacity:0;transition:opacity .15s}
.hover-img.on{opacity:1}

/* fichas */
.p-title{font-size:1em;font-weight:400;margin-bottom:16px}
.player{position:relative;aspect-ratio:16/9;background:#000;overflow:hidden}
.player img{width:100%;height:100%;object-fit:cover}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.play{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-start;padding:16px;color:#fff;font-size:.95em}
.play:hover{text-decoration:underline}
.lead-img img{width:100%;max-height:85svh;object-fit:cover}
.lead-img.sq img{width:min(100%,70svh)}
.idea{max-width:60ch;margin:16px 0 0}
.pics{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:clamp(36px,7vh,64px)}
.pic img{width:100%;aspect-ratio:16/9;object-fit:cover}
.p-nav{display:flex;justify-content:space-between;gap:16px;margin-top:clamp(40px,8vh,80px);color:var(--muted)}

/* foto */
.f-row .lbl{margin-top:clamp(28px,5vh,48px)}
.f-row:first-child .lbl{margin-top:0}
.h-track{display:flex;gap:10px;overflow-x:auto;padding:0 var(--gut);scrollbar-width:none}
.h-track::-webkit-scrollbar{display:none}
.h-item{flex:none}
.h-item img{height:min(56vh,500px);width:auto;max-width:none}
.covers{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.cover img{aspect-ratio:1;object-fit:cover;width:100%}

/* redes */
.r-block:first-child .lbl{margin-top:0}
.tiles{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
.tile img{width:100%;aspect-ratio:4/5;object-fit:cover}
.tiles.tall .tile img{aspect-ratio:9/16}

/* info */
.info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:clamp(20px,4vw,60px);align-items:start}
.i-photo img{width:100%;max-width:340px}
.i-text>p{max-width:52ch}.i-text>p+p{margin-top:14px}
.i-text .lbl{margin-top:36px}
.lines{list-style:none}
.lines li{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;padding:6px 0;border-bottom:1px solid var(--line)}
.lines li:first-child{border-top:1px solid var(--line)}

/* visor */
.viewer{width:100vw;height:100svh;max-width:none;max-height:none;border:0;background:#fff;padding:0}
.viewer::backdrop{background:#fff}
.v-stage{position:absolute;inset:52px 60px 40px;display:flex;align-items:center;justify-content:center}
.v-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.v-stage iframe{width:min(100%,calc((100svh - 110px)*16/9));aspect-ratio:16/9;border:0}
.v-close{position:absolute;top:16px;right:var(--gut)}
.v-prev,.v-next{position:absolute;top:50%;transform:translateY(-50%);padding:14px;font-size:1.2em}
.v-prev{left:6px}.v-next{right:6px}
.v-count{position:absolute;bottom:12px;left:0;right:0;text-align:center;font-size:.85em;color:var(--muted)}
.viewer.video .v-prev,.viewer.video .v-next,.viewer.video .v-count{display:none}

@media(max-width:820px){
  .burger{display:block}
  #nav{position:fixed;inset:var(--head) 0 auto 0;height:calc(100svh - var(--head));background:#fff;flex-direction:column;gap:6px;padding:12px var(--gut);display:none;font-size:1.4em}
  #nav.open{display:flex}
  .gallery{height:auto;overflow:visible;cursor:auto}
  .g-track{flex-direction:column;width:auto;height:auto;gap:24px}
  .g-item img{height:auto;width:100%}
  .cap{opacity:1;white-space:normal}
  .hover-img{display:none}
  .pics{grid-template-columns:1fr}
  .h-item img{height:min(46vh,380px)}
  .covers{grid-template-columns:repeat(3,1fr)}
  .tiles{grid-template-columns:repeat(4,1fr)}
  .info{grid-template-columns:1fr}
  .i-photo img{max-width:220px}
  .v-stage{inset:52px 6px 40px}
  .v-prev,.v-next{top:auto;bottom:2px;transform:none}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
