/* Nosoyeldesistemas.art — Muro blanco */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #EEEDEA;
  --ground-2: #E3E2DE;
  --ink: #121314;
  --ink-2: #2E2F31;
  --muted: #4A4B4E;
  --night: #1C1D1F;
  --night-text: #EDEBE6;
  --night-muted: #B8B6B1;
  --accent: #D23C17;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --rule: 2px solid var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px; line-height: 1.55; font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(18,19,20,.08); }
[id] { scroll-margin-top: 24px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ground); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--ground); padding: 10px 16px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Navegación */
.nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 24px; align-items: center; padding: 26px var(--gutter); font-size: 15px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-dot { width: 9px; height: 9px; background: var(--dot, var(--accent)); flex: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.nav-links a, .lang { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.nav-links a:hover, .lang:hover, .nav-links a[aria-current="page"] { border-color: var(--ink); }
.nav-meta { color: var(--muted); }
.lang { justify-self: end; }

/* Tipografía grande */
.display { font-weight: 800; font-size: clamp(52px, 8.4vw, 132px); line-height: 0.88; letter-spacing: -0.045em; text-transform: uppercase; display: flex; flex-direction: column; }
.display-sm { font-size: clamp(38px, 7.4vw, 118px); }
.h2 { font-size: clamp(38px, 5vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-transform: uppercase; }
.h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.label { font-size: 16px; font-weight: 400; color: var(--muted); }
.statement { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.28; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.copy { display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.6; }
.square { display: inline-block; width: 0.42em; height: 0.42em; background: var(--accent); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; background: var(--ink); color: var(--ground); font-weight: 600; font-size: 16px; transition: transform .2s ease, background .2s ease; align-self: flex-start; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #B3330F; }
.under { font-weight: 600; border-bottom: 3px solid var(--accent); padding-bottom: 4px; align-self: flex-start; transition: padding .2s ease; }
.under:hover { padding-bottom: 7px; }

/* Grillas */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 64px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.section-sm { padding-top: 88px; padding-bottom: 88px; }

/* Encabezado de inicio */
.hero { padding-top: 80px; padding-bottom: 88px; align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 24px; max-width: 440px; order: 2; }
.hero .display { order: 1; }
.hero .display > span:last-child { display: flex; align-items: center; gap: 0.15em; }
.square { flex: none; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }

/* Fotos que se encienden */
.photo { position: relative; display: block; overflow: hidden; background: var(--ground-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .lit img { filter: grayscale(1); transition: filter .7s ease, transform 1s ease; }
  .lit:hover img, .lit:focus-visible img { filter: none; transform: scale(1.015); }
}

/* Destacado */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.feature .photo { aspect-ratio: 3 / 4; }
.feature-mid { display: grid; grid-template-rows: 1fr 1fr; }
.block { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; min-height: 280px; transition: filter .3s ease; }
.block:hover { filter: brightness(1.06); }
.block-title { font-size: clamp(30px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.block-red { background: var(--accent); color: #fff; }
.block-night { background: var(--night); color: var(--night-text); }
.block-night .small { color: var(--night-muted); }
.small { font-size: 16px; }

/* Índice de obra */
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.chips { display: none; flex-wrap: wrap; gap: 8px; }
.js .chips { display: flex; }
.chip { min-height: 44px; padding: 0 18px; font: inherit; font-size: 15px; cursor: pointer; border: 2px solid var(--ink); background: transparent; color: var(--ink); transition: background .2s ease, color .2s ease; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.count { margin-bottom: 14px; font-size: 16px; color: var(--muted); }
.index { list-style: none; margin: 0; padding: 0; border-bottom: var(--rule); }
.index li[hidden] { display: none; }
.row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) auto; gap: 12px 28px; padding: 18px 0; align-items: center; border-top: var(--rule); transition: background .25s ease, padding .25s ease; }
.row:hover { background: var(--ground-2); padding-left: 12px; padding-right: 12px; }
.row-title { display: flex; align-items: center; gap: 20px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.row-title img { width: 96px; height: 72px; object-fit: cover; flex: none; }
@media (hover: hover) { .row-title img { filter: grayscale(1); transition: filter .5s ease; } .row:hover .row-title img { filter: none; } }
.row-meta { font-size: 16px; }
.row-venue { font-size: 16px; color: var(--muted); }
.row-year { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 16px; }
.swatch { width: 14px; height: 14px; flex: none; }
.note { margin-top: 24px; font-size: 16px; color: var(--muted); }

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.pair .photo { aspect-ratio: 3 / 2; }

/* Pie y contacto */
.contact-big { display: flex; flex-direction: column; font-weight: 800; font-size: clamp(40px, 5.4vw, 84px); line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.contact-big a { align-self: flex-start; transition: color .2s ease; }
.contact-big a:hover { color: var(--accent); }
.footer-red { background: var(--accent); color: #fff; }
.footer-red .contact-big a:hover { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; color: var(--muted); padding-top: 40px; padding-bottom: 40px; }
.footer-red .foot { color: #fff; }

/* Páginas de obra */
.work-head { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.work-sub { font-size: clamp(20px, 2vw, 24px); font-weight: 500; }
.work-type { font-size: 18px; color: var(--ink-2); }
.work-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.work-hero .photo { min-height: 560px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 56px); }
.quote-big { font-size: clamp(26px, 3.4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.quote-text { font-size: 18px; line-height: 1.55; max-width: 520px; }
.quote a { border-bottom: 2px solid currentColor; }

.sheet { margin: 0; display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); font-size: 17px; line-height: 1.45; border-top: var(--rule); align-content: start; }
.sheet dt, .sheet dd { margin: 0; padding: 15px 0; border-bottom: var(--rule); }
.sheet dt { color: var(--muted); padding-right: 16px; }

.states { position: relative; background: #2A2A2A; }
figure.states { margin: 0; }
.states-img { position: relative; aspect-ratio: 2 / 3; max-height: 860px; width: 100%; overflow: hidden; }
.states-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.js .states-img img { opacity: 0; }
.js .states-img img.on { opacity: 1; }
.states-ctrl { position: absolute; left: 16px; right: 16px; bottom: 16px; display: none; flex-wrap: wrap; gap: 8px; }
.js .states-ctrl { display: flex; }
.state-btn { min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid #fff; background: rgba(18,19,20,.55); color: #fff; transition: background .2s ease, color .2s ease; }
.state-btn[aria-pressed="true"], .state-btn:hover { background: #fff; color: var(--ink); }
.caption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.tag { position: absolute; left: 16px; top: 16px; background: var(--ground); padding: 6px 10px; font-size: 14px; }

.night { background: var(--night); color: var(--night-text); }
.night .lead, .night .copy { color: #D6D4CF; }
.media-wide { aspect-ratio: 16 / 9; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 8px; padding: 0 8px; }
.gallery .photo { aspect-ratio: 4 / 5; }
.gallery .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.scenes span { min-height: 140px; }

.shows { border-bottom: var(--rule); }
.shows div { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-top: var(--rule); font-size: 18px; }
.shows b { font-weight: 700; }
.shows span:last-child { color: var(--muted); }

.next { display: block; background: var(--ink); color: var(--ground); }
.next .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.next-title { font-size: clamp(30px, 4vw, 56px); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.arrow { display: inline-block; transition: transform .4s ease; }
.next:hover .arrow { transform: translateX(8px); }

/* Movimiento lento en la imagen principal */
@media (prefers-reduced-motion: no-preference) {
  .drift img { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1.5%); } }
}
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 8px; padding: 0 8px; }
.strip .photo { aspect-ratio: 4 / 5; }

/* Acerca */
.portrait { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: end; background: var(--ground-2); display: flex; align-items: flex-end; padding: 20px; font-size: 15px; color: var(--muted); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 2px; background: var(--ink); border: var(--rule); }
.process li { background: var(--ground); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 210px; }
.process li:last-child { background: var(--accent); color: #fff; }
.process b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.process span { font-size: 16px; line-height: 1.5; }
.cv { display: flex; flex-direction: column; gap: 44px; }
.cv-table { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; font-size: 16px; line-height: 1.45; border-top: var(--rule); margin-top: 12px; }
.cv-table span { padding: 11px 0; }
.cv-table span:nth-child(odd) { font-weight: 700; }

/* Movimiento de entrada (solo con JS y sin preferencia de movimiento reducido) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .row { grid-template-columns: 1fr auto; }
  .row-meta, .row-venue { grid-column: 1 / -1; }
  .row-meta { order: 3; } .row-venue { order: 4; }
  .row-title img { width: 72px; height: 54px; }
  .nav { grid-template-columns: 1fr auto; gap: 14px 16px; padding-top: 20px; padding-bottom: 20px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; }
  .nav-meta { display: none; }
  .lang { grid-column: 2; grid-row: 1; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .work-hero .photo { min-height: 420px; }
  .shows div { grid-template-columns: 1fr; gap: 2px; }
  .sheet { grid-template-columns: 1fr; }
  .sheet dt { border-bottom: 0; padding-bottom: 0; }
  .sheet dd { padding-top: 4px; }
  .portrait { justify-self: start; }
}
