/* ==========================================================================
   JLG SERVICIOS Y CONSTRUCCIONES S.A.S.
   Diseño arquitectónico de ingeniería · Sistema compartido
   ========================================================================== */

:root {
  --bg-deep: #080d15;
  --bg-steel: #0f1724;
  --bg-card: rgba(18, 28, 44, 0.86);
  --bg-card-solid: #141f30;

  --stone: #f3efe7;
  --stone-2: #e7e1d4;
  --paper: #fcfbf8;
  --ink: #111823;
  --ink-muted: #4b5869;
  --line-light: rgba(17, 24, 35, 0.11);

  --text-main: #f3f6fb;
  --text-muted: #9eb0c9;
  --line-dark: rgba(184, 206, 238, 0.14);

  /* Paleta exacta del logotipo JLG */
  --gold: #d4a33b;
  --gold-bright: #f2c85b;
  --gold-deep: #9c711c;
  --cobalt: #0f6eb8;
  --cobalt-bright: #2fa4ff;
  --amber: #f47e20;
  --emerald: #22c55e;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-dark: 0 28px 70px -24px rgba(0, 0, 0, 0.68);
  --shadow-light: 0 28px 64px -36px rgba(17, 24, 35, 0.25);

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
}
body {
  margin: 0;
  overflow-x: clip;
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-weight: 800;
}
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 200;
  background: var(--gold-bright); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { left: 10px; }

.container { width: min(1240px, 92vw); margin-inline: auto; }
.wrap { width: min(940px, 92vw); margin-inline: auto; }

/* Barra superior de progreso */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--cobalt-bright), var(--amber), var(--gold-bright));
  z-index: 140; pointer-events: none;
}

/* ==========================================================================
   HEADER FLOTANTE CORPORATIVO
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(8, 13, 21, 0.88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand-lockup {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  transition: opacity 0.35s var(--ease);
}
.brand-mark-box {
  width: 44px; height: 44px; border-radius: 12px; padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 163, 59, 0.35);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark-box img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 800;
  letter-spacing: 0.02em; color: #fff;
}
.brand-name span { color: var(--gold-bright); }
.brand-sub {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  color: #cdd8ea; transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.main-nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(212, 163, 59, 0.14);
  box-shadow: inset 0 0 0 1px rgba(212, 163, 59, 0.32);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.06);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   BOTONES, ETIQUETAS Y ACENTOS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #141005;
  box-shadow: 0 12px 32px -8px rgba(212, 163, 59, 0.45);
}
.btn-gold:hover { box-shadow: 0 16px 38px -6px rgba(242, 200, 91, 0.62); }

.btn-amber {
  background: linear-gradient(135deg, #ff9942, var(--amber));
  color: #170d02;
  box-shadow: 0 12px 30px -8px rgba(244, 126, 32, 0.48);
}
.btn-ink {
  background: var(--ink); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(17, 24, 35, 0.42);
}
.btn-ink:hover { background: #1c2a3e; }

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff; backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--gold-bright); }

.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.85rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseRing 2.1s infinite; flex-shrink: 0;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow-dark { color: var(--gold-bright); }
.eyebrow-light { color: var(--cobalt); }
.eyebrow .sq { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--gold)); flex-shrink: 0; }

.text-gold {
  background: linear-gradient(110deg, #fff2c2 0%, var(--gold-bright) 48%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.96rem;
  color: var(--cobalt);
}
.sec-dark .text-link, .sec-steel .text-link { color: var(--gold-bright); }
.text-link span { transition: transform 0.2s; }
.text-link:hover span { transform: translateX(4px); }

/* ==========================================================================
   SECCIÓN 1: HERO CINÉTICO DEL LOGO JLG (LA CRESTA DEL TECHO + LETRAS EN MOVIMIENTO)
   - Sin lámpara. 100% ADN construcción: plano CAD vivo, la forma exacta azul y
     naranja encima de la J ensamblándose, y las letras J-L-G en movimiento.
   - Al scrollear, la forma facetada de techo se abre en un mosaico diagonal con
     4 fotografías reales de obra.
   ========================================================================== */
.hero-jlg {
  position: relative;
  height: 220vh;
  background:
    radial-gradient(ellipse 75% 55% at 70% 28%, rgba(15, 110, 184, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 60% 45% at 25% 80%, rgba(244, 126, 32, 0.13) 0%, transparent 60%),
    linear-gradient(180deg, #070b12 0%, #0b1320 60%, #080d15 100%);
}
.hero-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
}

/* Canvas CAD arquitectónico (cerchas, ángulos de techo, cotas) */
.cad-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

/* Escena 0: Emblema monumental JLG con la forma exacta de techo arriba de la J */
.hero-stage0 {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding-top: calc(var(--nav-h) * 0.5);
  pointer-events: none;
}
.emblem-lock {
  display: flex; flex-direction: column; align-items: center;
  will-change: transform, opacity;
}
.emblem-compose {
  position: relative;
  display: flex; align-items: flex-end; gap: 0.05em;
  font-size: clamp(82px, 14.5vw, 208px);
  padding-top: 0.54em; /* Espacio reservado para la cresta de techo encima de la J */
}

/* LA FORMA EXACTA ARRIBA DE LA "J" DEL LOGO JLG (facetas azul + naranja + muesca de techo) */
.jlg-crest-svg {
  position: absolute;
  left: -0.02em; top: 0;
  width: 0.98em; height: 0.94em;
  overflow: visible;
  filter: drop-shadow(0 20px 44px rgba(15, 110, 184, 0.32));
  will-change: transform, opacity;
}
.crest-blue-part {
  opacity: 0;
  transform: translate(-34px, -28px);
  animation: pieceLock 0.95s var(--spring) 0.15s forwards;
}
.crest-orange-part {
  opacity: 0;
  transform: translate(38px, -32px);
  animation: pieceLock 0.95s var(--spring) 0.35s forwards;
}
.crest-wire {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: drawWire 1.2s var(--ease) 0.55s forwards;
}
@keyframes pieceLock {
  to { opacity: 1; transform: none; }
}
@keyframes drawWire {
  to { stroke-dashoffset: 0; }
}

/* Letras cinéticas J - L - G (cada letra entra por su eje estructural y se mueve con el scroll) */
.k-move { display: inline-block; will-change: transform; }
.k-letter {
  display: inline-block;
  font-family: var(--font-display); font-weight: 800; line-height: 0.78;
  letter-spacing: -0.04em;
  background: linear-gradient(175deg, #fff5cf 0%, #f1c34e 42%, #c58f25 78%, #8f6212 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
  will-change: transform, opacity;
}
.k-j {
  opacity: 0; transform: translateY(60px);
  animation: letterIn 0.85s var(--spring) 0.25s forwards;
}
.k-l {
  opacity: 0; transform: translateY(-48px);
  animation: letterIn 0.85s var(--spring) 0.42s forwards;
}
.k-g {
  opacity: 0; transform: translateX(52px);
  animation: letterIn 0.85s var(--spring) 0.56s forwards;
}
@keyframes letterIn {
  to { opacity: 1; transform: none; }
}

.emblem-sub {
  margin-top: 22px;
  font-family: var(--font-mono); font-size: clamp(11px, 1.15vw, 15px); font-weight: 600;
  letter-spacing: 0.34em; padding-left: 0.34em; text-align: center;
  color: #dbe8f9;
  opacity: 0; transform: translateY(14px);
  animation: letterIn 0.8s var(--ease) 0.8s forwards;
}
.emblem-tagline {
  margin-top: 12px; font-size: clamp(15px, 1.45vw, 19px); color: #9db4d4;
  text-align: center; max-width: 48ch; padding: 0 18px;
  opacity: 0; transform: translateY(14px);
  animation: letterIn 0.8s var(--ease) 0.95s forwards;
}

/* Escena 1 (revelada al scrollear): Copy a la izquierda + Mosaico Diagonal con la silueta del techo JLG */
.hero-in {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center;
}
.hero-copy { opacity: 0; will-change: opacity, transform; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.7vw, 4.2rem);
  line-height: 1.02; margin-bottom: 18px; color: #fff;
}
.hero-lead {
  font-size: clamp(0.98rem, 1.3vw, 1.14rem);
  color: #c5d5ea; max-width: 50ch; margin: 0 0 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 24px; }
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0;
}
.hero-chips a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(16, 25, 40, 0.88); border: 1px solid var(--line-dark);
  font-size: 0.83rem; font-weight: 600; color: #e6eefb;
  transition: border-color 0.25s, transform 0.25s;
}
.hero-chips a:hover { border-color: var(--gold-bright); transform: translateY(-2px); }
.hero-chips i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }

/* Mosaico diagonal arquitectónico que replica la inclinación del techo azul/naranja de JLG */
.roof-mosaic {
  --ph: 0;
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 10 / 9;
  justify-self: center; opacity: 0; will-change: transform, opacity;
}
.rm-card {
  position: absolute; overflow: hidden; border-radius: 18px;
  background: #101929; border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 55px -20px rgba(0, 0, 0, 0.82);
  display: block;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
.rm-card:hover { border-color: var(--gold-bright); z-index: 6; }
.rm-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.rm-card:hover img { transform: scale(1.07); }
.rm-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(8, 13, 21, 0.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
/* 4 piezas que dibujan el ángulo del techo del logo JLG (corte superior inclinado + columna + base) */
.rm-1 {
  left: 0; top: 0; width: 54%; height: 48%;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  border-color: rgba(47, 164, 255, 0.5);
}
.rm-2 {
  right: 0; top: 0; width: 44%; height: 46%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 74%);
  border-color: rgba(244, 126, 32, 0.5);
}
.rm-3 {
  left: 0; bottom: 0; width: 54%; height: 48%;
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 100%);
  border-color: rgba(242, 200, 91, 0.45);
}
.rm-4 {
  right: 0; bottom: 0; width: 44%; height: 50%;
  clip-path: polygon(0 0, 100% 24%, 100% 100%, 0 100%);
  border-color: rgba(242, 200, 91, 0.45);
}
/* Insignia central con el ángulo del logo uniendo las 4 obras */
.rm-badge {
  position: absolute; left: 52%; top: 47%; transform: translate(-50%, -50%);
  z-index: 8; width: 76px; height: 76px; border-radius: 20px;
  background: rgba(8, 13, 21, 0.94); border: 2px solid var(--gold-bright);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  display: grid; place-items: center; padding: 10px; pointer-events: none;
}
.rm-badge img { width: 100%; height: 100%; object-fit: contain; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6;
  background: rgba(15, 23, 36, 0.72); border: 1px solid var(--line-dark);
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  color: #e4eefb; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  transition: border-color 0.25s, transform 0.25s;
}
.scroll-hint:hover { border-color: var(--gold-bright); transform: translateX(-50%) translateY(-2px); }
.scroll-hint i {
  display: inline-block; width: 8px; height: 8px;
  border-right: 2px solid var(--gold-bright); border-bottom: 2px solid var(--gold-bright);
  transform: rotate(45deg); animation: arrowBob 1.5s ease-in-out infinite;
}
@keyframes arrowBob {
  0%, 100% { transform: translateY(-2px) rotate(45deg); }
  50% { transform: translateY(3px) rotate(45deg); }
}

/* ==========================================================================
   DOBLE CINTA CINÉTICA EN CONTRAMOVIMIENTO
   ========================================================================== */
.dual-marquee {
  overflow: hidden; background: #0d1523;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  padding: 16px 0; display: grid; gap: 10px;
}
.mq-track {
  display: flex; width: max-content; align-items: center; gap: 22px;
  animation: mqLeft 34s linear infinite;
}
.mq-track.rev { animation: mqRight 38s linear infinite; }
.mq-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.94rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #e5eefb; white-space: nowrap;
}
.mq-track.rev span {
  font-family: var(--font-mono); font-size: 0.76rem; color: #8da6c8; letter-spacing: 0.12em;
}
.mq-track b { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
@keyframes mqLeft { to { transform: translateX(-50%); } }
@keyframes mqRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ==========================================================================
   SECCIONES GENERALES & ANIMACIÓN REVEAL
   ========================================================================== */
.sec { padding: clamp(68px, 8vw, 116px) 0; position: relative; }
.sec-stone { background: var(--stone); color: var(--ink); }
.sec-paper { background: var(--paper); color: var(--ink); }
.sec-dark { background: var(--bg-deep); color: var(--text-main); }
.sec-steel { background: var(--bg-steel); color: var(--text-main); }

.sec-head { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.sec-head h2 { font-size: clamp(2rem, 4.1vw, 3.35rem); margin-bottom: 14px; }
.sec-head p { margin: 0; font-size: 1.04rem; }
.sec-stone .sec-head p, .sec-paper .sec-head p { color: var(--ink-muted); }
.sec-dark .sec-head p, .sec-steel .sec-head p { color: var(--text-muted); }

.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   SECCIÓN INTERACTIVA: ANATOMÍA DE UNA OBRA JLG (EDIFICIO CUTAWAY)
   El visitante toca cada nivel del edificio y ve en vivo qué hace JLG ahí
   ========================================================================== */
.anatomy-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4.5vw, 54px); align-items: stretch;
}
.anatomy-blueprint {
  border-radius: var(--radius-xl); padding: 24px;
  background: linear-gradient(160deg, #0f1a2b, #09101b);
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-dark);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.anatomy-svg { width: 100%; height: auto; display: block; }
.b-zone { cursor: pointer; transition: opacity 0.25s, filter 0.25s; opacity: 0.55; }
.b-zone:hover { opacity: 0.88; }
.b-zone.active { opacity: 1; filter: drop-shadow(0 0 12px var(--zc, #f2c85b)); }
.anatomy-tabs { display: grid; gap: 8px; }
.anatomy-tabs button {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
  color: #c7d6ec; font-weight: 600; font-size: 0.92rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.anatomy-tabs button:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.anatomy-tabs button[aria-pressed="true"] {
  background: rgba(212, 163, 59, 0.14); border-color: var(--gold-bright); color: #fff;
  transform: translateX(4px);
}
.anatomy-tabs .at-num {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 8px; border-radius: 6px;
  background: var(--c); color: #090e16; font-weight: 700; flex-shrink: 0;
}

.anatomy-card {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--bg-card-solid); border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-dark);
  display: flex; flex-direction: column;
}
.anatomy-photo-wrap {
  position: relative; aspect-ratio: 16 / 10; background: #0a101a; overflow: hidden;
}
.anatomy-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease, transform 0.5s var(--ease);
}
.anatomy-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.anatomy-meta {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--gold-bright);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.anatomy-body h3 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); color: #fff; margin-bottom: 12px; }
.anatomy-body p { margin: 0 0 18px; color: var(--text-muted); font-size: 0.98rem; }
.anatomy-specs {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px;
}
.anatomy-specs li {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark);
  font-size: 0.82rem; color: #e2ecf9; font-weight: 500;
}
.anatomy-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ==========================================================================
   SECCIÓN VARIADA 01: BENTO EDITORIAL DE CUBIERTAS + SLIDER ANTES/DESPUÉS
   Fotos 100% limpias y sin recuadros negros tapando la imagen
   ========================================================================== */
.bento-roofs {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px;
  margin-bottom: 48px;
}
.roof-card {
  grid-column: span 4; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card-solid); border: 1px solid var(--line-dark);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.roof-card.featured { grid-column: span 8; }
.roof-card:hover { transform: translateY(-4px); border-color: rgba(47, 164, 255, 0.5); }
.roof-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #0a111c; }
.roof-card.featured .roof-card-img { aspect-ratio: 16 / 9; }
.roof-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.roof-card:hover .roof-card-img img { transform: scale(1.05); }
.roof-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.roof-card-body small {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--cobalt-bright);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px;
}
.roof-card-body h3 { font-size: 1.25rem; color: #fff; margin-bottom: 6px; }
.roof-card-body p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* Comparador interactivo Antes / Después */
.compare-grid {
  display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4.5vw, 52px); align-items: center;
  padding: clamp(22px, 3.5vw, 38px); border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #111c2d, #0a101b);
  border: 1px solid rgba(47, 164, 255, 0.24);
}
.compare-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 24px; }
.compare-stat {
  padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
}
.compare-stat strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-bright); }
.compare-stat span { font-size: 0.84rem; color: var(--text-muted); }

.ba-slider {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-dark);
  user-select: none; touch-action: pan-y; cursor: ew-resize;
  background: #0b111c;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-badge {
  position: absolute; top: 12px; z-index: 3;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(8px);
}
.ba-badge-before { left: 12px; background: rgba(17, 24, 35, 0.86); color: #f6d591; border: 1px solid rgba(242, 200, 91, 0.35); }
.ba-badge-after { right: 12px; background: rgba(15, 110, 184, 0.92); color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
  width: 3px; margin-left: -1.5px; background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(242, 200, 91, 0.8);
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-bright); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48), 0 0 0 4px rgba(8, 13, 21, 0.7);
}

/* ==========================================================================
   SECCIÓN VARIADA 02: IMPERMEABILIZACIONES CON SELECTOR DE SISTEMA (DÍPTICO LIMPIO)
   ========================================================================== */
.tab-bar {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  padding: 6px; border-radius: 16px;
  background: var(--stone-2); border: 1px solid var(--line-light);
  margin-bottom: 30px;
}
.tab-bar button {
  padding: 11px 20px; border-radius: 12px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-muted); font-weight: 700; font-size: 0.92rem;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.tab-bar button[aria-selected="true"] {
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(17, 24, 35, 0.5);
}

.diptych-panel {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: 28px; align-items: start;
}
.diptych-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.clean-figure {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-light); box-shadow: var(--shadow-light);
}
.clean-figure .cf-img { aspect-ratio: 4 / 3; overflow: hidden; background: #e3ddd1; }
.clean-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.clean-figure:hover img { transform: scale(1.04); }
.clean-figure figcaption {
  padding: 14px 16px; font-size: 0.88rem; color: var(--ink-muted); line-height: 1.45;
}
.clean-figure figcaption strong {
  display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; margin-bottom: 3px;
}

.diptych-info {
  background: #fff; border-radius: var(--radius-xl); padding: 28px;
  border: 1px solid var(--line-light); box-shadow: var(--shadow-light);
}
.diptych-info h3 { font-size: 1.65rem; color: var(--ink); margin-bottom: 12px; }
.diptych-info p { color: var(--ink-muted); margin: 0 0 18px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 0.94rem; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.spec-list li::before { content: "✓"; color: var(--cobalt); font-weight: 800; }

/* ==========================================================================
   SECCIÓN VARIADA 03: ESTRUCTURAS METÁLICAS (PROCESO -> TERMINADO + SHOWCASE)
   ========================================================================== */
.steel-showcase {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px;
}
.steel-card {
  grid-column: span 4; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card-solid); border: 1px solid var(--line-dark);
  display: flex; flex-direction: column;
}
.steel-card.wide { grid-column: span 6; }
.steel-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1019; }
.steel-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.steel-card:hover .steel-media img { transform: scale(1.04); }
.steel-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.steel-body small {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px;
}
.steel-body h3 { font-size: 1.28rem; color: #fff; margin-bottom: 8px; }
.steel-body p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* Toggle Proceso / Obra Terminada (Casa Modular + Escalera Pintura) */
.phase-toggle-box { position: relative; }
.phase-img-alt { position: absolute; inset: 0; opacity: 0; }
.phase-toggle-box[data-phase="despues"] .phase-img-alt { opacity: 1; }
.phase-switch {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(8, 13, 21, 0.85); border: 1px solid rgba(255, 255, 255, 0.18);
  position: absolute; right: 12px; top: 12px; z-index: 3; backdrop-filter: blur(8px);
}
.phase-switch button {
  padding: 6px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #cfdcf0; font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.phase-switch button[aria-pressed="true"] { background: var(--gold-bright); color: var(--ink); }

/* ==========================================================================
   SECCIÓN VARIADA 04: PINTURA INDUSTRIAL (FRANJA CHEVRÓN) + TORNIQUETES
   ========================================================================== */
.hazard-stripe {
  height: 10px; width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold-bright) 0 18px,
    #141923 18px 36px
  );
}
.coating-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.access-band {
  margin-top: 56px;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4.5vw, 52px); align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #121c2c, #0a1019);
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-dark);
  color: var(--text-main);
}
.access-photos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.access-photos figure {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-dark);
  aspect-ratio: 4 / 5; background: #0d141f;
}
.access-photos figure img { width: 100%; height: 100%; object-fit: cover; }
.access-photos .stack-two { display: grid; gap: 14px; }
.access-photos .stack-two figure { aspect-ratio: 4 / 3.1; }

/* ==========================================================================
   BLOQUE EDITORIAL DE SUBPÁGINAS (FOTOS 100% LIMPIAS, CAPTION DEBAJO)
   ========================================================================== */
.story-row {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.story-row + .story-row { margin-top: clamp(60px, 7.5vw, 104px); }
.story-row.rev .story-media { order: 2; }

.story-media { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; align-items: start; }
.story-stage {
  border-radius: var(--radius-xl); overflow: hidden;
  background: #fff; border: 1px solid var(--line-light);
  box-shadow: var(--shadow-light);
}
.sec-dark .story-stage, .sec-steel .story-stage {
  background: var(--bg-card-solid); border-color: var(--line-dark); box-shadow: var(--shadow-dark);
}
.story-img-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #131c29; }
.story-img-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s var(--ease), transform 0.6s var(--ease);
}
.story-stage:hover .story-img-frame img { transform: scale(1.03); }
/* Caption SIEMPRE DEBAJO de la foto, nunca tapándola */
.story-cap {
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.88rem; line-height: 1.4; color: var(--ink-muted);
  border-top: 1px solid var(--line-light);
}
.story-cap b {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--cobalt);
  background: rgba(15, 110, 184, 0.1); padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.sec-dark .story-cap, .sec-steel .story-cap { color: var(--text-muted); border-top-color: var(--line-dark); }
.sec-dark .story-cap b, .sec-steel .story-cap b { color: var(--gold-bright); background: rgba(212, 163, 59, 0.14); }

.story-thumbs { display: flex; flex-direction: column; gap: 10px; }
.story-thumbs button {
  padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 1 / 1; cursor: pointer; background: #1c2636;
  opacity: 0.62; transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
}
.story-thumbs button:hover { opacity: 0.92; transform: translateX(-2px); }
.story-thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--gold); }
.story-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.story-num {
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c, var(--cobalt)); margin-bottom: 10px;
}
.story-copy h3 { font-size: clamp(1.75rem, 3.1vw, 2.65rem); margin-bottom: 16px; }
.story-copy p { margin: 0 0 16px; max-width: 54ch; color: var(--ink-muted); }
.story-bullets { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 0.94rem; }
.story-bullets li { display: flex; align-items: flex-start; gap: 10px; }
.story-bullets li::before { content: "▸"; color: var(--c, var(--gold)); font-weight: 800; line-height: 1.4; }

/* ==========================================================================
   PROCESO EN 4 PASOS (BLUEPRINT CLARO) & COTIZADOR WHATSAPP
   ========================================================================== */
.blueprint-sec {
  background:
    linear-gradient(rgba(15, 110, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 110, 184, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f6f4ee 0%, #ebe6da 100%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  color: var(--ink);
}
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step-card {
  padding: 24px 22px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line-light);
  box-shadow: 0 18px 36px -26px rgba(17, 24, 35, 0.22);
  display: flex; flex-direction: column; gap: 10px;
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--gold-bright);
}
.step-pill {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  color: var(--cobalt); text-transform: uppercase; letter-spacing: 0.06em;
}
.step-card h3 { font-size: 1.22rem; color: var(--ink); margin-top: 4px; }
.step-card p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }

.quote-shell {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 28px;
  padding: clamp(24px, 4vw, 42px); border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--line-dark); box-shadow: var(--shadow-dark);
}
.q-group { margin-bottom: 20px; }
.q-label {
  display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 10px;
}
.q-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.q-pills button {
  padding: 10px 15px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04);
  color: #dce7f7; font-weight: 600; font-size: 0.89rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.q-pills button:hover { border-color: rgba(242, 200, 91, 0.55); }
.q-pills button[aria-pressed="true"] { background: var(--gold-bright); color: var(--ink); border-color: var(--gold-bright); }
.q-input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line-dark); background: rgba(8, 13, 21, 0.78);
  color: #fff; font: inherit; font-size: 0.94rem;
}
.q-input:focus { outline: none; border-color: var(--gold-bright); }
.quote-preview {
  padding: 24px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0d1624, #080e17);
  border: 1px solid rgba(212, 163, 59, 0.3);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
}
.wa-bubble {
  padding: 16px 18px; border-radius: 16px 16px 4px 16px;
  background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.34);
  color: #e7faee; font-size: 0.92rem; line-height: 1.5; white-space: pre-line;
}
.quote-meta { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================================================
   FAQ, SUBPÁGINAS, GALERÍA & LIGHTBOX
   ========================================================================== */
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-light); background: #fff; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--gold-deep); transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 24px 22px; font-size: 0.96rem; color: var(--ink-muted); }

.page-hero {
  position: relative; min-height: 74vh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 0 60px; overflow: hidden; background: var(--bg-deep);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.36; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(var(--accent-rgb, 15, 110, 184), 0.34), transparent 55%),
    linear-gradient(180deg, rgba(8, 13, 21, 0.5) 0%, rgba(8, 13, 21, 0.86) 66%, var(--bg-deep) 100%);
}
.page-hero-inner { position: relative; z-index: 2; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.76rem; color: #b9cae3; margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--gold-bright); }
.page-hero h1 { font-size: clamp(2.35rem, 5.6vw, 4.7rem); max-width: 15ch; color: #fff; margin-bottom: 16px; }
.page-hero .sub-lead { font-size: clamp(1rem, 1.45vw, 1.2rem); color: #cedbf0; max-width: 58ch; margin: 0 0 26px; }
.hero-specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.hero-specs li {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(8, 13, 21, 0.74); border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono); font-size: 0.75rem; color: #eef4ff;
}

.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gal-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card-solid); border: 1px solid var(--line-dark);
  display: flex; flex-direction: column;
}
.gal-card button {
  position: relative; border: 0; padding: 0; background: #0d1522;
  aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; width: 100%;
}
.gal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gal-card button:hover img { transform: scale(1.06); }
.gal-card .zoom-pill {
  position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(8, 13, 21, 0.78); color: #fff; font-family: var(--font-mono); font-size: 0.7rem;
}
.gal-card figcaption { padding: 15px 18px; font-size: 0.91rem; color: var(--text-muted); }
.gal-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.04rem; color: #fff; margin-bottom: 4px; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 9, 15, 0.94); backdrop-filter: blur(12px);
  display: grid; place-items: center; padding: 24px;
}
.lightbox figure { max-width: min(1080px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-height: 76vh; max-width: 100%; border-radius: 16px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
.lightbox figcaption { color: #dce7f7; font-size: 0.95rem; text-align: center; max-width: 68ch; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(17, 24, 35, 0.85);
  color: #fff; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: var(--gold-bright); color: var(--ink); border-color: var(--gold-bright); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

.cross-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cross-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; border: 1px solid var(--line-dark);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.cross-card:hover { transform: translateY(-4px); border-color: var(--gold-bright); }
.cross-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.44; transition: transform 0.6s var(--ease), opacity 0.3s; }
.cross-card:hover img { transform: scale(1.06); opacity: 0.58; }
.cross-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 21, 0.15) 0%, rgba(8, 13, 21, 0.92) 100%); }
.cross-card > * { position: relative; z-index: 2; }
.cross-card small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold-bright); text-transform: uppercase; letter-spacing: 0.1em; }
.cross-card h3 { font-size: 1.35rem; color: #fff; margin: 6px 0; }
.cross-card span { font-size: 0.88rem; color: #d5e2f5; }

/* ==========================================================================
   CIERRE & FOOTER
   ========================================================================== */
.closing-cta {
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(212, 163, 59, 0.16), transparent 65%), var(--bg-deep);
  border-top: 1px solid var(--line-dark);
}
.closing-cta h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); max-width: 17ch; margin: 0 auto 16px; }
.closing-cta p { color: var(--text-muted); max-width: 52ch; margin: 0 auto 28px; font-size: 1.06rem; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.site-footer {
  background: #050910; border-top: 1px solid var(--line-dark);
  padding: 56px 0 88px; color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-logo { width: 132px; margin-bottom: 14px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 600; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark); color: #e6eefb; transition: border-color 0.2s, background 0.2s;
}
.social-pill:hover { border-color: var(--gold-bright); background: rgba(212, 163, 59, 0.14); }
.footer-bottom {
  padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem;
}

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: #16a34a; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 16px 38px -8px rgba(22, 163, 74, 0.6); transition: transform 0.25s var(--ease), background 0.2s;
}
.wa-float:hover { transform: translateY(-3px); background: #15803d; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1060px) {
  .main-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: rgba(8, 13, 21, 0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch; gap: 6px; padding: 18px 22px 26px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 16px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .steps-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-jlg { height: 195vh; }
  .hero-sticky { align-items: center; }
  .hero-in { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy h1 { font-size: clamp(1.95rem, 8.2vw, 2.9rem); margin-bottom: 12px; }
  .hero-lead { font-size: 0.94rem; margin-bottom: 16px; }
  .hero-chips { display: none; }
  .roof-mosaic { max-width: 330px; }
  .rm-badge { width: 54px; height: 54px; border-radius: 14px; padding: 7px; }
  .anatomy-grid, .compare-grid, .diptych-panel, .access-band, .quote-shell, .story-row { grid-template-columns: 1fr; }
  .story-row.rev .story-media { order: 0; }
  .story-media { grid-template-columns: 1fr; }
  .story-thumbs { flex-direction: row; }
  .story-thumbs button { width: 74px; flex: none; }
  .roof-card, .roof-card.featured, .steel-card, .steel-card.wide { grid-column: span 12; }
  .coating-grid, .gal-grid, .cross-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .header-inner { gap: 10px; }
  .brand-lockup { gap: 9px; min-width: 0; flex: 1 1 auto; }
  .brand-mark-box { width: 38px; height: 38px; padding: 4px; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { display: none; }
  .header-actions .btn-sm { padding: 0 12px; min-height: 38px; font-size: 0.78rem; gap: 6px; }
  .nav-toggle { width: 40px; height: 40px; flex-shrink: 0; }
  .diptych-photos, .coating-grid, .steps-grid, .gal-grid, .cross-grid, .footer-grid, .access-photos { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .ba-slider { aspect-ratio: 16 / 10; }
  .ba-badge { top: 10px; padding: 4px 9px; font-size: 0.62rem; letter-spacing: 0.05em; }
  .ba-badge-before { left: 10px; }
  .ba-badge-after { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-jlg { height: auto; padding: calc(var(--nav-h) + 56px) 0 64px; }
  .hero-sticky { position: relative; height: auto; padding-top: 0; }
  .hero-stage0, .scroll-hint { display: none; }
  .hero-copy, .roof-mosaic { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .mq-track, .mq-track.rev { animation: none; }
  .rv { opacity: 1; transform: none; }
}
