/* Estilo sobrio: fondo blanco, tipografía chica, grilla de imágenes. */
:root { --pad: 24px; --fg: #000; --bg: #fff; --mute: #777; }
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--fg); letter-spacing: .04em; line-height: 1.6; font: 14px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .04em; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img, iframe { display: block; width: 100%; }

#header { position: fixed; inset: 0 0 auto 0; height: 72px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: var(--bg); z-index: 3; }
#logo { font-size: 14px; text-transform: uppercase; letter-spacing: .18em; }
#burger { width: 24px; height: 24px; position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
#burger i { position: absolute; left: 0; width: 100%; height: 1px; background: #000; transition: transform .25s, top .25s; }
#burger i:nth-child(1) { top: 8px; } #burger i:nth-child(2) { top: 15px; }
#burger[aria-expanded="true"] i:nth-child(1) { top: 12px; transform: rotate(45deg); }
#burger[aria-expanded="true"] i:nth-child(2) { top: 12px; transform: rotate(-45deg); }

#nav { position: fixed; inset: 0; z-index: 2; background: var(--bg); padding: 96px var(--pad) var(--pad); display: flex; flex-direction: column; gap: 6px; font-size: 22px; letter-spacing: .06em; }
#nav[hidden] { display: none; }
#nav a { width: fit-content; } #nav a:hover, #nav a.on { text-decoration: underline; text-underline-offset: 4px; }

main { min-height: 100vh; padding: 72px var(--pad) 48px; }

/* grilla de obras */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 40px 24px; }
.grid a { display: block; }
.grid img { aspect-ratio: 3/2; object-fit: cover; transition: opacity .2s; }
.grid a:hover img { opacity: .75; }
.grid .t { margin-top: 10px; }
.grid .c { color: var(--mute); font-size: 13px; }

/* una obra */
.work { max-width: 880px; margin: 0 auto; text-align: left; padding-top: 24px; }
.work h1 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 2px; }
.work .sub { color: var(--mute); }
.work .info { margin-top: 28px; }
.work .text { margin: 20px 0 32px; }
.work .text p + p { margin-top: 1em; }
.work figure { margin: 0 0 24px; }
.work > figure img { width: auto; max-width: 100%; max-height: 85vh; margin: 0 auto; }
.work > figure.pair { display: flex; gap: 12px; justify-content: center; } .work > figure.pair img { max-width: calc(50% - 6px); margin: 0; }
.work .video { aspect-ratio: 16/9; width: 100%; margin-bottom: 24px; } .work iframe { height: 100%; border: 0; }
.back { display: inline-block; margin-top: 32px; color: var(--mute); } .back:hover { color: #000; }

/* texto: bio, proyectos, media */
.page { max-width: 720px; margin: 0; padding-top: 24px; }
.page h1 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 24px; }
.page h2 { font-size: 14px; font-weight: 700; margin: 32px 0 12px; }
.page p + p { margin-top: 1em; }
.page img { margin-bottom: 24px; }
.page ul { list-style: none; padding: 0; margin: 0; } .page li { margin-bottom: 6px; }
.page a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rows .row { margin-bottom: 20px; } .rows .row span { display: block; color: var(--mute); }

@media (max-width: 560px) { :root { --pad: 16px; } .grid { grid-template-columns: 1fr; } }

/* obra abierta como capa sobre la grilla (como zimoun.net) */
body.overlay { overflow: hidden; }
#overlay { position: fixed; inset: 0; z-index: 4; background: var(--bg); overflow-y: auto; padding: 72px var(--pad) 48px; animation: in .25s; }
#overlay.out { animation: out .2s forwards; }
#overlay .work { padding-top: 0; }
#close { position: fixed; top: 24px; right: var(--pad); width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 5; }
#close:before, #close:after { content: ""; position: absolute; left: 0; top: 12px; width: 100%; height: 1px; background: #000; transform: rotate(45deg); }
#close:after { transform: rotate(-45deg); }
@keyframes in { from { opacity: 0; } } @keyframes out { to { opacity: 0; } }

/* carrusel */
.carousel { margin-bottom: 24px; }
.track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; height: min(72vh, 720px); display: flex; align-items: center; justify-content: center; gap: 12px; }
.track img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.track .pair img { max-width: calc(50% - 6px); }
.ctrl { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ctrl button { width: 24px; height: 24px; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.ctrl button:hover { opacity: .5; }
.ctrl .count { color: var(--mute); min-width: 48px; text-align: center; }

/* selector de idioma */
#lang { position: fixed; top: 24px; right: calc(var(--pad) + 44px); height: 24px; display: flex; align-items: center; gap: 4px; z-index: 6; letter-spacing: .12em; }
#lang button { padding: 0 4px; border: 0; background: none; font: inherit; font-size: 12px; color: var(--mute); cursor: pointer; line-height: 24px; }
#lang span { color: var(--mute); font-size: 12px; }
#lang button.on { color: #000; font-weight: 700; }
#lang button:hover { color: #000; }
