/* Noamdan: monolitos negros sobre un campo de concreto, alineados a una grilla de 12 columnas visible.
   Heebo en todo (latín y hebreo) y un acento mono (IBM Plex Mono). Wordmark: hebreo y latín estirados al 120%. */

/* Fuentes alojadas en el sitio (licencia OFL): Heebo (latín y hebreo) e IBM Plex Mono. */
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Heebo"; src: url("../fonts/heebo-hebrew-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }

:root {
  --bg: #dcdcd7;
  --panel: #ecece8;
  --ink: #000000;
  --mute: #3f3f3a;
  --cobalt: #1f3fe0;
  --on-cobalt: #ffffff;
  --hair: rgba(0, 0, 0, 0.16);
  --line: 3px;
  --gut: clamp(16px, 2.2vw, 32px);
  /* espaciado: base de 8 px */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px; --s9: 192px;
  /* escala tipográfica de 9 pasos */
  --t1: 0.85rem;
  --t2: 0.9375rem;
  --t3: 1.0625rem;
  --t4: 1.375rem;
  --t5: clamp(1.35rem, 2.3vw, 2rem);
  --t6: clamp(1.75rem, 3.4vw, 3rem);
  --t7: clamp(2.5rem, 7.5vw, 7rem);
  --t8: clamp(3rem, 14vw, 13rem);
  --t9: 52cqi;
  /* movimiento */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 0ms; --dur-2: 120ms; --dur-3: 240ms;
  /* semánticos (solo para estados de interfaz) */
  --ok: #0b6b2e; --warn: #7a4d00; --err: #b3261e;
  --f-display: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --f-body: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --panel: #1e1e1c; --ink: #ededE8; --mute: #bdbdb4;
    --cobalt: #93a6ff; --on-cobalt: #000000; --hair: rgba(255, 255, 255, 0.14);
    --ok: #6fdc8c; --warn: #f2b84b; --err: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --panel: #1e1e1c; --ink: #ededE8; --mute: #bdbdb4;
  --cobalt: #93a6ff; --on-cobalt: #000000; --hair: rgba(255, 255, 255, 0.14);
  --ok: #6fdc8c; --warn: #f2b84b; --err: #ff8a80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t3);
  font-weight: 500;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

/* ---------- Grilla visible: 12 columnas ---------- */
.frame {
  max-width: 1600px;
  margin-inline: auto;
  position: relative;
  overflow-x: clip;
  background-image: linear-gradient(to right, var(--hair) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-right: 1px solid var(--hair);
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.gc { grid-column: 1 / -1; padding-inline: var(--gut); }
.g1-3 { grid-column: 1 / 4; }
.g1-4 { grid-column: 1 / 5; }
.g1-6 { grid-column: 1 / 7; }
.g1-8 { grid-column: 1 / 9; }
.g1-9 { grid-column: 1 / 10; }
.g5-9 { grid-column: 5 / 10; }
.pb { padding-bottom: clamp(2rem, 6vh, 4rem); }
.g5-11 { grid-column: 5 / 12; }
.g5-12 { grid-column: 5 / 13; }
.g9-12 { grid-column: 9 / 13; }
.g10-12 { grid-column: 10 / 13; }
.sec { padding-top: clamp(4.5rem, 15vh, 11rem); }
.sec-s { padding-top: clamp(2.5rem, 8vh, 6rem); }

/* ---------- Texto ---------- */
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
h2 { font-weight: 900; font-size: var(--t6); line-height: 1; letter-spacing: -0.03em; }
h3 { font-weight: 800; font-size: var(--t4); line-height: 1.1; letter-spacing: -0.015em; }
p { max-width: 62ch; margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--t5); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; max-width: 34ch; }
.label, .mono { font-family: var(--f-mono); font-weight: 500; font-size: var(--t1); line-height: 1.4; }
.label { color: var(--mute); margin: 0 0 0.6em; }
.slab { background: var(--ink); color: var(--bg); }
.slab .label { color: inherit; opacity: 0.75; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li + li { margin-top: 0.4em; }
.small { font-size: var(--t2); }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--cobalt);
}
a { transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
a:hover { background: var(--cobalt); color: var(--on-cobalt); text-decoration-color: transparent; }
:focus-visible { outline: 4px solid var(--cobalt); outline-offset: 3px; }
.slab :focus-visible { outline-color: var(--bg); }
.slab a { text-decoration-color: currentColor; }
.slab a:hover { background: var(--bg); color: var(--ink); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -80px; z-index: 10;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  font-family: var(--f-mono); font-weight: 700;
}
.skip:focus { top: 8px; }

/* ---------- Wordmark ---------- */
.mark { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.045em; line-height: 0.82; white-space: nowrap; margin: 0; }
.mark-sm { font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em; }
.mark-md { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; }
.mark [dir="rtl"] { unicode-bidi: isolate; }
.mark-link { text-decoration: none; display: inline-block; }
.mark-link:hover { background: none; color: inherit; }

/* ---------- Cabecera ---------- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding: 12px var(--gut);
  background: var(--bg); border-bottom: var(--line) solid var(--ink);
}
.navlist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.navlist a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--f-mono); font-weight: 700; font-size: 0.85rem; text-decoration: none;
}
.navlist a:hover { background: var(--ink); color: var(--bg); }
.navlist a[aria-current="page"] { background: var(--cobalt); color: var(--on-cobalt); }

/* ---------- Inicio: monolito ---------- */
.hero { min-height: min(88svh, 62rem); }
.monolith {
  grid-column: 1 / 9;
  background: var(--ink); color: var(--bg);
  container-type: inline-size;
  padding: var(--gut);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.mark-xl { font-size: var(--t9); line-height: 0.86; letter-spacing: -0.05em; white-space: nowrap; }
.mark-xl > span { display: block; text-align: left; }
.hero-side {
  grid-column: 9 / 13;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: var(--gut);
}
.hero-side .lead { font-size: clamp(1.25rem, 1.8vw, 1.75rem); }
.cta {
  display: inline-block; padding: 14px 20px; border: var(--line) solid var(--ink);
  font-family: var(--f-mono); font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- Obeliscos: proyectos como monolitos de distinta altura ---------- */
.skyline { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.obelisk {
  grid-column: span 3;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: var(--gut);
  min-height: max(19rem, calc(var(--h) * 1svh));
  text-decoration: none;
}
.obelisk { overflow: hidden; position: relative; isolation: isolate; }
.obelisk .glyph { position: relative; z-index: 1; }
.obelisk.plain { justify-content: flex-end; }
.skyline.wide .obelisk { grid-column: span 6; }
.o-ink { background: var(--ink); color: var(--bg); }
.o-cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.o-line { position: relative; }
.o-line::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border: var(--line) solid var(--ink); }
.o-panel { background: var(--panel); }
a.obelisk:hover { background: var(--cobalt); color: var(--on-cobalt); }
a.obelisk.o-cobalt:hover { background: var(--ink); color: var(--bg); }
.glyph {
  display: block; font-family: var(--f-display); font-weight: 900;
  font-size: clamp(5rem, 13vw, 12rem); line-height: 0.78; letter-spacing: -0.04em;
  margin-left: calc(var(--gut) * -1 - 0.065em); /* pegada al borde izquierdo, cortada ~10%: se lee como enumeración */
}
.o-name { font-size: clamp(1.4rem, 2.3vw, 2.2rem); font-weight: 900; line-height: 1; letter-spacing: -0.025em; }
.o-area { font-family: var(--f-mono); font-size: 0.8rem; margin: 0.7em 0 0; }
.o-desc { font-size: 0.95rem; margin: 0.7em 0 0; }

/* ---------- Índice grande ---------- */
.bigindex { grid-column: 5 / 13; list-style: none; margin: 0; padding: 0; }
.bigindex li { border-top: var(--line) solid var(--ink); }
.bigindex li:last-child { border-bottom: var(--line) solid var(--ink); }
.bigindex a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.12em var(--gut) 0.18em;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(2.25rem, 7vw, 6.5rem);
  line-height: 1.05; letter-spacing: -0.04em; text-decoration: none;
}
.bigindex a:hover { background: var(--ink); color: var(--bg); }
.bigindex .d { font-family: var(--f-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; max-width: 24ch; text-align: right; line-height: 1.3; }

.bignote { display: block; text-decoration: none; padding: var(--gut); box-shadow: inset 0 0 0 var(--line) var(--ink); }
.bignote:hover { background: var(--ink); color: var(--bg); }
.bignote h3 { font-size: clamp(1.75rem, 3.4vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin: 0.3em 0 0.5em; }
.bignote .label { color: inherit; opacity: 0.75; margin: 0; }

/* ---------- Páginas interiores ---------- */
.pagehead { padding: clamp(2rem, 6vh, 4rem) var(--gut) clamp(2.5rem, 8vh, 6rem); }
.crumbs { font-family: var(--f-mono); font-weight: 500; font-size: 0.85rem; margin-bottom: clamp(3rem, 12vh, 9rem); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.6em; }
.crumbs li + li::before { content: "/"; margin-right: 0.6em; }
.page-title {
  font-weight: 900; font-size: var(--t8); line-height: 0.85; letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.page-title.long { font-size: var(--t7); line-height: 0.95; letter-spacing: -0.045em; max-width: 16ch; }

.steps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(3rem, 10vh, 7rem); }
.step { border-top: var(--line) solid var(--ink); padding: var(--gut); }
.step:nth-child(1) { grid-column: 1 / 7; }
.step:nth-child(2) { grid-column: 3 / 9; }
.step:nth-child(3) { grid-column: 5 / 11; }
.step:nth-child(4) { grid-column: 7 / 13; }
.when { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.5rem, 7.5vw, 7rem); line-height: 0.9; letter-spacing: -0.045em; margin: 0 0 0.25em; }

dl.qa { margin: 0; }
dl.qa dt { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; margin-top: 1.6em; }
dl.qa dt:first-child { margin-top: 0; }
dl.qa dd { margin: 0.4em 0 0; max-width: 60ch; }

.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1em 0.55em; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.75rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; }

.note-body h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 0.5em; }
.note-body ul { padding-left: 1.2em; max-width: 60ch; }
.note-body li + li { margin-top: 0.4em; }
.answer { font-size: 1.35rem; line-height: 1.45; font-weight: 600; max-width: 46ch; }

.contact-slab { min-height: min(62svh, 40rem); padding: clamp(1.5rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.mail { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.4rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; margin: 0 0 1em; }
button.copy {
  font: 700 0.9rem/1 var(--f-mono); padding: 16px 22px; min-height: 48px; cursor: pointer;
  background: var(--bg); color: var(--ink); border: var(--line) solid var(--bg); border-radius: 0;
}
button.copy:hover { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }

/* ---------- Pie ---------- */
.foot {
  margin-top: clamp(6rem, 20vh, 14rem);
  background: var(--ink); color: var(--bg);
  padding: clamp(2.5rem, 8vh, 5rem) 0 var(--gut);
}
.foot .grid { row-gap: 2rem; }
.foot .label { color: inherit; opacity: 0.7; }
.foot ul.plain { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--f-mono); font-size: 0.9rem; }
.foot ul.plain li + li { margin-top: 0; }
.foot a { text-decoration-color: currentColor; }
.foot a:hover { background: var(--bg); color: var(--ink); }

/* ---------- Pantallas angostas ---------- */
@media (max-width: 960px) {
  .obelisk { grid-column: span 6; min-height: max(17rem, calc(var(--h) * 0.7svh)); }
  .bigindex .d { display: none; }
}
@media (max-width: 760px) {
  .gc, .g1-3, .g1-4, .g1-6, .g1-8, .g1-9, .g5-9, .g5-11, .g5-12, .g9-12, .g10-12, .bigindex { grid-column: 1 / -1; }
  .gc, .g1-3, .g1-4, .g1-6, .g1-8, .g5-9, .g5-11, .g5-12, .g9-12, .g10-12 { padding-inline: var(--gut); }
  .gc.g1-4, .gc.g1-3 { padding-bottom: var(--s3); }
  .monolith { grid-column: 1 / -1; min-height: 62svh; }
  .hero-side { grid-column: 1 / -1; padding-top: 2rem; }
  .step:nth-child(n) { grid-column: 1 / -1; }
  .skyline.wide .obelisk { grid-column: span 12; }
  .top { padding-block: 8px; }
  .sec { padding-top: clamp(3.5rem, 12vh, 7rem); }
}
@media (max-width: 460px) {
  .obelisk { grid-column: span 12; min-height: max(15rem, calc(var(--h) * 0.45svh)); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


/* Wordmark (E6): hebreo y latín estirados al 120%, hebreo con espaciado -0,08em y latín -0,04em */
.wm { display: inline-block; white-space: nowrap; direction: ltr; }
.wm-he, .wm-dan { display: inline-block; vertical-align: baseline; }
.wm-he { width: 1.8015em; text-align: right; }
.wm-dan { width: 1.8495em; text-align: left; }
.wm i { display: inline-block; font-style: normal; transform: scaleX(1.2); }
.wm-he i { transform-origin: right center; letter-spacing: -0.08em; }
.wm-dan i { transform-origin: left center; letter-spacing: -0.04em; }
.mark-xl .wm { display: block; }
.mark-xl .wm-he, .mark-xl .wm-dan { display: block; }

/* Monograma DC */


/* Pie: base con © y logo */
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin: clamp(3rem, 9vh, 5.5rem) var(--gut) 0; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.foot-base p { margin: 0; max-width: 56ch; }
.foot-dc { margin: 0; flex: none; }
.foot-dc .dc { display: block; width: clamp(32px, 2.6vw, 40px); height: auto; }

/* Lista de trabajos con año */
.worklist { list-style: none; margin: 0; padding: 0; }
.worklist li { border-top: var(--line) solid var(--ink); }
.worklist li:last-child { border-bottom: var(--line) solid var(--ink); }
.wl-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: last baseline; padding: 0.8rem 0 0.9rem; text-decoration: none; }
.wl-year, .wl-what, .wl-go { font-family: var(--f-mono); font-weight: 500; font-size: 0.85rem; line-height: 1.3; }
.wl-year { grid-column: 1 / 4; padding-inline: var(--gut); }
.wl-name { grid-column: 4 / 9; padding-inline: var(--gut); font-family: var(--f-display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.wl-what { grid-column: 9 / 12; }
.wl-go { grid-column: 12 / 13; justify-self: end; padding-right: var(--gut); font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; text-decoration-color: var(--cobalt); }
a.wl-row:hover { background: var(--ink); color: var(--bg); }
a.wl-row:hover .wl-go { text-decoration-color: transparent; }
@media (max-width: 760px) {
  .wl-year { grid-column: 1 / 5; }
  .wl-name { grid-column: 5 / 13; }
  .wl-what, .wl-go { grid-column: 5 / 13; padding-inline: var(--gut); justify-self: start; margin-top: 0.3rem; }
  .wl-go:empty { display: none; }
  .foot-base { flex-direction: column-reverse; align-items: flex-start; }
}


/* ---------- Cabecera fija y menú móvil ---------- */
.top { position: sticky; top: 0; z-index: 120; }
.menu-btn, .m-only, .menu-foot { display: none; }
.navlist .d { display: none; }
@media (max-width: 760px) {
  .top { padding-block: 6px; }
  .js .top { flex-wrap: nowrap; gap: 0.25rem; }
  .js .top .mark-link { margin-right: auto; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; margin-right: -6px; padding: 0 6px; font-family: var(--f-mono); font-weight: 700; font-size: 0.9rem; color: inherit; background: none; border: 0; cursor: pointer; }
  @media (hover: hover) { .js .menu-btn:hover { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.25em; text-decoration-color: var(--cobalt); } }
  .menu-ico { position: relative; width: 22px; height: 12px; flex: none; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; width: 100%; height: 3px; background: currentColor; transition: transform var(--dur-3) var(--ease), top var(--dur-3) var(--ease); }
  .menu-ico::before { top: 0; }
  .menu-ico::after { top: 9px; }
  .js.menu-open .menu-ico::before { top: 4.5px; transform: rotate(45deg); }
  .js.menu-open .menu-ico::after { top: 4.5px; transform: rotate(-45deg); }
  .js .top nav { position: fixed; left: 0; right: 0; top: var(--hh, 58px); bottom: 0; z-index: 110; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 0 var(--gut) var(--gut); overflow-y: auto; background: var(--ink); color: var(--bg); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path var(--dur-3) var(--ease), visibility 0s linear var(--dur-3); }
  .js.menu-open .top nav { visibility: visible; clip-path: inset(0); transition: clip-path var(--dur-3) var(--ease), visibility 0s; }
  .js.menu-open { overflow: hidden; }
  .js .navlist { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .js .m-only { display: block; }
  .js .navlist a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.35rem; min-height: 5rem; padding: 0.8rem 0 0.85rem; border-top: var(--line) solid color-mix(in srgb, var(--bg) 40%, transparent); font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 10.5vw, 3.25rem); letter-spacing: -0.03em; line-height: 1; }
  .js .navlist a:hover { background: var(--bg); color: var(--ink); }
  .js .navlist a[aria-current="page"] { background: var(--cobalt); color: var(--on-cobalt); padding-inline: 0.6rem; }
  .js .navlist .d { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; opacity: 0.8; }
  .js .menu-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
  .js .menu-foot .label { margin: 0; color: inherit; opacity: 0.8; }
  .js .menu-foot .dc { display: block; width: 44px; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .js .top nav, .js.menu-open .top nav, .menu-ico::before, .menu-ico::after { transition: none; } }

/* Portada sin líneas de grilla: las formas entran al recuadro (escritorio) */
@media (min-width: 761px) { .hero { background: var(--bg); } }

/* ---------- Interruptor de tema (pie) ---------- */
.foot-tools { display: flex; align-items: center; gap: 1.5rem; }
.theme-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; margin: 0 -8px; color: inherit; background: none; border: 0; cursor: pointer; }
.theme-switch .sq { width: 18px; height: 18px; border: 3px solid currentColor; transition: background-color var(--dur-2) var(--ease); }
.theme-switch[aria-checked="false"] .sq:first-child, .theme-switch[aria-checked="true"] .sq:last-child { background: currentColor; }
@media (hover: hover) { .theme-switch:hover .sq { border-color: var(--cobalt); } .theme-switch:hover .sq[style], .theme-switch[aria-checked="false"]:hover .sq:first-child, .theme-switch[aria-checked="true"]:hover .sq:last-child { background: var(--cobalt); } }
@media (max-width: 760px) { .foot-tools { width: 100%; justify-content: space-between; align-items: center; } }
.wip { display: inline-block; vertical-align: middle; margin-left: 0.5em; padding: 0.25em 0.5em; border: 2px solid currentColor; font-family: var(--f-mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1; transform: translateY(-0.15em); }
