/* TILWORK · prototipo 2 · «El taller» */
@font-face { font-family: "Bricolage"; font-weight: 200 800; font-display: swap; src: url(f/bricolage.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400 800; font-display: swap; src: url(f/manrope.woff2) format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(f/plex.woff2) format("woff2"); }
@property --r { syntax: "<length>"; inherits: true; initial-value: 150px; }
@property --k { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --negro: #15110E; --negro-2: #201914; --serrin: #F1E7D4; --serrin-2: #E6D8BF; --kraft: #D6BE97;
  --pino: #E3BC86; --naranja: #F05A1A; --amarillo: #F4C318; --grafito: #2E2A26; --gris: #7A7065;
  --linea: rgba(21,17,14,.16); --linea-clara: rgba(241,231,212,.16);
  --f-tit: "Bricolage", "Arial Narrow", sans-serif; --f-tex: "Manrope", system-ui, sans-serif; --f-mono: "Plex", ui-monospace, monospace;
  --lado: clamp(18px, 4vw, 56px);
  --suave: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--negro); color: var(--serrin); font: 500 17px/1.55 var(--f-tex); overflow-x: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.env { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--lado); }
.sello { font-family: var(--f-tit); font-weight: 800; text-transform: uppercase; line-height: .86; letter-spacing: -.02em; }
h2.sello { font-size: clamp(54px, 9.6vw, 164px); filter: url(#tinta); }
.entradilla { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34em; }
.boton { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 4px; background: var(--naranja); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .3s var(--suave), background .3s; }
.boton:hover { transform: translateY(-2px); background: #ff6a28; }
.boton.claro { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.aviso-proto { position: fixed; left: 14px; bottom: 14px; z-index: 80; padding: 9px 14px; border-radius: 4px; background: var(--amarillo); color: var(--negro); font: 400 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }

/* ---------- Flexómetro (cabecera) ---------- */
.flexo { position: fixed; z-index: 50; top: 12px; left: var(--lado); right: var(--lado); height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; --p: 0; pointer-events: none; }
.flexo > * { pointer-events: auto; }
.flexo-caja { position: relative; z-index: 2; height: 48px; padding: 0 16px 0 40px; display: flex; align-items: center; border-radius: 12px 6px 6px 12px; background: var(--naranja); color: var(--negro); text-decoration: none; font: 800 19px/1 var(--f-tit); letter-spacing: .02em; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 6px 18px rgba(0,0,0,.28); }
.flexo-caja::before { content: ""; position: absolute; left: 11px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--negro); box-shadow: inset 0 0 0 5px #3a302a; }
.flexo-pista { position: relative; height: 26px; margin-left: -4px; }
.cinta { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); background:
  repeating-linear-gradient(90deg, #1b1611 0 1.5px, transparent 1.5px 50px) 0 0 / 100% 48% no-repeat,
  repeating-linear-gradient(90deg, #1b1611 0 1px, transparent 1px 10px) 0 0 / 100% 30% no-repeat,
  repeating-linear-gradient(90deg, rgba(27,22,17,.7) 0 1px, transparent 1px 5px) 0 0 / 100% 18% no-repeat,
  linear-gradient(#ffd83a, var(--amarillo) 60%, #d9a80d); box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.cinta span { position: absolute; bottom: 2px; transform: translateX(-50%); font: 700 10px/1 var(--f-tex); color: #1b1611; }
.cinta span.m { color: #c8102e; font-weight: 800; }
.gancho { position: absolute; top: -4px; bottom: -4px; width: 6px; left: calc(var(--p) * 100%); margin-left: -4px; border-radius: 1px; background: linear-gradient(90deg, #9a9a9a, #e8e8e8 50%, #8a8a8a); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.lectura { position: absolute; top: 34px; left: calc(var(--p) * 100%); transform: translateX(-50%); padding: 5px 8px; border-radius: 3px; background: var(--negro); color: var(--amarillo); white-space: nowrap; font-size: 10.5px; }
.flexo-menu { position: relative; z-index: 2; height: 48px; margin-left: 10px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--negro); color: var(--serrin); cursor: pointer; display: flex; align-items: center; gap: 10px; font: 700 14px/1 var(--f-tex); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.flexo-menu i { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (max-width: 640px) {
  .flexo { height: 42px; top: 10px; }
  .flexo-caja { height: 42px; font-size: 16px; padding: 0 12px 0 34px; }
  .flexo-caja::before { left: 9px; width: 17px; height: 17px; margin-top: -8.5px; }
  .flexo-menu { height: 42px; padding: 0 14px; }
  .flexo-menu b { display: none; }
  .flexo-pista { height: 22px; }
}

/* ---------- Lista de corte (menú) ---------- */
.lista { position: fixed; inset: 0; z-index: 70; background: rgba(21,17,14,.6); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.lista.abierta { visibility: visible; opacity: 1; transition: opacity .35s; }
.lista-papel { position: absolute; top: 0; left: 50%; width: min(720px, 100%); max-height: 100%; overflow: auto; transform: translate(-50%, -104%); transition: transform .6s var(--suave); background: var(--serrin); color: var(--negro); padding: 26px clamp(20px, 4vw, 44px) 34px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lista-papel::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px -2px, var(--serrin) 7px, transparent 7.5px) 0 0 / 16px 10px repeat-x; }
.lista.abierta .lista-papel { transform: translate(-50%, 0); }
.lista-cab { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--negro); padding-bottom: 14px; }
.lista-cab .sello { font-size: 44px; filter: url(#tinta); }
.lista-cab button { border: 0; background: none; cursor: pointer; font-weight: 700; padding: 10px; }
.lista-cols { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); color: var(--gris); }
.lista ol { list-style: none; }
.lista li a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed rgba(21,17,14,.3); text-decoration: none; }
.lista li a b { font: 800 30px/1 var(--f-tit); text-transform: uppercase; }
.lista li a i { display: block; font-style: normal; font-size: 13.5px; color: var(--gris); margin-top: 4px; }
.lista li a:hover b { color: var(--naranja); }
.lista-pie { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-weight: 700; }
.lista-pie a { text-decoration: none; border-bottom: 2px solid var(--naranja); }

/* ---------- Portada: cepíllalo ---------- */
.cepillo { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #5f4a36; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='30' viewBox='0 0 44 30'%3E%3Cpath d='M3 22h38l-3 6H6z' fill='%2315110E'/%3E%3Cpath d='M5 12c3-5 10-7 17-7s13 2 17 7v10H5z' fill='%23F05A1A' stroke='%2315110E' stroke-width='2'/%3E%3Ccircle cx='14' cy='11' r='4' fill='%2315110E'/%3E%3Cpath d='M26 4l6 0 2 8h-8z' fill='%2315110E'/%3E%3C/svg%3E") 22 26, crosshair; }
.cepillo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cepillo-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 var(--lado) 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: end; pointer-events: none; }
.cepillo-ui a, .cepillo-ui button { pointer-events: auto; }
.pista { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px; background: rgba(21,17,14,.82); color: var(--serrin); backdrop-filter: blur(6px); transition: opacity .6s; }
.pista b { color: var(--amarillo); font-weight: 400; }
.contador { padding: 10px 14px; border-radius: 4px; background: rgba(21,17,14,.82); color: var(--serrin); backdrop-filter: blur(6px); text-align: right; }
.contador b { color: var(--amarillo); font-weight: 400; }
.cepillo-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cepillo-botones .boton.claro { background: rgba(21,17,14,.82); color: var(--serrin); box-shadow: none; }
@media (max-width: 640px) { .cepillo-ui { grid-template-columns: minmax(0, 1fr); padding-bottom: 66px; } .contador { justify-self: start; text-align: left; } }

/* ---------- Anillos ---------- */
.anillos { position: relative; height: 360vh; background: radial-gradient(ellipse at 30% 40%, #2a211a, var(--negro) 70%); }
.anillos-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.anillos-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.tronco-caja { position: relative; }
#tronco { width: min(100%, 78vh); margin-inline: auto; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.anio { position: absolute; right: 0; bottom: 2%; font-size: clamp(48px, 7vw, 110px); color: var(--amarillo); filter: url(#tinta); pointer-events: none; }
.foto-1955 { cursor: zoom-in; outline: none; }
.foto-1955 .lupa { transition: opacity .25s; }
.foto-1955:hover .lupa circle:first-child, .foto-1955:focus-visible .lupa circle:first-child { fill: #FFF3C4; }
.foto-1955:focus-visible .aro-foto { stroke: var(--amarillo); stroke-width: 10; }
.anillos-textos { position: relative; min-height: 340px; }
.contador-anillos { color: var(--gris); }
.contador-anillos b { color: var(--amarillo); font-weight: 400; }
.hito { position: absolute; left: 0; right: 0; top: 40px; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s var(--suave); }
.hito.activo { opacity: 1; transform: none; }
.hito .mono { color: var(--naranja); }
.hito h2 { margin: 14px 0 18px; font-size: clamp(46px, 6.4vw, 100px); }
.hito p + p { margin-top: 12px; }
.hito q { quotes: "«" "»"; }
@media (max-width: 860px) {
  .anillos-in { grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: center; height: 100%; padding-top: 64px; }
  #tronco { width: min(88vw, 45vh); }
  .anio { right: 2%; bottom: 0; font-size: 44px; }
  .anillos-textos { min-height: 270px; }
  .hito { top: 30px; }
  .hito h2 { font-size: 46px; margin: 8px 0 10px; }
  .hito p { font-size: 15.5px; }
}

/* ---------- La pila ---------- */
.pila { background: var(--serrin); color: var(--negro); padding: clamp(80px, 11vw, 160px) 0; }
.pila-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26em); gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.pila-cab .mono { color: var(--naranja); margin-bottom: 18px; }
.vigas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); perspective: 900px; }
.viga { position: relative; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; background: #b88a55; border-radius: 3px; transform-style: preserve-3d; transition: transform .5s var(--suave), box-shadow .5s; box-shadow: 0 2px 0 rgba(0,0,0,.25), 0 10px 26px rgba(60,35,15,.25); }
.viga canvas { width: 100%; height: 100%; border-radius: 3px; }
.viga::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255,240,210,.28), transparent 55%); opacity: 0; transition: opacity .4s; }
.viga:hover::after, .viga:focus-visible::after { opacity: 1; }
.viga:hover, .viga:focus-visible { box-shadow: 0 2px 0 rgba(0,0,0,.25), 0 26px 40px rgba(60,35,15,.35); }
.viga:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }
.viga-sello { position: absolute; left: 9%; bottom: 12%; max-width: 84%; transform: rotate(var(--giro, -4deg)); padding: 8px 10px 6px; border: 3px solid currentColor; border-radius: 3px; color: rgba(25,20,16,.86); text-align: left; mix-blend-mode: multiply; filter: url(#tinta); pointer-events: none; }
.viga-sello span { display: block; font: 400 11px/1 var(--f-mono); letter-spacing: .14em; }
.viga-sello b { display: block; margin-top: 4px; font: 800 clamp(16px, 1.9vw, 30px)/.92 var(--f-tit); letter-spacing: -.015em; text-transform: uppercase; }
.viga:nth-child(3n+1) .viga-sello { color: rgba(214,70,10,.92); }
.pila-pie { margin-top: 22px; color: var(--gris); }
@media (max-width: 860px) { .pila-cab { grid-template-columns: minmax(0, 1fr); } .vigas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ficha (etiqueta de lote) */
.ficha { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 16px; background: rgba(21,17,14,.72); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.ficha.abierta { visibility: visible; opacity: 1; transition: opacity .35s; }
.ficha-carta { position: relative; width: min(1060px, 100%); max-height: calc(100svh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--serrin); color: var(--negro); border-radius: 6px; box-shadow: 0 40px 90px rgba(0,0,0,.5); transform: translateY(40px) rotate(-1.5deg); transition: transform .6s var(--suave); }
.ficha.abierta .ficha-carta { transform: none; }
.ficha-fotos { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; background: var(--negro); min-height: 460px; }
.ff { position: relative; overflow: hidden; min-height: 150px; }
.ff img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ff .mono { position: absolute; left: 10px; bottom: 10px; padding: 6px 9px; border-radius: 3px; background: rgba(21,17,14,.82); color: var(--serrin); font-size: 10px; }
.ficha-txt { position: relative; padding: clamp(24px, 3.4vw, 46px); }
.ficha-txt::before { content: ""; position: absolute; top: 22px; right: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--negro); box-shadow: 0 0 0 5px var(--serrin-2); }
.ficha-txt .mono { color: var(--naranja); }
.ficha-txt h3 { margin: 14px 0 18px; font-size: clamp(44px, 5vw, 78px); filter: url(#tinta); }
.ficha-txt p { font-size: 16.5px; }
.ficha-txt ul { list-style: none; margin-top: 18px; border-top: 1px dashed rgba(21,17,14,.3); }
.ficha-txt li { padding: 9px 0; border-bottom: 1px dashed rgba(21,17,14,.3); font-size: 15px; }
.ficha-nav { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.ficha-nav button { border: 0; border-radius: 4px; padding: 13px 16px; background: var(--negro); color: var(--serrin); cursor: pointer; font-weight: 700; font-size: 14px; }
.ficha-nav button.cerrar { margin-left: auto; background: transparent; color: var(--negro); box-shadow: inset 0 0 0 1.5px var(--negro); }
@media (max-width: 760px) { .ficha-carta { grid-template-columns: minmax(0, 1fr); } .ficha-fotos { grid-template-rows: none; grid-template-columns: 1fr 1fr; min-height: 0; aspect-ratio: 2 / 1; } .ficha-txt::before { display: none; } }

/* ---------- Del plano a la obra ---------- */
.plano { background: var(--kraft); color: var(--negro); padding: clamp(80px, 11vw, 160px) 0; background-image: radial-gradient(rgba(80,55,25,.10) 1px, transparent 1.2px); background-size: 5px 5px; }
.plano-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24em); gap: 24px 60px; align-items: end; margin-bottom: clamp(30px, 4vw, 54px); }
.plano-cab .mono { color: #8a3a0c; margin-bottom: 18px; }
.mesa-plano { position: relative; aspect-ratio: 4 / 3; max-height: 86vh; margin-inline: auto; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 70px rgba(60,35,15,.35); touch-action: pan-y; cursor: none; --mx: -400px; --my: -400px; --r: 150px; transition: --r .9s var(--suave); }
.mesa-plano img, .dibujo, .dibujo canvas, .dibujo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mesa-plano img { object-fit: cover; }
.dibujo { -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), transparent 55%, #000 100%); mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), transparent 55%, #000 100%); }
.dibujo canvas { background: #E4D3B2; }
.notas text { font: 400 15px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; fill: #2E2A26; }
.notas .cajetin text { font-size: 13px; }
.aro-luz { position: absolute; left: var(--mx); top: var(--my); width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(244,195,24,.7), 0 0 60px rgba(244,195,24,.25) inset; pointer-events: none; }
.plano-pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.plano-pie .mono { color: #5a4a36; }
.plano .boton { background: var(--negro); color: var(--serrin); }
@media (max-width: 860px) { .plano-cab { grid-template-columns: minmax(0, 1fr); } .mesa-plano { aspect-ratio: 4 / 3.4; } }

/* ---------- Monta tu pérgola ---------- */
.pergola { background: var(--negro-2); padding: clamp(80px, 11vw, 160px) 0 clamp(70px, 9vw, 130px); }
.pergola-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(26px, 5vw, 70px); align-items: center; }
.pergola .mono.eti { color: var(--amarillo); margin-bottom: 18px; }
.pergola h2 { margin-bottom: 22px; }
.mandos { margin-top: 30px; display: grid; gap: 20px; }
.mando label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-weight: 700; }
.mando output { font: 400 15px var(--f-mono); color: var(--amarillo); }
.mando input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; border-radius: 2px; cursor: pointer; background:
  repeating-linear-gradient(90deg, #1b1611 0 1.5px, transparent 1.5px 10%) 0 0 / 100% 55% no-repeat,
  repeating-linear-gradient(90deg, #1b1611 0 1px, transparent 1px 2%) 0 0 / 100% 30% no-repeat,
  linear-gradient(#ffd83a, var(--amarillo) 60%, #d9a80d); }
.mando input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 40px; border-radius: 3px; background: var(--naranja); border: 2px solid var(--negro); box-shadow: 0 3px 8px rgba(0,0,0,.45); }
.mando input[type=range]::-moz-range-thumb { width: 18px; height: 40px; border-radius: 3px; background: var(--naranja); border: 2px solid var(--negro); }
.techos { display: flex; flex-wrap: wrap; gap: 8px; }
.techos button { border: 0; border-radius: 4px; padding: 12px 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea-clara); cursor: pointer; font-weight: 700; font-size: 14.5px; }
.techos button[aria-pressed="true"] { background: var(--serrin); color: var(--negro); box-shadow: none; }
.despiece { margin-top: 26px; padding: 14px 16px; border-radius: 4px; background: rgba(241,231,212,.06); border: 1px dashed var(--linea-clara); }
.despiece .mono { color: var(--gris); }
.despiece p + p { margin-top: 6px; font-weight: 700; }
.pergola-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nota-boceto { margin-top: 16px; font-size: 13.5px; color: #a3988a; }
.lienzo { position: relative; aspect-ratio: 1.12; border-radius: 6px; background: radial-gradient(ellipse at 50% 60%, #2c241d, #1a1511 75%); overflow: hidden; }
.lienzo canvas { width: 100%; height: 100%; }
.lienzo .mono { position: absolute; left: 16px; top: 14px; color: var(--gris); }
.pasos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 100px); border-top: 2px solid var(--serrin); }
.pasos li { position: relative; padding: 22px 20px 0 0; }
.pasos li::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 5px var(--negro-2); }
.pasos b { display: block; margin: 10px 0 6px; font: 800 clamp(21px, 2.4vw, 30px)/1 var(--f-tit); overflow-wrap: anywhere; text-transform: uppercase; }
.pasos .mono { color: var(--amarillo); }
.pasos p { font-size: 15.5px; color: #cfc3b0; }
@media (max-width: 900px) { .pergola-in { grid-template-columns: minmax(0, 1fr); align-items: start; } .lienzo { order: -1; position: sticky; top: 62px; z-index: 3; aspect-ratio: 1.45; box-shadow: 0 16px 30px rgba(0,0,0,.45); } .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; } }

/* ---------- El banco (obras) ---------- */
.banco { position: relative; overflow: hidden; background: #3a2b1f; padding: clamp(80px, 11vw, 150px) 0 clamp(50px, 6vw, 90px); }
.banco-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24em); gap: 24px 60px; align-items: end; margin-bottom: clamp(30px, 4vw, 50px); }
.banco-cab .mono { color: var(--amarillo); margin-bottom: 18px; }
.banco-cab p { color: #e2d5bf; }
.mesa { position: relative; margin-inline: var(--lado); border-radius: 6px; background-color: #a77a4a; background-size: cover; box-shadow: inset 0 0 0 2px rgba(0,0,0,.2), inset 0 30px 60px rgba(0,0,0,.25), 0 30px 60px rgba(0,0,0,.35); transition: height .6s var(--suave); }
.foto { position: absolute; left: 0; top: 0; width: var(--w, 290px); margin: 0; padding: 10px 10px 0; background: #fbf7ef; color: var(--negro); border-radius: 2px; cursor: grab; touch-action: none; box-shadow: 0 2px 2px rgba(0,0,0,.18), 0 14px 26px rgba(0,0,0,.3); transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--g, 0deg)); transition: transform .7s var(--suave), box-shadow .3s, opacity .4s; will-change: transform; }
.foto::before { content: ""; position: absolute; left: 50%; top: -12px; width: 86px; height: 26px; margin-left: -43px; background: rgba(240,225,180,.78); transform: rotate(calc(var(--g, 0deg) * -1.6)); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.foto figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px 11px; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.foto figcaption .mono { font-size: 9.5px; color: var(--gris); text-align: right; }
.foto.cogida { cursor: grabbing; transition: box-shadow .3s; box-shadow: 0 4px 4px rgba(0,0,0,.18), 0 34px 50px rgba(0,0,0,.42); }
.foto[hidden] { display: none; }
.mesa.baraja .foto { touch-action: pan-y; }
.mesa-mandos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 18px var(--lado) 0; }
.mesa-mandos .mono { color: #cdbfa8; }
.mesa-mandos .grupo { display: flex; flex-wrap: wrap; gap: 8px; }
.mesa-mandos button, .filtros button { border: 0; border-radius: 4px; padding: 11px 15px; background: rgba(241,231,212,.1); color: var(--serrin); cursor: pointer; font-weight: 700; font-size: 14px; }
.mesa-mandos button:hover, .filtros button:hover { background: rgba(241,231,212,.2); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 var(--lado) 18px; }
.filtros button[aria-pressed="true"] { background: var(--amarillo); color: var(--negro); }
@media (max-width: 860px) { .banco-cab { grid-template-columns: minmax(0, 1fr); } }

/* Visor */
.visor { position: fixed; inset: 0; z-index: 75; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(17,14,11,.96); color: var(--serrin); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.visor.abierto { visibility: visible; opacity: 1; transition: opacity .35s; }
.visor-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--lado); }
.visor-foto { padding: 0 var(--lado); min-height: 0; }
.visor-foto img { width: 100%; height: 100%; object-fit: contain; }
.visor-nav { display: flex; justify-content: space-between; padding: 16px var(--lado) 22px; }
.visor button { border: 0; background: none; cursor: pointer; font-weight: 700; white-space: nowrap; flex-shrink: 0; padding: 12px; }
.visor-nav button { width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linea-clara); font-size: 20px; }

/* ---------- Casa (ATAYA) ---------- */
.casa { background: var(--serrin); color: var(--negro); padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; }
.casa-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.casa-foto { position: relative; aspect-ratio: 1 / .92; }
.casa-foto img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(50% calc(100% - var(--k) * 100%), 100% calc(100% - var(--k) * 58%), 100% 100%, 0 100%, 0 calc(100% - var(--k) * 58%)); transition: --k 1.8s var(--suave); }
.casa-foto svg { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); overflow: visible; }
.casa-foto path { fill: none; stroke: var(--negro); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--suave); }
.casa-foto.visto { --k: 1; }
.casa-foto.visto path { stroke-dashoffset: 0; }
.casa .mono { color: var(--naranja); margin-bottom: 18px; }
.casa h2 { margin-bottom: 24px; }
.casa p + .boton { margin-top: 28px; }
@media (max-width: 860px) { .casa-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Albarán (contacto) ---------- */
.contacto { background: var(--negro); padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; }
.contacto-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.contacto .mono.eti { color: var(--amarillo); margin-bottom: 18px; }
.contacto h2 { margin-bottom: 22px; }
.albaran { position: relative; background: #FBF6EC; color: var(--negro); padding: 34px clamp(20px, 3vw, 40px) 36px; transform: rotate(1.2deg); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.albaran::before, .albaran::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 8px 5px, var(--negro) 4.5px, transparent 5px) 0 0 / 16px 10px repeat-x; }
.albaran::before { top: -5px; } .albaran::after { bottom: -5px; }
.alb-cab { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--negro); }
.alb-cab b { font: 800 26px/1 var(--f-tit); text-transform: uppercase; }
.alb-cab .mono { color: var(--gris); text-align: right; font-size: 10.5px; }
.alb-fila { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 15px 0; border-bottom: 1px dashed rgba(21,17,14,.3); text-decoration: none; transition: background .3s; }
.alb-fila:hover { background: rgba(240,90,26,.07); }
.alb-fila .mono { color: var(--gris); font-size: 10.5px; }
.alb-fila b { font-size: clamp(17px, 1.7vw, 21px); }
.alb-fila span:last-child { color: var(--naranja); font-weight: 800; }
.alb-pie { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.alb-pie p { font-size: 13.5px; color: var(--gris); max-width: 22em; }
.tampon { flex-shrink: 0; width: 118px; height: 118px; color: rgba(214,70,10,.9); transform: rotate(-14deg) scale(1.6); opacity: 0; transition: transform .45s cubic-bezier(.5, 0, .3, 1.4), opacity .2s; mix-blend-mode: multiply; filter: url(#tinta); }
.albaran.visto .tampon { transform: rotate(-14deg) scale(1); opacity: 1; transition-delay: .5s; }
.tampon text { font: 400 11px var(--f-mono); letter-spacing: .2em; fill: currentColor; }
@media (max-width: 860px) { .contacto-in { grid-template-columns: minmax(0, 1fr); } .alb-fila { grid-template-columns: minmax(0, 1fr) auto; } .alb-fila .mono { grid-column: 1 / -1; } }

/* ---------- Pie ---------- */
.pie { background: var(--naranja); color: var(--negro); padding: 50px 0 80px; overflow: hidden; }
.pie-gigante { font-size: clamp(64px, 18.5vw, 300px); line-height: .78; filter: url(#tinta); margin-left: -.03em; white-space: nowrap; }
.pie-fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; margin-top: 26px; font-size: 14px; font-weight: 700; }
.pie-fila a { text-decoration: none; border-bottom: 2px solid var(--negro); }
.fin-cinta { margin-bottom: 20px; }

/* Apariciones */
.revela { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform 1.1s var(--suave); transition-delay: var(--d, 0s); }
.revela.visto { opacity: 1; transform: none; }

/* Página de obras */
.obras-cab { padding: 140px 0 40px; background: #3a2b1f; }
.obras-cab .mono { color: var(--amarillo); margin-bottom: 18px; }
.obras-cab p { color: #e2d5bf; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01s !important; animation-duration: .01s !important; transition-delay: 0s !important; }
}

/* Titulares en secciones de dos columnas */
.pergola h2.sello, .casa h2.sello, .contacto h2.sello { font-size: clamp(48px, 6.4vw, 112px); overflow-wrap: anywhere; }
