/* ==========================================================================
   LU PEÑA · ARQ. STUDIO — v2 (rediseño 2026-10)
   Capa nueva sobre styles.css: ilustraciones isométricas, hero dinámico,
   Un vistazo, Detrás del trazo (estudio + método), cierre, cotizador y
   página de proyectos.
   ========================================================================== */

:root {
  --iso-line: #C55A2A;
  --iso-top: #FCF5EF;
  --iso-left: #F6E4D7;
  --iso-right: #EED0BC;
  --iso-ground: #F8ECE2;
  --iso-win: #FAEDE3;
  --iso-glow: #F2B48F;
  --iso-pv: #E7BDA2;
  --iso-leaf: #F3DACA;
  --iso-pool: #FBF1EA;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.6, 0, 0.2, 1);
  --r-lg: 26px;
  --r-md: 18px;
}
html[data-theme="dark"] {
  --iso-line: #E07A4A;
  --iso-top: #2C2620;
  --iso-left: #241F1A;
  --iso-right: #1C1814;
  --iso-ground: #221D18;
  --iso-win: #2F2822;
  --iso-glow: #8A4526;
  --iso-pv: #3A2E25;
  --iso-leaf: #2E2721;
  --iso-pool: #29231E;
}

/* ---------------- ISO: ilustraciones de línea ---------------- */
.iso { display: block; width: 100%; height: auto; overflow: visible; }
.world__ill, .pj-tile__ill { aspect-ratio: auto !important; height: clamp(72px, 7.4vw, 120px); display: flex !important; align-items: center; justify-content: center; }
.world__ill .iso, .pj-tile__ill .iso { height: 100%; width: auto; max-width: 100%; }
.iso polygon, .iso polyline, .iso line, .iso circle, .iso ellipse, .iso path, .iso rect {
  stroke: var(--iso-line); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.iso .ft { fill: var(--iso-top); }
.iso .fl { fill: var(--iso-left); }
.iso .fr { fill: var(--iso-right); }
.iso .plate.ft { fill: var(--iso-ground); }
.iso .plate.fl, .iso .plate.fr { fill: var(--iso-left); }
.iso .wall.fl, .iso .wall.fr { fill: var(--iso-top); }
.iso .small.ft { fill: var(--iso-top); }
.iso .win { fill: var(--iso-win); transition: fill 0.5s ease; }
.iso .door { fill: var(--iso-right); }
.iso .sign { fill: var(--iso-glow); }
.iso .pv { fill: var(--iso-pv); }
.iso .green, .iso .leaf { fill: var(--iso-leaf); }
.iso .pool, .iso .rug, .iso .linen { fill: var(--iso-pool); }
.iso .road { fill: var(--iso-left); stroke-dasharray: 2 3; }
.iso .ln, .iso .trunk, .iso .gridln, .iso .wire, .iso .dim, .iso .campath, .iso .orbit,
.iso .air__p, .iso .air__h { fill: none; }
.iso .thin { stroke-width: 0.7; }
.iso .gridln { stroke-opacity: 0.32; stroke-width: 0.8; }
.iso .dim { stroke-dasharray: 1 4; stroke-width: 1.2; }
.iso .wire { stroke-dasharray: 3 3 !important; stroke-dashoffset: 0 !important; stroke-width: 1.2; }
.iso .old.fl, .iso .old.fr, .iso .old.ft { fill: var(--iso-ground); stroke-dasharray: none; }
.iso .sun circle { fill: var(--iso-top); }
.iso .sun__rays line { stroke-width: 1.2; }
.iso .sun__rays { transform-box: fill-box; transform-origin: center; animation: isoSpin 26s linear infinite; }
.iso .air__p { stroke-dasharray: 4 5; animation: isoFlow 1.4s linear infinite; stroke-width: 1.2; }
.iso .air--sun .air__p { animation-duration: 2.2s; }
.iso .campath { stroke-dasharray: 2 6; animation: isoFlow 2s linear infinite; }
.iso .cam__body rect, .iso .cam__body polygon { fill: var(--iso-top); }
.iso .cam__body { animation: isoBob 3.2s ease-in-out infinite; }
.iso .orbit { stroke-width: 1.4; }
.iso .spin { animation: isoTilt 6s ease-in-out infinite; }
@keyframes isoSpin { to { transform: rotate(360deg); } }
@keyframes isoFlow { to { stroke-dashoffset: -18; } }
@keyframes isoBob { 50% { transform: translateY(-4px); } }
@keyframes isoTilt { 50% { transform: rotate(-6deg) scale(1.03); } }

/* trazo que se dibuja (solo cuando JS midió las longitudes) */
.iso.is-primed .d {
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); fill-opacity: 0;
  transition: stroke-dashoffset 1.2s var(--ease-io) calc(var(--i) * 11ms),
              fill-opacity 0.7s ease calc(var(--i) * 11ms + 0.55s);
}
.iso.is-primed.is-on .d { stroke-dashoffset: 0; fill-opacity: 1; }
.iso.is-primed .road.d, .iso.is-primed .dim.d { stroke-dasharray: none; }
@media (prefers-reduced-motion: reduce) {
  .iso.is-primed .d { stroke-dasharray: none; stroke-dashoffset: 0; fill-opacity: 1; transition: none; }
  .iso .sun__rays, .iso .air__p, .iso .campath, .iso .cam__body, .iso .spin { animation: none; }
}

/* ==========================================================================
   GENERALES v2
   ========================================================================== */
.sec-head { position: relative; z-index: 1; max-width: 860px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .sec-lead { margin-left: auto; margin-right: auto; }
.sec-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; line-height: 1.05; margin-bottom: 1.1rem; }
.sec-lead { max-width: 640px; color: var(--carbon-suave); font-size: 1.05em; }
.lp-hero__title .accent, .studio__essence em, .site-foot__title em, .closing__quote em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--terracota); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { font-size: 0.72rem; padding: 0.3em 0.8em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--terracota) 35%, transparent); color: var(--terracota); }
button { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; gap: 0.5em; cursor: pointer; }
/* La nav cabe completa hasta 1000px (ahora tiene menos enlaces) */
@media (min-width: 1001px) and (max-width: 1180px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}
.nav.nav--scrolled { box-shadow: 0 10px 30px -24px rgba(20,17,14,0.4); }

/* ==========================================================================
   HERO — ventana viva
   ========================================================================== */
.lp-hero {
  position: relative; overflow: hidden; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(6.5rem, 14vh, 8.5rem) var(--pad) clamp(3rem, 7vh, 5rem);
  background: radial-gradient(110% 90% at 0% 0%, color-mix(in srgb, var(--terracota) 7%, transparent), transparent 60%), var(--cal);
}

.lp-hero__copy { position: relative; z-index: 2; }
.lp-hero__kicker { color: var(--terracota); margin-bottom: 1.6rem; }
.lp-hero__title { font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: 1.02; font-weight: 500; }
.lp-hero__title .line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.lp-hero__title .line > span { display: inline-block; min-height: 1em; }
.lp-hero__title .line > span.caret { border-right: 0.06em solid var(--terracota); animation: caretBlink 0.7s steps(1) infinite; }
.lp-hero__sub { max-width: 31em; margin-top: 1.8rem; color: var(--carbon-suave); }
.lp-hero__sub em { color: var(--terracota); font-style: normal; font-weight: 500; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.lp-hero__metrics { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid color-mix(in srgb, var(--carbon) 12%, transparent); }
.lp-hero__metrics li { display: flex; flex-direction: column; max-width: 11rem; }
.lp-hero__metrics strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--terracota); line-height: 1; }
.lp-hero__metrics span { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--carbon-suave); margin-top: 0.4rem; line-height: 1.4; }

.lp-hero__window {
  position: relative; z-index: 1; margin: 0;
  height: min(76vh, 780px); min-height: 420px; border-radius: var(--r-lg); overflow: hidden;
  background: color-mix(in srgb, var(--piedra) 70%, var(--cal));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracota) 18%, transparent), 0 40px 80px -50px rgba(34,31,27,0.45);
  cursor: pointer;
}
.lp-hero__reveal { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lp-hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.9s ease; }
.lp-hero__window.is-live .lp-hero__fallback { opacity: 0; pointer-events: none; }
.lp-hero__cap {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.2rem 1rem;
  padding: 1rem 1.2rem; border-radius: 16px;
  background: color-mix(in srgb, var(--cal) 74%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--cal) 60%, transparent);
  cursor: auto;
}
.lp-hero__cap > * { transition: opacity 0.28s ease, transform 0.28s ease; }
.lp-hero__window.is-swapping .lp-hero__cap > *:not(.lp-hero__dots) { opacity: 0; transform: translateY(4px); }
.lp-hero__cap-typo { color: var(--terracota); grid-column: 1; }
.lp-hero__cap-title { grid-column: 1; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.2; }

.lp-hero__cap-title:hover { color: var(--terracota); }
.lp-hero__cap-loc { grid-column: 2; grid-row: 2; color: var(--carbon-suave); font-size: 0.62rem; }
.lp-hero__dots { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 0.7rem; }
.lp-hero__dots i { flex: 1; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--carbon) 14%, transparent); overflow: hidden; }
.lp-hero__dots b { display: block; height: 100%; width: 0; background: var(--terracota); }
.lp-hero__dots i.is-past b { width: 100%; }
.lp-hero__dots i.is-on b { animation: heroDot 7.8s linear forwards; }
@keyframes heroDot { to { width: 100%; } }

.lp-hero__scroll { position: absolute; left: var(--pad); bottom: 1.6rem; z-index: 2; display: flex; align-items: center; gap: 0.8rem; color: var(--carbon-suave); font-size: 0.6rem; letter-spacing: 0.3em; }
.lp-hero__scroll i { width: 46px; height: 1px; background: var(--terracota); transform-origin: left; animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 50% { transform: scaleX(0.4); opacity: 0.5; } }

/* ==========================================================================
   01 · UN VISTAZO
   ========================================================================== */
.vistazo { position: relative; padding: clamp(6rem, 13vh, 10rem) var(--pad); background: linear-gradient(var(--cal), var(--piedra) 60%, var(--cal)); }
.vz-week {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--cal); box-shadow: 0 30px 70px -50px rgba(34,31,27,0.5), inset 0 0 0 1px color-mix(in srgb, var(--carbon) 8%, transparent);
}
.vz-week__media { position: relative; min-height: clamp(320px, 46vh, 520px); overflow: hidden; display: block; }
.vz-week__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.vz-week__media:hover img { transform: scale(1.05); }
.vz-week__stamp {
  position: absolute; top: 1.2rem; left: 1.2rem; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--terracota); color: #fff; transform: rotate(-10deg);
  font-family: var(--font-display); font-size: 0.66rem; line-height: 1.15; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--terracota) 70%, transparent);
  animation: stampIn 1s var(--ease-out) both;
}
.vz-week__stamp b { font-weight: 500; }
.vz-week__stamp i { font-style: normal; font-size: 0.58rem; opacity: 0.8; margin-top: 0.25rem; }
@keyframes stampIn { from { transform: rotate(-30deg) scale(0.6); opacity: 0; } }
.vz-week__body { padding: clamp(1.6rem, 3.4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; }
.vz-week__badge { color: var(--terracota); }
.vz-week__title { font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; font-weight: 500; }
.vz-week__meta { color: var(--carbon-suave); font-size: 0.62rem; }
.vz-week__desc { color: var(--carbon-suave); max-width: 34em; }
.vz-week__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.vz-week__next { color: var(--carbon-suave); font-size: 0.58rem; margin-top: 0.4rem; }

.vz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.4rem); }
.vz-slot {
  position: relative; height: clamp(300px, 42vh, 460px); border-radius: var(--r-md); overflow: hidden;
  background: #1c1916; color: #fff; isolation: isolate;
  box-shadow: 0 26px 60px -44px rgba(20,17,14,0.6);
}
.vz-slot__media { position: absolute; inset: 0; }
.vz-slot__media img, .vz-slot__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vz-slot__media img { opacity: 0; transform: scale(1.08); transition: opacity 0.8s ease, transform 8s linear; }
.vz-slot__media img.is-in { opacity: 1; transform: scale(1); }
.vz-slot__media img.is-out { opacity: 0; }
.vz-pano { position: absolute; inset: 0; background-size: cover; background-position: center; }
.vz-pano .pnlm-container { background: transparent !important; }
.vz-slot__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 0.5em 1em; border-radius: 999px; background: color-mix(in srgb, #000 35%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.6rem; pointer-events: none; transition: opacity 0.4s; }
.vz-slot:hover .vz-slot__hint { opacity: 0; }
.vz-slot__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--terracota) 88%, transparent); font-size: 0.9rem; pointer-events: none; opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.vz-slot--anim:hover .vz-slot__play { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
.vz-slot::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 28%, transparent 55%, rgba(0,0,0,0.72) 100%); }
.vz-slot__bar { position: absolute; top: 0.8rem; left: 0.8rem; right: 0.8rem; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.vz-slot__kind { padding: 0.4em 0.85em; border-radius: 999px; background: var(--terracota); color: #fff; font-size: 0.58rem; }
.vz-shuffle { cursor: pointer; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: 0.35em 0.85em; font-size: 0.7rem; transition: background 0.3s; }
.vz-shuffle:hover { background: var(--terracota); border-color: var(--terracota); }
.vz-shuffle span { display: inline-block; }
.vz-shuffle.is-spin span { animation: spin1 0.6s var(--ease-out); }
@keyframes spin1 { to { transform: rotate(360deg); } }
.vz-slot__title { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 3; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.2; display: flex; flex-direction: column; gap: 0.25rem; }
.vz-slot__title span { font-family: var(--font-word); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.vz-slot__title:hover { color: color-mix(in srgb, var(--terracota) 40%, #fff); }

.world { margin-top: clamp(4.5rem, 9vw, 7rem); }
.world__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.world__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 500; }
.world__lead { max-width: 30em; color: var(--carbon-suave); }
.world__lead strong { color: var(--terracota); font-weight: 500; }
.world__tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1rem); }
.world__tile {
  position: relative; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 0.9rem 1rem; border-radius: 18px;
  background: var(--cal); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracota) 16%, transparent);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background 0.4s;
}
.world__ill { display: block; aspect-ratio: 1; margin-bottom: 0.4rem; transition: transform 0.6s var(--ease-out); }
.world__name { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.world__count { font-size: 0.56rem; color: var(--carbon-suave); }
.world__go { font-size: 0.72rem; color: var(--terracota); margin-top: 0.3rem; opacity: 0; transform: translateX(-6px); transition: 0.4s var(--ease-out); }
.world__tile:hover { transform: translateY(-8px); background: color-mix(in srgb, var(--terracota) 5%, var(--cal)); box-shadow: inset 0 0 0 1px var(--terracota), 0 26px 50px -34px color-mix(in srgb, var(--terracota) 70%, transparent); }
.world__tile:hover .world__ill { transform: translateY(-6px) scale(1.04); }
.world__tile:hover .world__go { opacity: 1; transform: none; }
.world__tile:hover .iso .win, .way:hover .iso .win { fill: var(--iso-glow); }
.world__tile:hover .iso .sun__rays, .way:hover .iso .sun__rays { animation-duration: 4s; }

/* ==========================================================================
   02 · DETRÁS DEL TRAZO (quién soy + método + formas de trabajar)
   ========================================================================== */
.studio { position: relative; padding: clamp(6rem, 13vh, 10rem) var(--pad); background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--terracota) 7%, transparent), transparent 60%), var(--cal); }
.studio > :not(.section-topo) { position: relative; z-index: 1; }
.studio__grid { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.studio__title { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; line-height: 1; margin-bottom: 1.4rem; }
.studio__lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; color: var(--carbon); max-width: 34em; margin-bottom: 2rem; }
.studio__lead em, .studio__cols em { color: var(--terracota); font-style: normal; font-weight: 500; }
.studio__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.4rem); color: var(--carbon-suave); }
.studio__data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid color-mix(in srgb, var(--carbon) 12%, transparent); }
.studio__data dt { color: var(--terracota); margin-bottom: 0.4rem; }
.studio__data dd { font-size: 0.86rem; color: var(--carbon-suave); }
.studio__essence { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1.15; text-align: center; max-width: 18em; margin: clamp(5rem, 11vw, 9rem) auto 0; }

.method { margin-top: clamp(6rem, 13vw, 10rem); }
.method__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); }
.method__stage-wrap { position: sticky; top: 12vh; height: 76vh; display: flex; flex-direction: column; justify-content: center; }
.method__stage { width: 100%; height: 100%; display: flex; align-items: center; }
.method__stage .iso { max-height: 100%; }
.method__stage .iso > g { transition: opacity 0.8s ease, transform 0.9s var(--ease-out); }
.method__stage[data-step="1"] .m-grid, .method__stage[data-step="1"] .m-sim, .method__stage[data-step="1"] .m-new, .method__stage[data-step="1"] .m-green { opacity: 0; }
.method__stage[data-step="2"] .m-old { opacity: 0.25; }
.method__stage[data-step="2"] .m-analysis { opacity: 0.35; }
.method__stage[data-step="2"] .m-new, .method__stage[data-step="2"] .m-green { opacity: 0; }
.method__stage[data-step="3"] .m-old, .method__stage[data-step="3"] .m-sim, .method__stage[data-step="3"] .m-green, .method__stage[data-step="3"] .m-analysis { opacity: 0; }
.method__stage[data-step="3"] .m-grid { opacity: 0.4; }
.method__stage[data-step="4"] .m-old, .method__stage[data-step="4"] .m-sim, .method__stage[data-step="4"] .m-grid, .method__stage[data-step="4"] .m-analysis { opacity: 0; }
.method__stage[data-step="1"] .m-new, .method__stage[data-step="2"] .m-new { transform: translateY(14px); }
.method__stage[data-step="3"] .m-new .win, .method__stage[data-step="4"] .m-new .win { fill: var(--iso-glow); }
.method__dots { list-style: none; display: flex; gap: 6px; justify-content: center; margin-top: 0.8rem; }
.method__dots li { width: 26px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--carbon) 14%, transparent); transition: background 0.4s, width 0.4s; }
.method__dots li.is-on { background: var(--terracota); width: 44px; }
.method__steps { list-style: none; }
.method__step { padding: 16vh 0; opacity: 0.32; transition: opacity 0.6s ease; }
.method__step:first-child { padding-top: 8vh; }
.method__step.is-active { opacity: 1; }
.method__n { color: var(--terracota); display: block; margin-bottom: 0.8rem; }
.method__step h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.1; margin-bottom: 1rem; }
.method__step p { color: var(--carbon-suave); max-width: 30em; }
.method__gets { margin-top: 1.2rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: color-mix(in srgb, var(--terracota) 7%, transparent); color: var(--carbon) !important; font-size: 0.9rem; }
.method__gets .mono { display: block; color: var(--terracota); margin-bottom: 0.25rem; font-size: 0.58rem; }
.method__proof { display: inline-block; margin-top: 1.2rem; color: var(--terracota); border-bottom: 1px solid currentColor; font-size: 0.9rem; }

.ways { margin-top: clamp(5rem, 11vw, 8rem); }
.ways__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 500; }
.ways__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.way {
  display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.2rem, 2.4vw, 2rem); border-radius: 22px;
  background: color-mix(in srgb, var(--cal) 80%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracota) 16%, transparent);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.way:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--terracota), 0 30px 60px -40px color-mix(in srgb, var(--terracota) 60%, transparent); }
.way__ill { height: clamp(150px, 16vw, 200px); display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.way__ill .iso { height: 100%; width: auto; max-width: 100%; }
.way__unit { color: var(--terracota); }
.way h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.15; }
.way__for { color: var(--carbon-suave); font-size: 0.95rem; }
.way__for .mono { display: block; color: var(--carbon); font-size: 0.58rem; margin-bottom: 0.2rem; }
.way ul { list-style: none; display: grid; gap: 0.3rem; font-size: 0.88rem; color: var(--carbon-suave); margin: 0.2rem 0 0.6rem; }
.way li::before { content: "—"; color: var(--terracota); margin-right: 0.5em; }
.way__cta { margin-top: auto; color: var(--terracota); font-weight: 500; font-size: 0.92rem; }

/* ==========================================================================
   CIERRE — valores + frase final
   ========================================================================== */
.closing { position: relative; overflow: hidden; background: #171411; color: #F5F2EC; }
.closing__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; filter: saturate(0.7); }
.closing__veil { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 50%, rgba(23,20,17,0.35), rgba(23,20,17,0.88)), linear-gradient(180deg, rgba(23,20,17,0.6), transparent 30%, transparent 70%, rgba(23,20,17,0.8)); }
.closing__topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.closing__pin { position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; padding: 6rem var(--pad); }
.closing .section-label { position: absolute; top: clamp(5rem, 11vh, 7rem); left: var(--pad); color: var(--terracota); }
.closing__values { list-style: none; position: relative; width: min(980px, 100%); height: 56vh; }
.closing__values li { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.1rem; }
.closing__values span { color: var(--terracota); font-size: 0.8rem; letter-spacing: 0.3em; }
.closing__values strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6.6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.01em; }
.closing__values em { font-style: normal; font-weight: 300; color: #F5F2EC; max-width: 30em; opacity: 0.75; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.closing__final { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.6rem; padding: 0 var(--pad); }
.closing__quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 5.8vw, 5rem); line-height: 1.08; max-width: 15em; }
.closing__quote .cw { display: inline-block; }
.closing__steps { color: var(--terracota); letter-spacing: 0.35em; }
.closing__cta { margin-top: 0.6rem; }
.closing__cta i { font-style: normal; }
.closing--static .closing__pin { display: block; }
.closing--static .closing__values { height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.4rem; margin: 6rem auto 4rem; }
.closing--static .closing__values li { position: static; align-items: flex-start; text-align: left; }
.closing--static .closing__values strong { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.closing--static .closing__final { position: static; padding: 2rem 0 0; }

/* ==========================================================================
   04 · COTIZADOR
   ========================================================================== */
.cotiza { position: relative; padding: clamp(6rem, 13vh, 10rem) var(--pad); background: linear-gradient(var(--cal), color-mix(in srgb, var(--terracota) 6%, var(--cal))); }
.cotiza > :not(.section-topo) { position: relative; z-index: 1; }
.cotiza__layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.6fr); gap: clamp(1.4rem, 3vw, 3rem); align-items: start; }
.qz {
  min-height: 540px; padding: clamp(1.3rem, 3vw, 2.6rem); border-radius: 26px;
  background: color-mix(in srgb, var(--cal) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracota) 18%, transparent), 0 40px 80px -60px rgba(34,31,27,0.5);
  display: flex; flex-direction: column;
}
.qz__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.qz__count { color: var(--terracota); white-space: nowrap; font-size: 0.6rem; }
.qz__bar { flex: 1; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--carbon) 10%, transparent); overflow: hidden; }
.qz__bar i { display: block; height: 100%; background: var(--terracota); border-radius: 3px; transition: width 0.6s var(--ease-out); }
.qz__body { flex: 1; }
.qz__body.is-fwd { animation: qzIn 0.5s var(--ease-out); }
.qz__body.is-back { animation: qzBack 0.5s var(--ease-out); }
@keyframes qzIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes qzBack { from { opacity: 0; transform: translateX(-24px); } }
.qz__q { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; line-height: 1.12; margin-bottom: 0.5rem; }
.qz__h { color: var(--carbon-suave); margin-bottom: 1.6rem; font-size: 0.95rem; }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.7rem; }
.qz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qz-grid--svc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qz-opt {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: left; cursor: pointer;
  padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--carbon) 14%, transparent);
  background: color-mix(in srgb, #fff 45%, transparent); transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
html[data-theme="dark"] .qz-opt { background: color-mix(in srgb, #fff 4%, transparent); }
.qz-opt strong { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }
.qz-opt span { font-size: 0.82rem; color: var(--carbon-suave); line-height: 1.45; }
.qz-opt:hover { border-color: var(--terracota); transform: translateY(-2px); }
.qz-opt.is-sel { border-color: var(--terracota); background: color-mix(in srgb, var(--terracota) 9%, transparent); box-shadow: inset 0 0 0 1px var(--terracota); }
.qz-opt--svc { align-items: flex-start; }
.qz-ill { display: block; width: 100%; height: 86px; margin-bottom: 0.3rem; }
.qz-ill .iso { height: 100%; width: auto; max-width: 100%; }
.qz-opt--svc:hover .iso .win, .qz-opt--svc.is-sel .iso .win { fill: var(--iso-glow); }
.qz-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qz-chip { cursor: pointer; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--carbon) 16%, transparent); background: transparent; font-size: 0.9rem; transition: 0.3s; }
.qz-chip:hover { border-color: var(--terracota); color: var(--terracota); }
.qz-chip.is-sel { background: var(--terracota); border-color: var(--terracota); color: #fff; }
.qz-sub { color: var(--carbon-suave); margin: 1.6rem 0 0.7rem; font-size: 0.58rem; }
.qz-size { margin-bottom: 1.6rem; }
.qz-size__lbl { display: block; font-size: 0.85rem; color: var(--carbon-suave); margin-bottom: 0.6rem; }
.qz-size__row { display: flex; align-items: center; gap: 1.2rem; }
.qz-size__row input[type=range], .qz-step--seg input[type=range] { flex: 1; accent-color: var(--terracota); }
.qz-size__num { display: inline-flex; align-items: baseline; gap: 0.3rem; font-family: var(--font-display); font-size: 1.4rem; }
.qz-size__num input { width: 5.2em; font: inherit; color: var(--terracota); background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--terracota) 50%, transparent); text-align: right; padding: 0.1rem 0.2rem; }
.qz-size__ref { color: var(--carbon-suave); font-size: 0.58rem; margin-top: 0.6rem; }
.qz-steppers { display: grid; gap: 0.6rem; }
.qz-step { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--carbon) 12%, transparent); }
.qz-step__t { font-family: var(--font-display); font-weight: 500; display: flex; flex-direction: column; }
.qz-step__t small { font-family: var(--font-word); font-weight: 300; font-size: 0.75rem; color: var(--carbon-suave); }
.qz-step__c { display: flex; align-items: center; gap: 0.6rem; min-width: 46%; justify-content: flex-end; }
.qz-step__c button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--terracota) 50%, transparent); background: transparent; color: var(--terracota); font-size: 1.1rem; cursor: pointer; transition: 0.25s; }
.qz-step__c button:hover { background: var(--terracota); color: #fff; }
.qz-step__c output { min-width: 2.4em; text-align: center; font-family: var(--font-display); font-size: 1.15rem; }
.qz-step--seg output { min-width: 7em; text-align: right; font-size: 0.95rem; color: var(--terracota); }
.qz-fields, .qz-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.qz-field { display: flex; flex-direction: column; gap: 0.4rem; }
.qz-field[hidden] { display: none; }
.qz-field--full { grid-column: 1 / -1; }
.qz-field .mono { font-size: 0.56rem; color: var(--carbon-suave); }
.qz-field input, .qz-field select, .qz-field textarea {
  font: inherit; font-weight: 300; font-size: 0.95rem; color: var(--carbon);
  padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--carbon) 16%, transparent);
  background: color-mix(in srgb, #fff 55%, transparent); transition: border-color 0.25s, box-shadow 0.25s;
}
html[data-theme="dark"] .qz-field input, html[data-theme="dark"] .qz-field select, html[data-theme="dark"] .qz-field textarea { background: color-mix(in srgb, #fff 5%, transparent); }
.qz-field input:focus, .qz-field select:focus, .qz-field textarea:focus { outline: none; border-color: var(--terracota); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracota) 14%, transparent); }
.qz-field.is-error input { border-color: #C0483A; box-shadow: 0 0 0 3px color-mix(in srgb, #C0483A 14%, transparent); }
.qz-consent { grid-column: 1 / -1; font-size: 0.74rem; color: var(--carbon-suave); }
.qz__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid color-mix(in srgb, var(--carbon) 8%, transparent); }
.qz__back { background: none; border: 0; cursor: pointer; color: var(--carbon-suave); font-size: 0.9rem; }
.qz__back:hover { color: var(--terracota); }
.qz__next[disabled] { opacity: 0.35; pointer-events: none; }
.qz-res__range { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2em 0.5em; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.05; color: var(--terracota); }
.qz-res__range i { font-style: normal; font-size: 0.4em; color: var(--carbon-suave); }
.qz-res__range small { font-size: 0.32em; color: var(--carbon-suave); letter-spacing: 0.1em; }
.qz-res__usd { color: var(--carbon-suave); font-size: 0.62rem; margin: 0.4rem 0 1.6rem; }
.qz-res__lines { display: grid; gap: 0.1rem; margin-bottom: 1.6rem; }
.qz-res__lines div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--carbon) 14%, transparent); font-size: 0.9rem; }
.qz-res__lines dt { color: var(--carbon-suave); }
.qz-res__lines dd { text-align: right; font-weight: 500; }
.qz-res__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-bottom: 1.4rem; }
.qz-res__cols .mono { color: var(--terracota); margin-bottom: 0.6rem; font-size: 0.58rem; }
.qz-res__cols ul { list-style: none; display: grid; gap: 0.35rem; font-size: 0.86rem; color: var(--carbon-suave); }
.qz-res__cols li::before { content: "✓"; color: var(--terracota); margin-right: 0.5em; }
.qz-res__cols .qz-res__notes li::before { content: "·"; }
.qz-res__status { color: var(--terracota); font-size: 0.6rem; margin-bottom: 1rem; }
.qz-res__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.qz-res__actions .btn-cta i { font-style: normal; }
.qz-res__ref { margin-top: 1.4rem; color: var(--carbon-suave); font-size: 0.54rem; }
.cotiza__aside { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; position: sticky; top: 110px; }

.cotiza__cap { font-size: 0.6rem; letter-spacing: 0.22em; color: var(--carbon-suave); min-height: 1.4em; }
.cotiza__note { font-size: 0.88rem; color: var(--carbon-suave); max-width: 18em; }
.cotiza__mail { font-size: 0.86rem; border-bottom: 1px solid color-mix(in srgb, var(--terracota) 50%, transparent); }
.cotiza__mail:hover { color: var(--terracota); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ==========================================================================
   PIE
   ========================================================================== */
.site-foot { position: relative; overflow: hidden; padding: clamp(5rem, 11vh, 8rem) var(--pad) 1.6rem; background: var(--cal); border-top: 1px solid color-mix(in srgb, var(--carbon) 8%, transparent); }
.site-foot > :not(.section-topo) { position: relative; z-index: 1; }
.site-foot__hook { color: var(--terracota); margin-bottom: 1.2rem; }
.site-foot__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.08; max-width: 14em; margin-bottom: clamp(3rem, 7vw, 5rem); }
.site-foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--carbon) 12%, transparent); }
.site-foot__grid .mono { color: var(--terracota); margin-bottom: 0.5rem; }
.site-foot__grid a:hover { color: var(--terracota); }
.site-foot__social { display: flex; gap: 0.6rem; }
.site-foot__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--carbon) 20%, transparent); transition: 0.3s; }
.site-foot__social a:hover { background: var(--terracota); border-color: var(--terracota); color: #fff; transform: translateY(-2px); }
.site-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--carbon) 10%, transparent); color: var(--carbon-suave); }
.site-foot__brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--carbon); }
.site-foot__brand .mark { height: 26px; color: var(--terracota); }
.site-foot__links { display: flex; gap: 1.4rem; }
.site-foot__links a:hover { color: var(--terracota); }

/* ==========================================================================
   RESPONSIVO (home)
   ========================================================================== */
@media (max-width: 1100px) {
  .world__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .studio__cols { grid-template-columns: 1fr 1fr; }
  .qz-grid--svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cotiza__layout { grid-template-columns: 1fr; }
  .cotiza__aside { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: left; }
}
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 6.5rem; gap: 2rem; min-height: auto; }
  .lp-hero__window { height: 62vh; min-height: 360px; }
  .lp-hero__scroll { display: none; }
  .vz-week { grid-template-columns: 1fr; }
  .vz-week__media { min-height: 300px; }
  .vz-grid { grid-template-columns: 1fr; }
  .vz-slot { height: 340px; }
  .studio__grid { grid-template-columns: 1fr; }
  
  .studio__data { grid-template-columns: 1fr 1fr; }
  .method__layout { grid-template-columns: 1fr; gap: 0; }
  .method__stage-wrap { position: sticky; top: 62px; height: 38vh; z-index: 2; background: linear-gradient(var(--cal) 82%, transparent); padding: 0.5rem 0; }
  .method__step { padding: 7vh 0; }
  .ways__grid { grid-template-columns: 1fr; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .world__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world__tile:last-child { grid-column: span 2; }
  .studio__cols { grid-template-columns: 1fr; }
  .qz-grid--3, .qz-grid--svc, .qz-fields, .qz-form, .qz-res__cols { grid-template-columns: 1fr; }
  .qz-step { flex-direction: column; align-items: stretch; }
  .qz-step__c { justify-content: space-between; }
  .qz-res__lines div { flex-direction: column; gap: 0.2rem; }
  .qz-res__lines dd { text-align: left; }
  .lp-hero__cap { grid-template-columns: 1fr; }
  .lp-hero__cap-loc { grid-column: 1; grid-row: auto; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .closing__values strong { font-size: clamp(2rem, 9vw, 2.8rem); }
}

/* ==========================================================================
   FICHA DE PROYECTO (modal compartido)
   ========================================================================== */
.pm { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: clamp(0rem, 2.5vw, 2rem); visibility: hidden; pointer-events: none; }
.pm.open { visibility: visible; pointer-events: auto; }
.pm__backdrop { position: absolute; inset: 0; background: rgba(20,17,14,0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.45s ease; }
.pm.open .pm__backdrop { opacity: 1; }
.pm__panel {
  position: relative; width: min(1500px, 100%); height: min(900px, 100%);
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  background: var(--cal); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.pm.open .pm__panel { opacity: 1; transform: none; }
.pm__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; cursor: pointer; padding: 0.55em 1em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--carbon) 18%, transparent); background: color-mix(in srgb, var(--cal) 85%, transparent); font-size: 0.6rem; transition: 0.3s; }
.pm__close:hover { background: var(--terracota); border-color: var(--terracota); color: #fff; }
.pm__media { position: relative; background: #141210; display: flex; flex-direction: column; min-height: 0; }
.pm__frame { flex: 1; min-height: 0; margin: 0; display: grid; place-items: center; }
.pm__frame img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.35s ease, transform 0.6s var(--ease-out); }
.pm__frame img.is-swap { opacity: 0; transform: scale(0.99); }
.pm__nav { position: absolute; top: calc(50% - 44px); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.3); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: 0.3s; }
.pm__nav:hover { background: var(--terracota); border-color: var(--terracota); }
.pm__nav--prev { left: 1rem; }
.pm__nav--next { right: 1rem; }
.pm--single .pm__nav { display: none; }
.pm__count { position: absolute; top: 1rem; left: 1rem; color: rgba(255,255,255,0.75); font-size: 0.6rem; }
.pm__thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: thin; background: #0f0d0b; }
.pm__thumbs:empty { display: none; }
.pm__thumbs button { flex: 0 0 auto; width: 76px; height: 52px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: 0.45; outline: 2px solid transparent; outline-offset: -2px; transition: 0.3s; }
.pm__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumbs button:hover { opacity: 0.85; }
.pm__thumbs button.is-active { opacity: 1; outline-color: var(--terracota); }
.pm__info { overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.6rem, 3vw, 2.8rem); padding-top: 4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.pm__typo { color: var(--terracota); }
.pm__title { font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-weight: 500; line-height: 1.06; }
.pm__place { color: var(--carbon-suave); margin-top: -0.4rem; }
.pm__place:empty { display: none; }
.pm__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem 1rem; padding: 1rem 0; border-top: 1px solid color-mix(in srgb, var(--carbon) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--carbon) 10%, transparent); }
.pm__meta dt { font-size: 0.54rem; color: var(--carbon-suave); margin-bottom: 0.2rem; }
.pm__meta dd { font-size: 0.9rem; }
.pm__scope { grid-column: 1 / -1; }
.pm__scope dd { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pm__scope span { font-size: 0.72rem; padding: 0.25em 0.75em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--terracota) 35%, transparent); color: var(--terracota); }
.pm__desc { display: grid; gap: 0.8rem; color: var(--carbon-suave); font-size: 0.96rem; line-height: 1.7; }
.pm__desc p:first-child { color: var(--carbon); font-size: 1.05rem; }
.pm__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.pm__act { cursor: pointer; display: inline-flex; align-items: center; gap: 0.45em; padding: 0.7em 1.1em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--carbon) 18%, transparent); background: transparent; font-size: 0.86rem; transition: 0.3s; }
.pm__act .ico { color: var(--terracota); }
.pm__act:hover { border-color: var(--terracota); color: var(--terracota); }
.pm__act--cta { background: var(--terracota); border-color: var(--terracota); color: #fff; }
.pm__act--cta:hover { background: color-mix(in srgb, var(--terracota) 85%, #000); color: #fff; }
.pm__next { margin-top: auto; cursor: pointer; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: center; padding: 1.1rem 0 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--carbon) 10%, transparent); background: none; }
.pm__next .mono { color: var(--carbon-suave); font-size: 0.56rem; grid-column: 1; }
.pm__next strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; grid-column: 1; }
.pm__next i { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 1.4rem; color: var(--terracota); transition: transform 0.3s; }
.pm__next:hover strong { color: var(--terracota); }
.pm__next:hover i { transform: translateX(6px); }
@media (max-width: 900px) {
  .pm { padding: 0; }
  .pm__panel { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; border-radius: 0; }
  .pm__media { height: 52vh; }
  .pm__info { padding-top: 1.6rem; }
  .pm__close { top: 0.8rem; right: 0.8rem; }
  .pm__nav { width: 40px; height: 40px; }
}

/* ==========================================================================
   PÁGINA · PROYECTOS
   ========================================================================== */
.nav__links a.is-current::after { transform: scaleX(1) !important; }
.pj-hero { position: relative; overflow: hidden; padding: clamp(8rem, 18vh, 11rem) var(--pad) clamp(3rem, 6vh, 4.5rem); background: radial-gradient(100% 90% at 100% 0%, color-mix(in srgb, var(--terracota) 8%, transparent), transparent 60%), var(--cal); }
.pj-hero > :not(.section-topo) { position: relative; z-index: 1; }
.pj-crumbs { display: flex; gap: 0.6rem; color: var(--carbon-suave); font-size: 0.6rem; margin-bottom: 1.6rem; }
.pj-crumbs a:hover { color: var(--terracota); }
.pj-hero__title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 500; line-height: 1.03; max-width: 12em; }
.pj-hero__lead { max-width: 36em; margin-top: 1.6rem; color: var(--carbon-suave); font-size: 1.05em; }
.pj-hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.4rem); margin-top: 2.4rem; }
.pj-hero__stats li { display: flex; align-items: baseline; gap: 0.5rem; }
.pj-hero__stats strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--terracota); line-height: 1; }
.pj-hero__stats span { color: var(--carbon-suave); font-size: 0.9rem; }

.pj-worlds { padding: clamp(2rem, 5vh, 3.5rem) var(--pad) clamp(2.5rem, 6vh, 4rem); }
.pj-worlds__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.4rem; }
.pj-worlds__title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 500; }
.pj-surprise { cursor: pointer; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.75em 1.3em; border-radius: 999px; border: 1px dashed var(--terracota); background: transparent; color: var(--terracota); font-weight: 500; transition: 0.3s; }
.pj-surprise:hover { background: var(--terracota); color: #fff; border-style: solid; }
.pj-surprise__dice { font-size: 1.3em; line-height: 1; display: inline-block; }
.pj-surprise.is-roll .pj-surprise__dice { animation: diceRoll 0.45s var(--ease-out); }
@keyframes diceRoll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.3); } 100% { transform: rotate(360deg) scale(1); } }
.pj-worlds__tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(0.5rem, 1vw, 0.9rem); }
.pj-tile {
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.8rem 0.8rem 0.9rem; border-radius: 18px; border: 0;
  background: var(--cal); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracota) 16%, transparent);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s, background 0.4s;
}
.pj-tile__ill { display: block; aspect-ratio: 1; margin-bottom: 0.35rem; transition: transform 0.6s var(--ease-out); }
.pj-tile__name { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
.pj-tile__n { font-size: 0.54rem; color: var(--carbon-suave); }
.pj-tile:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--terracota), 0 24px 44px -32px color-mix(in srgb, var(--terracota) 70%, transparent); }
.pj-tile:hover .pj-tile__ill { transform: translateY(-5px) scale(1.04); }
.pj-tile:hover .iso .win, .pj-tile.is-on .iso .win { fill: var(--iso-glow); }
.pj-tile.is-on { background: color-mix(in srgb, var(--terracota) 9%, var(--cal)); box-shadow: inset 0 0 0 2px var(--terracota), 0 24px 44px -30px color-mix(in srgb, var(--terracota) 70%, transparent); }
.pj-tile.is-on .pj-tile__name { color: var(--terracota); }
.pj-tile:nth-child(n+7) { background: color-mix(in srgb, var(--piedra) 70%, var(--cal)); }

.pj-bar {
  position: fixed; left: 50%; top: 76px; z-index: 90; max-width: calc(100% - 2rem);
  display: flex; align-items: center; gap: 0.8rem; padding: 0.4rem 0.4rem 0.4rem 0.5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--cal) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--terracota) 18%, transparent), 0 18px 40px -26px rgba(34,31,27,0.5);
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none; transition: 0.45s var(--ease-out);
}
.pj-bar.is-shown { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pj-bar.is-gone { transform: translate(-50%, -16px); opacity: 0; pointer-events: none; }
.pj-bar__chips { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.pj-bar__chips::-webkit-scrollbar { display: none; }
.pj-chip { cursor: pointer; white-space: nowrap; padding: 0.5em 0.95em; border-radius: 999px; border: 0; background: transparent; font-size: 0.82rem; transition: 0.3s; }
.pj-chip:hover { color: var(--terracota); }
.pj-chip.is-on { background: var(--terracota); color: #fff; }
.pj-chip.is-here { box-shadow: inset 0 0 0 1px var(--terracota); color: var(--terracota); }
.pj-bar__count { white-space: nowrap; color: var(--carbon-suave); font-size: 0.56rem; padding-right: 0.8rem; }

.pj-works { padding: 0 var(--pad) clamp(5rem, 11vh, 8rem); }
.pj-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.4rem; padding: 1.2rem 0 1.8rem; border-top: 1px solid color-mix(in srgb, var(--carbon) 10%, transparent); }
.pj-intro__k { color: var(--terracota); }
.pj-intro__line { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--carbon); }
.pj-grid { columns: 3 300px; column-gap: clamp(1rem, 2vw, 1.6rem); }
.pj-card { break-inside: avoid; margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem); }
.pj-card__link { display: block; }
.pj-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--piedra); }
.pj-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease-out), filter 0.6s; }
.pj-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45)); opacity: 0; transition: opacity 0.5s; }
.pj-card__link:hover .pj-card__media img { transform: scale(1.05); }
.pj-card__link:hover .pj-card__media::after { opacity: 1; }
.pj-card__badges { position: absolute; top: 0.7rem; left: 0.7rem; right: 0.7rem; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pj-badge { font-size: 0.66rem; padding: 0.35em 0.75em; border-radius: 999px; background: color-mix(in srgb, var(--cal) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--carbon); }
.pj-badge--week { background: var(--terracota); color: #fff; }
.pj-card__more { position: absolute; left: 1rem; bottom: 0.9rem; z-index: 1; color: #fff; font-size: 0.85rem; opacity: 0; transform: translateY(8px); transition: 0.45s var(--ease-out); }
.pj-card__link:hover .pj-card__more { opacity: 1; transform: none; }
.pj-card__body { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.85rem 0.2rem 0; }
.pj-card__typo { color: var(--terracota); font-size: 0.56rem; }
.pj-card__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.2; transition: color 0.3s; }
.pj-card__link:hover .pj-card__title { color: var(--terracota); }
.pj-card__loc { color: var(--carbon-suave); font-size: 0.86rem; }

.pj-media { position: relative; padding: clamp(5rem, 11vh, 8rem) var(--pad); background: var(--piedra); }
.pj-media--dark { background: #171411; color: #F5F2EC; }
.pj-media--dark .sec-lead { color: rgba(245,242,236,0.7); }
.pj-media--dark .section-label { color: var(--terracota); }
.pj-panos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 220px); gap: clamp(0.6rem, 1.2vw, 1rem); }
.pj-pano, .pj-anim { position: relative; overflow: hidden; border-radius: var(--r-md); border: 0; padding: 0; cursor: pointer; background: #1c1916; color: #fff; text-align: left; }
.pj-pano--big { grid-column: span 2; grid-row: span 2; }
.pj-pano img { width: 100%; height: 100%; object-fit: cover; transition: object-position 1.2s var(--ease-out), transform 1s var(--ease-out); }
.pj-pano:hover img { transform: scale(1.06); }
.pj-pano::after, .pj-anim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.7)); pointer-events: none; }
.pj-pano__ring { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 0.66rem; border: 1px dashed rgba(255,255,255,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: isoSpin 14s linear infinite; }
.pj-pano:hover .pj-pano__ring { background: var(--terracota); border-color: var(--terracota); }
.pj-pano__cap, .pj-anim__cap { position: absolute; left: 1rem; right: 1rem; bottom: 0.9rem; z-index: 1; display: flex; flex-direction: column; gap: 0.2rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(0.95rem, 1.3vw, 1.15rem); line-height: 1.2; }
.pj-pano__cap .mono, .pj-anim__cap .mono { font-size: 0.54rem; opacity: 0.8; font-weight: 400; }
.pj-pano--big .pj-pano__cap { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.pj-anims { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.2rem); }
.pj-anim { aspect-ratio: 16 / 10; }
@media (min-width: 1101px) {
  .pj-anims { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
  .pj-anim:nth-child(1), .pj-anim:nth-child(6) { grid-column: span 2; aspect-ratio: auto; }
}
.pj-anim video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pj-anim:hover video { transform: scale(1.05); }
.pj-anim__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--terracota) 90%, transparent); font-size: 0.95rem; opacity: 0; transform: scale(0.85); transition: 0.35s var(--ease-out); }
.pj-anim:hover .pj-anim__play { opacity: 1; transform: none; }

.pj-cta { position: relative; overflow: hidden; text-align: center; padding: clamp(6rem, 14vh, 9rem) var(--pad); background: var(--cal); }
.pj-cta > :not(.section-topo) { position: relative; z-index: 1; }
.pj-cta__k { color: var(--terracota); margin-bottom: 1rem; }
.pj-cta__title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 500; line-height: 1.08; max-width: 14em; margin: 0 auto; }
.pj-cta__lead { color: var(--carbon-suave); max-width: 32em; margin: 1.2rem auto 0; }
.pj-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }

@media (max-width: 1100px) {
  .pj-worlds__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pj-panos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pj-worlds__head { flex-direction: column; align-items: flex-start; }
  .pj-worlds__tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0.4rem var(--pad) 0.8rem; scrollbar-width: none; }
  .pj-worlds__tiles::-webkit-scrollbar { display: none; }
  .pj-tile { flex: 0 0 42%; scroll-snap-align: start; }
  .pj-bar { top: 68px; }
  .pj-bar__count { display: none; }
  .pj-panos { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
}
