@import url('/fonts/geist/geist.css');
@import url('/fonts/geist-mono/geist-mono.css');

/* arq-trazo — estudio de arquitectura: papel de plano, tinta y naranja. Todo lo que se mueve lo arma script.js con GSAP
   (html.gs); en el editor (html.is-ed) todo queda dibujado, quieto y editable. */
:root {
  --paper: #f1f0ea;
  --paper-2: #e8e6de;
  --ink: #232323;
  --ink-2: #57554f;
  --rule: #d2cfc5;
  --rule-2: #bdb9ae;
  --acc: #ff4b1f;
  --acc-t: #b82f0a;
  --on-acc: #1b1b1b;
  --hh: 74px;
  --gut: clamp(16px, 2.4vw, 36px);
  --mono: 'Geist Mono', ui-monospace, monospace;
}
html, body, button, input, select, textarea { font-family: 'Geist', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper); font-size: 17px; line-height: 1.5; overflow-x: clip;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .1 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
main > section, .hero, .foot { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.tm-al-left { text-align: left; } .tm-al-center { text-align: center; } .tm-al-right { text-align: right; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.lbl, .svc-k, .pc-head, .hero-spec, .hero-prog, .cad-hint, .mf-kinds legend, .fld-l, .sub-t, .fcol-t, .pj-meta, .mate-cap, .stp-n, .svc-n, .paint-tools, .foot-bot, .nav-cell {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .02em;
}
.lbl { font-size: 14px; color: var(--ink-2); }
.h-hero, .h-xl, .h-lg, .svc-t, .stp-t, .pj-name, .wd, .paint-text, .mate-name, .ft-lead {
  font-weight: 600; text-transform: uppercase; letter-spacing: -.035em; line-height: .94;
}
.h-hero { font-size: clamp(34px, 4.6vw, 76px); }
.h-xl { font-size: clamp(32px, 4.2vw, 68px); }
.h-lg { font-size: clamp(28px, 3vw, 48px); }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; color: var(--ink-2); letter-spacing: -.01em; }

/* ── Botones ── */
.btn, .cell-link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 0 0 18px; text-decoration: none;
  font-family: var(--mono); text-transform: uppercase; font-size: 15px; letter-spacing: .02em; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; cursor: pointer;
}
.btn .btn-ar, .cell-link .btn-ar { display: inline-grid; place-items: center; width: 52px; align-self: stretch; border-left: 1px dashed currentColor; }
.btn svg:not(.ar) { flex: none; }
.btn-acc { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.btn-acc .btn-ar { border-left-color: rgba(0, 0, 0, .35); }
.btn:hover .ar, .cell-link:hover .ar { transform: translateX(3px); }
.ar { transition: transform .25s; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-acc:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── Marco del plano (solo en la web, escritorio) ── */
.frame { display: none; }
@media (min-width: 1024px) {
  html.fx .frame {
    display: block; position: fixed; inset: 0; z-index: 70; pointer-events: none; border: 8px solid var(--paper);
    box-shadow: inset 0 0 0 1px var(--rule-2);
  }
  html.fx .frame::before, html.fx .frame::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 7px;
    background: repeating-linear-gradient(to bottom, var(--rule-2) 0 1px, transparent 1px 12px);
  }
  html.fx .frame::before { left: 1px; } html.fx .frame::after { right: 1px; }
}

/* ── Cabecera: celdas ── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule-2); }
.nav-in { display: flex; align-items: stretch; height: var(--hh); }
.logo { display: flex; align-items: center; padding: 0 var(--gut); margin-right: auto; font-weight: 600; font-size: 26px; letter-spacing: -.04em; text-decoration: none; min-height: 44px; }
.logo img { max-height: 46px; width: auto; }
.nav-links { display: flex; align-items: stretch; }
.nav-l { display: flex; }
.nav-cell {
  position: relative; display: flex; align-items: flex-start; width: clamp(120px, 10vw, 170px); padding: 14px 16px; border-left: 1px solid var(--rule-2);
  font-size: 14px; text-decoration: none; color: var(--ink);
}
.nav-cell::after { content: ''; position: absolute; right: 7px; bottom: 7px; width: 6px; height: 6px; border-right: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2); }
.nav-cell:hover { background: var(--paper-2); }
.nav-cta { color: var(--acc-t); width: clamp(140px, 12vw, 200px); }
.nav-cta::after { display: none; }
.nav-cta .ar { position: absolute; right: 12px; bottom: 10px; }
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: var(--hh); border: 0; border-left: 1px solid var(--rule-2); background: none; cursor: pointer; padding: 0;
  }
  .nav-toggle i { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav-links {
    display: none; position: fixed; left: 0; right: 0; top: var(--hh); bottom: 0; z-index: 49; flex-direction: column; background: var(--paper);
    border-top: 1px solid var(--rule-2); overflow-y: auto;
  }
  .nav-links.nav-open { display: flex; }
  .nav-l { flex-direction: column; }
  .nav-cell { width: auto; border-left: 0; border-bottom: 1px solid var(--rule-2); font-size: 22px; padding: 22px var(--gut); min-height: 64px; align-items: center; }
  .nav-cta .ar { bottom: auto; }
}

/* ── Portada ── */
.hero-in { display: flex; flex-direction: column; height: calc(100svh - var(--hh)); min-height: 600px; max-height: 1100px; }
.hero-draw { position: relative; flex: 1; min-height: 0; border-bottom: 1px solid var(--rule-2); overflow: clip; }
.ruler { position: absolute; left: 34px; right: 34px; height: 9px; background: repeating-linear-gradient(to right, var(--rule-2) 0 1px, transparent 1px 11px); pointer-events: none; }
.ruler-t { top: 14px; } .ruler-b { bottom: 14px; }
.x { position: absolute; width: 13px; height: 13px; pointer-events: none; }
.x::before, .x::after { content: ''; position: absolute; background: var(--ink-2); }
.x::before { left: 6px; top: 0; width: 1px; height: 13px; } .x::after { top: 6px; left: 0; height: 1px; width: 13px; }
.x-tl { left: 12px; top: 12px; } .x-tr { right: 12px; top: 12px; } .x-bl { left: 12px; bottom: 12px; } .x-br { right: 12px; bottom: 12px; }
.hero-art { position: absolute; inset: calc(var(--hn) + 44px) 4% 26px; pointer-events: none; }
/* nombre del estudio sobre la casa: letras de contorno que entran una a una y se llenan de tinta al sombrearse la casa */
.hero-draw { --hn: clamp(34px, min(6.2vw, 10svh), 118px); }
.hero-name { position: absolute; left: 0; right: 0; top: 26px; z-index: 2; margin: 0; padding: 0 var(--gut); text-align: center; font-weight: 600; font-size: var(--hn);
  line-height: 1; letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
html.gs .hero-name { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
html.gs .hero-name.inked { color: var(--ink); -webkit-text-stroke-color: transparent; transition: color .9s, -webkit-text-stroke-color .9s; }
.hl, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { object-fit: contain; object-position: 50% 100%; }
.hl { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hl .k0 path { stroke: var(--rule-2); stroke-width: 1.2; }
.hl .k0 path:first-child { stroke: var(--ink); stroke-width: 2; }
.hl .k3 path { stroke-width: 1.2; }
.hl .k4 path { stroke: var(--ink-2); stroke-width: 1.1; }
.hl text { fill: var(--ink-2); stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; font: 500 15px var(--mono); text-anchor: middle; }
.hl text.lv { text-anchor: start; }
.hero-scan { position: absolute; left: -4%; right: -4%; height: 1px; background: var(--acc); top: 100%; opacity: 0; }
.hero-prog { position: absolute; left: 34px; top: 46%; display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--acc-t); padding-bottom: 8px; min-width: 170px; }
.hero-prog::after { content: ''; position: absolute; left: -34px; right: 0; bottom: 0; height: 1px; background: var(--acc); }
.hero-spec { position: absolute; right: 34px; bottom: 36px; margin: 0; font-size: 12.5px; color: var(--ink-2); min-width: 250px; z-index: 2; }
.hs-row { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 3px 0 3px 10px; background: var(--paper); border-bottom: 1px dashed var(--rule-2); }
.hs-row dt { color: var(--ink); } .hs-row dd { margin: 0; }
.cad { position: absolute; inset: 0; pointer-events: none; display: none; }
.cad-hint { position: absolute; left: 34px; bottom: 36px; font-size: 12px; color: var(--paper); background: var(--ink); padding: 7px 10px; max-width: 220px; line-height: 1.35; }
html.fx .hero-draw.cad-on { cursor: none; }
html.fx .cad-on .cad { display: block; }
html.fx .cad-on .cad-hint { left: 0; bottom: auto; top: 0; pointer-events: none; z-index: 3; }
.cad-h, .cad-v { position: absolute; background: var(--ink-2); opacity: .55; }
.cad-h { left: 0; right: 0; height: 1px; } .cad-v { top: 0; bottom: 0; width: 1px; }
.cad-p { position: absolute; width: 15px; height: 15px; margin: -7px 0 0 -7px; }
.cad-p::before, .cad-p::after { content: ''; position: absolute; background: var(--acc); }
.cad-p::before { left: 7px; top: 0; width: 1px; height: 15px; } .cad-p::after { top: 7px; left: 0; height: 1px; width: 15px; }
.cad-xy { position: absolute; font: 500 11px/1.25 var(--mono); color: var(--ink-2); text-align: right; white-space: pre; }
.cad-sel { position: absolute; border: 1px dashed var(--acc); background: rgba(255, 75, 31, .08); display: none; }
.cad-sel span { position: absolute; left: 0; top: -22px; font: 500 11px var(--mono); color: var(--paper); background: var(--acc-t); padding: 3px 6px; white-space: nowrap; }
@media (hover: none), (pointer: coarse) { .cad-hint { display: none; } }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(220px, .62fr); }
.hf-title { padding: 22px var(--gut) 26px; align-self: end; }
.hf-lead { padding: 22px var(--gut); border-left: 1px solid var(--rule-2); }
.hf-cta { display: flex; flex-direction: column; border-left: 1px solid var(--rule-2); }
.cell-link { flex: 1; border: 0; border-bottom: 1px solid var(--rule-2); justify-content: space-between; padding-left: var(--gut); gap: 10px; min-height: 64px; }
.cell-link:last-child { border-bottom: 0; }
.cell-link .btn-ar { border-left: 0; width: 44px; }
.cell-acc { color: var(--acc-t); }
.cell-link svg:not(.ar) { display: none; }
.cell-link:hover { background: var(--ink); color: var(--paper); }
/* la portada sube sola por CSS (no espera al script) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html:not(.is-ed) .hero-foot [data-in] { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
html:not(.is-ed) .hero-foot .hf-lead [data-in] { animation-delay: .15s; }
html:not(.is-ed) .hero-foot .hf-cta[data-in] { animation-delay: .3s; }
/* trazos: escondidos hasta que el script los dibuje; si GSAP no llega, se dibujan solos a los 2,4 s */
html:not(.is-ed):not(.still) .hl path, html:not(.is-ed):not(.still) .iso path, html:not(.is-ed):not(.still) .stp-svg path,
html:not(.is-ed):not(.still) .cta-svg path, html:not(.is-ed):not(.still) .pl-svg path:not(.pz) { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
html:not(.is-ed):not(.still) .hl .k5, html:not(.is-ed):not(.still) .pl-svg .p5 { opacity: 0; }
html:not(.is-ed):not(.still) .hero-shade { opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
html:not(.is-ed):not(.still):not(.gs) .hl path, html:not(.is-ed):not(.still):not(.gs) .iso path, html:not(.is-ed):not(.still):not(.gs) .stp-svg path,
html:not(.is-ed):not(.still):not(.gs) .cta-svg path, html:not(.is-ed):not(.still):not(.gs) .pl-svg path:not(.pz) { animation: draw 1.6s ease 2.4s forwards; }
html:not(.is-ed):not(.still):not(.gs) .hl .k5, html:not(.is-ed):not(.still):not(.gs) .pl-svg .p5, html:not(.is-ed):not(.still):not(.gs) .hero-shade { animation: show .8s ease 3.8s forwards; }
html.is-ed .hl path, html.is-ed .iso path, html.is-ed .stp-svg path, html.is-ed .cta-svg path, html.is-ed .pl-svg path { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
html.is-ed .hero-shade, html.is-ed .hl .k5, html.is-ed .pl-svg .p5 { opacity: 1 !important; clip-path: none !important; }
html.is-ed .hl { opacity: .35; }

/* ── Cinta ── */
.mq { border-bottom: 1px solid var(--rule-2); overflow: hidden; position: relative; }
.mq-list { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.mq-list li, .mq-live li { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; font-family: var(--mono); text-transform: uppercase; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.mq-ic { width: 14px; height: 14px; border: 1px solid currentColor; transform: rotate(45deg) scale(.8); flex: none; }
.mq-live { display: none; }
html.gs .mq.is-run .mq-list { visibility: hidden; position: absolute; }
html.gs .mq.is-run .mq-live { display: flex; width: max-content; animation: mq var(--mq-d, 40s) linear infinite; }
.mq-live ul { display: flex; list-style: none; margin: 0; padding: 0; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── Enfoque: foto que se pinta ── */
.paint { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--rule-2); }
.paint-fig { border-right: 1px solid var(--rule-2); }
.pf-frame { position: relative; aspect-ratio: 6 / 5; overflow: hidden; }
.pf-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.pf-sun { position: absolute; right: 10%; top: 7%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--acc); mix-blend-mode: multiply; pointer-events: none; }
.pf-live { position: absolute; inset: 0; pointer-events: none; }
.pf-live canvas { width: 100%; height: 100%; display: block; }
.paint.is-canvas .pf-sun { display: none; }
.paint-copy { padding: clamp(36px, 6vw, 96px) var(--gut); display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.paint-text { font-size: clamp(24px, 2.7vw, 46px); line-height: 1.02; }
html.gs .paint-text .w { color: #bab6ac; }
.paint-tools { grid-column: 1 / -1; border-top: 1px solid var(--rule-2); padding: 14px var(--gut); font-size: 13px; color: var(--ink-2); }

/* ── Encabezados de sección ── */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px var(--gut); padding: clamp(40px, 6vw, 88px) var(--gut) clamp(32px, 4vw, 56px); align-items: end; }
.sec-head .lbl { grid-column: 1 / -1; }
.sec-head .h-xl { max-width: 16ch; }
.sec-aside { max-width: 44ch; justify-self: end; }

/* ── Servicios ── */
.srv { border-bottom: 1px solid var(--rule-2); }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); border-top: 1px solid var(--rule-2); counter-reset: sv; }
.svc { counter-increment: sv; display: flex; flex-direction: column; border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); margin-bottom: -1px; }
.svc-top { display: flex; justify-content: space-between; padding: 18px var(--gut) 14px; border-bottom: 1px dashed var(--rule-2); font-size: 15px; }
.svc-k { font-size: 15px; }
.svc-n { color: var(--ink-2); }
.svc-n::before { content: '[' counter(sv, decimal-leading-zero) ']'; }
.svc-art { display: grid; place-items: center; padding: 28px 18px; min-height: 250px; border-bottom: 1px dashed var(--rule-2);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 42px 42px; background-position: center; }
.iso { width: min(88%, 250px); height: auto; fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linejoin: round; }
.iso .hid { stroke: var(--rule-2); }
.iso .acc, .stp-svg .acc { stroke: var(--acc); }
.svc:hover .iso { stroke: var(--ink); }
.svc-body { padding: 26px var(--gut) 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-t { font-size: clamp(24px, 2vw, 32px); }
.svc-d { color: var(--ink-2); font-size: 16px; }
.svc-wa { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--mono); text-transform: uppercase; font-size: 14px; color: var(--acc-t); text-decoration: none; }
.svc-wa:hover .ar { transform: translateX(4px); }

/* ── Lema fijo ── */
.words { border-bottom: 1px solid var(--rule-2); }
.words-in { position: relative; min-height: 100svh; display: grid; place-content: center; gap: 12px; padding: 60px var(--gut); text-align: center;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 84px 84px; background-position: center; }
.wd { font-size: clamp(34px, 5.6vw, 96px); }
.wd-2 { color: var(--acc-t); }
html.gs .words-in { grid-template-areas: 'w'; }
html.gs .wd { grid-area: w; }

/* ── Planta ── */
.planx { border-bottom: 1px solid var(--rule-2); }
.planx-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 36%); min-height: 100svh; position: relative; }
.plan-stage { position: relative; display: grid; place-items: center; padding: 30px var(--gut) 30px; min-height: 0; }
.plan-box { position: relative; width: min(100%, calc((100svh - 80px) * .86), 680px); }
.pl-svg { width: 100%; height: auto; display: block; fill: none; stroke: var(--ink); stroke-width: 2; overflow: visible; }
.pl-svg .p1 path { fill: var(--ink); stroke-width: 2.4; }
.pl-svg .p0 path { stroke: var(--rule-2); stroke-width: 1.2; stroke-dasharray: 14 6 2 6; }
html:not(.is-ed):not(.still) .pl-svg .p0 path { stroke-dasharray: 1 1; }
html:not(.is-ed):not(.still) .pl-svg .p1 path { fill-opacity: 0; }
html:not(.is-ed):not(.still):not(.gs) .pl-svg .p1 path { animation: draw 1.6s ease 2.4s forwards, fillin .8s ease 3.6s forwards; }
@keyframes fillin { to { fill-opacity: 1; } }
html.is-ed .pl-svg .p1 path { fill-opacity: 1 !important; }
.pl-svg .p2 path { stroke-width: 1.5; }
.pl-svg .p3 path { stroke: var(--ink-2); stroke-width: 1.3; }
.pl-svg .p4 path { stroke: var(--ink-2); stroke-width: 1.1; }
.pl-svg text { fill: var(--ink-2); stroke: none; font: 500 22px var(--mono); text-anchor: middle; }
.pz { fill: var(--acc); fill-opacity: 0; stroke: none; transition: fill-opacity .35s; }
.pz.on { fill-opacity: .16; }
.pmark {
  position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: var(--acc); color: var(--on-acc); font: 600 13px var(--mono); counter-increment: pm;
}
.plan-box { counter-reset: pm; }
.pm-n::before { content: counter(pm, decimal-leading-zero); }
.pmark::after { content: ''; position: absolute; inset: -7px; border: 1px solid var(--acc); opacity: 0; transition: opacity .25s; }
.pmark:hover::after, .pmark.on::after { opacity: 1; }
.pmark.on { background: var(--ink); color: var(--paper); }
.pcard { position: absolute; left: var(--gut); bottom: 28px; width: min(360px, 40%); background: var(--paper); border: 1px solid var(--ink); z-index: 2; }
.pc-head { background: var(--ink); color: var(--paper); font-size: 13px; padding: 9px 14px; }
.pc-body { position: relative; padding: 14px 14px 6px; min-height: 112px; display: grid; }
.pc-body > * { grid-area: 1 / 1; }
.pc-step { font-size: 17px; line-height: 1.4; }
.pc-notes { display: grid; }
.pnote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .3s; }
.pnote.on { opacity: 1; visibility: visible; }
.pn-t { font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; }
.pc-notes { counter-reset: pn; } .pnote { counter-increment: pn; }
.pn-n::before { content: counter(pn, decimal-leading-zero); font: 600 12px var(--mono); background: var(--acc); color: var(--on-acc); padding: 3px 5px; }
.pn-d { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.pc-hint { font-family: var(--mono); text-transform: uppercase; font-size: 12px; color: var(--ink-2); padding: 6px 14px 12px; border-top: 1px dashed var(--rule-2); margin-top: 8px; }
html.gs .pcard.has-note .pc-step { opacity: 0 !important; }
html.gs .pc-step:not(.pc-s1) { opacity: 0; }
.ppanel { border-left: 1px solid var(--rule-2); padding: clamp(40px, 6vw, 90px) var(--gut) 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; background: var(--paper); }
.pp-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--rule-2); display: flex; flex-direction: column; }
.pp-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-2); font-size: 18px; }
.pp-ic { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-2); color: var(--ink-2); flex: none; }
/* en el editor: todo a la vista, notas visibles una debajo de otra */
html:not(.gs) .pnote { opacity: 1; visibility: visible; grid-area: auto; margin-bottom: 10px; }
html:not(.gs) .pc-body > * { grid-area: auto; }
html:not(.gs) .pc-body { display: flex; flex-direction: column; gap: 10px; }
html:not(.gs) .pcard { position: relative; left: auto; bottom: auto; width: auto; margin: 0 var(--gut) 30px; grid-column: 1; }

/* ── Proceso ── */
.proc { border-bottom: 1px solid var(--rule-2); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1px solid var(--rule-2); display: flex; flex-direction: column; }
.stp { counter-increment: st; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 360px; border-bottom: 1px solid var(--rule-2); }
.stp::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--acc); transform-origin: left; transform: scaleX(var(--ln, 1)); z-index: 0; }
.stp-bar { position: relative; z-index: 1; align-self: center; margin: 0 var(--gut); background: var(--ink); color: var(--paper); padding: 22px 64px 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline; }
.stp-n { font-size: 13px; color: #c9c5bb; grid-row: span 2; }
.stp-n::before { content: '[' counter(st, decimal-leading-zero) ']'; }
.stp-t { font-size: clamp(28px, 2.6vw, 42px); }
.stp-d { color: #d9d6cd; font-size: 16px; }
.stp-sq { position: absolute; right: 20px; top: 22px; width: 10px; height: 10px; background: var(--acc); }
.stp-art { position: relative; z-index: 1; display: grid; place-items: center; padding: 30px; border-left: 1px solid var(--rule-2); background: var(--paper); }
.stp:nth-child(even) .stp-bar { order: 2; }
.stp:nth-child(even) .stp-art { border-left: 0; border-right: 1px solid var(--rule-2); }
.stp-svg { width: min(100%, 340px); height: auto; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.stp-tag { position: absolute; left: 50%; top: 22%; background: var(--acc); color: var(--on-acc); font: 500 13px var(--mono); text-transform: uppercase; padding: 9px 12px; max-width: 220px; }

/* ── Proyectos ── */
.prj { border-bottom: 1px solid var(--rule-2); }
.prj-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--rule-2); min-height: 680px; }
.prj-stage { position: relative; grid-column: 1; grid-row: 1; z-index: 2; pointer-events: none; overflow: hidden; }
.ps-sun, .ps-bar, .ps-moon { position: absolute; mix-blend-mode: multiply; }
.ps-sun { left: 6%; top: 8%; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--acc); }
.ps-moon { left: 18%; top: 42%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #e7d9c8; }
.ps-bar { right: 12%; top: 0; width: 18%; height: 58%; background: var(--acc); opacity: .9; }
.prj-list { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; counter-reset: pj; border-left: 1px solid var(--rule-2); }
.pj { counter-increment: pj; border-bottom: 1px dashed var(--rule-2); }
.pj-ph { position: absolute; left: 0; top: 0; width: 50%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; z-index: 1; overflow: hidden; }
.pj.is-open .pj-ph { opacity: 1; visibility: visible; }
.pj-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.pj-head { display: flex; align-items: center; gap: 18px; padding: 22px var(--gut); cursor: pointer; min-height: 76px; }
.pj-n { font: 500 13px var(--mono); color: var(--ink-2); }
.pj-n::before { content: counter(pj, decimal-leading-zero); }
.pj-name { font-size: clamp(22px, 2.3vw, 36px); flex: 1; }
.pj-pm { position: relative; width: 18px; height: 18px; flex: none; }
.pj-pm::before, .pj-pm::after { content: ''; position: absolute; background: var(--ink); left: 0; top: 8.5px; width: 18px; height: 1px; transition: transform .3s; }
.pj-pm::after { transform: rotate(90deg); }
.pj.is-open .pj-pm::after { transform: rotate(0); }
.pj-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s; padding: 0 var(--gut) 0 calc(var(--gut) + 38px); }
.pj-body > * { overflow: hidden; min-height: 0; }
.pj.is-open .pj-body { grid-template-rows: auto auto auto; padding-bottom: 24px; }
.pj:not(.is-open) .pj-body > * { max-height: 0; }
.pj-meta { font-size: 13px; color: var(--ink-2); }
.pj-desc { color: var(--ink-2); margin: 8px 0 14px; max-width: 46ch; }
.pj-wa { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--mono); text-transform: uppercase; font-size: 14px; color: var(--acc-t); text-decoration: none; }
html.is-ed .prj-stage { display: none; }
html.is-ed .prj-wrap { grid-template-columns: 1fr; min-height: 0; }
html.is-ed .prj-list { grid-column: 1; border-left: 0; }
html.is-ed .pj-ph, html:not(.fx) .pj-ph { position: relative; width: 160px; height: 120px; opacity: 1; visibility: visible; float: right; margin: 18px var(--gut) 0 0; }
html.is-ed .pj-body, html:not(.fx) .pj-body { grid-template-rows: auto auto auto; padding-bottom: 20px; }
html.is-ed .pj-body > *, html:not(.fx) .pj-body > * { max-height: none; }
html:not(.fx):not(.is-ed) .prj-wrap { grid-template-columns: 1fr; } html:not(.fx):not(.is-ed) .prj-stage { display: none; } html:not(.fx):not(.is-ed) .prj-list { grid-column: 1; }

/* ── Estudio ── */
.team { border-bottom: 1px solid var(--rule-2); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); border-top: 1px solid var(--rule-2); }
.mate { border-right: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); margin-bottom: -1px; padding: var(--gut); display: flex; flex-direction: column; gap: 18px; }
.mate-ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.mate-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.mate:hover .mate-img { filter: grayscale(0); }
.mate-ph .x::before, .mate-ph .x::after { background: var(--paper); }
.mate-name { font-size: clamp(22px, 1.9vw, 30px); }
.mate-role { color: var(--ink-2); margin-top: 6px; }
.mate-cap { font-size: 13px; color: var(--acc-t); margin-top: 4px; }

/* ── Preguntas ── */
.faq { border-bottom: 1px solid var(--rule-2); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.faq-grid .sec-head { grid-template-columns: 1fr; align-items: start; }
.faq-list { border-left: 1px solid var(--rule-2); display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--rule-2); padding: 0 var(--gut); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.015em; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 20px; font: 400 26px var(--mono); color: var(--acc-t); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--ink-2); padding-bottom: 24px; max-width: 60ch; }

/* ── Reunión ── */
.meet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--rule-2); }
.meet-art { position: relative; display: grid; place-items: end center; padding: 40px var(--gut) 0; border-right: 1px solid var(--rule-2); overflow: hidden; min-height: 420px; }
.cta-svg { position: relative; width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.meet-sun { position: absolute; left: 58%; top: 16%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--acc); }
.meet-copy { padding: clamp(40px, 6vw, 88px) var(--gut); display: flex; flex-direction: column; gap: 22px; }
.mform { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.mf-kinds { border: 0; margin: 0; padding: 0; }
.mf-kinds legend { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-2); cursor: pointer; font-size: 16px; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.mf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px var(--gut); }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld-l { font-size: 13px; color: var(--ink-2); }
.mform input[type="text"] { font-size: 18px; padding: 10px 0; min-height: 46px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; }
.mform input[type="text"]:focus { outline: none; border-bottom-color: var(--acc); }
.mform input::placeholder { color: #9c988e; }
.mf-send { align-self: flex-start; }
.mf-alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 15px; }

/* ── Contacto ── */
.where-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.where-map { border-right: 1px solid var(--rule-2); min-height: 460px; }
.tm-map-wrapper { position: relative; width: 100%; height: 100%; min-height: 460px; }
.tm-map-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.tm-map-trigger { position: absolute; inset: 0; z-index: 2; }
html.fx .tm-map-trigger { display: none; }
.where-card { padding: clamp(36px, 5vw, 72px) var(--gut); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.find-addr { font-size: 20px; }
.phones, .hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; width: 100%; }
.phones li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 10px 0; border-bottom: 1px dashed var(--rule-2); }
.ph-area { color: var(--ink-2); }
.find-a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.find-a:hover { color: var(--acc-t); }
.where-sub { width: 100%; }
.sub-t { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-bottom: 4px; }
.hrow { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
.hr-dots { flex: 1; border-bottom: 1px dotted var(--rule-2); }

/* ── Pie ── */
.foot { border-top: 1px solid var(--rule-2); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-2); }
.fcol { padding: 30px var(--gut); border-right: 1px solid var(--rule-2); }
.fcol:last-child { border-right: 0; }
.ft-lead { font-size: clamp(24px, 2.2vw, 36px); max-width: 14ch; }
.fcol-t { font-size: 13px; color: var(--ink-2); font-weight: 400; margin-bottom: 12px; }
.fcol-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fcol-links li { min-height: 36px; display: flex; align-items: center; font-size: 18px; }
.fcol-links a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.fcol-links a:hover { color: var(--acc-t); }
.foot-big { position: relative; padding: clamp(26px, 3vw, 46px) var(--gut); border-bottom: 1px solid var(--rule-2); }
.fb-name { font-weight: 600; font-size: clamp(64px, 19vw, 330px); line-height: .82; letter-spacing: -.04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.2px var(--ink); text-align: center; white-space: nowrap; overflow: hidden; }
.fb-live { position: absolute; inset: 0; pointer-events: none; }
.fb-live canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-big.is-canvas .fb-name { -webkit-text-stroke-color: transparent; }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px var(--gut) 22px; font-size: 13px; color: var(--ink-2); }

/* ── Menú del correo ── */
.mail-pop { position: fixed; z-index: 90; display: flex; flex-direction: column; min-width: 220px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(0, 0, 0, .08); }
.mail-pop a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; text-decoration: none; font-family: var(--mono); text-transform: uppercase; font-size: 13px; border-bottom: 1px dashed var(--rule-2); }
.mail-pop a:last-child { border-bottom: 0; }
.mail-pop a:hover { background: var(--ink); color: var(--paper); }

/* ── Cursor (escritorio, web publicada) ── */
.cur { position: fixed; left: 0; top: 0; width: 9px; height: 9px; margin: -4px 0 0 -4px; background: var(--acc); z-index: 80; pointer-events: none; opacity: 0; transition: opacity .2s, width .2s, height .2s, margin .2s; }
.cur.on { opacity: 1; }
.cur.big { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: transparent; border: 1px solid var(--acc); }

/* ── Editor: listas en columna para que su «+ Agregar» llene el ancho ── */
html.is-ed .steps, html.is-ed .prj-list, html.is-ed .pp-list, html.is-ed .faq-list { display: flex; flex-direction: column; }
html.is-ed .cad-hint { position: relative; left: auto; bottom: auto; display: inline-block; margin: 12px; }
html.is-ed .hero-in { height: auto; min-height: 640px; max-height: none; }
html.is-ed .hero-draw { min-height: 460px; }
html.is-ed .words-in { min-height: 60svh; }
html.is-ed .planx-in { min-height: 0; }
html.is-ed .nav { position: sticky; }

/* ── Tablet y celular ── */
@media (max-width: 1100px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hf-title { grid-column: 1 / -1; border-bottom: 1px solid var(--rule-2); }
  .hf-lead { border-left: 0; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcol-lead { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--rule-2); }
}
@media (max-width: 900px) {
  .paint, .meet, .faq-grid, .where-in { grid-template-columns: 1fr; }
  .paint-fig, .meet-art, .where-map { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .faq-list { border-left: 0; border-top: 1px solid var(--rule-2); }
  .sec-head { grid-template-columns: 1fr; }
  .sec-aside { justify-self: start; }
  .planx-in { grid-template-columns: 1fr; min-height: 0; }
  .plan-box { width: min(100%, 560px); }
  .pcard { position: relative; left: auto; bottom: auto; width: auto; margin: 0 var(--gut) 28px; }
  .pc-body { min-height: 0; }
  .ppanel { border-left: 0; border-top: 1px solid var(--rule-2); }
  .stp { grid-template-columns: 1fr; min-height: 0; }
  .stp::before { display: none; }
  .stp-bar { margin: var(--gut); padding-right: 44px; }
  .stp:nth-child(even) .stp-bar { order: 0; }
  .stp-art, .stp:nth-child(even) .stp-art { border: 0; border-top: 1px dashed var(--rule-2); padding: 24px var(--gut) 34px; }
  .stp-tag { left: auto; right: var(--gut); top: 14px; }
  .prj-wrap { grid-template-columns: 1fr; min-height: 0; }
  .prj-stage { display: none; }
  .prj-list { grid-column: 1; border-left: 0; }
  .pj-ph { position: relative; width: auto; height: auto; aspect-ratio: 4 / 3; opacity: 1; visibility: visible; display: none; margin: 0 var(--gut) 4px; }
  .pj.is-open .pj-ph { display: block; }
  html.is-ed .pj-ph { display: block; float: none; width: auto; height: auto; margin: 16px var(--gut) 0; }
  .hero-spec { display: none; }
}
@media (max-width: 640px) {
  html:not(.is-ed) .words-in { min-height: 70svh; }
  :root { --hh: 64px; }
  .hero-in { min-height: 560px; height: auto; }
  .hero-draw { min-height: 330px; height: 52svh; }
  .hero-draw { --hn: clamp(24px, 7.4vw, 40px); }
  .hero-name { top: 22px; }
  .hero-art { inset: calc(var(--hn) + 58px) 2% 18px; }
  .hero-foot { grid-template-columns: 1fr; }
  .hf-lead, .hf-cta { border-left: 0; }
  .hf-lead { border-bottom: 1px solid var(--rule-2); }
  .hero-prog { top: calc(var(--hn) + 30px); left: 18px; font-size: 12px; min-width: 130px; }
  .hero-prog::after { left: -18px; }
  .ruler { left: 18px; right: 18px; }
  .foot-cols { grid-template-columns: 1fr; }
  .fcol { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .fcol:last-child { border-bottom: 0; }
  .svc { border-right: 0; }
  .mate { border-right: 0; }
  .meet-art { min-height: 300px; }
  .where-map, .tm-map-wrapper { min-height: 320px; }
  .logo { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.is-ed) .hero-foot [data-in] { animation: none; }
}
