/* Judastheos Architects — fichas de proyecto y portafolio */
:root {
  --bg: #111111; --surface: #1a1a1a; --text: #f5f5f5; --soft: #d9d9d9; --muted: #b0b0b0; --line: rgba(255,255,255,.1);
  --paper: #f3f1ec; --ink: #141414; --ink-soft: #4a4a4a; --ink-line: rgba(20,20,20,.12);
  --glass: rgba(255,255,255,.08); --glass-b: rgba(255,255,255,.22);
  --raleway: 'Raleway', 'Helvetica Neue', Arial, sans-serif; --dm: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1); --pad: clamp(1.25rem, 4vw, 4rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--dm); font-weight: 400; font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::after { content: ''; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; }

/* ── Tipografía ── */
.eye { font-family: var(--raleway); font-size: .68rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.eye::before { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .6; }
.h-xl { font-family: var(--raleway); font-weight: 200; font-size: clamp(2.8rem, 8.5vw, 8.6rem); line-height: .9; letter-spacing: .03em; text-transform: uppercase; }
.h-lg { font-family: var(--raleway); font-weight: 200; font-size: clamp(1.9rem, 4.3vw, 3.9rem); overflow-wrap: break-word; line-height: .98; letter-spacing: .04em; text-transform: uppercase; }
.h-md { font-family: var(--raleway); font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: .05em; text-transform: uppercase; }
.h-concept { font-family: var(--raleway); font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: .03em; text-transform: uppercase; max-width: 18ch; }
.feat-h { font-size: clamp(2.6rem, 6vw, 6.2rem) !important; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.85; color: var(--soft); max-width: 60ch; }
.quote { font-family: var(--raleway); font-weight: 300; font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.9rem); line-height: 1.4; letter-spacing: .01em; }

/* ── Botones y chips de cristal ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 2rem; border-radius: 40px; font-family: var(--raleway); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: background .2s, opacity .2s, border-color .2s, transform .1s; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--text); color: #111; }
.btn-solid:hover { opacity: .88; }
.btn-glass { background: var(--glass); color: var(--text); border-color: var(--glass-b); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.38); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { opacity: .88; }
.btn-ink-ghost { color: var(--ink); border-color: rgba(20,20,20,.25); background: rgba(20,20,20,.03); }
.btn-ink-ghost:hover { background: rgba(20,20,20,.08); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 1.05rem; border-radius: 40px; font-family: var(--raleway); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: rgba(255,255,255,.09); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.22); }

/* ── Portada full-bleed ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.78) saturate(.92); transform: scale(1.05); animation: heroIn 1.8s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.62) 42%, rgba(10,10,10,.12) 80%), linear-gradient(0deg, rgba(10,10,10,.75) 0%, transparent 45%); }
.hero.right::after { background: linear-gradient(270deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.62) 42%, rgba(10,10,10,.12) 80%), linear-gradient(0deg, rgba(10,10,10,.75) 0%, transparent 45%); }
.hero-in { width: 100%; padding: 9rem var(--pad) 4.5rem; max-width: 900px; }
.hero.right .hero-in { margin-left: auto; }
.code { display: inline-flex; min-height: 34px; align-items: center; padding: 0 1rem; border-radius: 40px; margin-bottom: 1.6rem; font-family: var(--raleway); font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero .loc { font-size: 1rem; color: var(--soft); margin-top: 1.3rem; letter-spacing: .02em; }
.hero .quote { margin-top: 1.4rem; color: #ececec; max-width: 34ch; }
.hero .chips { margin-top: 1.8rem; }
.thumbs { display: flex; gap: .6rem; margin-top: 1.8rem; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: 0 0 auto; width: 104px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); padding: 0; background: #000; cursor: zoom-in; transition: transform .25s var(--ease), border-color .2s; }
.thumbs button:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.6); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.scroll-cue { position: absolute; right: var(--pad); bottom: 2.4rem; font-family: var(--raleway); font-size: .62rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; display: flex; align-items: center; gap: .8rem; }
.scroll-cue::after { content: ''; width: 1px; height: 46px; background: linear-gradient(var(--muted), transparent); }

/* ── Secciones ── */
.sec { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); position: relative; }
.wrap { max-width: 1320px; margin: 0 auto; }
.sec + .sec { border-top: 1px solid var(--line); }
.paper { background: var(--paper); color: var(--ink); }
.paper .eye { color: var(--ink-soft); }
.paper .lead { color: var(--ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }

/* Ficha técnica (fondo blanco) */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--ink-line); margin-top: 3rem; }
.spec { padding: 1.6rem 1.4rem 1.6rem 0; border-bottom: 1px solid var(--ink-line); }
.spec dt { font-family: var(--raleway); font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #6b6b6b; margin-bottom: .6rem; }
.spec dd { font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.paper .quote { color: var(--ink); max-width: 30ch; }

/* Concepto / descripción */
.desc p { font-size: 1.08rem; line-height: 1.95; color: var(--soft); }
.desc p + p { margin-top: 1.2rem; }

/* Materialidad */
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-top: 2.8rem; }
.mat { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.mat i { display: block; aspect-ratio: 1 / .78; position: relative; }
.mat i::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.mat b { display: block; padding: .95rem 1rem 1.05rem; font-family: var(--raleway); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); line-height: 1.4; }

/* Espacios (imagen completa + texto) */
.space { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.space:first-of-type { border-top: 0; }
.space.flip .space-img { order: 2; }
.space-img { border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; position: relative; }
.space-img img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform 1.1s var(--ease); }
.space-img:hover img { transform: scale(1.03); }
.space-n { font-family: var(--raleway); font-size: .68rem; font-weight: 600; letter-spacing: .24em; color: var(--muted); }
.space h3 { margin: .8rem 0 1rem; }
.space p { font-size: 1.04rem; line-height: 1.9; color: var(--soft); }
.space .quote { font-size: 1.1rem; color: #e6e6e6; margin-top: 1.2rem; }
.space .chips { margin-top: 1.4rem; }
.space .chip { background: rgba(255,255,255,.06); }

/* Galería (imágenes completas, sin recorte) */
.gallery { columns: 3 300px; column-gap: 1rem; margin-top: 2.8rem; }
.gallery button { display: block; width: 100%; margin: 0 0 1rem; break-inside: avoid; border: 0; padding: 0; background: #000; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .9s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }

/* Planos y masterplan */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.8rem; }
.plan { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.plan-fig { aspect-ratio: 4/3; position: relative; background-color: #15191d; background-image: linear-gradient(rgba(140,170,200,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,200,.09) 1px, transparent 1px), linear-gradient(rgba(140,170,200,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,200,.05) 1px, transparent 1px); background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px; display: grid; place-items: center; }
.plan-fig svg { width: 46%; opacity: .55; stroke: #9fb4c7; fill: none; stroke-width: 1.2; }
.plan-fig img { width: 100%; height: 100%; object-fit: contain; background: #f4f4f2; }
.plan-fig.real { cursor: zoom-in; }
.plan-b { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.plan-b strong { font-family: var(--raleway); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.plan-b span { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.plan-b a { margin-top: auto; padding-top: .8rem; font-family: var(--raleway); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.plan-b a:hover { color: #fff; }

/* Video */
.film { margin-top: 2.6rem; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.film video { width: 100%; display: block; }

/* Ubicación */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.map { width: 100%; min-height: 380px; height: 100%; border: 0; border-radius: 12px; filter: grayscale(1) invert(.9) contrast(.9); background: #222; }
.map-data { display: flex; flex-direction: column; gap: 1.4rem; justify-content: center; }
.map-data .big { font-family: var(--raleway); font-weight: 200; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; }

/* Navegación entre proyectos */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.pn a { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 2.4rem var(--pad); }
.pn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.55); transition: transform 1.1s var(--ease), filter .4s; }
.pn a:hover img { transform: scale(1.05); filter: brightness(.45); }
.pn a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,10,.85), transparent 70%); }
.pn small { display: block; font-family: var(--raleway); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); margin-bottom: .7rem; }
.pn .h-md { font-weight: 300; }
.pn .next { text-align: right; justify-content: flex-end; }

/* CTA blanco */
.cta-paper { text-align: center; }
.cta-paper .h-lg { max-width: 18ch; margin: 0 auto; }
.cta-paper .lead { margin: 1.4rem auto 0; }
.cta-paper .actions { justify-content: center; }

/* ── Portafolio (proyectos.html) ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink-line); margin-top: 3.2rem; }
.stats div { padding: 1.8rem 1.2rem 1.6rem 0; border-right: 1px solid var(--ink-line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--raleway); font-weight: 200; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: var(--ink); }
.stats span { display: block; margin-top: .7rem; font-family: var(--raleway); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #6b6b6b; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.filters button { min-height: 44px; padding: 0 1.3rem; border-radius: 40px; font-family: var(--raleway); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); background: var(--glass); border: 1px solid var(--glass-b); cursor: pointer; transition: background .2s, color .2s; }
.filters button:hover { background: rgba(255,255,255,.14); color: #fff; }
.filters button.on { background: var(--text); color: #111; border-color: var(--text); }
.filters button b { font-weight: 600; opacity: .55; margin-left: .45rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.card { position: relative; border-radius: 14px; overflow: hidden; background: #000; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16/10.5; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -40px rgba(0,0,0,.9); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease), filter .4s; filter: brightness(.82); }
.card:hover img { transform: scale(1.05); filter: brightness(.7); }
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.45) 40%, transparent 70%); }
.card-top { position: absolute; top: 1.1rem; left: 1.1rem; right: 1.1rem; display: flex; justify-content: space-between; gap: .5rem; }
.card-body { padding: 1.8rem 1.8rem 1.6rem; }
.card-prog { font-family: var(--raleway); font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.card h3 { font-family: var(--raleway); font-weight: 300; font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1; margin: .6rem 0 .55rem; }
.card-loc { font-size: .95rem; color: var(--soft); }
.card-q { font-family: var(--raleway); font-style: italic; font-weight: 300; font-size: 1.02rem; color: #ececec; margin-top: .9rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.card:hover .card-q, .card:focus-visible .card-q { max-height: 4em; opacity: 1; }
.card-go { display: inline-flex; margin-top: 1.1rem; font-family: var(--raleway); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.card .chip { min-height: 32px; font-size: .6rem; }

/* ── Lightbox ── */
.lb { position: fixed; inset: 0; z-index: 1200; background: rgba(8,8,8,.96); display: flex; align-items: center; justify-content: center; padding: 4.5rem 1rem 3.5rem; }
.lb[hidden] { display: none !important; }
.lb figure { max-width: min(1500px, 94vw); text-align: center; }
.lb img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; margin: 0 auto; }
.lb figcaption { margin-top: 1rem; font-family: var(--raleway); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 1.3rem; cursor: pointer; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lb button:hover { background: rgba(255,255,255,.18); }
.lb .x { top: 1.2rem; right: 1.2rem; } .lb .p { left: 1.2rem; top: 50%; transform: translateY(-50%); } .lb .n { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); padding: 3.5rem var(--pad) 2rem; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.foot-brand { font-family: var(--raleway); font-weight: 200; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.foot-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot-links a { font-family: var(--raleway); font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-family: var(--raleway); font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.foot-bottom a { color: var(--soft); border-bottom: 1px solid rgba(255,255,255,.25); }

/* ── Aparición suave ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .split, .space, .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .space.flip .space-img { order: 0; }
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(2) { border-right: 0; }
}
@media (max-width: 760px) {
  .hero-in { padding: 7.5rem var(--pad) 3rem; }
  .hero::after, .hero.right::after { background: linear-gradient(0deg, rgba(10,10,10,.94) 30%, rgba(10,10,10,.45) 75%, rgba(10,10,10,.2) 100%); }
  .scroll-cue { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .thumbs button { width: 86px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { aspect-ratio: 4/4.4; }
  .card-q { max-height: 4em; opacity: 1; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn .next { text-align: left; justify-content: flex-start; }
  .pn a { min-height: 260px; }
  .gallery { columns: 1; }
  .mats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .mat i { aspect-ratio: 1 / .62; }
  .mat b { font-size: .66rem; padding: .8rem .85rem .9rem; }
  .map { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; transform: none; } .rv { opacity: 1; transform: none; } }
