/* ==========================================================================
   PRISMA HABITA — Sistema visual "Plano Maestro"
   Aprobado por el Arq. José Carlos · 2026-07-15
   Raptor Marketer · HTML/CSS/JS vanilla
   ========================================================================== */

:root {
  /* Paleta */
  --ink: #0E1116;
  --ink-2: #12161C;
  --ink-3: #171C24;
  --blueprint: #9DB3C6;
  --blueprint-dim: rgba(157, 179, 198, .58);
  --chalk: #EDF1F5;
  --chalk-dim: rgba(237, 241, 245, .68);
  --brass: #C9A227;
  --brass-soft: rgba(201, 162, 39, .12);
  --line: rgba(157, 179, 198, .18);
  /* Sin verde de WhatsApp a propósito: los botones de conversión usan el
     color de marca (--brass), según el estándar de Raptor Marketer. */

  /* Tipografía */
  --f-display: 'Archivo', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;
  --f-body: 'Inter', system-ui, sans-serif;

  /* Sistema 8px */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem; --s6: 4rem; --s7: 5rem;

  --wrap: 1240px;
  --radius: 2px;
  --header-h: 72px;   /* alto del encabezado (para separar el contenido del header absoluto) */
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--brass); color: var(--ink); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--chalk);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Atmósfera (sin retícula — el arquitecto la rechazó) */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 1100px 760px at 76% -6%, rgba(157,179,198,.10), transparent 62%),
    radial-gradient(ellipse 800px 520px at 8% 108%, rgba(201,162,39,.05), transparent 60%);
}

/* ===== EL PRISMA VIVO — se traza y deriva ===== */
.prism-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
}
.prism-parallax {
  transform: translate3d(0, var(--py, 0px), 0);
  display: grid; place-items: center; width: 100%; height: 100%;
}
.prism-field svg {
  width: min(148vh, 112vw); height: auto;
  color: var(--blueprint); opacity: .13;
  animation: prismDrift 52s ease-in-out infinite alternate;
  will-change: transform;
}
.prism-field [data-draw] {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: prismDraw 2.8s cubic-bezier(.22,.7,.2,1) forwards;
}
.prism-field .p-out { animation-delay: .2s; }
.prism-field .p-e1 { animation-delay: 1.4s; }
.prism-field .p-e2 { animation-delay: 1.7s; }
.prism-field .p-e3 { animation-delay: 2s; }
@keyframes prismDraw { to { stroke-dashoffset: 0; } }
@keyframes prismDrift {
  0%   { transform: translate3d(-2.4%, -1.4%, 0) rotate(-2deg) scale(1); }
  100% { transform: translate3d(2.4%, 1.4%, 0) rotate(2deg) scale(1.07); }
}

/* ===== LAYOUT ===== */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); position: relative; z-index: 1; }
.coord { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; color: var(--blueprint-dim); text-transform: uppercase; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brass); color: var(--ink); padding: var(--s2) var(--s3); font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Foco visible (accesibilidad) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 3px;
}

/* ===== HEADER — transparente sobre el hero, sólido al hacer scroll ===== */
/* Encabezado transparente premium. En Prisma se deja FIJO (decisión de Alberto,
   2026-07-28, excepción a la skill): arriba es TRANSPARENTE de verdad —sin velo,
   sin línea— y la imagen/video del hero queda DETRÁS del logo; al hacer scroll
   se queda pegado arriba y toma una BARRA NEGRA sólida. Se usa position: fixed
   para conservar la transparencia-con-imagen-detrás Y que siga visible al bajar
   (el header es compacto y no quita pantalla). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(14,17,22,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
/* El contenido que NO es hero a sangre completa se separa del header fijo.
   Las heroes full-bleed (.hero--video, .proj-hero) suben BAJO el header a
   propósito, para que la imagen quede detrás del logo. */
main { padding-top: var(--header-h); }
main:has(> .hero--video),
main:has(> .proj-hero) { padding-top: 0; }
@media (max-width: 900px) { :root { --header-h: 62px; } }
.nav { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) 0; gap: var(--s3); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--chalk); flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; color: var(--chalk); }
.brand-word { font-family: var(--f-display); font-weight: 500; font-size: .95rem; letter-spacing: .38em; text-transform: uppercase; padding-left: .1em; white-space: nowrap; }
.nav-links { display: flex; gap: var(--s4); list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em;
  color: var(--chalk-dim); text-decoration: none; text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brass); }
.nav-cta {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--ink); background: var(--brass); text-decoration: none; text-transform: uppercase;
  padding: .6rem 1.1rem; transition: box-shadow .2s; white-space: nowrap;
}
.nav-cta:hover { box-shadow: 0 0 20px rgba(201,162,39,.45); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--chalk); padding: .5rem .7rem; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ===== HERO ===== */
.hero { padding: var(--s7) 0 var(--s6); position: relative; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); flex-wrap: wrap; gap: var(--s2); }

/* --- Hero del Home: a ancho completo --- */
.hero--video { overflow: hidden; position: relative; }
/* El contenido del hero se separa apenas del header absoluto (queda pegado,
   compacto), mientras la imagen/video sí cubre TODO el fondo incluido el
   área detrás del logo. Mayor especificidad (.hero.hero--video) para ganar
   sobre las reglas responsive de .hero. */
.hero.hero--video { padding-top: calc(var(--header-h) + 12px); }
.hero--video .hero-inner { max-width: 60ch; position: relative; z-index: 2; }
.hero--video h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }

/* Fondo de video / poster del hero (patrón poster-first, skill multimedia-web) */
.hero-bg-video, .hero-bg-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
}
.hero-bg-video { opacity: 0; transition: opacity .6s ease; }
/* Solo se muestra el poster/video en móvil. */
.hero-bg-poster.is-mobile { display: none; }

/* Fondo fotográfico del hero en ESCRITORIO (foto a sangre, sutil zoom lento).
   En móvil se oculta: ahí manda el poster/video vertical. */
.hero-bg-img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0; pointer-events: none;
  animation: heroSlow 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroSlow{ 0%{ transform: scale(1.02); } 100%{ transform: scale(1.12); } }
@media (max-width: 900px){ .hero-bg-img{ display: none; } }

/* Overlay para que el texto se lea sobre el video.
   Vertical: oscuro abajo (donde vive el H1 + CTAs), claro arriba. */
.hero--video .hero-overlay {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,17,22,.94) 0%, rgba(14,17,22,.78) 55%, rgba(14,17,22,.55) 100%);
}

@media (max-width: 900px) {
  .hero-bg-poster.is-mobile { display: block; }
  /* En móvil el degradado va de arriba (claro) hacia abajo (oscuro),
     porque el contenido se apila y el texto queda en la mitad inferior. */
  .hero--video .hero-overlay {
    background: linear-gradient(180deg, rgba(14,17,22,.55) 0%, rgba(14,17,22,.82) 55%, rgba(14,17,22,.96) 100%);
  }
}
.hero-claim { font-family: var(--f-display); font-weight: 300; font-size: .88rem; letter-spacing: .5em; text-transform: uppercase; color: var(--blueprint); }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--s5); align-items: center; }
h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08;
  letter-spacing: -.01em; margin-bottom: var(--s3);
}
h1 strong { font-weight: 600; }
h1 .thin { font-weight: 300; color: var(--blueprint); }
.hero-sub { font-size: 1.1rem; line-height: 1.7; color: var(--chalk-dim); max-width: 46ch; margin-bottom: var(--s3); font-weight: 300; }
.hero-sub strong { color: var(--chalk); font-weight: 500; }
.hero-hook {
  font-family: var(--f-mono); font-size: .82rem; color: var(--brass);
  letter-spacing: .04em; margin-bottom: var(--s4); padding-left: var(--s2);
  border-left: 2px solid var(--brass);
}
.hero-ctas { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* Prisma del hero (se usa en las landings internas) */
.hero-prism { position: relative; display: grid; place-items: center; }
.hero-prism svg { width: 100%; max-width: 320px; color: var(--blueprint); opacity: .85; }
.hero-prism [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: prismDraw 2.4s cubic-bezier(.22,.7,.2,1) forwards; }
.hero-prism .h-out { animation-delay: .4s; }
.hero-prism .h-e1 { animation-delay: 1.5s; }
.hero-prism .h-e2 { animation-delay: 1.75s; }
.hero-prism .h-e3 { animation-delay: 2s; }
.hero-prism .prism-label,
.intro-prism .prism-label {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .2em;
  color: var(--blueprint-dim); text-transform: uppercase; white-space: nowrap;
}

/* ===== SECCIÓN INTRO (Home): el prisma se dibuja AQUÍ, a la izquierda =====
   Ciclo continuo: se traza → pausa 1s formado → se desdibuja → repite.
   Arranca al entrar en pantalla y SE PAUSA al salir (animation-play-state),
   porque stroke-dashoffset no lo acelera la GPU: en bucle infinito y fuera
   de vista sería gasto puro de CPU y batería. */
/* Escritorio: texto a la izquierda, prisma a la DERECHA */
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--s5); align-items: center; position: relative; }
.intro-prism { position: relative; display: grid; place-items: center; padding: var(--s3) 0; }
.intro-prism svg { width: 100%; max-width: 320px; color: var(--blueprint); opacity: .85; }
.intro-prism [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: prismCycle 6s cubic-bezier(.45,.05,.55,.95) infinite;
  animation-play-state: paused;
}
.intro-prism.is-visible [data-draw] { animation-play-state: running; }
/* Escalonado: primero el contorno, luego las tres aristas */
.intro-prism .h-out { animation-delay: 0s; }
.intro-prism .h-e1 { animation-delay: .35s; }
.intro-prism .h-e2 { animation-delay: .55s; }
.intro-prism .h-e3 { animation-delay: .75s; }

/* Ciclo de 6s:  0→2.0s traza · 2.0→3.0s PAUSA formado · 3.0→5.4s se desdibuja · respiro */
@keyframes prismCycle {
  0%, 4%  { stroke-dashoffset: 1; }
  38%     { stroke-dashoffset: 0; }
  55%     { stroke-dashoffset: 0; }
  90%     { stroke-dashoffset: -1; }
  100%    { stroke-dashoffset: -1; }
}

/* Sin JS o con movimiento reducido: el prisma se ve dibujado y quieto
   (nunca debe quedar un prisma invisible por no dispararse la animación) */
.no-js .intro-prism [data-draw],
.intro-prism.no-anim [data-draw] { animation: none !important; stroke-dashoffset: 0; }

/* ===== BOTONES ===== */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .7rem; text-decoration: none;
  font-family: var(--f-display); font-size: .88rem; letter-spacing: .06em;
  padding: 1rem 1.6rem; text-transform: uppercase; transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brass); color: var(--ink); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,162,39,.3); }
.btn-ghost { background: transparent; color: var(--chalk); font-weight: 400; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ===== SECCIONES ===== */
.section { padding: var(--s7) 0; border-top: 1px solid var(--line); background: rgba(14,17,22,.55); position: relative; }
.section-head { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-index { font-family: var(--f-mono); font-size: .8rem; font-weight: 700; color: var(--brass); letter-spacing: .1em; }
h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em; }
h2 strong { font-weight: 600; }
h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; letter-spacing: .01em; }
.eyebrow { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .24em; color: var(--blueprint); text-transform: uppercase; margin-bottom: .5rem; display: block; }
.lead { font-size: 1.05rem; color: var(--chalk-dim); font-weight: 300; line-height: 1.85; max-width: 68ch; }
.prose p { font-size: 1.02rem; color: var(--chalk-dim); margin-bottom: var(--s3); font-weight: 300; line-height: 1.85; max-width: 68ch; }
.prose p strong { color: var(--chalk); font-weight: 500; }
.prose ul { margin: 0 0 var(--s3) var(--s3); color: var(--chalk-dim); font-weight: 300; }
.prose li { margin-bottom: .4rem; }

/* Direct Answer (GEO / AI Overviews) */
.direct-answer {
  background: var(--brass-soft); border-left: 3px solid var(--brass);
  padding: var(--s3); margin-bottom: var(--s4);
  font-size: 1.05rem; line-height: 1.8; color: var(--chalk); font-weight: 300;
  max-width: 72ch;
}
.direct-answer strong { font-weight: 600; color: var(--chalk); }

.quote {
  font-family: var(--f-display); font-weight: 300; font-size: 1.45rem;
  line-height: 1.4; color: var(--chalk); border-left: 2px solid var(--brass);
  padding-left: var(--s3); margin: var(--s4) 0; max-width: 40ch;
}

/* ===== MÉTODO ===== */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method-step { background: var(--ink); padding: var(--s4) 1.7rem; transition: background .3s; }
.method-step:hover { background: var(--ink-2); }
.method-step .num { font-family: var(--f-mono); font-size: .72rem; color: var(--brass); letter-spacing: .1em; margin-bottom: var(--s3); display: block; }
.method-step h3 { font-size: 1.1rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7rem; }
.method-step p { font-size: .92rem; color: var(--chalk-dim); font-weight: 300; line-height: 1.7; }

/* ===== SERVICIOS ===== */
.serv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.serv-card {
  border: 1px solid var(--line); padding: 1.8rem; background: var(--ink-2);
  position: relative; overflow: hidden; transition: border-color .3s, transform .3s;
  text-decoration: none; color: inherit; display: block;
}
.serv-card::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--brass); transition: width .4s ease; }
.serv-card:hover { border-color: rgba(201,162,39,.5); transform: translateY(-3px); }
.serv-card:hover::before { width: 100%; }
.serv-card .serv-ref { font-family: var(--f-mono); font-size: .66rem; color: var(--blueprint-dim); letter-spacing: .14em; margin-bottom: .9rem; display: block; }
.serv-card h3 { margin-bottom: .6rem; }
.serv-card p { font-size: .9rem; color: var(--chalk-dim); font-weight: 300; line-height: 1.65; }
.serv-card .arrow { color: var(--brass); font-family: var(--f-mono); font-size: .8rem; margin-top: var(--s2); display: inline-block; }

/* ===== PROYECTOS ===== */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.proj-card { border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; transition: border-color .3s; }
.proj-card:hover { border-color: rgba(201,162,39,.45); }
.proj-thumb {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  background: linear-gradient(150deg, #1C232D, #0E1116); border-bottom: 1px solid var(--line);
}
.proj-thumb .ph { font-family: var(--f-mono); font-size: .68rem; color: var(--blueprint-dim); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: var(--s2); }
.proj-thumb .tag-corner { position: absolute; top: 0; left: 0; background: var(--brass); color: var(--ink); font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; padding: .3rem .6rem; text-transform: uppercase; }
.proj-info { padding: 1.3rem var(--s3); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.proj-info h3 { font-size: 1.1rem; }
.proj-info .meta { font-family: var(--f-mono); font-size: .66rem; color: var(--blueprint-dim); letter-spacing: .1em; text-align: right; }

/* ===== STATS ===== */
.stats-band { border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--line); gap: 1px; }
.stat { background: var(--ink); padding: 2.6rem var(--s3); text-align: center; }
.stat .val { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--brass); line-height: 1; margin-bottom: .6rem; }
.stat .val .u { font-size: .36em; color: var(--blueprint); }
.stat .lbl { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; color: var(--chalk-dim); text-transform: uppercase; }

/* ===== ZONAS ===== */
.zonas { display: flex; flex-wrap: wrap; gap: .7rem; }
.zona-chip { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--chalk-dim); border: 1px solid var(--line); padding: .5rem .9rem; transition: border-color .2s, color .2s; text-decoration: none; }
.zona-chip:hover { border-color: var(--brass); color: var(--brass); }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.4rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  font-family: var(--f-display); font-weight: 400; font-size: 1.08rem; color: var(--chalk);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--brass); font-size: 1.3rem; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--chalk-dim); font-weight: 300; line-height: 1.8; max-width: 70ch; }

/* ===== FORMULARIO ===== */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.cta-copy h2 { margin-bottom: var(--s3); }
.cta-copy p { color: var(--chalk-dim); font-weight: 300; margin-bottom: var(--s3); }
.wa-line { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--f-mono); font-size: .82rem; color: var(--brass); letter-spacing: .06em; }
.form-box { border: 1px solid var(--line); background: var(--ink-2); padding: var(--s4); }
.fld { margin-bottom: var(--s3); }
.fld label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; color: var(--blueprint); text-transform: uppercase; display: block; margin-bottom: .5rem; }
.fld input, .fld select {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--chalk);
  padding: .8rem .9rem; font-family: var(--f-body); font-size: .92rem; border-radius: var(--radius);
}
.fld input:focus, .fld select:focus { outline: none; border-color: var(--brass); }
.form-submit {
  width: 100%; background: var(--brass); color: var(--ink); border: none;
  padding: 1rem; font-family: var(--f-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: box-shadow .2s;
}
.form-submit:hover { box-shadow: 0 0 24px rgba(201,162,39,.45); }
.form-note { font-size: .78rem; color: var(--blueprint-dim); margin-top: var(--s2); text-align: center; }
.form-note a { color: var(--brass); }

/* Panel de contacto (reemplaza al formulario): solo CTAs que abren modal */
.contact-card { display: flex; flex-direction: column; }
.contact-card .cc-title { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; color: var(--chalk); margin-bottom: .6rem; }
.contact-card .cc-sub { color: var(--chalk-dim); font-weight: 300; font-size: .96rem; line-height: 1.7; margin-bottom: var(--s4); }
.cc-btn { width: 100%; justify-content: center; margin-bottom: .8rem; }
.contact-card .form-note { margin-top: .6rem; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s4); position: relative; z-index: 1; background: rgba(14,17,22,.7); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s4); margin-bottom: var(--s4); }
.foot-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: var(--s3); }
.foot-brand svg { width: 28px; height: 28px; color: var(--chalk); }
.foot-brand .w { font-family: var(--f-display); font-weight: 500; letter-spacing: .38em; text-transform: uppercase; font-size: .88rem; }
.foot-tag { color: var(--chalk-dim); font-weight: 300; font-size: .92rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; color: var(--blueprint); text-transform: uppercase; margin-bottom: var(--s2); font-weight: 400; }
.foot-col a, .foot-col p { display: block; color: var(--chalk-dim); text-decoration: none; font-size: .9rem; font-weight: 300; margin-bottom: .5rem; }
.foot-col a:hover { color: var(--brass); }
/* Redes sociales del footer */
.foot-social { display: flex; gap: .7rem; margin-top: var(--s3); }
.foot-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--blueprint);
  transition: border-color .2s, color .2s, transform .2s;
}
.foot-social a:hover { border-color: var(--brass); color: var(--brass); transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; }

.foot-bottom { border-top: 1px solid var(--line); padding-top: var(--s3); display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; align-items: center; }

/* Crédito de la agencia */
.foot-credit { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; color: var(--blueprint-dim); text-transform: uppercase; }
.foot-credit a { color: var(--brass); text-decoration: none; transition: opacity .2s; }
.foot-credit a:hover { opacity: .75; }
@media (max-width: 640px) {
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .foot-credit { font-size: .6rem; letter-spacing: .08em; }
}

/* ==========================================================================
   BOTONES DE CONVERSIÓN — estándar Raptor Marketer (skill botones-conversion)
   Color de marca (latón), NO el verde de WhatsApp.
   Modal de confirmación antes de convertir + eventos al dataLayer.
   ========================================================================== */

/* --- Botón WhatsApp flotante (derecha) --- */
.floating-wa-btn {
  position: fixed; bottom: 30px; right: 30px;
  width: 65px; height: 65px;
  background-color: var(--brass);
  border: 2px solid var(--chalk);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.45);
  z-index: 2000; cursor: pointer;
  color: var(--ink);
  animation: wa-float 4s ease-in-out infinite;
  transition: transform .3s ease;
}
.floating-wa-btn:hover { transform: scale(1.1); }
.floating-wa-btn:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }
@keyframes wa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-icon { width: 35px; height: 35px; object-fit: contain; }

/* --- Botón Llamada flotante (izquierda, SOLO móvil) --- */
.floating-call-btn {
  display: none;
  position: fixed; bottom: 30px; left: 25px;
  width: 58px; height: 58px;
  background-color: var(--brass);
  color: var(--ink);
  border: 2px solid var(--chalk);
  border-radius: 50%;
  justify-content: center; align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.45);
  z-index: 2000; cursor: pointer;
  transition: transform .3s ease;
}
.floating-call-btn:hover { transform: scale(1.1); }
.floating-call-btn:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }
@media (max-width: 768px) { .floating-call-btn { display: flex; } }

/* --- Modales (adaptados al sistema oscuro de Prisma) --- */
.wa-modal, .call-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(5, 7, 10, .72);
  z-index: 2100;
  justify-content: center; align-items: center;
  padding: 1rem;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.wa-modal.active, .call-modal.active { display: flex; }

.wa-modal-content, .call-modal-content {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 2rem;
  width: 100%; max-width: 400px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  animation: modalIn .3s ease-out;
}
.call-modal-content { max-width: 380px; text-align: center; padding: 2.5rem 2rem; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer;
  color: var(--blueprint-dim); line-height: 1;
  transition: color .2s;
}
.wa-modal-close:hover { color: var(--brass); }

.wa-modal-content h3, .call-modal-content h3 {
  font-family: var(--f-display); font-weight: 500;
  font-size: 1.3rem; color: var(--chalk); margin-bottom: .4rem;
}
.wa-modal-content > p, .modal-subtitle {
  color: var(--chalk-dim); font-size: .92rem; font-weight: 300; margin-bottom: 1.4rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; margin-bottom: .4rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em;
  color: var(--blueprint); text-transform: uppercase;
}
.form-group input, .form-group select {
  width: 100%; padding: .75rem;
  background: var(--ink); color: var(--chalk);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--f-body); font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--brass); outline: none; }
.form-group select option { background: var(--ink-2); color: var(--chalk); }

/* Estado inválido: borde rojo + halo + shake + mensaje (estándar 2026-05-15) */
.form-group.is-invalid label { color: #E8A33D; }
.form-group.is-invalid input,
.form-group.is-invalid select {
  border-color: #E03E2F !important;
  box-shadow: 0 0 0 3px rgba(224, 62, 47, .18);
  animation: fieldShake .35s cubic-bezier(.36,.07,.19,.97) both;
}
.form-error {
  display: none; font-size: .8rem; color: #F0785F; margin-top: .35rem; letter-spacing: .04em;
}
.form-group.is-invalid .form-error { display: block; }
@keyframes fieldShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.btn-wa-submit, .btn-call-confirm {
  width: 100%; padding: .95rem;
  background: var(--brass); color: var(--ink);
  border: none; border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; margin-top: .5rem;
  transition: box-shadow .2s, transform .2s;
}
.btn-wa-submit:hover, .btn-call-confirm:hover {
  box-shadow: 0 0 24px rgba(201,162,39,.45); transform: translateY(-1px);
}
.call-modal-buttons { display: flex; flex-direction: column; gap: .8rem; }
.btn-call-cancel {
  background: transparent; color: var(--chalk-dim);
  padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font-family: var(--f-body); font-size: .92rem;
  transition: border-color .2s, color .2s;
}
.btn-call-cancel:hover { border-color: var(--blueprint); color: var(--chalk); }

@media (max-width: 480px) {
  .floating-wa-btn { width: 56px; height: 56px; bottom: 20px; right: 20px; }
  .wa-icon { width: 30px; height: 30px; }
  .floating-call-btn { width: 52px; height: 52px; bottom: 20px; left: 18px; }
  .wa-modal-content, .call-modal-content { padding: 1.6rem 1.3rem; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: var(--s3) 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb a { color: var(--blueprint-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb li:not(:last-child)::after { content: " /"; color: var(--blueprint-dim); margin-left: .5rem; }
.breadcrumb [aria-current="page"] { color: var(--chalk-dim); }

/* ===== LEGAL ===== */
.legal-body h2 { font-size: 1.4rem; margin: var(--s4) 0 var(--s2); }
.legal-body h3 { font-size: 1.1rem; margin: var(--s3) 0 var(--s1); }
.legal-body p, .legal-body li { color: var(--chalk-dim); font-weight: 300; font-size: .96rem; line-height: 1.8; margin-bottom: var(--s2); }
.legal-body ul { margin-left: var(--s3); }

/* ===== 404 ===== */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.err-code { font-family: var(--f-mono); font-size: 4rem; color: var(--brass); line-height: 1; margin-bottom: var(--s2); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { gap: var(--s4); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-prism { order: -1; }
  .hero-prism svg { max-width: 200px; }
  /* Móvil: el prisma pasa a ser FONDO, detrás del texto.
     La sección se vuelve casi opaca para tapar el prisma GIGANTE de la
     página: si no, quedan dos veces el mismo símbolo encimados y el
     resultado se lee como ruido, no como intención. Con el fondo limpio,
     el prisma de la sección puede subir a .22 y sí percibirse el trazo
     sin comprometer el contraste del texto. */
  .section--intro { background: rgba(14, 17, 22, .96); }
  .intro-grid { grid-template-columns: 1fr; gap: 0; }
  .intro-prism {
    position: absolute; inset: 0; z-index: 0;
    padding: 0; pointer-events: none; overflow: hidden;
    display: grid; place-items: center;
  }
  /* Se sale del padding del container a propósito: dentro de él quedaba en
     ~34% del alto de la sección y se perdía. Así llena ~54% y sí se lee
     como fondo, sin provocar scroll horizontal (el padre recorta). */
  .intro-prism svg { max-width: none; width: min(128vw, 520px); opacity: .20; }
  .intro-prism .prism-label { display: none; } /* de fondo estorbaría al texto */
  .intro-text { position: relative; z-index: 1; }
  .method-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; order: 2; }
  /* Móvil tradicional: logo a la IZQUIERDA, hamburguesa pegada a la DERECHA.
     Se oculta el CTA amarillo; así el space-between deja solo logo + toggle. */
  .nav-cta { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--ink-2);
    border-bottom: 1px solid var(--line); padding: var(--s3) var(--s4);
    gap: var(--s3); align-items: flex-start;
  }
  .nav-links.is-open a { font-size: .9rem; }
}
@media (max-width: 768px) {
  .section { padding: var(--s6) 0; }
  .hero { padding: var(--s6) 0 var(--s5); }
  .serv-grid, .proj-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.4rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { justify-content: center; }
  .brand-word { font-size: .8rem; letter-spacing: .28em; }
  .direct-answer { font-size: .98rem; padding: var(--s2); }
  .quote { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  h1 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .brand svg { width: 26px; height: 26px; }
  .brand-word { font-size: .7rem; letter-spacing: .22em; }
  .nav-cta { font-size: .64rem; padding: .5rem .8rem; letter-spacing: .08em; }
  .hero-claim { font-size: .72rem; letter-spacing: .34em; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn svg { width: 22px; height: 22px; }
  .section-head { gap: var(--s2); }
}

/* ===== HEADER EN PANTALLAS MUY CHICAS (≤400px) =====
   Evita el overflow horizontal del header: en 320px el CTA "Cotiza tu casa"
   junto al wordmark y el toggle no caben. Se compacta el CTA y, en pantallas
   diminutas, el wordmark cede espacio dejando solo el isotipo. */
@media (max-width: 400px) {
  .nav { gap: .55rem; }
  .brand-word { font-size: .6rem; letter-spacing: .14em; }
  .nav-cta { font-size: .56rem; padding: .45rem .6rem; letter-spacing: .05em; }
}
@media (max-width: 344px) {
  .brand-word { display: none; }  /* solo el isotipo; el CTA respira */
}

/* ===== HERO DEL HOME EN MÓVIL (solo Home, no landings) =====
   - El antetítulo "Diseñamos espacios que se viven" entra en UN renglón:
     tracking reducido + tamaño fluido + nowrap. Cabe hasta en pantallas de 320px.
   - Se oculta la línea de zonas (coord), que en móvil quedaba debajo del claim. */
@media (max-width: 640px) {
  .hero--video .hero-topline { margin-bottom: var(--s3); }
  .hero--video .hero-topline .coord { display: none; }
  .hero--video .hero-claim {
    font-size: clamp(.56rem, 3vw, .74rem);
    letter-spacing: .1em;
    white-space: nowrap;
  }
}

/* ===== HERO DEL HOME EN ESCRITORIO (≥901px) =====
   El antetítulo se compacta (letra más chica) y se pega arriba al header
   y abajo al H1: menos padding-top del hero + menos margin del topline.
   Objetivo: que los CTA entren en el primer pantallazo. */
@media (min-width: 901px) {
  .hero--video .hero-topline { margin-bottom: var(--s1); }
  .hero--video .hero-claim { font-size: .66rem; letter-spacing: .3em; }
  .hero--video .hero-topline .coord { font-size: .6rem; }
}

/* ==========================================================================
   RAPTOR LIB 01 — REVEAL ON SCROLL (híbrido moderno + fallback IO)
   Solo transform/opacity. Stagger por --rd (ms).
   ========================================================================== */
[data-reveal]{
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)),
              transform .9s var(--ease-out-expo, cubic-bezier(.22,1,.36,1));
  transition-delay: calc(var(--rd, 0) * 1ms);
  will-change: opacity, transform;
}
[data-reveal].is-in{ opacity: 1; transform: none; }
/* Reveal tipo "cortina/rellenado" izquierda→derecha para los títulos.
   Solo clip-path + opacity (rápido, sin layout shift). Se dispara al entrar
   en pantalla; los de arriba del fold se rellenan al cargar. */
[data-reveal-mask]{
  clip-path: inset(0 100% 0 0);
  opacity: .35;
  transition: clip-path .9s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)),
              opacity .9s ease;
  transition-delay: calc(var(--rd,0) * 1ms);
  will-change: clip-path;
}
[data-reveal-mask].is-in{ clip-path: inset(0 0 0 0); opacity: 1; }

/* ==========================================================================
   CINEMA — banda a pantalla completa con FONDO FIJADO (pinned/parallax).
   La foto se "queda pegada" detrás mientras el texto sube, hasta que la
   sección termina. Técnica sticky (robusta en móvil, a diferencia de
   background-attachment: fixed que iOS ignora). Solo layout, sin JS.
   ========================================================================== */
.cinema{ position: relative; z-index: 1; }
.cinema__sticky{
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
}
.cinema__img{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.cinema__veil{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,17,22,.62) 0%, rgba(14,17,22,.30) 38%, rgba(14,17,22,.72) 100%);
}
/* El contenido se jala hacia arriba para pasar SOBRE la foto fijada */
.cinema__content{
  position: relative; z-index: 2; margin-top: -100vh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s7) 0;
}
.cinema__kicker{ font-family: var(--f-mono); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--s3); }
.cinema__line{ font-family: var(--f-display); font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.18; max-width: 22ch; letter-spacing: -.01em; }
.cinema__line strong{ font-weight: 600; }
.cinema__sub{ margin-top: var(--s3); color: var(--chalk-dim); font-weight: 300; max-width: 46ch; font-size: 1.05rem; }
/* Variante corta (banda de 1 pantalla, sin scroll-through largo) */
.cinema--short .cinema__sticky{ position: relative; height: min(78vh, 640px); }
.cinema--short .cinema__content{ margin-top: -78vh; min-height: min(78vh, 640px); }

/* ==========================================================================
   GALERÍA EDITORIAL — mosaico tipo lámina de arquitectura.
   Grid de 6 col con spans por orientación + flujo denso → ritmo de revista,
   preservando el orden de lectura (la "historia que se va contando").
   ========================================================================== */
.gallery{
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(140px, 15vw, 232px); gap: 10px; grid-auto-flow: dense;
}
.g-item{
  position: relative; overflow: hidden; background: var(--ink-3);
  grid-column: span 2; grid-row: span 2; cursor: zoom-in;    /* celda base (vertical) */
  border: 1px solid rgba(157,179,198,.08); padding: 0;
  display: block; width: 100%; text-align: left;
}
.g-item.v   { grid-column: span 2; grid-row: span 2; }  /* vertical (= base) */
.g-item.h   { grid-column: span 4; grid-row: span 2; }  /* horizontal: doble de ancho */
.g-item.feat{ grid-column: span 6; grid-row: span 2; }  /* destacada a todo el ancho */
.g-item.wide{ grid-column: span 6; grid-row: span 2; }  /* banda ancha */
.g-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)); }
.g-item:hover img{ transform: scale(1.06); }
/* Placa de leyenda (aparece al hover, tipo ficha técnica) */
.g-item__cap{
  position: absolute; left: 0; bottom: 0; right: 0; z-index: 2;
  padding: 1.6rem .9rem .7rem; pointer-events: none;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--chalk); background: linear-gradient(transparent, rgba(14,17,22,.85));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.g-item:hover .g-item__cap, .g-item:focus-visible .g-item__cap{ opacity: 1; transform: none; }
.g-item__num{ color: var(--brass); margin-right: .6rem; }
/* Marco de "zoom" al pasar */
.g-item::after{
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--brass); transition: box-shadow .3s;
}
.g-item:hover::after{ box-shadow: inset 0 0 0 2px rgba(201,162,39,.55); }

@media (max-width: 1024px){
  .gallery{ grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(130px, 20vw, 210px); }
  .g-item, .g-item.v{ grid-column: span 2; grid-row: span 2; }
  .g-item.h, .g-item.feat, .g-item.wide{ grid-column: span 4; grid-row: span 2; }
}
@media (max-width: 620px){
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; gap: 7px; }
  .g-item, .g-item.v{ grid-column: span 1; grid-row: span 1; }
  .g-item.h, .g-item.feat, .g-item.wide{ grid-column: span 2; grid-row: span 1; }
  .g-item__cap{ opacity: 1; transform: none; font-size: .56rem; padding: 1.2rem .7rem .5rem; }
}

/* ==========================================================================
   LIGHTBOX — visor a pantalla completa (vanilla)
   ========================================================================== */
.lightbox{
  position: fixed; inset: 0; z-index: 3000; display: none;
  background: rgba(5,7,10,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: env(safe-area-inset-top) 0;
}
.lightbox.active{ display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox__stage{ display: grid; place-items: center; width: 100%; height: 100%; padding: 3vw; overflow: hidden; }
.lightbox__img{
  max-width: 94vw; max-height: 82vh; width: auto; height: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: lbIn .4s var(--ease-out-quart, cubic-bezier(.25,1,.5,1));
}
@keyframes lbIn{ from{ opacity: 0; transform: scale(.97); } to{ opacity: 1; transform: none; } }
.lightbox__cap{
  padding: .9rem var(--s3) calc(var(--s3) + env(safe-area-inset-bottom));
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--chalk-dim);
  text-transform: uppercase; text-align: center; max-width: 70ch;
}
.lightbox__cap b{ color: var(--brass); font-weight: 400; }
.lb-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; display: grid; place-items: center;
  background: rgba(14,17,22,.6); border: 1px solid var(--line); color: var(--chalk);
  cursor: pointer; z-index: 3; transition: background .2s, border-color .2s;
}
.lb-btn:hover{ background: var(--brass); color: var(--ink); border-color: var(--brass); }
.lb-prev{ left: 2vw; } .lb-next{ right: 2vw; }
.lb-close{
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px;
  background: rgba(14,17,22,.6); border: 1px solid var(--line); color: var(--chalk);
  font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 3; transition: background .2s, color .2s;
}
.lb-close:hover{ background: var(--brass); color: var(--ink); }
.lb-btn svg{ width: 22px; height: 22px; }
@media (max-width: 620px){
  .lb-btn{ width: 44px; height: 44px; bottom: 12vh; top: auto; transform: none; }
  .lb-prev{ left: 4vw; } .lb-next{ right: 4vw; }
  .lightbox__img{ max-height: 70vh; }
}

/* ==========================================================================
   HERO DE FICHA DE PROYECTO — foto a sangre completa + título
   ========================================================================== */
.proj-hero{ position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.proj-hero__img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.proj-hero__veil{ position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,17,22,.5) 0%, rgba(14,17,22,.15) 45%, rgba(14,17,22,.9) 100%); }
.proj-hero__inner{ position: relative; z-index: 2; padding-bottom: var(--s7); width: 100%; }
.proj-hero__kicker{ font-family: var(--f-mono); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--s2); display: flex; gap: var(--s2); flex-wrap: wrap; }
.proj-hero h1{ font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1; margin-bottom: var(--s3); }
.proj-hero__meta{ display: flex; gap: var(--s4); flex-wrap: wrap; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--chalk-dim); text-transform: uppercase; }
.proj-hero__meta b{ color: var(--chalk); font-weight: 400; }
.scroll-cue{ position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .2em; color: var(--blueprint); text-transform: uppercase; animation: cueBob 2.4s ease-in-out infinite; }
@keyframes cueBob{ 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }

/* Intro de proyecto + paleta de materiales (ficha cualitativa, sin cifras inventadas) */
.proj-lead{ display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--s5); align-items: start; }
.material-list{ list-style: none; border-top: 1px solid var(--line); }
.material-list li{ display: flex; justify-content: space-between; gap: var(--s2); padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; }
.material-list li span:first-child{ color: var(--blueprint); text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; }
.material-list li span:last-child{ color: var(--chalk); text-align: right; }
@media (max-width: 820px){ .proj-lead{ grid-template-columns: 1fr; gap: var(--s4); } }

/* Navegación entre proyectos (siguiente obra) */
.next-proj{ position: relative; min-height: 52vh; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--line); }
.next-proj__img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1.2s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)); }
.next-proj:hover .next-proj__img{ transform: scale(1.05); }
.next-proj__veil{ position: absolute; inset: 0; z-index: 1; background: rgba(14,17,22,.68); }
.next-proj__inner{ position: relative; z-index: 2; width: 100%; text-align: center; }
.next-proj a{ text-decoration: none; color: inherit; }
.next-proj .eyebrow{ margin-bottom: var(--s2); }
.next-proj h2{ font-size: clamp(2rem,5vw,3.4rem); }
.next-proj .arrow{ color: var(--brass); font-family: var(--f-mono); font-size: .8rem; margin-top: var(--s2); display: inline-block; letter-spacing: .1em; }

/* ==========================================================================
   TARJETAS DE PROYECTO CON FOTO (Home + hub /proyectos/)
   ========================================================================== */
.proj-card--img{ position: relative; display: block; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--ink-2); will-change: transform; transition: transform .45s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)), border-color .3s; }
.proj-card--img:hover{ border-color: rgba(201,162,39,.5); }
.proj-figure{ position: relative; aspect-ratio: 4/3; overflow: hidden; }
.proj-figure img{ width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)); }
.proj-card--img:hover .proj-figure img{ transform: scale(1.07); }
.proj-figure__grad{ position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14,17,22,.85)); z-index: 1; }
.proj-card--img .tag-corner{ position: absolute; top: 0; left: 0; z-index: 2; background: var(--brass); color: var(--ink); font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; padding: .32rem .6rem; text-transform: uppercase; }
.proj-card__body{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--s3); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s2); }
.proj-card__body h3{ font-size: 1.25rem; margin-bottom: .2rem; }
.proj-card__body .meta{ font-family: var(--f-mono); font-size: .64rem; color: var(--blueprint); letter-spacing: .1em; text-transform: uppercase; }
.proj-card__body .go{ color: var(--brass); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; white-space: nowrap; }
.proj-grid--rich{ display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.proj-grid--rich .proj-card--img.span2{ grid-column: span 2; }
.proj-grid--rich .proj-card--img.span2 .proj-figure{ aspect-ratio: 21/9; }
@media (max-width: 760px){ .proj-grid--rich{ grid-template-columns: 1fr; } .proj-grid--rich .proj-card--img.span2{ grid-column: span 1; } .proj-grid--rich .proj-card--img.span2 .proj-figure{ aspect-ratio: 4/3; } }

/* --- Tarjeta de proyecto con mini-galería (autoplay + flechas) --- */
.proj-card--carousel { position: relative; }
.proj-card--carousel .proj-figure { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.proj-card--carousel .pc-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)); }
.proj-card--carousel .pc-slide.is-active { opacity: 1; }
.proj-card--carousel .proj-figure__grad { position: absolute; inset: 0; z-index: 2; }
.proj-card--carousel .tag-corner { z-index: 4; }
.proj-card--carousel .pc-link { position: absolute; inset: 0; z-index: 3; }
.proj-card--carousel .proj-card__body { z-index: 4; pointer-events: none; }
.pc-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(14,17,22,.5); border: 1px solid rgba(237,241,245,.28); color: var(--chalk);
  cursor: pointer; opacity: 0; transition: opacity .3s, background .2s, border-color .2s;
}
.proj-card--carousel:hover .pc-arrow { opacity: 1; }
.pc-arrow:focus-visible { opacity: 1; outline: 2px solid var(--brass); outline-offset: 2px; }
.pc-arrow:hover { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.pc-arrow svg { width: 18px; height: 18px; }
.pc-prev { left: 10px; } .pc-next { right: 10px; }
.pc-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 6px; pointer-events: none; }
.pc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(237,241,245,.45); transition: background .3s, transform .3s; }
.pc-dots i.is-active { background: var(--brass); transform: scale(1.3); }
@media (hover: none) { .pc-arrow { opacity: .9; } }  /* táctil: flechas visibles */

/* ==========================================================================
   NARRATIVA "DEL SUEÑO A LA MATERIA" — tres actos
   ========================================================================== */
.acts{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.act{ position: relative; overflow: hidden; min-height: 46vh; display: flex; align-items: flex-end; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.act img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)); filter: grayscale(.15); }
.act:hover img{ transform: scale(1.06); filter: grayscale(0); }
.act__veil{ position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,17,22,.25), rgba(14,17,22,.9)); }
.act__body{ position: relative; z-index: 2; padding: var(--s4); }
.act__step{ font-family: var(--f-mono); font-size: .66rem; letter-spacing: .24em; color: var(--brass); text-transform: uppercase; display: block; margin-bottom: .6rem; }
.act__body h3{ font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.01em; margin-bottom: .5rem; }
.act__body h3 strong{ font-weight: 600; }
.act__body p{ font-size: .92rem; color: var(--chalk-dim); font-weight: 300; line-height: 1.6; max-width: 34ch; }
.act .go{ color: var(--brass); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; margin-top: var(--s2); display: inline-block; }
@media (max-width: 860px){ .acts{ grid-template-columns: 1fr; } .act{ min-height: 40vh; } }

/* ==========================================================================
   TIRA DE OBRA / MARQUEE de miniaturas (galería secundaria)
   ========================================================================== */
.thumb-strip{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); -webkit-overflow-scrolling: touch; }
.thumb-strip::-webkit-scrollbar{ height: 6px; } .thumb-strip::-webkit-scrollbar-thumb{ background: var(--line); }
.thumb-strip .g-item{ scroll-snap-align: start; aspect-ratio: 4/5; grid-row: auto; grid-column: auto; }

/* Sub-encabezado de bloque dentro de una página (para hub proyectos) */
.block-head{ display: flex; align-items: baseline; gap: var(--s3); margin: var(--s6) 0 var(--s4); flex-wrap: wrap; }
.block-head .eyebrow{ margin: 0; }
.block-head h2{ font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ==========================================================================
   PROCESO — timeline de construcción (usa fotos de obra)
   ========================================================================== */
.proceso-intro{ max-width: 60ch; }
.step-tags{ display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s3); }
.step-tags span{ font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; color: var(--chalk-dim); border: 1px solid var(--line); padding: .4rem .8rem; text-transform: uppercase; }
.step-tags b{ color: var(--brass); font-weight: 400; margin-right: .4rem; }

/* ==========================================================================
   FICHA DE PROYECTO — SHOWCASE (panel de datos + mosaico editorial)
   Estilo tipo revista: tamaños variados, a todo el ancho, cada foto con
   número + título + descripción. Oscuro + latón (identidad Plano Maestro).
   ========================================================================== */
.pshow{ padding: var(--s6) 0; border-top: 1px solid var(--line); background: rgba(14,17,22,.55); position: relative; z-index: 1; }
.pshow__grid{ display: grid; grid-template-columns: 330px 1fr; gap: var(--s5); max-width: 1680px; margin: 0 auto; padding: 0 clamp(1.2rem, 3vw, 2.6rem); align-items: start; }
.pshow__info{ position: sticky; top: 92px; }
.pshow__idx{ font-family: var(--f-mono); font-size: 1.7rem; color: var(--brass); display: flex; align-items: center; gap: 1rem; margin-bottom: var(--s3); }
.pshow__idx::after{ content: ""; height: 1px; flex: 0 0 56px; background: var(--brass); opacity: .6; }
.pshow__info .eyebrow{ display: block; margin-bottom: .7rem; }
.pshow__info h2{ font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: var(--s2); }
.pshow__desc{ color: var(--chalk-dim); font-weight: 300; margin-bottom: var(--s4); max-width: 40ch; line-height: 1.8; }
.pshow__meta{ list-style: none; border-top: 1px solid var(--line); margin-bottom: var(--s4); }
.pshow__meta li{ display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pshow__meta svg{ width: 19px; height: 19px; color: var(--brass); flex-shrink: 0; margin-top: 3px; }
.pshow__meta .k{ font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blueprint); display: block; margin-bottom: 3px; }
.pshow__meta .v{ color: var(--chalk); font-size: .92rem; line-height: 1.5; }
.pshow__link{ font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.pshow__link:hover{ color: var(--chalk); border-color: var(--chalk); }

.pshow__mosaic{ display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(140px, 12.5vw, 208px); gap: 10px; grid-auto-flow: dense; }
.m-tile{ position: relative; overflow: hidden; background: var(--ink-3); cursor: zoom-in; grid-column: span 2; grid-row: span 1; border: 1px solid rgba(157,179,198,.07); padding: 0; text-align: left; display: block; width: 100%; }
.m-tile.feat{ grid-column: span 4; grid-row: span 2; }
.m-tile.wide{ grid-column: span 4; grid-row: span 1; }
.m-tile.tall{ grid-column: span 2; grid-row: span 2; }
.m-tile img{ width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out-expo, cubic-bezier(.22,1,.36,1)); }
.m-tile:hover img{ transform: scale(1.05); }
.m-tile::after{ content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--brass); transition: box-shadow .3s; pointer-events: none; z-index: 3; }
.m-tile:hover::after{ box-shadow: inset 0 0 0 2px rgba(201,162,39,.6); }
.m-cap{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.6rem 1.2rem 1.05rem; background: linear-gradient(transparent, rgba(8,10,13,.94)); pointer-events: none; }
.m-num{ display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--brass); letter-spacing: .1em; }
.m-title{ display: block; font-family: var(--f-display); font-weight: 500; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--chalk); margin: .35rem 0 0; }
.m-tile.feat .m-title{ font-size: 1.2rem; letter-spacing: .1em; }
.m-desc{ display: block; font-size: .82rem; color: var(--chalk-dim); font-weight: 300; line-height: 1.55; margin-top: .4rem; max-width: 40ch; }
.m-tile.feat .m-cap{ padding-top: 3.4rem; }
.m-arrow{ position: absolute; top: 1rem; right: 1rem; z-index: 3; color: var(--chalk); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.m-arrow svg{ width: 20px; height: 20px; }
.m-tile:hover .m-arrow{ opacity: 1; transform: none; }
.m-tile.sm .m-desc{ display: none; }
.m-tile.sm .m-cap{ padding: 1.7rem .9rem .8rem; }
.m-tile.sm .m-title{ font-size: .78rem; letter-spacing: .12em; }

@media (max-width: 1100px){
  .pshow__grid{ grid-template-columns: 1fr; gap: var(--s4); }
  .pshow__info{ position: static; }
}
@media (max-width: 640px){
  .pshow__mosaic{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 7px; }
  .m-tile, .m-tile.tall{ grid-column: span 1; grid-row: span 1; }
  .m-tile.feat, .m-tile.wide{ grid-column: span 2; grid-row: span 1; }
  .m-desc, .m-tile.sm .m-desc{ display: block; }
  .m-cap{ padding: 1.7rem .8rem .7rem; }
  .m-arrow{ display: none; }
}

/* ===== HISTORIA DE 3 FASES (hub): render → construcción → hogar ===== */
.story-phase{ padding: var(--s5) 0; position: relative; }
.story-phase + .story-phase{ border-top: 1px solid var(--line); }
.story-phase__head{ max-width: 1680px; margin: 0 auto var(--s4); padding: 0 clamp(1.2rem, 3vw, 2.6rem); }
.story-phase__num{ display: inline-flex; align-items: center; gap: .7rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: .7rem; }
.story-phase__num::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex-shrink: 0; }
.story-phase__head h3{ font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.01em; }
.story-phase__head h3 em{ color: var(--blueprint); font-style: normal; font-weight: 300; }
.story-phase__head p{ color: var(--chalk-dim); font-weight: 300; max-width: 58ch; margin-top: .8rem; line-height: 1.85; }
.story-mosaic{ max-width: 1680px; margin: 0 auto; padding: 0 clamp(1.2rem, 3vw, 2.6rem); }

/* ===== ACCESIBILIDAD: movimiento reducido ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prism-field svg { animation: none; }
  .prism-field [data-draw],
  .hero-prism [data-draw],
  .intro-prism [data-draw] { animation: none !important; stroke-dashoffset: 0; }
  [data-reveal]{ opacity: 1 !important; transform: none !important; }
  [data-reveal-mask]{ clip-path: none !important; opacity: 1 !important; }
  .g-item:hover img, .proj-card--img:hover .proj-figure img, .act:hover img, .next-proj:hover .next-proj__img{ transform: none; }
  .scroll-cue{ animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
