/* ==========================================================================
   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: #C6A15A;
  --brass-soft: rgba(198, 161, 90, .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: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-mono: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 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(198,161,90,.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, DESAPARECE al hacer scroll ===== */
/* Encabezado transparente premium (estándar de la skill encabezado-transparente).
   Alberto revierte el header fijo el 2026-09-02: ahora va ABSOLUTE, se desplaza
   con la página y DESAPARECE al bajar (escritorio y móvil). En escritorio, al
   pasar el mouse toma un fondo oscuro para que se lean mejor las letras del menú. */
.site-header {
  position: absolute; 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;
}
/* Escritorio: al pasar el mouse el header se oscurece (mejor contraste del menú). */
@media (hover: hover) {
  .site-header:hover {
    background: rgba(14,17,22,.92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    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(> .hero--photo),
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-logo { height: clamp(28px, 5vw, 40px); width: auto; display: block; }
.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(198,161,90,.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; clip-path: inset(0); }
/* 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); }
/* H1 del hero en ESCRITORIO: 3 renglones. Cortes forzados (.hb-lg) para un
   quiebre limpio + columna más ancha y tamaño un poco menor para que cada
   renglón quepa sin volver a partirse. En móvil los cortes se ocultan y el
   texto fluye natural. */
@media (min-width: 901px) {
  .hero--video .hero-inner { max-width: 78ch; }
  .hero--video h1 { font-size: clamp(2.5rem, 3.5vw, 3rem); line-height: 1.12; }
}
@media (max-width: 900px) { .hb-lg { display: none; } }

/* Fondo de video / poster del hero (patrón poster-first, skill multimedia-web).
   position: FIXED = parallax estándar Raptor (el fondo se queda quieto y la
   sección lo recorta con clip-path). Ver skill parallax / caso Fanny Vargas. */
.hero-bg-video, .hero-bg-poster {
  position: fixed; 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; }
/* Poster/video por dispositivo: en escritorio el horizontal, en móvil el vertical. */
.hero-bg-poster.is-mobile { display: none; }             /* oculto en escritorio */
.hero-bg-poster.is-desktop { display: block; }           /* visible en escritorio */
@media (max-width: 900px){
  .hero-bg-poster.is-desktop { display: none; }          /* oculto en móvil */
  .hero-bg-poster.is-mobile { display: block; }          /* visible en móvil */
}

/* Overlay para que el texto se lea sobre el video.
   Vertical: oscuro abajo (donde vive el H1 + CTAs), claro arriba. */
.hero--video .hero-overlay,
.hero--photo .hero-overlay {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,17,22,.80) 0%, rgba(14,17,22,.60) 55%, rgba(14,17,22,.36) 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,
  .hero--photo .hero-overlay {
    background: linear-gradient(180deg, rgba(14,17,22,.40) 0%, rgba(14,17,22,.68) 55%, rgba(14,17,22,.88) 100%);
  }
}
.hero-claim { font-family: var(--f-display); font-weight: 300; font-size: .88rem; letter-spacing: .5em; text-transform: uppercase; color: var(--blueprint); }

/* Hero con foto de fondo (interiores). La imagen sube A SANGRE COMPLETA bajo
   el header transparente (main:has(.hero--photo){padding-top:0}); el contenido
   se separa del header con el padding-top. */
.hero--photo { position: relative; overflow: hidden; clip-path: inset(0); min-height: clamp(400px, 58vh, 600px); display: flex; align-items: center; padding-top: calc(var(--header-h) + 12px); }
/* Breadcrumb sobre la imagen del hero (así no hay franja oscura arriba).
   Especificidad .container.breadcrumb--hero para ganarle a `.hero--photo > .container`. */
.hero--photo .container.breadcrumb--hero { position: absolute; top: calc(var(--header-h) + 8px); left: 50%; transform: translateX(-50%); width: 100%; z-index: 2; padding-top: 0; }
.hero--photo .breadcrumb--hero a { color: var(--chalk-dim); }
.hero--photo .breadcrumb--hero a:hover { color: var(--brass); }
.hero--photo .breadcrumb--hero li:not(:last-child)::after { color: var(--chalk-dim); }
.hero--photo .breadcrumb--hero [aria-current="page"] { color: var(--brass); }
/* Móvil: el contenido del hero arranca DEBAJO del breadcrumb (evita el solape).
   .hero.hero--photo (0-2-0) para ganarle al shorthand `.hero{padding}` del media 768px. */
@media (max-width: 900px) {
  .hero.hero--photo { align-items: flex-start; padding: calc(var(--header-h) + 54px) 0 var(--s5); }
}
.hero--photo .hero-bg-poster { z-index: 0; }
/* El fondo (gradiente) lo define la regla compartida .hero--video/.hero--photo .hero-overlay */
.hero--photo > .container { position: relative; z-index: 2; width: 100%; }

/* ==========================================================================
   FONDO DE SECCIÓN CON PARALLAX (imagen fija + velo). Reutilizable para
   cualquier sección con imagen de fondo (ej. #visitanos, NAP + mapa). Mismo
   overlay y misma técnica de fijado que los heroes (estándar Raptor). */
.has-sec-bg { position: relative; overflow: hidden; clip-path: inset(0); }
.sec-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; pointer-events: none; }
.sec-bg-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,17,22,.80) 0%, rgba(14,17,22,.60) 55%, rgba(14,17,22,.36) 100%); }
.has-sec-bg > .container { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .sec-bg-veil { background: linear-gradient(180deg, rgba(14,17,22,.60) 0%, rgba(14,17,22,.70) 55%, rgba(14,17,22,.88) 100%); }
}
.hero--photo .hero-inner { max-width: 60ch; }
.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(198,161,90,.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(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method-step { background: var(--ink); padding: var(--s4) 1.7rem; transition: background .3s, box-shadow .35s ease; }
@media (hover: hover) { .method-step:hover { background: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--brass), 0 0 30px -8px rgba(198,161,90,.4); z-index: 1; } }
@media (max-width: 900px) { .method-step.is-active { background: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--brass), 0 0 26px -8px rgba(198,161,90,.4); z-index: 1; } .method-step.is-active .mstep-ico { border-color: var(--brass); background: rgba(198,161,90,.06); } }
.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; }

/* ======= RAPTOR LIB 03 — MÉTODO: layout 2 columnas + casa que se traza en loop + iconos contextuales ======= */
.method { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: var(--s5); align-items: start; }
.method-aside .section-index { display: block; margin-bottom: .7rem; }
.method-aside .eyebrow { display: block; margin-bottom: 1rem; }
.method-aside h2 { margin-bottom: 1.1rem; }
.method-aside .lead { margin-bottom: 1.6rem; }

/* --- Casa residencial que se dibuja de abajo hacia arriba, en loop --- */
.method-house { max-width: 320px; }
.method-house svg { width: 100%; height: auto; display: block; color: var(--brass); opacity: 0; overflow: visible; }
.method-house .hl { stroke-dasharray: 1; stroke-dashoffset: 1; }
.method-house.is-in svg { animation: houseGlow 7s ease-in-out infinite; }
.method-house.is-in .hl { animation-duration: 7s; animation-iteration-count: infinite; animation-timing-function: linear; }
.method-house.is-in .hl-1 { animation-name: hDrawG; }
.method-house.is-in .hl-2 { animation-name: hDrawS; }
.method-house.is-in .hl-3 { animation-name: hDrawD; }
.method-house.is-in .hl-4 { animation-name: hDrawT; }
@keyframes houseGlow { 0%,3% { opacity: 0; } 9% { opacity: 1; } 86% { opacity: 1; } 95%,100% { opacity: 0; } }
@keyframes hDrawG { 0% { stroke-dashoffset: 1; } 14%,90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes hDrawS { 0%,10% { stroke-dashoffset: 1; } 40%,90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes hDrawD { 0%,36% { stroke-dashoffset: 1; } 58%,90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes hDrawT { 0%,54% { stroke-dashoffset: 1; } 66%,90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

/* --- Ícono circular de cada fase --- */
.mstep-ico { width: 44px; height: 44px; border: 1px solid rgba(198,161,90,.34); border-radius: 50%; display: grid; place-items: center; color: var(--brass); margin-bottom: .95rem; transition: border-color .3s, background .3s; }
.mstep-ico svg { width: 22px; height: 22px; overflow: visible; }
.method-step:hover .mstep-ico { border-color: var(--brass); background: rgba(198,161,90,.06); }

/* Conexión — los puntos "hablan" en secuencia */
.icon-conexion .dot { opacity: .2; }
.method-step.is-in .icon-conexion .dot { animation: talkDot 1.9s ease-in-out infinite; }
.icon-conexion .d2 { animation-delay: .22s; }
.icon-conexion .d3 { animation-delay: .44s; }
@keyframes talkDot { 0%,55%,100% { opacity: .2; } 28% { opacity: 1; } }

/* Inspiración — el foco enciende */
.icon-inspiracion .glow { opacity: .5; }
.method-step.is-in .icon-inspiracion .glow { animation: bulbGlow 3s ease-in-out infinite; }
@keyframes bulbGlow { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* Co-creación — las dos personas se acercan */
.icon-cocreacion .p1, .icon-cocreacion .p2 { transform-box: fill-box; transform-origin: center; }
.method-step.is-in .icon-cocreacion .p1 { animation: coL 3.4s ease-in-out infinite; }
.method-step.is-in .icon-cocreacion .p2 { animation: coR 3.4s ease-in-out infinite; }
@keyframes coL { 0%,100% { transform: translateX(0); } 50% { transform: translateX(1.4px); } }
@keyframes coR { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-1.4px); } }

/* Construcción — los ladrillos se apilan de abajo hacia arriba */
.icon-construccion .brick { opacity: 0; transform-box: fill-box; }
.method-step.is-in .icon-construccion .brick { animation: brickUp 4.2s ease-in-out infinite; }
.icon-construccion .b2 { animation-delay: .15s; }
.icon-construccion .b3 { animation-delay: .4s; }
.icon-construccion .b4 { animation-delay: .68s; }
.icon-construccion .b5 { animation-delay: .83s; }
@keyframes brickUp { 0% { opacity: 0; transform: translateY(3px); } 18%,78% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(3px); } }

/* Realidad — la casa se dibuja sola */
.icon-realidad .hdraw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.method-step.is-in .icon-realidad .hdraw { animation: hIcoDraw 4.4s ease-in-out infinite; }
.icon-realidad .hdraw:nth-child(2) { animation-delay: .28s; }
.icon-realidad .hdraw:nth-child(3) { animation-delay: .56s; }
@keyframes hIcoDraw { 0% { stroke-dashoffset: 1; } 42%,82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

/* Integración — la hoja crece desde la base */
.icon-integracion .leaf { transform-box: fill-box; transform-origin: bottom; }
.method-step.is-in .icon-integracion .leaf { animation: leafGrow 4.4s ease-in-out infinite; }
@keyframes leafGrow { 0% { transform: scale(.35); opacity: 0; } 26% { opacity: 1; } 55%,80% { transform: scale(1); opacity: 1; } 100% { transform: scale(.35); opacity: 0; } }

@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; gap: var(--s4); }
  .method-house { max-width: 300px; margin: 1rem auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .method-house svg { opacity: 1 !important; animation: none !important; }
  .method-house .hl { animation: none !important; stroke-dashoffset: 0 !important; }
  .method-step .dot, .method-step .glow, .method-step .brick, .method-step .leaf,
  .method-step .p1, .method-step .p2, .method-step .hdraw {
    animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; transform: none !important;
  }
}

/* ===== 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(198,161,90,.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(198,161,90,.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(198,161,90,.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-logo { height: 38px; width: auto; display: block; }

/* ======= NAP + MAPA (Visítanos) — refuerza el vínculo ficha↔sitio ======= */
.nap { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s4); align-items: stretch; }
.nap-info { display: flex; flex-direction: column; }
.nap-eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .5rem; }
.nap-name { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; }
.nap-address { font-style: normal; color: var(--chalk-dim); font-weight: 300; line-height: 1.8; font-size: 1.02rem; margin-bottom: 1.4rem; }
.nap-contact { list-style: none; padding: 0; margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: .6rem; }
.nap-contact li { display: flex; align-items: baseline; gap: .8rem; }
.nap-contact li span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-dim); min-width: 84px; }
.nap-contact li a { color: var(--brass); text-decoration: none; font-size: 1.05rem; }
.nap-contact li a:hover { text-decoration: underline; }
.nap-cta { align-self: flex-start; margin-top: auto; }
.nap-map { min-height: 400px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.nap-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
@media (max-width: 900px) {
  .nap { grid-template-columns: 1fr; gap: var(--s3); }
  .nap-cta { margin-top: 1rem; }
  .nap-map, .nap-map iframe { min-height: 320px; }
}
.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(198,161,90,.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,.55) 0%, rgba(14,17,22,.45) 50%, 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(198,161,90,.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; clip-path: inset(0); }
.proj-hero__img{ position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; } /* fixed = parallax */
.proj-hero__veil{ position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,17,22,.40) 0%, rgba(14,17,22,.68) 55%, rgba(14,17,22,.88) 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; clip-path: inset(0); border-top: 1px solid var(--line); }
.next-proj__img{ position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; } /* fixed = parallax (se quitó el hover-scale, incompatible con fixed) */
.next-proj__veil{ position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,17,22,.55) 0%, rgba(14,17,22,.48) 50%, rgba(14,17,22,.68) 100%); }
.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(198,161,90,.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(198,161,90,.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; }
/* Texto descriptivo sobre cada foto oculto a pedido del arquitecto (2026-08-09):
   "es mucho texto". El SEO se conserva en alt, data-cap (lightbox) y aria-label. */
.m-cap{ display: 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; }
  /* Sin parallax si el usuario pide menos movimiento: los fondos vuelven a absolute */
  .hero-bg-video, .hero-bg-poster, .proj-hero__img, .next-proj__img, .sec-bg { position: absolute !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ============================================================
   SISTEMA TIPOGRAFICO PREMIUM - Cormorant Garamond + Manrope (2026-09-01)
   Cambio pedido por el cliente: de "tecnologica" a "diseno premium".
   Serif (Cormorant) en titulos y frases; Manrope en lo funcional.
   Se retiro Space Mono (la monoespaciada daba el aire "tech").
   ============================================================ */
h1, h2 { font-weight: 500; letter-spacing: 0; }
h1 strong, h2 strong { font-weight: 700; }
h3 { font-weight: 600; letter-spacing: 0; }
h1 .thin { font-weight: 300; }
.cinema__line, .pshow__info h2 { font-weight: 500; letter-spacing: 0; }
.quote { font-weight: 500; }

/* Kicker conceptual del hero: serif en italica y caja mixta (elegante, no etiqueta tecnica) */
.hero-claim { font-family: var(--f-display); font-style: italic; text-transform: none;
  letter-spacing: .005em; font-weight: 500; font-size: clamp(1rem, 2.6vw, 1.2rem); }

/* Botones y CTAs en Manrope (sans), nunca serif */
.btn-primary, .btn-ghost, .form-submit, .btn-wa-submit, .btn-call-confirm, .btn-call-cancel,
.nav-cta, .cc-btn { font-family: var(--f-body); font-weight: 600; letter-spacing: .04em; }

/* Numeros / datos en Manrope (mas legibles que el serif para cifras) */
.stat .val { font-family: var(--f-body); font-weight: 700; letter-spacing: -.02em; }

/* Nombre del negocio (bloque NAP): serif con tracking suave */
.nap-name { letter-spacing: .04em; font-weight: 600; }

/* Rotulos tecnicos (antes Space Mono -> Manrope): mas peso para que la mayuscula espaciada lea nitida */
.eyebrow, .section-index, .coord, .cinema__kicker, .proj-hero__kicker, .act__step,
.nap-eyebrow, .fld label, .form-group label, .foot-col h4, .breadcrumb ol, .stat .lbl,
.method-step .num, .serv-card .serv-ref { font-weight: 600; }

/* ==========================================================================
   MENÚ DESPLEGABLE — Servicios (dropdown en escritorio · acordeón en móvil)
   Añadido 2026-09-01. Usa las variables del proyecto; el header sigue fixed.
   ========================================================================== */
.nav-links .has-dropdown { position: relative; }
.nav-drop-toggle { display: inline-flex !important; align-items: center; gap: .4em; }
.nav-caret {
  width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; flex-shrink: 0;
}
.has-dropdown:hover .nav-caret,
.has-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: 100%; left: 0; margin: 0; padding: .35rem 0; list-style: none;
  min-width: 292px;
  background: rgba(14,17,22,.97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px -22px rgba(0,0,0,.75);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
  z-index: 70;
}
/* puente invisible: mantiene el hover entre el link y el menú */
.nav-sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown:hover .nav-sub,
.has-dropdown:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translateY(2px); }
.nav-sub li { width: 100%; }
.nav-sub a {
  display: block; padding: .66rem 1.15rem;
  font-family: var(--f-mono); font-size: .70rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--chalk-dim); white-space: nowrap;
  border-left: 2px solid transparent; transition: color .18s, border-color .18s, background .18s;
}
.nav-sub a:hover,
.nav-sub a[aria-current="page"] { color: var(--brass); border-left-color: var(--brass); background: rgba(198,161,90,.06); }

@media (max-width: 900px) {
  .nav-links.is-open .has-dropdown { width: 100%; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; }
  .nav-sub {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    display: none; width: 100%; padding: .2rem 0 .4rem;
    background: rgba(255,255,255,.03); border: 0; box-shadow: none;
  }
  .nav-sub::before { display: none; }
  .has-dropdown.open .nav-sub { display: block; }
  .has-dropdown.open .nav-caret { transform: rotate(180deg); }
  .nav-sub a { white-space: normal; font-size: .72rem; padding-left: 1.1rem; }
}

/* ==========================================================================
   SERVICIOS RELACIONADOS — enlazado interno entre páginas de servicio
   (cluster temático: reparte autoridad hacia las páginas de dinero). 2026-09-02
   ========================================================================== */
.related-serv { background: var(--ink-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s4); }
.related-card {
  display: flex; flex-direction: column; padding: var(--s4);
  border: 1px solid var(--line); background: var(--ink); text-decoration: none; color: var(--chalk);
  transition: border-color .3s, transform .3s;
}
.related-card:hover { border-color: rgba(198,161,90,.5); transform: translateY(-3px); }
.related-card .rc-title { font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; line-height: 1.2; margin-bottom: .5rem; }
.related-card .rc-sub { color: var(--chalk-dim); font-size: .92rem; line-height: 1.6; flex: 1; }
.related-card .rc-go { margin-top: var(--s3); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
