/* =========================================================
   EECON DILIGENCE, S.C. — hoja de estilos
   Minimalismo técnico B2B / arquitectónico industrial
   ========================================================= */

@import url("../fonts/fonts.css?v=3");

:root{
  /* Paleta de marca */
  --lime:        #C2D02A;
  --lime-dark:   #6F7B0E;
  --carbon:      #2A2C2E;
  --gray-mark:   #6C6C6C;
  --gray-body:   #5A5A5A;
  --gray-soft:   #F5F5F0;
  --white:       #FFFFFF;

  /* Derivados */
  --carbon-80:   rgba(42,44,46,.8);
  --carbon-60:   rgba(42,44,46,.6);
  --line:        rgba(42,44,46,.16);
  --line-soft:   rgba(42,44,46,.1);
  --line-on-dark: rgba(255,255,255,.14);
  --surface:     #FFFFFF;
  --surface-alt: #F5F5F0;
  --surface-dim: #E7E7E1;
  --lime-line:   rgba(194,208,42,.45);

  /* Tipografía */
  --font: 'Poppins', -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: 'Poppins', -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: 'Inter', 'Poppins', -apple-system, "Segoe UI", Arial, sans-serif;
  /* Técnicas (secciones 05–09): códigos, ejes y rótulos en monoespaciada;
     cifras y numerales grandes en condensada industrial */
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --font-display: 'Barlow Condensed', 'Poppins', 'Arial Narrow', sans-serif;
  --fs-eyebrow: .72rem;
  --fs-body: 1rem;

  /* Espaciado */
  --container-max: 1280px;
  --pad-inline: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 9vw, 120px);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Movimiento */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-s: 400ms;
  --dur-m: 600ms;
  --dur-l: 800ms;

  color-scheme: light;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
body{
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--gray-body);
  background: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
svg{ display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input, select, textarea{ font-family: var(--font-body); font-size: 1rem; }
h1,h2,h3,h4,h5,h6{ margin: 0; font-family: var(--font-heading); font-weight: 700; color: var(--carbon); letter-spacing: -.015em; }
p{ margin: 0; }

/* Texto corto de interfaz (etiquetas, botones, navegación) conserva la
   tipografía de marca; el cuerpo de lectura usa Inter para más contraste. */
.eyebrow, .tag, .chip-label, .nav-logo-text, .nav-links a, .mobile-menu a,
.btn, .section-index, .stat-number, .nav-cta, .hero-cover-tagline,
.form-label, .badge, label{ font-family: var(--font-heading); }

.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--carbon); color: var(--white); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 2px solid var(--lime-dark);
  outline-offset: 3px;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}
section{ position: relative; padding-block: var(--section-pad); }
.section-alt{ background: var(--white); }
.section-dark{ background: var(--carbon); color: rgba(255,255,255,.72); }
.section-dark h2, .section-dark h3, .section-dark h4{ color: var(--white); }

/* Rejilla técnica: numeración de sección en el margen */
.section-frame{ position: relative; }
.section-index{
  position: absolute;
  top: var(--section-pad);
  right: var(--pad-inline);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--gray-body);
  opacity: .45;
  font-weight: 500;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 1100px){
  .section-index{ display: block; }
}
.section-dark .section-index{ color: var(--white); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lime-dark);
  margin-bottom: 16px;
}
.section-dark .eyebrow{ color: var(--lime); }

.chip{
  display: inline-block;
  width: 10px; height: 16px;
  background: var(--lime);
  transform: skewX(-18deg);
  flex-shrink: 0;
}

.section-head{
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2{
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-head p{ font-size: 1.05rem; line-height: 1.7; }
.section-dark .section-head p{ color: rgba(255,255,255,.68); }

.hairline{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--lime);
  color: var(--carbon);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(194,208,42,.55);
  background: #cddb3a;
}
.btn-secondary{
  background: transparent;
  border-color: var(--line);
  color: var(--carbon);
}
.btn-secondary:hover{
  border-color: var(--carbon);
  transform: translateY(-2px);
}
.section-dark .btn-secondary{
  border-color: var(--line-on-dark);
  color: var(--white);
}
.section-dark .btn-secondary:hover{ border-color: var(--white); }
.btn-block{ width: 100%; }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 22px;
  transition: padding var(--dur-m) var(--ease), background var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.navbar.is-scrolled{
  padding-block: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.navbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo{ display: flex; align-items: center; gap: 10px; }
.nav-logo img{ height: 28px; width: auto; }
.nav-logo-text{
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--carbon);
}
.nav-links{
  display: none;
  align-items: center;
  gap: 30px;
}
@media (min-width: 900px){
  .nav-links{ display: flex; }
}
.nav-links a{
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--carbon);
  position: relative;
  padding-block: 4px;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--lime);
  transition: width var(--dur-s) var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after{ width: 100%; }
.nav-links a.is-active{ color: var(--lime-dark); }
.nav-cta{ display: none; }
@media (min-width: 900px){ .nav-cta{ display: inline-flex; } }

.nav-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--lime);
  z-index: 101;
  width: 0%;
  transition: width 100ms linear;
}

.nav-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  padding: 0;
}
@media (min-width: 900px){ .nav-toggle{ display: none; } }
.nav-toggle span{
  display: block; height: 2px; width: 26px;
  background: var(--carbon);
  margin-inline: auto;
  transition: transform var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
}
.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); }

.mobile-menu{
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99;
  padding: 110px var(--pad-inline) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-m) var(--ease), opacity var(--dur-m) var(--ease), visibility var(--dur-m);
}
.mobile-menu.is-open{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu a{
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--carbon);
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn{ margin-top: 24px; }
@media (min-width: 900px){ .nav-toggle, .mobile-menu{ display: none; } }

/* =========================================================
   REVEAL / SCROLL ANIMATIONS
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-m) var(--ease), transform var(--dur-m) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

.stagger > *{ --reveal-delay: calc(var(--i, 0) * 90ms); }

.hero-anim{
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn .75s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes heroIn{
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .hero-anim{ opacity: 1; transform: none; animation: none; }
}

/* =========================================================
   HERO — PORTADA (pantalla completa)
   ========================================================= */
.hero-cover{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--carbon);
  overflow: hidden;
  padding: clamp(90px, 12vh, 140px) var(--pad-inline) clamp(70px, 10vh, 110px);
}
.hero-cover-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-cover-scrim{
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(15,16,14,.5) 0%, rgba(15,16,14,.72) 70%, rgba(10,11,10,.85) 100%),
    linear-gradient(180deg, rgba(10,11,10,.55) 0%, rgba(10,11,10,.35) 40%, rgba(10,11,10,.6) 100%);
}
.hero-cover-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
}
.hero-cover-logo{
  width: clamp(220px, 30vw, 440px);
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.55)) drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.hero-cover .eyebrow{ color: var(--lime); }
.hero-cover-tagline{
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.95);
  font-weight: 600;
  line-height: 1.5;
  max-width: 46ch;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
/* Centrado sin transform: la animación .hero-anim anima transform y borraría un translateX(-50%) */
.hero-scroll-cue{
  position: absolute;
  z-index: 1;
  bottom: clamp(20px, 4vh, 44px);
  left: 0;
  right: 0;
  width: max-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero-scroll-cue span{ margin-right: -.16em; }
.hero-scroll-cue svg{
  width: 18px;
  height: 18px;
  color: var(--lime);
  animation: scrollCueBounce 1.8s ease-in-out infinite;
}
@keyframes scrollCueBounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-scroll-cue svg{ animation: none; }
}

/* =========================================================
   PARA QUIÉNES TRABAJAMOS
   ========================================================= */
.profiles-grid{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px){ .profiles-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px){ .profiles-grid{ grid-template-columns: repeat(5, 1fr); } }
.profile-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.profile-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -18px rgba(42,44,46,.25);
  border-color: var(--lime-line);
}
.profile-icon{
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(194,208,42,.15);
  color: var(--lime-dark);
}
.profile-card h3{
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--carbon);
}

/* =========================================================
   TRAYECTORIA — NUBE DE LOGOS DE CLIENTES
   ========================================================= */
.logo-cloud{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 18px;
  padding-bottom: 14px;
}
/* 25 logos: cuadrícula 5x5 en escritorio; cuando la fila no cuadra, el último logo queda centrado */
.logo-cloud > li:last-child:nth-child(odd){ grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
@media (min-width: 640px){
  .logo-cloud{ grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
  .logo-cloud > li:last-child:nth-child(odd){ grid-column: auto; justify-self: stretch; width: auto; }
  .logo-cloud > li:last-child:nth-child(4n+1){ grid-column: 1 / -1; justify-self: center; width: calc((100% - 66px) / 4); }
}
@media (min-width: 900px){
  .logo-cloud{ grid-template-columns: repeat(5, 1fr); }
  .logo-cloud > li:last-child:nth-child(4n+1){ grid-column: auto; justify-self: stretch; width: auto; }
}

/* Tarjeta flotante: relieve superior, canto inferior con grosor y sombra difusa en capas */
.logo-tile{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: 18px 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F6F1 100%);
  border-radius: 20px;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,1),
    inset 0 -2px 3px rgba(42,44,46,.05),
    0 0 0 1px rgba(42,44,46,.05),
    0 4px 0 #D9DAD2,
    0 6px 8px -2px rgba(42,44,46,.12),
    0 14px 22px -8px rgba(42,44,46,.18),
    0 28px 40px -16px rgba(42,44,46,.22);
  transition: box-shadow var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
@media (min-width: 640px){ .logo-tile{ height: 116px; padding: 20px 16px; } }
@media (min-width: 900px){ .logo-tile{ height: 128px; padding: 18px 20px; } }
.logo-tile:hover{
  transform: translateY(-7px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,1),
    inset 0 -2px 3px rgba(42,44,46,.05),
    0 0 0 1px rgba(194,208,42,.55),
    0 6px 0 #C9CBB9,
    0 10px 12px -2px rgba(42,44,46,.14),
    0 22px 32px -10px rgba(42,44,46,.24),
    0 40px 56px -20px rgba(42,44,46,.28);
}
.logo-tile:active{
  transform: translateY(-1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,1),
    0 0 0 1px rgba(42,44,46,.06),
    0 2px 0 #D9DAD2,
    0 6px 10px -4px rgba(42,44,46,.2);
}
/* Logos cuyo archivo trae fondo de color: la tarjeta toma exactamente ese color (--tile) para no dejar costuras */
.logo-tile.is-color{
  background: var(--tile);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.18),
    inset 0 -2px 3px rgba(0,0,0,.22),
    0 0 0 1px rgba(0,0,0,.25),
    0 4px 0 var(--tile-edge),
    0 6px 8px -2px rgba(20,22,30,.30),
    0 14px 22px -8px rgba(20,22,30,.35),
    0 28px 40px -16px rgba(20,22,30,.40);
}
.logo-tile.is-color::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(0,0,0,.10) 100%);
  pointer-events: none;
}
.logo-tile.is-color:hover{
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.22),
    inset 0 -2px 3px rgba(0,0,0,.22),
    0 0 0 1px rgba(194,208,42,.6),
    0 6px 0 var(--tile-edge),
    0 10px 12px -2px rgba(20,22,30,.35),
    0 22px 32px -10px rgba(20,22,30,.40),
    0 40px 56px -20px rgba(20,22,30,.45);
}
.logo-tile.is-color:active{
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.18),
    0 0 0 1px rgba(0,0,0,.25),
    0 2px 0 var(--tile-edge),
    0 6px 10px -4px rgba(20,22,30,.35);
}
.logo-tile img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--dur-s) var(--ease);
}
.logo-tile.is-color img{ mix-blend-mode: normal; }
.logo-tile:hover img{ transform: scale(1.06); }

/* Volteo 3D en cascada: una sola vez, al entrar la cuadrícula en pantalla.
   Solo se oculta si el JS está activo (.js-flip); el retraso por fila/columna lo fija main.js. */
.logo-cloud.js-flip > li{
  opacity: 0;
  transform: perspective(1000px) rotateY(-90deg) scale(.95);
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.logo-cloud.js-flip.is-revealed > li{
  opacity: 1;
  transform: perspective(1000px) rotateY(0deg) scale(1);
  transition: opacity .7s cubic-bezier(.165,.84,.44,1), transform .95s cubic-bezier(.165,.84,.44,1);
}
.logo-cloud.js-flip.is-done > li{
  transform: none;
  transition: none;
  will-change: auto;
}

.clients-note{
  text-align: center;
  font-size: .78rem;
  color: var(--gray-body);
  opacity: .7;
  margin-top: 40px;
}

/* =========================================================
   MAPA DE SERVICIOS — GALERÍA ELÁSTICA
   ========================================================= */
.elastic-gallery{
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 560px;
  margin-top: 56px;
}
@media (min-width: 760px){
  .elastic-gallery{ flex-direction: row; gap: 14px; height: 540px; }
}

.elastic-item{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-on-dark);
  background: var(--carbon);
  flex: 1 1 0;
  transition: flex 700ms cubic-bezier(.22,.61,.36,1);
}
.elastic-item.is-active{ flex: 4 1 0; }
.elastic-item:focus-visible{ outline: 2px solid var(--lime); outline-offset: 2px; }

.elastic-item-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.5);
  transform: scale(1.08);
  transition: filter 700ms var(--ease), transform 1000ms var(--ease);
}
.elastic-item.is-active .elastic-item-bg{ filter: brightness(1); transform: scale(1); }
.elastic-item:not(.is-active):hover .elastic-item-bg{ filter: brightness(.7); }

.elastic-item-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,10,0) 25%, rgba(10,11,10,.6) 68%, rgba(10,11,10,.92) 100%);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.elastic-item.is-active .elastic-item-scrim{ opacity: 1; }

.elastic-item-index{
  position: absolute;
  top: 14px; left: 16px;
  font-family: var(--font-heading);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255,255,255,.7);
  z-index: 1;
}

.elastic-item-collapsed{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  color: #fff;
  text-align: center;
  opacity: 1;
  transition: opacity 350ms var(--ease);
}
.elastic-item.is-active .elastic-item-collapsed{ opacity: 0; pointer-events: none; }
@media (min-width: 760px){
  .elastic-item-collapsed{
    inset: auto; bottom: 26px; left: 0; right: 0;
    writing-mode: vertical-rl;
    font-size: .85rem;
    letter-spacing: .14em;
  }
}

.elastic-item-content{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms var(--ease) 120ms, transform 400ms var(--ease) 120ms;
}
.elastic-item.is-active .elastic-item-content{ opacity: 1; transform: translateY(0); }
@media (min-width: 760px){ .elastic-item-content{ padding: 30px; } }

.elastic-item-tag{
  font-family: var(--font-heading);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--carbon);
  background: var(--lime);
  border-radius: 999px;
  padding: 5px 12px;
}
.elastic-item-title{
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  font-size: 1.1rem;
}
@media (min-width: 760px){ .elastic-item-title{ font-size: 1.7rem; } }
.elastic-item-desc{
  font-family: var(--font-body);
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  line-height: 1.5;
  max-width: 32ch;
}
.elastic-item-cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lime);
}
.elastic-item-cta svg{ width: 13px; height: 13px; transition: transform var(--dur-s) var(--ease); }
.elastic-item:hover .elastic-item-cta svg{ transform: translate(2px,-2px); }

@media (prefers-reduced-motion: reduce){
  .elastic-item, .elastic-item-bg, .elastic-item-scrim, .elastic-item-content, .elastic-item-collapsed{ transition: none; }
}

.services-closer{
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 1.05rem;
  color: #fff;
  max-width: 62ch;
}

/* =========================================================
   SECCIONES 05–08 — BASE COMPARTIDA
   Revelados solo con transform/opacity/clip-path; todo tiene versión estática
   con prefers-reduced-motion (ver final del bloque).
   ========================================================= */
.x-sec{ overflow-x: clip; }
/* En 05–09 la franja de datos de la hoja ya indica la sección */
.x-sec > .section-index{ display: none; }
.x-sec > .container{ position: relative; z-index: 1; }
.sec-num{
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: calc(var(--pad-inline) - 1vw);
  z-index: 0;
  font: 700 clamp(9rem, 25vw, 23rem)/.78 var(--font-display);
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(42,44,46,.09);
  pointer-events: none;
  user-select: none;
  transform: translate3d(0, var(--py, 0px), 0);
}
.section-dark .sec-num{ -webkit-text-stroke-color: rgba(255,255,255,.08); }

.x-sub{
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.015em;
}

/* Encabezado tipo "hoja técnica": franja de datos en monoespaciada sobre
   una línea que se traza, título grande a la izquierda y entrada a la derecha */
.sheet-head{ position: relative; z-index: 1; margin-bottom: clamp(44px, 6vw, 80px); }
.sheet-meta{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  font: 500 .69rem/1 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray-mark);
}
.sheet-meta .sm-rule{
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--carbon);
  transform-origin: 0 50%;
}
.sheet-meta > span{ padding: 13px 18px 11px; border-left: 1px solid var(--line); white-space: nowrap; }
.sheet-meta > span:nth-child(2){ padding-left: 0; border-left: 0; }
.sheet-meta .sm-code{ color: var(--carbon); font-weight: 600; }
.sheet-meta .sm-code b{ color: var(--lime-dark); font-weight: 600; }
.sheet-meta .sm-end{ margin-left: auto; }
.section-dark .sheet-meta{ color: rgba(255,255,255,.5); border-bottom-color: var(--line-on-dark); }
.section-dark .sheet-meta > span{ border-left-color: var(--line-on-dark); }
.section-dark .sheet-meta .sm-rule{ background: rgba(255,255,255,.85); }
.section-dark .sheet-meta .sm-code{ color: #fff; }
.section-dark .sheet-meta .sm-code b{ color: var(--lime); }
.sheet-body{ display: grid; gap: 18px 64px; align-items: end; }
@media (min-width: 1000px){ .sheet-body{ grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.sheet-body h2{ font-size: clamp(1.85rem, 3.7vw, 3.05rem); line-height: 1.07; letter-spacing: -.028em; }
.sheet-body > p{ font-size: 1.02rem; line-height: 1.7; max-width: 48ch; padding-bottom: 6px; }
.section-dark .sheet-body > p{ color: rgba(255,255,255,.66); }
@media (max-width: 699px){
  .sheet-meta > span{ padding: 10px 12px 9px; font-size: .62rem; }
  .sheet-meta > span:nth-child(n+5){ display: none; }
  .sheet-meta .sm-end{ margin-left: 0; }
}

/* Pie de figura técnico: FIG. 00.0 — título — etiqueta */
.fig-cap{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font: 500 .66rem/1.2 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray-mark);
}
.fig-cap .fig-no{ color: var(--carbon); font-weight: 600; white-space: nowrap; }
.fig-cap .fig-t{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fig-cap .fig-tag{ margin-left: auto; flex-shrink: 0; padding: 4px 7px 3px; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.section-dark .fig-cap, .on-dark .fig-cap{ color: rgba(255,255,255,.45); }
.section-dark .fig-cap .fig-no, .on-dark .fig-cap .fig-no{ color: var(--lime); }
.section-dark .fig-cap .fig-tag, .on-dark .fig-cap .fig-tag{ border-color: var(--line-on-dark); }

/* Marcas de corte en las esquinas (como en una lámina impresa) */
.crop{
  --cm: rgba(42,44,46,.38);
  background-image:
    linear-gradient(var(--cm), var(--cm)), linear-gradient(var(--cm), var(--cm)),
    linear-gradient(var(--cm), var(--cm)), linear-gradient(var(--cm), var(--cm)),
    linear-gradient(var(--cm), var(--cm)), linear-gradient(var(--cm), var(--cm)),
    linear-gradient(var(--cm), var(--cm)), linear-gradient(var(--cm), var(--cm));
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px, 14px 1px, 1px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
.section-dark .crop, .on-dark .crop, .crop.on-dark{ --cm: rgba(194,208,42,.55); }

/* Retícula de plano muy tenue para fondos de sección */
.grid-bg{
  background-image:
    linear-gradient(rgba(42,44,46,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,44,46,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* Código técnico en línea (R-01, M-01, P-01…) */
.code{ font: 600 .7rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Títulos: palabra por palabra, desde abajo de una máscara */
.split-reveal .w{
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.split-reveal .w > span{
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform .95s cubic-bezier(.19,1,.22,1);
  transition-delay: calc(var(--w, 0) * 55ms);
}
.split-reveal.is-split-in .w > span{ transform: none; }

/* Paneles que se "abren" al entrar a pantalla */
.reveal-clip{
  clip-path: inset(7% 5% 7% 5% round 32px);
  transition: clip-path 1.2s cubic-bezier(.19,1,.22,1), opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-clip.is-visible{ clip-path: inset(0 0 0 0 round 0px); }

/* Brillo que sigue al cursor en tarjetas */
.spot{ position: relative; isolation: isolate; }
.spot::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(194,208,42,.16), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.spot:hover::before{ opacity: 1; }

/* =========================================================
   05 — PCA: ESCENA DE PLANO A PANTALLA COMPLETA
   La escena oscura crece desde una tarjeta hasta cubrir la pantalla (--x la
   controla main.js según el scroll); al abrirse, el plano se traza y los 8
   sistemas se iluminan una sola vez, dejando su rótulo fijo.
   ========================================================= */
.pca-x{ padding: 0; background: var(--white); }
.pca-x .section-index{ z-index: 4; top: 110px; }

.pca-scene{
  --x: 1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  padding: 84px 0 12px;
  color: rgba(255,255,255,.72);
  background:
    linear-gradient(rgba(194,208,42,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(194,208,42,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(ellipse 85% 75% at 55% 58%, #303335 0%, #1B1D1F 82%);
  clip-path: inset(calc((1 - var(--x)) * 10vh) calc((1 - var(--x)) * 6vw) 0 round calc((1 - var(--x)) * 48px) calc((1 - var(--x)) * 48px) 0 0);
  overflow: hidden;
}
.pca-sweep{
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 3;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C2D02A 18%, #C2D02A 82%, transparent);
  box-shadow: 0 0 22px 5px rgba(194,208,42,.4);
  opacity: 0;
  pointer-events: none;
}
.pca-scene.is-open .pca-sweep{ animation: pcaSweep 1.4s cubic-bezier(.65,0,.35,1) both; }
@keyframes pcaSweep{
  0%{ opacity: 1; transform: translateY(0); }
  88%{ opacity: 1; }
  100%{ opacity: 0; transform: translateY(100vh); }
}

.pca-scene-head{
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 48px;
}
.pca-title{ flex: 1 1 460px; min-width: 0; }
.pca-title .eyebrow{ margin-bottom: 8px; }
.pca-title h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; margin: 0; }
.deliver-lead{ margin-top: 10px; max-width: 62ch; font-size: .98rem; line-height: 1.6; color: rgba(255,255,255,.66); }
.pca-title p{ font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.66); max-width: 62ch; }

/* Cuadro de datos de la lámina (como el rótulo de un plano) */
.pca-tb{
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, auto);
  margin: 0;
  border: 1px solid rgba(194,208,42,.32);
  border-radius: 6px;
  background: rgba(15,17,18,.55);
}
.tb-cell{ padding: 9px 18px 11px 14px; min-width: 0; }
.tb-cell + .tb-cell{ border-left: 1px solid rgba(194,208,42,.22); }
.tb-cell dt{ font: 500 .6rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.tb-cell dd{ margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.tb-cell b{ font: 600 clamp(1.7rem, 2.6vw, 2.25rem)/.9 var(--font-display); color: var(--lime); letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.tb-cell b.tb-txt{ font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.1; color: #fff; padding-top: 3px; }
.tb-cell small{ font: 400 .7rem/1.3 var(--font-body); color: rgba(255,255,255,.55); white-space: nowrap; }

/* Lectura en vivo de la inspección (esquina libre del plano) */
.pca-status{
  position: absolute;
  left: 1%;
  top: 0;
  z-index: 3;
  width: min(250px, 27%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  padding: 10px 12px 11px;
  border-radius: 6px;
  border: 1px solid rgba(194,208,42,.3);
  background: rgba(15,17,18,.72);
  font: 500 .64rem/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.ps-k{ display: inline-flex; align-items: center; gap: 8px; }
.ps-dot{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.pca-scene.is-open .ps-dot{ background: var(--lime); box-shadow: 0 0 0 0 rgba(194,208,42,.6); animation: psPing 1.6s ease-out infinite; }
.pca-scene.is-done .ps-dot{ animation: none; }
@keyframes psPing{ 0%{ box-shadow: 0 0 0 0 rgba(194,208,42,.55); } 100%{ box-shadow: 0 0 0 9px rgba(194,208,42,0); } }
.ps-n{ color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.ps-n b{ color: var(--lime); font-weight: 600; }
.ps-t{ grid-column: 1 / -1; font: 600 .82rem/1.25 var(--font-heading); letter-spacing: 0; text-transform: none; color: #fff; min-height: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-bar{ grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.ps-bar i{ display: block; height: 100%; background: var(--lime); transform: scaleX(var(--ps, 0)); transform-origin: 0 50%; transition: transform .45s var(--ease); }

.pca-plan-wrap{
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px var(--pad-inline) 18px;
}
.pca-plan{ position: relative; width: 100%; aspect-ratio: 940 / 578; flex-shrink: 0; }
.pca-plan .scan-svg{ position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }

/* Plano técnico */
.scan-svg .bp-f{ fill: rgba(255,255,255,.028); stroke: rgba(222,230,212,.48); stroke-width: 1; stroke-linejoin: round; }
.scan-svg .bp-l{ fill: none; stroke: rgba(222,230,212,.44); stroke-width: 1; }
.scan-svg .bp-rib{ stroke: rgba(222,230,212,.18); }
.scan-svg .bp-dash{ stroke-dasharray: 6 6; }
.scan-svg .bp-x{ stroke: rgba(194,208,42,.26); stroke-width: 1; stroke-dasharray: 3 4; }
.scan-svg .bp-pad{ fill: rgba(194,208,42,.025); stroke: rgba(194,208,42,.3); stroke-dasharray: 4 6; }
.scan-svg .bp-axis{ stroke: rgba(194,208,42,.38); stroke-dasharray: 2 3; }
.scan-svg .bp-hid{ stroke: rgba(222,230,212,.2); stroke-dasharray: 4 4; }
.scan-svg .bp-bubble{ fill: #1E2022; stroke: rgba(194,208,42,.55); }
.scan-svg .bp-bubble-t{ fill: rgba(194,208,42,.9); font: 600 8.5px var(--font-mono); text-anchor: middle; }
.scan-svg .bp-f,
.scan-svg .bp-l,
.scan-svg .bp-x{ transition: fill .35s var(--ease), stroke .35s var(--ease), stroke-dashoffset 1.2s cubic-bezier(.65,0,.35,1); }
.scan-svg .sys.is-on,
.scan-svg .sys.is-hover{ filter: url(#bpGlow); }
.scan-svg .sys.is-on .bp-f,
.scan-svg .sys.is-hover .bp-f{ fill: rgba(194,208,42,.2); stroke: #C2D02A; }
.scan-svg .sys.is-on .bp-l,
.scan-svg .sys.is-hover .bp-l{ stroke: rgba(194,208,42,.95); }
.scan-svg .sys.is-on .bp-rib,
.scan-svg .sys.is-hover .bp-rib{ stroke: rgba(194,208,42,.55); }
.scan-svg .sys-x.is-on .bp-x,
.scan-svg .sys-x.is-hover .bp-x{ stroke: #C2D02A; stroke-dasharray: none; stroke-width: 1.8; }

/* Trazado del plano al abrirse la escena */
.pca-scene.js-draw .sys [pathLength]{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition-delay: 0s, 0s, calc(var(--sd, 0) * 70ms);
}
.pca-scene.js-draw.is-drawn .sys [pathLength]{ stroke-dashoffset: 0; }
.pca-scene.js-draw .bp-ctx{ opacity: 0; transition: opacity .9s var(--ease) .2s; }
.pca-scene.js-draw.is-drawn .bp-ctx{ opacity: 1; }

/* Marcadores y líneas guía */
.scan-pin{ opacity: 0; transition: opacity .3s var(--ease); }
.scan-pin.is-marked{ opacity: 1; }
.pin-dot{ fill: #C2D02A; }
.pin-cross{ fill: none; stroke: rgba(194,208,42,.9); stroke-width: 1.5; opacity: 0; transition: opacity .25s; }
.pin-ring{ fill: none; stroke: #C2D02A; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scan-pin.is-on .pin-cross{ opacity: 1; }
.scan-pin.is-on .pin-ring{ animation: pinPulse .95s ease-out both; }
@keyframes pinPulse{
  0%{ transform: scale(.45); opacity: 1; }
  100%{ transform: scale(2.4); opacity: 0; }
}
.pin-badge{ display: none; }
.pin-badge circle{ fill: #C2D02A; stroke: #1B1D1F; stroke-width: 4; }
.pin-badge text{ font: 700 28px var(--font-heading); fill: #1B1D1F; text-anchor: middle; }

.pl-line{ fill: none; stroke: rgba(194,208,42,.75); stroke-width: 1.3; }
.pca-scene.js-seq .pl-line{ stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease); }
.pca-scene.js-seq .pl-line.is-shown{ stroke-dashoffset: 0; }

/* Rótulos fijos de los 8 sistemas (texto real, con descripción al pasar el cursor) */
.pca-labels{ list-style: none; margin: 0; padding: 0; }
.pl{
  position: absolute;
  left: var(--lx);
  top: var(--ly);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 7px;
  background: rgba(18,20,22,.9);
  border: 1px solid rgba(194,208,42,.5);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.7);
  color: #fff;
  font: 600 clamp(11px, .95vw, 13.5px)/1.2 var(--font-heading);
  white-space: nowrap;
  transform: translate(10px, -50%);
  transform-origin: 0 50%;
  transition: opacity .4s var(--ease), scale .45s cubic-bezier(.34,1.56,.64,1), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.pl[data-side="left"]{ transform: translate(calc(-100% - 10px), -50%); transform-origin: 100% 50%; }
.pl-n{
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--carbon);
  font: 600 .78em/1 var(--font-mono);
  letter-spacing: .02em;
}
.pl-d{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 270px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(18,20,22,.97);
  border: 1px solid rgba(194,208,42,.35);
  color: rgba(255,255,255,.8);
  font: 400 .8rem/1.45 var(--font-body);
  white-space: normal;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.pl[data-side="left"] .pl-d{ left: auto; right: 0; }
.pl[data-tip="up"] .pl-d{ top: auto; bottom: calc(100% + 8px); transform: translateY(4px); }
.pl:hover,
.pl:focus-visible{ z-index: 5; border-color: var(--lime); background: #23250f; outline: none; }
.pl:hover .pl-d,
.pl:focus-visible .pl-d{ opacity: 1; transform: none; }
.pl.is-live{ border-color: var(--lime); box-shadow: 0 0 0 5px rgba(194,208,42,.2), 0 12px 30px -14px rgba(0,0,0,.7); }
.pca-scene.js-seq .pl{ opacity: 0; scale: .8; }
.pca-scene.js-seq .pl.is-shown{ opacity: 1; scale: 1; }

/* Resto de la sección (entregables) sobre fondo carbón */
.pca-rest{ position: relative; z-index: 1; background: var(--carbon); padding-block: clamp(64px, 8vw, 110px); }
.pca-rest .deliver{ margin-top: 0; }

/* ---------- Escenas 3D (Three.js): lienzo y capas de rótulos ---------- */
.e3d-host{ position: absolute; inset: 0; }
.e3d-canvas{ display: block; width: 100% !important; height: 100% !important; }

/* 05 en 3D: el render ocupa todo el ancho; el plano SVG queda como respaldo */
.pca-scene.is-3d .pca-plan-wrap{ padding: 0; }
.pca-scene.is-3d .pca-plan{ width: 100% !important; height: 100%; aspect-ratio: auto; }
.pca-plan.has-3d .scan-svg{ display: none; }
.pca-scene.is-3d .pca-status{ left: var(--pad-inline); top: 4px; }
.p3-lines{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.p3-line{ fill: none; stroke: rgba(194,208,42,.7); stroke-width: 1.2; opacity: 0; transition: opacity .45s var(--ease), stroke .3s var(--ease), stroke-width .3s var(--ease); }
.p3-line.is-shown{ opacity: 1; }
.p3-line.is-hot{ stroke: #C2D02A; stroke-width: 2; }
.p3-pins{ position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.p3-pin{ position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .35s var(--ease); }
.p3-pin.is-shown{ opacity: 1; }
.p3-pin::before{
  content: "";
  position: absolute;
  left: -5px; top: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(18,20,22,.75);
}
.p3-pin::after{
  content: "";
  position: absolute;
  left: -16px; top: -16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--lime);
  opacity: 0;
}
.p3-pin.is-on::after{ animation: p3Ping .95s ease-out both; }
@keyframes p3Ping{ from{ transform: scale(.4); opacity: 1; } to{ transform: scale(2.2); opacity: 0; } }
.p3-pin i{ display: none; }

/* 05 en video (render de Blender): el video cubre el recuadro y la capa de rótulos lo sigue */
.pca-vhost[hidden]{ display: none; }
.pca-video{ position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #2A2D30; }
.pca-vhost::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(27,29,31,.7) 0%, rgba(27,29,31,.12) 16%, rgba(27,29,31,0) 30%, rgba(27,29,31,0) 82%, rgba(27,29,31,.55) 100%);
}
.pca-scene.is-video .p3-lines,
.pca-scene.is-video .p3-pins{ z-index: 2; }
.pca-scene.is-video .p3-line{ stroke: rgba(194,208,42,.85); stroke-width: 1.5; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.75)); }
.pca-scene.is-video .p3-line.is-hot{ stroke: #D9E84A; stroke-width: 2.2; }
.p3-pin.is-hot::after{ animation: p3Ping .95s ease-out infinite; }
.pv-btn{
  position: absolute;
  right: var(--pad-inline);
  bottom: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(18,20,22,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 600 .66rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.pv-btn:hover, .pv-btn:focus-visible{ border-color: var(--lime); background: rgba(18,20,22,.9); outline: none; }
.pv-btn svg{ width: 11px; height: 11px; fill: var(--lime); }
@media (max-width: 959px){
  .pca-scene.is-video .pca-plan.has-3d .e3d-host{ height: 58vw; min-height: 210px; }
  .pv-btn{ right: 10px; bottom: 10px; padding: 7px 11px 7px 9px; font-size: .58rem; }
}
@media (max-width: 959px){
  .pca-scene.is-3d .pca-plan{ height: auto; }
  .pca-plan.has-3d .e3d-host{ position: relative; inset: auto; height: clamp(250px, 70vw, 460px); margin: 0 -12px; }
  .p3-lines{ display: none; }
  .p3-pin::before{ display: none; }
  .p3-pin i{
    position: absolute;
    left: -12px; top: -12px;
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--lime);
    border: 2px solid #17191b;
    color: #17191b;
    font: 700 .72rem/1 var(--font-mono);
    font-style: normal;
  }
  .pca-scene.is-3d .pca-status{ left: auto; top: auto; }
}

/* La sección 04 se aleja mientras la 05 la cubre (--t la controla main.js) */
#trayectoria > .container{
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--t, 0) * -3vh)) scale(calc(1 - var(--t, 0) * .06));
  opacity: calc(1 - var(--t, 0) * .6);
}

@media (max-width: 959px){
  .pca-scene{ height: auto; min-height: 0; padding: 88px 0 28px; }
  .pca-plan-wrap{ padding: 22px 12px 0; display: block; }
  .pca-plan{ aspect-ratio: auto; }
  .pca-plan .scan-svg{ position: static; height: auto; }
  .pl-lines{ display: none; }
  .scan-pin.is-marked .pin-badge{ display: block; }
  .scan-pin .pin-dot{ display: none; }
  .pca-labels{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 8px 0; }
  .pl{ position: static; transform: none; white-space: normal; border-radius: 14px; padding: 8px 10px 8px 7px; font-size: .8rem; }
  .pl[data-side="left"]{ transform: none; }
  .pl-d{ display: none; }
}
@media (max-width: 959px){
  .pca-status{ position: relative; left: auto; top: auto; width: auto; margin: 0 8px 14px; }
}
@media (max-width: 599px){
  .pca-tb{ width: 100%; grid-template-columns: 1fr 1fr; }
  .tb-wide{ grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid rgba(194,208,42,.22); }
  .tb-cell{ padding: 9px 12px 10px; }
  .tb-cell small{ white-space: normal; }
}

@media (prefers-reduced-motion: reduce){
  .pca-scene{ clip-path: none; }
  .pca-sweep{ display: none; }
  #trayectoria > .container{ transform: none; opacity: 1; }
  .scan-pin.is-on .pin-ring{ animation: none; }
}

/* Entregables en rejilla tipo bento (cada uno como una figura del reporte) */
.deliver{ margin-top: clamp(72px, 9vw, 120px); }
.pca-rest .deliver-head{ margin-bottom: clamp(30px, 4vw, 48px); }
.deliver-head .x-sub{ color: #fff; margin-top: 4px; }
.deliver-title{ font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.bento{ display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .bento{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){
  .bento{ grid-template-columns: repeat(3, 1fr); }
  .bt-reserve{ grid-column: span 2; }
  .bt-docs{ grid-column: span 2; }
}
.bento-tile{
  border-radius: 18px;
  padding: 16px 20px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), opacity var(--dur-m) var(--ease);
}
.bento-tile:hover{ border-color: rgba(194,208,42,.35); }
.bento-tile .fig-cap{ color: rgba(255,255,255,.42); padding-bottom: 2px; }
.bento-tile .fig-cap .fig-no{ color: var(--lime); }
.bento-tile .fig-cap .fig-tag{ border-color: rgba(255,255,255,.14); }
.bento-tile h4{ font-size: 1.05rem; color: #fff; margin-top: 8px; }
.bento-tile p{ font-size: .88rem; line-height: 1.55; color: rgba(255,255,255,.6); }
.bt-viz{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 16px 16px,
    rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  padding: 16px;
}
.bt-viz svg{ display: block; width: 100%; height: auto; }

/* Fig. 05.1 — reservas */
.rc-grid line{ stroke: rgba(255,255,255,.07); stroke-width: 1; }
.rc-grid .rc-base{ stroke: rgba(255,255,255,.3); }
.rc-y text, .rc-y2 text, .rc-x text, .rc-val text, .rc-ttl, .rc-axis{ font-family: var(--font-mono); }
.rc-y text{ font-size: 9px; fill: rgba(255,255,255,.4); text-anchor: end; }
.rc-y2 text{ font-size: 9px; fill: rgba(255,255,255,.62); }
.rc-ttl{ font-size: 8px; letter-spacing: .14em; text-transform: uppercase; fill: rgba(255,255,255,.4); }
.rc-ttl-r{ text-anchor: end; fill: rgba(255,255,255,.62); }
.rc-bars rect{
  fill: rgba(194,208,42,.3);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform .9s cubic-bezier(.19,1,.22,1);
  transition-delay: calc(.2s + var(--b) * 70ms);
}
.rc-bars rect.is-peak{ fill: var(--lime); }
.rc-val text{ font-size: 9px; font-weight: 600; fill: rgba(255,255,255,.75); text-anchor: middle; opacity: 0; transition: opacity .4s var(--ease); transition-delay: calc(.7s + var(--b) * 70ms); }
.rc-line{
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(.65,0,.35,1) 1s;
}
.rc-dots circle{ fill: #fff; stroke: var(--carbon); stroke-width: 2; opacity: 0; transition: opacity .4s 2.5s; }
.rc-ann g{ opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(1.6s + var(--a) * .25s); }
.rc-ann rect{ fill: #1E2022; stroke: rgba(194,208,42,.6); }
.rc-ann path{ stroke: rgba(194,208,42,.7); stroke-width: 1; }
.rc-ann text{ font: 600 8.5px var(--font-mono); letter-spacing: .04em; fill: var(--lime); text-anchor: middle; text-transform: uppercase; }
.rc-x text{ font-size: 9px; fill: rgba(255,255,255,.45); text-anchor: middle; }
.rc-axis{ font-size: 8px; letter-spacing: .16em; text-transform: uppercase; fill: rgba(255,255,255,.35); text-anchor: middle; }
.rc-legend{ display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font: 500 .66rem/1 var(--font-mono); letter-spacing: .04em; color: rgba(255,255,255,.55); }
.rc-legend span{ display: inline-flex; align-items: center; gap: 8px; }
.rc-legend .lg-bar::before{ content: ""; width: 10px; height: 10px; border-radius: 2px; background: rgba(194,208,42,.55); }
.rc-legend .lg-line::before{ content: ""; width: 16px; height: 2px; background: #fff; }
@media (max-width: 560px){
  /* En teléfono la gráfica se reduce ~50 %: menos rótulos y más grandes */
  .rc-y text, .rc-x text{ font-size: 16px; }
  .rc-val, .rc-ann, .rc-axis, .rc-ttl, .rc-y2{ display: none; }
}
.bento-tile.is-visible .rc-bars rect{ transform: scaleY(1); }
.bento-tile.is-visible .rc-val text{ opacity: 1; }
.bento-tile.is-visible .rc-line{ stroke-dashoffset: 0; }
.bento-tile.is-visible .rc-dots circle{ opacity: 1; }
.bento-tile.is-visible .rc-ann g{ opacity: 1; transform: none; }

/* Fig. 05.2 — horizonte de costos */
.cost-tl{ display: grid; gap: 14px; }
.ct-row{ display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; }
.ct-tag{ font: 600 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ct-when{ font: 600 1.1rem/1 var(--font-display); letter-spacing: .02em; color: var(--lime); }
.ct-soon .ct-when{ color: rgba(255,255,255,.8); }
.ct-lane{ grid-column: 1 / -1; position: relative; height: 12px; border-radius: 3px; background: rgba(255,255,255,.05); }
.ct-lane i{ position: absolute; top: 0; bottom: 0; border-radius: 3px; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.19,1,.22,1) .3s; }
.ct-now .ct-lane i{ left: 0; width: 14%; background: var(--lime); box-shadow: 0 0 18px rgba(194,208,42,.35); }
.ct-soon .ct-lane i{ left: 50%; width: 50%; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.55) 0 5px, rgba(255,255,255,.25) 5px 10px); transition-delay: .6s; }
.ct-d{ grid-column: 1 / -1; font-size: .78rem; line-height: 1.35; color: rgba(255,255,255,.55); }
.ct-axis{ display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); font: 500 .6rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.bento-tile.is-visible .ct-lane i{ transform: scaleX(1); }

/* Fig. 05.3 — hoja de contactos */
.pg-thumbs g{ opacity: 0; transform: scale(.88); transform-box: fill-box; transform-origin: center; transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(.2s + var(--t) * 110ms); }
.pg-thumbs rect{ fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.16); }
.pg-thumbs path{ fill: none; stroke: rgba(255,255,255,.32); stroke-width: 1.5; stroke-linejoin: round; }
.pg-thumbs circle{ fill: rgba(255,255,255,.28); }
.pg-thumbs .pf-c{ font: 600 8px var(--font-mono); letter-spacing: .08em; fill: var(--lime); }
.pg-thumbs .pf-n{ font: 500 7px var(--font-mono); fill: rgba(255,255,255,.4); text-anchor: end; }
.pg-thumbs .is-last rect{ stroke: rgba(194,208,42,.6); fill: rgba(194,208,42,.1); }
.pg-focus{ opacity: 0; }
.pg-focus path{ fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; }
.bento-tile.is-visible .pg-thumbs g{ opacity: 1; transform: none; }
.bento-tile.is-visible .pg-focus{ opacity: 1; animation: pgFocus 8s steps(1, end) 1.2s infinite; }
@keyframes pgFocus{
  0%{ transform: translate(0, 0); }
  12.5%{ transform: translate(74px, 0); }
  25%{ transform: translate(148px, 0); }
  37.5%{ transform: translate(222px, 0); }
  50%{ transform: translate(0, 78px); }
  62.5%{ transform: translate(74px, 78px); }
  75%{ transform: translate(148px, 78px); }
  87.5%{ transform: translate(222px, 78px); }
}

/* Fig. 05.4 — documentado contra construido */
.doc-cmp{ display: grid; font-size: .84rem; }
.dcm-row{
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) .8fr .8fr minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(.25s + var(--r, 0) * .3s);
}
.dcm-row:last-child{ border-bottom: 0; }
.dcm-head{ padding-top: 0; font: 500 .6rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); border-bottom-color: rgba(255,255,255,.2); transition-delay: .1s; }
.dcm-row > span:nth-child(2), .dcm-row > span:nth-child(3){ justify-self: center; text-align: center; }
.dcm-y svg{ width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(194,208,42,.16); }
.dcm-y path{ fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease); transition-delay: calc(.6s + var(--r, 0) * .3s); }
.dcm-n{ font: 500 1rem/1 var(--font-mono); color: rgba(255,255,255,.35); }
.dcm-ok, .dcm-warn{ display: inline-block; padding: 5px 8px 4px; border-radius: 4px; font: 600 .62rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.dcm-ok{ color: var(--lime); background: rgba(194,208,42,.1); border: 1px solid rgba(194,208,42,.3); }
.dcm-warn{ color: #F2B35B; background: rgba(242,179,91,.1); border: 1px solid rgba(242,179,91,.4); }
.bento-tile.is-visible .dcm-row{ opacity: 1; transform: none; }
.bento-tile.is-visible .dcm-y path{ stroke-dashoffset: 0; }
@media (max-width: 520px){
  .doc-cmp{ font-size: .76rem; }
  .dcm-row{ grid-template-columns: minmax(0, 1.5fr) .7fr .7fr minmax(0, 1.1fr); gap: 6px; }
  .dcm-head{ font-size: .5rem; letter-spacing: .04em; }
}

.usecase{
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px dashed rgba(194,208,42,.35);
}
.usecase-label{ font: 600 .66rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.usecase-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.usecase-list li{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font: 600 .86rem/1 var(--font-heading);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.usecase-list li:hover{ background: rgba(194,208,42,.12); border-color: rgba(194,208,42,.45); }
.usecase-list svg{ width: 18px; height: 18px; color: var(--lime); }


/* =========================================================
   06 — AMBIENTAL: LABORATORIO POR FASES
   ========================================================= */
.amb-x{ background-color: var(--surface-alt); }
.amb-lab{
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -60px rgba(42,44,46,.45);
  overflow: hidden;
}
.amb-tabs{ display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.amb-tab{
  position: relative;
  border: 0;
  background: none;
  text-align: left;
  padding: 16px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--carbon);
  cursor: pointer;
  transition: background .35s var(--ease);
}
.amb-tab + .amb-tab{ border-left: 1px solid var(--line); }
.amb-tab:hover{ background: rgba(42,44,46,.03); }
.amb-tab-num{ font: 600 .68rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gray-mark); transition: color .3s; }
.amb-tab-q{ font: 600 clamp(.85rem, 1.5vw, 1.02rem)/1.3 var(--font-heading); }
.amb-tab-bar{ position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.amb-tab-bar i{ display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.amb-tab.is-active{ background: linear-gradient(180deg, rgba(194,208,42,.13), rgba(194,208,42,0)); }
.amb-tab.is-active .amb-tab-num{ color: var(--lime-dark); }
.amb-tab.is-active .amb-tab-bar i{ transform: scaleX(1); }
.amb-lab.is-autoplay .amb-tab.is-active .amb-tab-bar i{ animation: ambBar var(--amb-dur, 6.5s) linear both; }
@keyframes ambBar{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

.amb-body{ display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px){ .amb-body{ grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.amb-view, .amb-panels{ min-width: 0; }
.amb-view{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #E9F0F1;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1000px){ .amb-view{ border-bottom: 0; border-right: 1px solid var(--line); } }
.amb-cap{ padding: 11px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.amb-svg{ display: block; width: 100%; height: auto; }

.amb-layer-t text{ font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; text-anchor: end; fill: rgba(42,44,46,.62); }
.amb-layer-t text.is-light{ fill: rgba(255,255,255,.75); }
.amb-wt line{ stroke: #2A2C2E; stroke-width: 1.4; stroke-dasharray: 8 6; }
.amb-wt path{ fill: #C2D02A; stroke: #2A2C2E; }
.amb-wt text{ font: 600 12px var(--font-mono); letter-spacing: .04em; fill: #2A2C2E; }
.amb-ghost path{ fill: rgba(194,208,42,.08); stroke: #6F7B0E; stroke-width: 1.4; stroke-dasharray: 6 5; }
.amb-ghost text{ font: 600 12px var(--font-heading); fill: #6F7B0E; text-anchor: middle; }
.amb-note{ font: 600 12px var(--font-heading); fill: #2A2C2E; }
.amb-bubble text{ font: 600 12px var(--font-heading); fill: #2A2C2E; text-anchor: middle; }
.amb-tag{ font: 600 11px var(--font-mono); fill: #fff; text-anchor: middle; letter-spacing: .04em; }
.amb-unit{ font: 700 12px var(--font-heading); fill: #fff; text-anchor: middle; }
.amb-labcard .t1{ font: 700 13px var(--font-heading); fill: #fff; }
.amb-labcard .t2{ font: 600 12px var(--font-heading); fill: #C2D02A; }
.amb-fog-t{ font: 500 15px var(--font-mono); fill: #6C6C6C; text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }

/* Regla de profundidad */
.amb-ruler rect{ fill: rgba(255,255,255,.72); }
.amb-ruler .ar-edge{ stroke: rgba(42,44,46,.55); stroke-width: 1.2; }
.amb-ruler .ar-minor{ stroke: rgba(42,44,46,.4); stroke-width: 1; }
.amb-ruler .ar-major{ stroke: #2A2C2E; stroke-width: 1.6; }
.amb-ruler text{ font: 600 11px var(--font-mono); fill: #2A2C2E; }

.amb-p1, .amb-p2, .amb-p3,
.amb-plume, .amb-plume-t, .amb-ghost{ transition: opacity .7s var(--ease); }
.amb-p2, .amb-p3, .amb-plume-t{ opacity: 0; }
.amb-lab[data-phase="1"] .amb-p1{ opacity: 1; }
.amb-lab:not([data-phase="1"]) .amb-p1{ opacity: 0; }
.amb-lab[data-phase="2"] .amb-p2,
.amb-lab[data-phase="3"] .amb-p2{ opacity: 1; }
.amb-lab[data-phase="3"] .amb-p3{ opacity: 1; }
.amb-lab[data-phase="2"] .amb-plume-t.is-p2,
.amb-lab[data-phase="3"] .amb-plume-t.is-p3{ opacity: 1; }
.amb-lab:not([data-phase="1"]) .amb-ghost{ opacity: .45; }
.amb-plume-t{ font: 600 12px var(--font-mono); fill: #fff; text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }

.amb-plume{
  fill: url(#ambPlumeGrad);
  stroke: #B4432A;
  stroke-width: 1.6;
  stroke-dasharray: 6 5;
  transform-box: fill-box;
  transform-origin: 45% 45%;
  transition: opacity .8s var(--ease), transform 2.6s cubic-bezier(.19,1,.22,1), filter 1.5s;
}
.amb-lab[data-phase="1"] .amb-plume{ opacity: 0; }
.amb-lab[data-phase="2"] .amb-plume{ animation: plumePulse 2.6s ease-in-out infinite; }
.amb-lab[data-phase="3"] .amb-plume{ transform: scale(.4); filter: saturate(.4) brightness(1.15); }
@keyframes plumePulse{ 0%, 100%{ transform: scale(1); } 50%{ transform: scale(1.03); } }

.amb-drill{
  stroke: #2A2C2E;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s cubic-bezier(.65,0,.35,1);
  transition-delay: var(--dd, 0s);
}
.amb-lab[data-phase="2"] .amb-drill,
.amb-lab[data-phase="3"] .amb-drill{ stroke-dashoffset: 0; }
.amb-samples rect{
  stroke: #2A2C2E;
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.3);
  transition: opacity .35s var(--ease), transform .45s cubic-bezier(.34,1.56,.64,1);
}
.amb-samples .is-bad{ fill: #D0743A; }
.amb-samples .is-ok{ fill: #C2D02A; }
.amb-lab[data-phase="2"] .amb-samples rect,
.amb-lab[data-phase="3"] .amb-samples rect{ opacity: 1; transform: none; transition-delay: calc(1s + var(--s) * .16s); }

.amb-well{ stroke: #2A2C2E; stroke-width: 5; stroke-linecap: round; }
.amb-up{ stroke: #C2D02A; stroke-width: 2.6; stroke-dasharray: 6 10; stroke-linecap: round; }
.amb-lab[data-phase="3"] .amb-up{ animation: flowUp .9s linear infinite; }
@keyframes flowUp{ to{ stroke-dashoffset: -16; } }

.amb-fog{ opacity: .95; }
.amb-doc{ animation: docFloat 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes docFloat{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
.amb-mag{ transform: translate(170px, 150px); }
.amb-lab[data-phase="1"] .amb-mag{ animation: magScan 7s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes magScan{
  0%, 8%{ transform: translate(170px, 148px); }
  28%, 36%{ transform: translate(520px, 158px); }
  52%, 60%{ transform: translate(620px, 170px); }
  80%, 90%{ transform: translate(895px, 150px); }
  100%{ transform: translate(170px, 148px); }
}

.amb-legend{
  position: absolute;
  right: 14px; bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s var(--ease) .8s, transform .5s var(--ease) .8s;
}
.amb-lab:not([data-phase="1"]) .amb-legend{ opacity: 1; transform: none; }
.amb-legend span{
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  font: 500 .64rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--carbon);
}
.amb-legend span::before{ content: ""; width: 10px; height: 10px; border-radius: 2px; }
.amb-legend .lg-bad::before{ background: #D0743A; }
.amb-legend .lg-ok::before{ background: #C2D02A; }
@media (max-width: 699px){
  .amb-tab{ padding: 12px 10px 14px; gap: 4px; }
  .amb-tab-num{ font-size: .6rem; letter-spacing: .06em; }
  .amb-tab-q{ font-size: .74rem; }
  .amb-cap{ padding: 9px 12px; }
  .amb-legend{ left: 66px; right: 8px; bottom: 8px; gap: 4px; justify-content: flex-end; }
  .amb-legend span{ padding: 4px 6px; font-size: .52rem; gap: 5px; }
  .amb-legend span::before{ width: 7px; height: 7px; }
}

/* ---------- Fig. 06.1 renderizada (Blender): una imagen por fase + capa de rótulos ---------- */
.amb-stage{ position: relative; aspect-ratio: 1600 / 960; margin-block: auto; }
.amb-img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .8s var(--ease); }
.amb-lab[data-phase="1"] .amb-img[data-ph="1"],
.amb-lab[data-phase="2"] .amb-img[data-ph="2"],
.amb-lab[data-phase="3"] .amb-img[data-ph="3"]{ opacity: 1; }
.amb-ov{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.amb-ov [data-ph]{ opacity: 0; transition: opacity .4s var(--ease); }
.amb-lab[data-phase="1"] .amb-ov [data-ph*="1"],
.amb-lab[data-phase="2"] .amb-ov [data-ph*="2"],
.amb-lab[data-phase="3"] .amb-ov [data-ph*="3"]{ opacity: 1; transition-delay: .3s; }

.ao-veil polygon{ fill: url(#ambHatch); stroke: rgba(42,44,46,.45); stroke-width: 2; stroke-dasharray: 10 8; }
.ao-strata line{ stroke: rgba(42,44,46,.6); stroke-width: 2.4; }
.ao-wt polyline{ fill: none; stroke: #2E7DC2; stroke-width: 3.4; stroke-dasharray: 16 10; }
.ao-drill line{ stroke: var(--lime); stroke-width: 7; stroke-dasharray: 12 9; animation: aoDrill .9s linear infinite; }
@keyframes aoDrill{ to{ stroke-dashoffset: -21; } }
.ao-flow polyline{ fill: none; stroke: var(--lime); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 14 12; animation: aoFlow 1.1s linear infinite; }
@keyframes aoFlow{ to{ stroke-dashoffset: -52; } }
.ao-samples circle{ fill: none; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: aoPing 2.2s ease-out infinite; animation-delay: calc(var(--i) * .18s); }
.ao-samples .is-bad{ stroke: #D0743A; }
.ao-samples .is-ok{ stroke: #9FB01C; }
@keyframes aoPing{ 0%{ transform: scale(.6); opacity: 1; } 70%, 100%{ transform: scale(1.9); opacity: 0; } }
.ao-leads path{ fill: none; stroke: rgba(27,29,31,.8); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.ao-leads circle{ fill: var(--lime); stroke: #1B1D1F; stroke-width: 3.5; }
.amb-lab[data-phase="1"] .ao-leads [data-ph*="1"] path,
.amb-lab[data-phase="2"] .ao-leads [data-ph*="2"] path,
.amb-lab[data-phase="3"] .ao-leads [data-ph*="3"] path{ stroke-dashoffset: 0; transition-delay: calc(.35s + var(--i) * .09s); }

.amb-tags{ position: absolute; inset: 0; pointer-events: none; }
.amb-tags > span{ position: absolute; left: var(--x); top: var(--y); white-space: nowrap; }
.atag{
  padding: 5px 9px 5px 8px;
  border-radius: 6px;
  border-left: 3px solid var(--lime);
  background: rgba(27,29,31,.92);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.6);
  color: #fff;
  font: 600 clamp(10px, .82vw, 12.5px)/1.2 var(--font-heading);
  opacity: 0;
  transform: translate(8px, calc(-50% + 6px));
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.atag[data-side="l"]{ transform: translate(calc(-100% - 8px), calc(-50% + 6px)); }
.atag-r{ border-left-color: #D0743A; }
.amb-lab[data-phase="1"] .atag[data-ph*="1"],
.amb-lab[data-phase="2"] .atag[data-ph*="2"],
.amb-lab[data-phase="3"] .atag[data-ph*="3"]{ opacity: 1; transform: translate(8px, -50%); transition-delay: calc(.6s + var(--i) * .09s); }
.amb-lab[data-phase="1"] .atag[data-side="l"][data-ph*="1"],
.amb-lab[data-phase="2"] .atag[data-side="l"][data-ph*="2"],
.amb-lab[data-phase="3"] .atag[data-side="l"][data-ph*="3"]{ transform: translate(calc(-100% - 8px), -50%); }
.atag-st{
  transform: translate(-100%, -50%);
  font: 600 clamp(8px, .66vw, 10.5px)/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(42,44,46,.78);
}
.atag-wt, .atag-veil{ opacity: 0; transition: opacity .4s var(--ease) .5s; }
.atag-wt{
  transform: translate(8px, -50%);
  padding: 4px 8px;
  border-radius: 4px;
  background: #2E7DC2;
  color: #fff;
  font: 600 clamp(8.5px, .7vw, 11px)/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.atag-veil{
  transform: translate(-50%, -50%);
  padding: 6px 11px;
  border-radius: 5px;
  border: 1px dashed rgba(42,44,46,.45);
  background: rgba(255,255,255,.88);
  color: var(--carbon);
  font: 600 clamp(8.5px, .72vw, 11px)/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.amb-lab[data-phase="1"] .atag-veil,
.amb-lab[data-phase="2"] .atag-wt,
.amb-lab[data-phase="3"] .atag-wt{ opacity: 1; }

/* Leyenda por fase */
.amb-legend, .amb-lab:not([data-phase="1"]) .amb-legend{ opacity: 1; transform: none; }
.amb-legend [data-ph]{ display: none; }
.amb-lab[data-phase="1"] .amb-legend [data-ph*="1"],
.amb-lab[data-phase="2"] .amb-legend [data-ph*="2"],
.amb-lab[data-phase="3"] .amb-legend [data-ph*="3"]{ display: inline-flex; }
.amb-legend .lg-flow::before{ height: 0; border-radius: 0; border-top: 3px dashed var(--lime); }
.amb-legend .lg-rec::before{ background: transparent; border: 2px solid var(--lime); border-radius: 50%; box-shadow: 0 0 0 1px rgba(42,44,46,.25); }
@media (max-width: 699px){
  .amb-stage{ margin-bottom: 36px; }
  .atag{ padding: 3px 6px 3px 5px; border-left-width: 2px; border-radius: 4px; font-size: 8.5px; }
  .atag-st{ font-size: 6.5px; letter-spacing: .02em; }
  .atag-wt, .atag-veil{ font-size: 7px; padding: 3px 5px; }
  .atag-wt{ transform: translate(calc(-100% - 10px), -50%); }
  .amb-legend{ left: 8px; }
}
@media (prefers-reduced-motion: reduce){
  .ao-drill line, .ao-flow polyline, .ao-samples circle{ animation: none; }
}

/* Paneles de texto: apilados en la misma celda para que la altura no salte */
.amb-panels{ display: grid; padding: clamp(24px, 3vw, 34px); }
.amb-panel{ grid-area: 1 / 1; min-width: 0; }
.amb-panel[hidden]{ display: block; visibility: hidden; }
.amb-panel:not([hidden]){ animation: ambPanelIn .6s var(--ease) both; }
@keyframes ambPanelIn{ from{ opacity: 0; transform: translateY(14px); } to{ opacity: 1; transform: none; } }
.amb-kicker{ font: 600 .66rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-dark); }
.amb-panel h3{ font: 600 clamp(2.2rem, 3.8vw, 3rem)/1 var(--font-display); letter-spacing: .005em; margin: 10px 0 12px; }
.amb-panel > p{ font-size: .96rem; line-height: 1.65; color: var(--gray-body); }
.amb-list{ margin-top: 16px; display: grid; gap: 0; counter-reset: amb; border-top: 1px solid var(--line); }
.amb-list li{ display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; color: var(--carbon); counter-increment: amb; }
.amb-list li::before{ content: counter(amb, decimal-leading-zero); font: 600 .68rem/1 var(--font-mono); color: var(--lime-dark); min-width: 18px; }
.amb-list-row{ grid-template-columns: 1fr 1fr; column-gap: 16px; }
.amb-panel .amb-next{
  margin-top: 18px;
  padding: 12px 15px;
  border-radius: 8px;
  background: var(--carbon);
  color: rgba(255,255,255,.8);
  font-size: .86rem;
  line-height: 1.5;
}
.amb-next b{ color: var(--lime); font-family: var(--font-heading); }

/* Fase II: tabla de resultados */
.amb-table{ margin-top: 16px; border-top: 1px solid var(--carbon); font-size: .84rem; }
.at-row{ display: grid; grid-template-columns: 1.1fr .9fr .7fr 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--carbon); }
.at-row > span:first-child{ font: 600 .74rem/1 var(--font-mono); }
.at-row > span:nth-child(3){ font: 500 .74rem/1 var(--font-mono); color: var(--gray-body); }
.at-head{ font: 500 .58rem/1 var(--font-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mark); border-bottom-color: var(--line); }
.at-head > span{ font: inherit !important; color: inherit !important; }
.at-bad, .at-ok{ display: inline-block; padding: 4px 7px 3px; border-radius: 3px; font: 600 .6rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.at-bad{ background: rgba(208,116,58,.14); color: #A4521F; border: 1px solid rgba(208,116,58,.45); }
.at-ok{ background: rgba(194,208,42,.18); color: var(--lime-dark); border: 1px solid rgba(111,123,14,.35); }
.amb-panel:not([hidden]) .at-row:not(.at-head){ animation: ambRowIn .5s var(--ease) both; animation-delay: calc(.35s + var(--r, 0) * .14s); }
@keyframes ambRowIn{ from{ opacity: 0; transform: translateX(-8px); } to{ opacity: 1; transform: none; } }
.amb-tnote{ margin-top: 8px; font: 400 .7rem/1.4 var(--font-mono) !important; color: var(--gray-mark) !important; }

/* Fase III: curva de concentración */
.amb-chart{ margin: 16px 0 0; padding: 12px 12px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-alt); }
.amb-chart svg{ display: block; width: 100%; height: auto; margin-bottom: 8px; }
.ac-grid{ stroke: rgba(42,44,46,.08); }
.ac-axis{ stroke: rgba(42,44,46,.5); stroke-width: 1.2; }
.ac-lim{ stroke: #B4432A; stroke-width: 1.2; stroke-dasharray: 5 4; }
.ac-lim-t{ font: 600 8.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; fill: #A4521F; text-anchor: end; }
.ac-curve{ fill: none; stroke: var(--lime-dark); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ac-end{ fill: var(--lime); stroke: var(--carbon); stroke-width: 1.5; opacity: 0; }
.ac-x, .ac-y{ font: 500 8.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--gray-mark); }
.ac-x-r{ text-anchor: end; }
.ac-y{ text-anchor: end; font-weight: 600; fill: var(--carbon); }
.amb-lab[data-phase="3"] .ac-curve{ stroke-dashoffset: 0; transition: stroke-dashoffset 2s cubic-bezier(.65,0,.35,1) .5s; }
.amb-lab[data-phase="3"] .ac-end{ opacity: 1; transition: opacity .4s 2.4s; }

/* Diagrama de decisión entre fases */
.amb-flow-wrap{
  margin-top: clamp(56px, 7vw, 88px);
  padding: 18px clamp(18px, 3vw, 32px) 26px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}
.amb-flow{
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  padding-block: 64px 58px;
}
.flow-node{
  position: relative;
  padding: 14px 20px 15px;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  text-align: center;
  min-width: 128px;
}
.flow-node .code{ display: block; margin-bottom: 7px; color: var(--lime-dark); }
.flow-node b{ display: block; font: 600 1.45rem/1 var(--font-display); letter-spacing: .01em; color: var(--carbon); }
.flow-node > span:last-child{ font-size: .78rem; color: var(--gray-body); }
.flow-node.is-final{ background: var(--carbon); border-color: var(--carbon); }
.flow-node.is-final .code{ color: var(--lime); }
.flow-node.is-final b{ color: #fff; }
.flow-node.is-final > span:last-child{ color: rgba(255,255,255,.7); }
.flow-link{ position: relative; height: 2px; margin-inline: 8px; background: var(--line); }
.flow-link::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
  transition-delay: var(--fd, 0s);
}
.flow-link::before{
  content: "";
  position: absolute;
  right: -1px; top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid var(--line);
  border-right: 0;
  transition: border-left-color .3s var(--ease);
  transition-delay: calc(var(--fd, 0s) + .45s);
}
.flow-link em{
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 .64rem/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--lime-dark);
}
.flow-gate{
  position: relative;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .5s var(--ease), transform .6s cubic-bezier(.34,1.56,.64,1);
  transition-delay: var(--fd, 0s);
}
.flow-gate::before{
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--lime);
  border: 1.5px solid var(--carbon);
}
.flow-gate i{ position: relative; font: 600 1.05rem/1 var(--font-mono); font-style: normal; color: var(--carbon); }
.flow-q{
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  text-align: center;
  font: 600 .78rem/1.3 var(--font-heading);
  color: var(--carbon);
}
.flow-no{
  position: absolute;
  bottom: calc(100% + 26px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 10px 5px;
  border-radius: 4px;
  border: 1px dashed rgba(42,44,46,.3);
  background: var(--surface-alt);
  font: 500 .62rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-body);
}
.flow-no::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 20px;
  border-left: 1.5px dashed rgba(42,44,46,.3);
}
.amb-flow-wrap.is-visible .flow-link::after{ transform: scaleX(1); }
.amb-flow-wrap.is-visible .flow-link::before{ border-left-color: var(--lime-dark); }
.amb-flow-wrap.is-visible .flow-gate{ opacity: 1; transform: none; }
.amb-flow-note{ text-align: center; font-size: .9rem; color: var(--gray-body); margin-top: 4px; }
@media (max-width: 899px){
  .amb-flow{ display: flex; flex-direction: column; align-items: center; padding-block: 18px 8px; }
  .flow-link{ width: 2px; height: 34px; margin: 6px 0; }
  .flow-link::after{ transform: scaleY(0); transform-origin: top; }
  .flow-link::before{ right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--line); border-bottom: 0; }
  .amb-flow-wrap.is-visible .flow-link::after{ transform: scaleY(1); }
  .amb-flow-wrap.is-visible .flow-link::before{ border-left-color: transparent; border-top-color: var(--lime-dark); }
  .flow-link em{ bottom: auto; top: 50%; left: 14px; transform: translateY(-50%); }
  .flow-gate{ margin-block: 4px; }
  .flow-q{ position: static; transform: none; width: auto; margin-top: 4px; }
  .flow-gate{ width: auto; height: auto; display: flex; flex-direction: column; align-items: center; }
  .flow-gate::before{ position: static; display: block; width: 32px; height: 32px; margin: 8px 0 6px; }
  .flow-gate i{ position: absolute; top: 17px; }
  .flow-no{ position: static; transform: none; margin-top: 8px; }
  .flow-no::after{ display: none; }
}

.amb-grid{ margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 20px; }
@media (min-width: 1000px){ .amb-grid{ grid-template-columns: 1.15fr 1fr; } }
.amb-when{ align-self: start; padding: clamp(20px, 3vw, 30px); border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.amb-when .fig-cap{ margin-bottom: 14px; }
.amb-when h3{ font-size: 1.3rem; margin-bottom: 18px; }
.amb-when ul{ display: grid; gap: 12px; }
@media (min-width: 640px){ .amb-when ul{ grid-template-columns: 1fr 1fr; } }
.amb-when li{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid transparent;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--carbon);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), opacity var(--dur-m) var(--ease);
}
.amb-when li:hover{ background: rgba(194,208,42,.12); border-color: rgba(111,123,14,.3); }
.amb-when li svg{ flex-shrink: 0; width: 38px; height: 38px; padding: 9px; border-radius: 8px; background: var(--carbon); color: var(--lime); }
.amb-side{ display: grid; gap: 20px; }
.amb-norms{ padding: 22px 24px; border-radius: 14px; background: var(--carbon); }
.amb-norms-label{ margin-bottom: 10px; font: 600 .64rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.norm-table{ margin: 0; }
.norm-table > div{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-on-dark); align-items: baseline; }
.norm-table dt{ font: 600 .8rem/1.3 var(--font-mono); color: #fff; }
.norm-table dd{ margin: 0; font-size: .84rem; line-height: 1.4; color: rgba(255,255,255,.62); }
.amb-gest{ padding: 24px; border-radius: 14px; background: linear-gradient(135deg, #C2D02A, #D9E35F); color: var(--carbon); }
.amb-gest h3{ font-size: 1.25rem; margin-bottom: 8px; }
.amb-gest p{ font-size: .9rem; line-height: 1.55; color: rgba(42,44,46,.85); }
.gantt{ display: block; width: 100%; max-width: 420px; height: auto; margin-top: 16px; }
.gantt text{ font: 600 11.5px var(--font-heading); fill: var(--carbon); }
.gantt .g-months text{ font: 600 9px var(--font-mono); fill: rgba(42,44,46,.6); text-anchor: middle; }
.gantt .g-note{ font: 600 8.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.gantt .g-note-r{ text-anchor: end; fill: #7A2E14; }
.g-cols line{ stroke: rgba(42,44,46,.14); }
.g-bar{ transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.3s cubic-bezier(.19,1,.22,1) .3s; }
.g-proj{ fill: var(--carbon); }
.g-perm{ fill: rgba(255,255,255,.75); stroke: var(--carbon); stroke-width: 1.5; transition-delay: .5s; }
.g-obra{ fill: #7A2E14; transition-delay: 1.5s; }
.g-crit{ stroke: #7A2E14; stroke-width: 1.5; stroke-dasharray: 2 2; }
.amb-gest.is-visible .g-bar{ transform: scaleX(1); }

/* =========================================================
   07 — SUPERVISIÓN: DIAGRAMA DE ACTORES Y REPORTES COMO HOJAS
   ========================================================= */
.sup-rel{ display: grid; gap: 28px; align-items: center; }
@media (min-width: 1000px){ .sup-rel{ grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.sup-hub{
  margin: 0;
  padding: 16px clamp(12px, 2vw, 22px) clamp(10px, 2vw, 18px);
  border-radius: 14px;
  background-color: var(--surface-alt);
  border: 1px solid var(--line);
}
.sup-hub .fig-cap{ margin-bottom: 6px; }
.hub-svg{ display: block; width: 100%; height: auto; overflow: visible; }
.hub-swipe{ display: none; }
@media (max-width: 599px){
  /* En teléfono el diagrama conserva un tamaño legible y se desliza de lado */
  .sup-hub{ overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .sup-hub .fig-cap{ position: sticky; left: 0; }
  .hub-svg{ width: 560px; max-width: none; }
  .hub-swipe{ display: inline; margin-left: auto; color: var(--lime-dark); }
}
.hub-contract{ fill: none; stroke: rgba(42,44,46,.3); stroke-width: 1.4; stroke-dasharray: 4 5; }
.hub-line{ fill: none; stroke: rgba(42,44,46,.12); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.hub-trace{ fill: none; stroke: var(--lime-dark); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1) .3s; }
.sup-hub.is-visible .hub-trace{ stroke-dashoffset: 0; }
.hub-lbl{ font: 600 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--gray-body); text-anchor: middle; }
.hub-lbl-s{ text-anchor: start; }
.hub-lbl-c{ fill: rgba(42,44,46,.5); }
.hub-node rect:first-child{ fill: var(--white); stroke: rgba(42,44,46,.22); stroke-width: 1; }
.hub-ico-bg{ fill: var(--carbon); }
.hub-ico{ fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hub-name{ font: 700 13px var(--font-heading); fill: var(--carbon); }
.hub-sub{ font: 500 9.5px var(--font-mono); letter-spacing: .02em; text-transform: uppercase; fill: var(--gray-mark); }
.hub-sub-c{ fill: var(--lime-dark); font-weight: 600; }
.hub-pk rect{ fill: var(--lime); stroke: var(--carbon); stroke-width: 1; }
.hub-pk text{ font: 700 8px var(--font-mono); letter-spacing: .06em; fill: var(--carbon); text-anchor: middle; }
.hub-pk-in rect{ fill: var(--carbon); stroke: var(--carbon); }
.hub-pk-in text{ fill: var(--lime); }
.hub-dot circle{ fill: var(--lime-dark); }
.hub-halo{ fill: rgba(194,208,42,.12); }
.hub-core-c{ fill: var(--carbon); }
.hub-orbit{
  fill: none;
  stroke: var(--lime-dark);
  stroke-width: 1.4;
  stroke-dasharray: 2 6;
  transform-box: fill-box;
  transform-origin: center;
  animation: hubSpin 22s linear infinite;
}
.hub-pulse{ fill: none; stroke: var(--lime); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hubPulse 2.6s ease-out infinite; }
@keyframes hubSpin{ to{ transform: rotate(360deg); } }
@keyframes hubPulse{ 0%{ transform: scale(1); opacity: .9; } 100%{ transform: scale(1.5); opacity: 0; } }
.hub-core-t{ font: 700 17px var(--font-heading); fill: #fff; text-anchor: middle; letter-spacing: .04em; }
.hub-core-s{ font: 600 8px var(--font-mono); fill: var(--lime); text-anchor: middle; letter-spacing: .16em; text-transform: uppercase; }

.sup-roles{ display: grid; gap: 0; border-top: 1px solid var(--carbon); }
.role-x{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 14px;
  padding: 22px 6px 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), transform var(--dur-m) var(--ease), opacity var(--dur-m) var(--ease);
}
.role-x:hover{ background: linear-gradient(90deg, rgba(194,208,42,.12), transparent 70%); }
.role-n{ grid-row: span 2; align-self: start; justify-self: start; padding: 6px 7px 5px; border-radius: 4px; background: var(--carbon); color: var(--lime); font: 600 .68rem/1 var(--font-mono); letter-spacing: .06em; }
.role-x h3{ font-size: 1.08rem; }
.role-x p{ font-size: .9rem; line-height: 1.55; color: var(--gray-body); }

/* Recorrido de reportes */
.hscroll{ position: relative; margin-top: clamp(64px, 8vw, 110px); }
.hscroll-sticky{ position: relative; }
.hscroll-head{ display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 48px; margin-bottom: 30px; }
.hscroll-head .x-sub{ margin-top: 4px; }
.hs-progress{ position: relative; flex: 1; min-width: 240px; max-width: 420px; height: 58px; margin-right: 26px; margin-left: auto; }
.hs-line, .hs-fill{ position: absolute; left: 0; right: 0; top: 13px; height: 2px; }
.hs-line{ background: repeating-linear-gradient(90deg, rgba(42,44,46,.25) 0 6px, transparent 6px 10px); }
.hs-fill{ background: var(--lime-dark); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hs-dot{ position: absolute; top: 6px; width: 16px; height: 16px; margin-left: -8px; }
.hs-dot::before{
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: var(--white);
  border: 2px solid rgba(42,44,46,.28);
  transform: rotate(45deg);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.hs-dot.is-on::before{ background: var(--lime); border-color: var(--carbon); }
.hs-dot b, .hs-dot small{ position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.hs-dot b{ top: 24px; font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; color: var(--gray-mark); }
.hs-dot small{ top: 39px; font: 400 .66rem/1 var(--font-body); color: var(--gray-mark); }
.hs-dot.is-on b{ color: var(--carbon); }

.hscroll-track{ display: grid; gap: 18px; padding-inline: var(--pad-inline); }
.hs-card{
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease);
}
@media (min-width: 760px){ .hs-card{ grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); } }
.hs-card.is-active{ border-color: rgba(111,123,14,.4); box-shadow: 0 40px 80px -60px rgba(42,44,46,.55); }
.hs-meta{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hs-idx{ font: 600 .7rem/1 var(--font-mono); color: var(--carbon); }
.hs-idx i{ font-style: normal; color: var(--gray-mark); }
.hs-step{ padding: 5px 8px 4px; border-radius: 4px; background: rgba(194,208,42,.2); font: 600 .62rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lime-dark); }
.hs-code{ position: relative; display: inline-block; font: 700 clamp(3.4rem, 6vw, 5rem)/.85 var(--font-display); letter-spacing: .01em; color: var(--carbon); }
.hs-code::after{ content: ""; position: absolute; left: 2px; right: 0; bottom: -8px; height: 4px; background: var(--lime); transform: scaleX(.3); transform-origin: left; transition: transform .7s var(--ease); }
.hs-card.is-active .hs-code::after{ transform: scaleX(1); }
.hs-card h4{ font-size: 1.3rem; margin: 22px 0 10px; }
.hs-card p{ font-size: .95rem; line-height: 1.6; color: var(--gray-body); max-width: 44ch; }
.hs-points{ margin-top: 16px; display: grid; border-top: 1px solid var(--line); }
.hs-points li{ display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .86rem; color: var(--carbon); }
.hs-points li::before{ content: ""; width: 6px; height: 6px; background: var(--lime-dark); transform: rotate(45deg); flex-shrink: 0; }
.hs-viz{ position: relative; }
.hs-viz::before{
  content: "";
  position: absolute;
  inset: 10px -8px -10px 8px;
  border-radius: 10px;
  background: #E3E4DD;
  border: 1px solid var(--line);
  transform: rotate(1.6deg);
}
.hs-viz svg{ position: relative; display: block; width: 100%; height: auto; border-radius: 9px; box-shadow: 0 28px 44px -20px rgba(42,44,46,.3); }

/* Modo recorrido horizontal (escritorio, activado por JS) */
.hscroll.js-hscroll{ margin-top: clamp(16px, 2vw, 32px); }
.hscroll.js-hscroll .hscroll-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 10px;
}
.hscroll.js-hscroll .hscroll-head{ margin-bottom: 22px; }
.hscroll.js-hscroll .hscroll-track{ display: flex; gap: 28px; width: max-content; will-change: transform; }
.hscroll.js-hscroll .hs-card{ width: min(82vw, 1060px); flex: 0 0 auto; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.hscroll.js-hscroll .hs-card:not(.is-active){ opacity: .55; }
@media (min-width: 960px) and (max-height: 820px){
  .hscroll.js-hscroll .hs-card{ padding: 20px 26px; }
  /* La hoja (480×340) se limita por la altura disponible sin deformarse */
  .hscroll.js-hscroll .hs-viz{ width: 100%; max-width: calc((100svh - 400px) * 1.4118); justify-self: center; }
  .hscroll.js-hscroll .hs-card h4{ margin-top: 16px; }
  .hscroll.js-hscroll .hs-points{ display: none; }
}

/* Hojas de reporte (SVG) */
.sh-paper{ fill: #fff; stroke: rgba(42,44,46,.16); }
.sh-band{ fill: var(--carbon); }
.sh-logo{ fill: var(--lime); }
.sh-brand{ font: 700 12px var(--font-heading); fill: #fff; letter-spacing: .04em; }
.sh-title{ font: 600 12px var(--font-heading); fill: rgba(255,255,255,.82); }
.sh-code{ font: 600 11px var(--font-mono); fill: var(--lime); text-anchor: end; letter-spacing: .04em; }
.sh-sub{ font: 500 9px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--gray-mark); }
.sh-r{ text-anchor: end; }
.sh-rule{ stroke: rgba(42,44,46,.5); stroke-width: 1; }
.sh-hr{ stroke: rgba(42,44,46,.09); }
.sh-th{ font: 600 8.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--gray-mark); }
.sh-td{ font: 500 11.5px var(--font-body); fill: var(--carbon); }
.sh-st{ font: 600 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--lime-dark); }
.sh-st-w{ fill: #A86A12; }
.sh-tick{ fill: none; stroke: var(--carbon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-bang{ font: 700 11px var(--font-mono); fill: var(--carbon); text-anchor: middle; }
.st-ok{ fill: var(--lime); }
.st-warn{ fill: #F0B44C; }
.st-pend{ fill: #D5D7D0; }
.sh-sum{ font: 600 9.5px var(--font-mono); letter-spacing: .04em; fill: var(--lime-dark); text-transform: uppercase; }
.sh-foot{ font: 500 8px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; fill: rgba(42,44,46,.45); }
.sh-stamp circle{ fill: none; stroke: #7C8A12; stroke-width: 2.2; }
.sh-stamp .sh-stamp-in{ stroke-width: 1; stroke-dasharray: 2 3; }
.sh-stamp-t{ font: 700 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; fill: #7C8A12; text-anchor: middle; }
.sh-stamp-s{ font: 600 6.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; fill: #7C8A12; text-anchor: middle; }
.sh-stamp{ opacity: .9; }

.ch-grid line{ stroke: rgba(42,44,46,.07); }
.ch-axis{ stroke: rgba(42,44,46,.55); stroke-width: 1.2; }
.ch-y text{ font: 500 8.5px var(--font-mono); fill: var(--gray-mark); text-anchor: end; }
.ch-x text{ font: 600 9px var(--font-mono); fill: var(--gray-mark); text-anchor: middle; }
.ch-plan{ fill: none; stroke: rgba(42,44,46,.45); stroke-width: 1.6; stroke-dasharray: 5 4; }
.ch-real{ fill: none; stroke: var(--lime-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ch-real-l{ stroke: var(--lime-dark); stroke-width: 3; }
.ch-pts circle{ fill: #fff; stroke: var(--lime-dark); stroke-width: 2; }
.ch-pts .ch-now{ fill: var(--lime); stroke: var(--carbon); }
.ch-today{ stroke: var(--carbon); stroke-width: 1; stroke-dasharray: 3 3; }
.ch-today-t{ font: 600 8px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--carbon); text-anchor: middle; }
.ch-call .cc-box{ fill: var(--carbon); }
.cc-k{ font: 600 8.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--lime); }
.cc-l{ font: 500 10px var(--font-body); fill: rgba(255,255,255,.8); }
.cc-track{ fill: rgba(255,255,255,.1); }
.cc-pre{ fill: rgba(255,255,255,.55); }
.cc-val{ fill: var(--lime); }
.cc-v{ font: 600 10px var(--font-mono); fill: #fff; text-anchor: end; }
.cc-v-ok{ fill: var(--lime); }
.cc-n{ font: 500 8.5px var(--font-mono); letter-spacing: .02em; fill: rgba(255,255,255,.6); }
.ch-leg text{ font: 500 8.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--gray-mark); }
.ch-leg circle{ fill: #fff; stroke: var(--lime-dark); stroke-width: 2; }

.kp-t > rect:first-child{ fill: var(--surface-alt); stroke: rgba(42,44,46,.1); }
.kp-k{ font: 600 7.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--gray-mark); }
.kp-k2{ letter-spacing: .08em; }
.kp-v{ font: 600 25px var(--font-display); fill: var(--carbon); }
.kp-track{ fill: rgba(42,44,46,.1); }
.kp-bar{ fill: var(--lime-dark); }
.gt-m text{ font: 600 8px var(--font-mono); fill: var(--gray-mark); text-anchor: middle; }
.gt-cols line{ stroke: rgba(42,44,46,.07); }
.gt-l{ font: 500 10.5px var(--font-body); fill: var(--carbon); }
.gt-plan{ fill: rgba(42,44,46,.04); stroke: rgba(42,44,46,.35); stroke-width: 1; stroke-dasharray: 3 2; }
.gt-act{ fill: var(--carbon); }
.gt-act-w{ fill: #E39E2D; }
.gt-today{ stroke: #C0392B; stroke-width: 1.2; }
.gt-today-tag rect{ fill: #C0392B; }
.gt-today-tag text{ font: 600 7.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; fill: #fff; text-anchor: middle; }
.gt-leg text{ font: 500 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--gray-mark); }

.pc-box{ fill: #fff; stroke: rgba(42,44,46,.45); stroke-width: 1.2; }
.pc-tick{ stroke: var(--lime-dark); stroke-width: 2.4; }
.pc-sign{ fill: none; stroke: #2B3A67; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pc-line{ stroke: rgba(42,44,46,.5); }
.pc-halo{ fill: rgba(194,208,42,.14); }
.pc-outer{ fill: var(--carbon); }
.pc-core{ fill: none; stroke: rgba(194,208,42,.55); stroke-width: 1.4; stroke-dasharray: 3 4; }
.pc-ring-t{ font: 600 9.5px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; fill: var(--lime); }
.pc-spin{ transform-box: view-box; transform-origin: 380px 186px; }
.hs-card.is-active .pc-spin{ animation: hubSpin 20s linear infinite; }
.pc-check{ fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }

/* Franja inferior: alzado de la nave que se construye con el recorrido */
.hs-build{ position: relative; margin-top: 22px; padding-inline: var(--pad-inline); }
.hs-build svg{ display: block; width: 100%; height: auto; max-height: 104px; overflow: visible; }
.hs-readout{ display: flex; align-items: center; gap: 12px; padding-left: 18px; border-left: 1px solid var(--line); font: 600 .6rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mark); }
.hs-readout b{ font: 600 2.1rem/1 var(--font-display); letter-spacing: .01em; color: var(--carbon); font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: right; }
.hsb-outline{ fill: none; stroke: rgba(42,44,46,.22); stroke-width: 1.4; stroke-dasharray: 5 4; }
.hsb-outline line{ stroke-dasharray: none; stroke: rgba(42,44,46,.35); }
.hsb-dim path{ fill: none; stroke: rgba(42,44,46,.35); stroke-width: 1; }
.hsb-dim-t text{ font: 500 9px var(--font-mono); fill: var(--gray-mark); text-anchor: middle; }
.hsb-wall{ fill: var(--carbon); }
.hsb-roof{ fill: none; stroke: var(--lime); stroke-width: 3; }
.hsb-win rect{ fill: rgba(194,208,42,.5); }
.hsb-doors rect{ fill: var(--lime); }
.hsb-ribs{ stroke: rgba(255,255,255,.12); stroke-width: 1.5; fill: none; }
.hsb-crane path{ fill: none; stroke: #8A8F84; stroke-width: 1.6; }
.hsb-crane .hc-jib{ stroke: var(--lime-dark); stroke-width: 2.2; }
.hsb-crane .hc-cw{ fill: var(--carbon); }
.hsb-crane .hc-hook{ stroke: var(--carbon); stroke-width: 1; }
.hsb-crane .hc-load{ fill: var(--lime); stroke: var(--carbon); }

.sup-foot{ margin-top: clamp(56px, 7vw, 90px); display: grid; gap: 28px; }
.sup-more{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px dashed rgba(111,123,14,.45);
}
.sup-more-label{ font: 600 .64rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-dark); }
.sup-more-list{ display: flex; flex-wrap: wrap; gap: 10px; }
.sup-more-list span{ display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 6px; background: var(--surface-alt); font: 600 .86rem/1 var(--font-heading); color: var(--carbon); }
.sup-more-list b{ padding: 5px 8px 4px; border-radius: 3px; background: var(--carbon); color: var(--lime); font: 600 .68rem/1 var(--font-mono); letter-spacing: .06em; }
.sup-avoid .x-sub{ margin-bottom: 18px; }
.avoid-x{ display: grid; gap: 14px; }
@media (min-width: 760px){ .avoid-x{ grid-template-columns: repeat(3, 1fr); } }
.avoid-card{
  position: relative;
  padding: 22px 24px 26px;
  border-radius: 14px;
  background: var(--carbon);
  color: #fff;
  overflow: hidden;
}
.avoid-card .code{ position: absolute; top: 24px; right: 22px; color: rgba(255,255,255,.4); }
.avoid-card svg{ width: 44px; height: 44px; padding: 10px; border-radius: 8px; background: rgba(194,208,42,.14); color: var(--lime); margin-bottom: 18px; }
.avoid-card p{ font: 600 1.02rem/1.45 var(--font-heading); color: #fff; }
.avoid-card::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent 70%);
}

/* =========================================================
   08 — MANTENIMIENTO: CINTA DE MODALIDADES, CUBIERTA Y OBRA POR ETAPAS
   ========================================================= */
.marquee{
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 22px;
  border-block: 1px solid var(--line-on-dark);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track{ display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  white-space: nowrap;
  font: 600 clamp(2.4rem, 6vw, 4.8rem)/1 var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.45);
}
.marquee-track span:nth-child(odd){ color: #fff; -webkit-text-stroke: 0; }
.marquee-track span::after{ content: ""; width: 14px; height: 22px; background: var(--lime); transform: skewX(-18deg); }
@keyframes marquee{ to{ transform: translateX(-50%); } }

.roof-block{ display: grid; gap: 36px; align-items: center; margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 1000px){ .roof-block{ grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.roof-viz{
  position: relative;
  border-radius: 14px;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 40% 35%, rgba(194,208,42,.12), transparent 62%), rgba(255,255,255,.02);
  border: 1px solid var(--line-on-dark);
  padding: 50px 12px 60px;
}
.roof-cap{ position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; }
/* Cubierta 3D: el SVG conserva el alto y el render se dibuja encima */
.roof-viz.has-3d .roof-x{ visibility: hidden; }
.roof-viz .e3d-host{ top: 40px; bottom: 50px; }
.r3-lines{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity .6s var(--ease); }
.r3-line{ fill: none; stroke: rgba(255,255,255,.42); stroke-width: 1; transition: stroke .3s var(--ease), opacity .3s var(--ease); }
.r3-line.is-on{ stroke: var(--lime); stroke-width: 1.6; }
.r3-line.is-dim{ opacity: .2; }
.r3-tags{ position: absolute; inset: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.r3-tag{
  position: absolute;
  left: 0; top: 0;
  margin-top: -1.1em;
  font: 600 .8rem/1.2 var(--font-heading);
  color: #fff;
  white-space: nowrap;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.r3-tag b{ display: block; margin-bottom: 3px; font: 600 .6rem/1 var(--font-mono); letter-spacing: .1em; color: var(--lime); }
.r3-tag.is-on{ color: var(--lime); }
.r3-tag.is-dim{ opacity: .3; }
@media (max-width: 599px){
  .r3-tag{ font-size: .66rem; margin-top: -.6em; }
  .r3-tag b{ display: none; }
}
.roof-x{ display: block; width: 100%; height: auto; }
.roof-x .rl-tag{ opacity: 0; transition: opacity .6s var(--ease) 1.1s; }
.roof-viz.is-visible .roof-x .rl-tag{ opacity: 1; }
.rl-tag path{ fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1; }
.rl-tag circle{ fill: #1E2022; stroke: rgba(255,255,255,.7); stroke-width: 1.2; }
.rl-code{ font: 600 9px var(--font-mono); letter-spacing: .1em; fill: var(--lime); }
.rl-name{ font: 600 12px var(--font-heading); fill: #fff; }
@media (max-width: 599px){
  .rl-code{ display: none; }
  .rl-name{ font-size: 17px; }
  .roof-viz{ padding: 46px 6px 58px; }
}
.roof-x.has-focus .rl.is-hl .rl-tag path{ stroke: var(--lime); }
.roof-x.has-focus .rl.is-hl .rl-tag circle{ fill: var(--lime); stroke: var(--lime); }
.roof-x.has-focus .rl.is-hl .rl-name{ fill: var(--lime); }
.roof-x.has-focus .rl.is-hl .rl-tag polygon{ stroke: none; }
.roof-readout{
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-on-dark);
  font: 500 .62rem/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.roof-readout b{ font: 600 .9rem/1.2 var(--font-heading); letter-spacing: 0; text-transform: none; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roof-readout b.is-idle{ color: rgba(255,255,255,.45); font-weight: 500; }
.roof-x .rl{
  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(.19,1,.22,1), opacity .4s var(--ease), filter .4s var(--ease);
  transition-delay: calc(var(--lift) * 90ms), 0s, 0s;
}
.roof-viz.is-visible .roof-x .rl{ transform: translateY(calc(var(--lift) * -36px)); }
.roof-x .rl[data-layer="gotas"]{ opacity: 0; }
.roof-x .rl-rust, .roof-x .rl-seam{ opacity: 0; transition: opacity .35s; }
.roof-x.has-focus .rl{ opacity: .2; }
.roof-x.has-focus .rl.is-hl{ opacity: 1; filter: drop-shadow(0 0 10px rgba(194,208,42,.55)); }
.roof-x.has-focus .rl.is-hl polygon{ stroke: #C2D02A; stroke-width: 1.6; stroke-linejoin: round; }
.roof-x.show-rust .rl-rust, .roof-x.show-seam .rl-seam{ opacity: 1; }
.roof-x .rl-drop{ animation: dropFall 1.4s ease-in infinite; }
.roof-x .rl-drop:nth-child(2){ animation-delay: .45s; }
.roof-x .rl-drop:nth-child(3){ animation-delay: .9s; }
@keyframes dropFall{ 0%{ transform: translateY(-12px); opacity: 0; } 30%{ opacity: 1; } 100%{ transform: translateY(26px); opacity: 0; } }
.roof-copy .x-sub{ color: #fff; margin: 4px 0 10px; }
.roof-copy > p{ color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 18px; }
.roof-list{ display: grid; gap: 8px; }
@media (min-width: 560px) and (max-width: 999px){ .roof-list{ grid-template-columns: 1fr 1fr; } }
.roof-list button{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-on-dark);
  background: rgba(255,255,255,.02);
  color: #fff;
  font: 600 .95rem/1.25 var(--font-heading);
  text-align: left;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.roof-list button span{ font: 600 .7rem/1 var(--font-mono); letter-spacing: .06em; color: var(--lime); min-width: 22px; }
.roof-list button:hover,
.roof-list button:focus-visible,
.roof-list button.is-on{ border-color: rgba(194,208,42,.55); background: rgba(194,208,42,.09); transform: translateX(6px); }

.mnt-general{ margin-top: clamp(72px, 9vw, 120px); }
.mnt-general-head{ margin-bottom: 26px; }
.mnt-general-head .x-sub{ color: #fff; margin-top: 4px; }
.gen-grid{ display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px){ .gen-grid{ grid-template-columns: repeat(4, 1fr); } }
.gen-tile{
  padding: 22px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-on-dark);
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform var(--dur-m) var(--ease), opacity var(--dur-m) var(--ease);
}
.gen-tile:hover{ border-color: rgba(194,208,42,.45); background: rgba(194,208,42,.06); }
.gen-tile svg{ width: 42px; height: 42px; color: var(--lime); }
.gen-tile svg path{ stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1); transition-delay: calc(.25s + var(--i, 0) * 90ms); }
.gen-tile.is-visible svg path{ stroke-dashoffset: 0; }
.gen-tile h4{ font-size: .98rem; line-height: 1.3; color: #fff; }
.gen-n{ position: absolute; top: 18px; right: 18px; font: 600 .66rem/1 var(--font-mono); letter-spacing: .06em; color: rgba(255,255,255,.35); transition: color .3s var(--ease); }
.gen-tile:hover .gen-n{ color: var(--lime); }
.gen-tile::after{
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.gen-tile:hover::after{ transform: scaleX(1); }

.build{ position: relative; margin-top: clamp(72px, 9vw, 120px); }
.build-sticky{ position: relative; padding-bottom: 20px; }
.build-grid{ display: grid; gap: 26px; align-items: center; }
@media (min-width: 960px){ .build-grid{ grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr); gap: 48px; } }
.build-copy .x-sub{ color: #fff; margin-top: 4px; }
.build-counter{ display: flex; align-items: flex-end; margin: 18px 0 16px; font: 700 clamp(3.4rem, 6.4vw, 5.6rem)/.85 var(--font-display); letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; }
.build-counter b{ color: var(--lime); }
.build-counter span{ color: rgba(255,255,255,.28); font-size: .42em; margin-left: 4px; padding-bottom: .1em; }
.build-pct{ display: flex; flex-direction: column; gap: 6px; margin-left: auto; padding: 0 0 .12em 18px; border-left: 1px solid var(--line-on-dark); font-style: normal; }
.build-pct small{ font: 500 .6rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.build-pct i{ font: 600 1.7rem/1 var(--font-display); font-style: normal; color: #fff; min-width: 3ch; }
.build-steps{ display: grid; gap: 2px; counter-reset: bst; }
.build-steps li{ display: flex; align-items: center; gap: 14px; padding: 7px 0; font: 600 .95rem/1.3 var(--font-heading); color: rgba(255,255,255,.34); transition: color .35s var(--ease); }
.build-steps li i{ flex-shrink: 0; width: 22px; height: 2px; background: rgba(255,255,255,.15); transition: width .45s var(--ease), background .35s var(--ease); }
.build-steps li.is-done{ color: rgba(255,255,255,.62); }
.build-steps li.is-done i{ background: rgba(194,208,42,.5); }
.build-steps li.is-on{ color: #fff; }
.build-steps li.is-on i{ width: 46px; background: var(--lime); }
.build-viz{
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 55%, rgba(194,208,42,.09), transparent 62%);
}
.build-viz{ position: relative; padding-top: 30px; }
.build-viz.has-3d .cx-svg{ visibility: hidden; }
.build-viz .e3d-host{ top: 30px; }
.build-cap{ position: absolute; left: 4%; right: 4%; top: 0; z-index: 1; }
.cx-svg{ display: block; width: 100%; height: auto; }
.build-bar{ position: relative; margin: 22px var(--pad-inline) 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); }
.build-bar > i{ position: absolute; inset: 0; border-radius: 3px; background: var(--lime); transform: scaleX(var(--p, 1)); transform-origin: left; }
.build-ticks{ position: absolute; left: 0; right: 0; top: -4px; display: flex; justify-content: space-between; pointer-events: none; }
.build-ticks li{
  position: relative;
  width: 0;
  height: 27px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  white-space: nowrap;
  font: 500 .6rem/1 var(--font-mono);
  color: rgba(255,255,255,.4);
  transition: color .3s var(--ease);
}
.build-ticks li::before{ content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 11px; background: rgba(255,255,255,.3); }
.build-ticks li.is-done{ color: var(--lime); }

/* Modo obra por etapas ligado al scroll (activado por JS) */
.build.js-build{ height: 380vh; }
.build.js-build .build-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  overflow: hidden;
}
.build.js-build .cx-stage{ opacity: 0; will-change: transform, opacity; }
@media (max-width: 959px){
  .build.js-build .build-viz{ order: -1; }
  .build.js-build .build-counter{ margin: 10px 0 6px; font-size: 2.4rem; }
  .build.js-build .build-steps li{ display: none; }
  .build.js-build .build-steps li.is-on{ display: flex; }
  .build.js-build .build-copy .x-sub{ font-size: 1.15rem; }
}

/* =========================================================
   05–09 — MOVIMIENTO REDUCIDO: versión estática completa
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .split-reveal .w > span{ transform: none; transition: none; }
  .reveal-clip{ clip-path: none; transition: none; }
  .sec-num{ transform: none; }
  .scan-beam, .pin-ring, .amb-doc, .amb-mag, .amb-up, .amb-plume,
  .hub-orbit, .hub-pulse, .pc-spin, .ps-dot, .pg-focus,
  .roof-x .rl-drop, .marquee-track{ animation: none !important; }
  .hub-pulse, .pg-focus{ display: none; }
  .marquee-track{ flex-wrap: wrap; width: auto; justify-content: center; row-gap: 10px; }
  .marquee-track span:nth-child(n+7){ display: none; }
  .roof-x .rl, .roof-x .rl-tag{ transition: none; }
  .rc-bars rect, .g-bar, .ct-lane i{ transform: none; transition: none; }
  .rc-line, .dcm-y path, .hub-trace, .ac-curve, .gen-tile svg path{ stroke-dashoffset: 0; transition: none; }
  .pg-thumbs g, .rc-dots circle, .rc-val text, .rc-ann g, .dcm-row, .ac-end, .flow-gate{ opacity: 1; transform: none; transition: none; }
  .flow-link::after{ transform: none; transition: none; }
  .amb-drill{ transition: none; }
  .amb-samples rect{ transition: none; }
  .amb-panel:not([hidden]), .amb-panel:not([hidden]) .at-row{ animation: none; }
}

/* =========================================================
   09 — CÓMO TRABAJAMOS: FLUJO DE CINCO PASOS
   La línea se traza con el scroll y cada paso se "enciende" al alcanzarlo.
   ========================================================= */
.proc-x{
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(42,44,46,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,44,46,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.proc{ position: relative; }
.proc-rail{
  position: absolute;
  left: 32px; right: 0; top: 31px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(42,44,46,.28) 0 6px, transparent 6px 11px);
}
.proc-fill{ position: absolute; inset: 0; background: var(--lime-dark); transform: scaleX(var(--pp, 1)); transform-origin: left; }
.proc-list{ position: relative; display: grid; gap: 28px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.proc-step{ position: relative; min-width: 0; }
.proc-node{
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(42,44,46,.22);
  box-shadow: 0 16px 30px -22px rgba(42,44,46,.5);
  transition: background .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.proc-node svg{ width: 28px; height: 28px; fill: none; stroke: var(--carbon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s var(--ease); }
.proc-step.is-reached .proc-node{ background: var(--carbon); border-color: var(--carbon); }
.proc-step.is-reached .proc-node svg{ stroke: var(--lime); }
.proc-step:hover .proc-node{ transform: translateY(-3px); }
.proc-code{ display: inline-block; margin-bottom: 12px; padding: 5px 7px 4px; border-radius: 4px; background: rgba(194,208,42,.2); font: 600 .66rem/1 var(--font-mono); letter-spacing: .08em; color: var(--lime-dark); }
.proc-step h3{ font-size: 1.1rem; line-height: 1.25; margin-bottom: 8px; }
.proc-step p{ font-size: .9rem; line-height: 1.6; }
.proc-out{ display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font: 600 .84rem/1.35 var(--font-heading); color: var(--carbon); }
.proc-out small{ display: block; margin-bottom: 6px; font: 500 .6rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gray-mark); }

/* Con JS: los pasos aún no alcanzados quedan en gris */
.proc.js-proc .proc-step:not(.is-reached) .proc-node{ box-shadow: none; }
.proc.js-proc .proc-step:not(.is-reached) .proc-node svg{ stroke: rgba(42,44,46,.35); }

@media (max-width: 899px){
  .proc-rail{ left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(42,44,46,.28) 0 6px, transparent 6px 11px); }
  .proc-fill{ transform: scaleY(var(--pp, 1)); transform-origin: top; }
  .proc-list{ grid-template-columns: 1fr; gap: 30px; }
  .proc-step{ display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .proc-node{ grid-row: 1 / span 5; margin-bottom: 0; }
  .proc-code{ justify-self: start; }
}

/* =========================================================
   EQUIPO
   ========================================================= */
.team-stats{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 64px;
}
@media (min-width: 780px){ .team-stats{ grid-template-columns: repeat(4, 1fr); } }
.stat-block{ text-align: left; }
.stat-number{
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label{ font-size: .85rem; line-height: 1.5; color: rgba(255,255,255,.68); }
.stat-note{
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
}

.team-grid{
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px){ .team-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px){ .team-grid{ grid-template-columns: repeat(6, 1fr); } }
.team-card{ text-align: center; }
.team-photo{
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-on-dark);
}
.team-photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-initials{
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
  color: var(--lime);
  background: rgba(194,208,42,.08);
}
.team-card h3{ font-size: .92rem; color: var(--white); margin-bottom: 4px; }
.team-role{ font-size: .74rem; color: var(--lime); font-weight: 600; margin-bottom: 6px; display: block; }
.team-bio{ font-size: .72rem; line-height: 1.5; color: rgba(255,255,255,.55); }

.team-cities{
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.team-cities-label{
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.city-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.city-list li{
  font-size: .92rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.city-list svg{ width: 14px; height: 14px; color: var(--lime); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid{
  display: grid;
  gap: 48px;
}
@media (min-width: 960px){
  .contact-grid{ grid-template-columns: .85fr 1.15fr; }
}
.contact-info h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.contact-info p{ font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }
.contact-email{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--carbon);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--lime);
  margin-bottom: 32px;
}
.contact-email svg{ width: 20px; height: 20px; color: var(--lime-dark); }
.contact-meta{ display: flex; flex-direction: column; gap: 14px; }
.contact-meta-item{
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .88rem; line-height: 1.6;
}
.contact-meta-item svg{ width: 16px; height: 16px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: rgba(194,208,42,.15); flex-shrink: 0; color: var(--lime-dark); margin-top: 2px; }

.form-card{
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
}
.form-row{
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}
@media (min-width: 620px){
  .form-row.cols-2{ grid-template-columns: 1fr 1fr; }
}
.field{ position: relative; }
.field label{
  position: absolute;
  left: 16px; top: 15px;
  font-size: .95rem;
  color: var(--gray-body);
  pointer-events: none;
  transition: transform var(--dur-s) var(--ease), font-size var(--dur-s) var(--ease), color var(--dur-s) var(--ease), top var(--dur-s) var(--ease);
  background: transparent;
  padding-inline: 4px;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  background: var(--white);
  color: var(--carbon);
  transition: border-color var(--dur-s) var(--ease);
}
.field textarea{ min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus{ border-color: var(--lime-dark); outline: none; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field.has-value label{
  top: -9px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--lime-dark);
  background: var(--surface-alt);
}
.field select{ cursor: pointer; }
.field-error{
  display: block;
  font-size: .78rem;
  color: #B4432A;
  margin-top: 6px;
  min-height: 1em;
}
.field-hint{ display: none; }
.honeypot-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  display: none;
}
.form-status.is-visible{ display: block; }
.form-status.is-success{ background: rgba(194,208,42,.16); color: var(--lime-dark); }
.form-status.is-error{ background: rgba(180,67,42,.12); color: #B4432A; }
.form-status a{ font-weight: 700; text-decoration: underline; }

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.footer{
  background: var(--carbon);
  color: rgba(255,255,255,.6);
  padding-block: 56px 32px;
}
.footer-top{
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 28px;
}
@media (min-width: 780px){
  .footer-top{ grid-template-columns: 1.2fr repeat(3, 1fr); }
}
.footer-brand{ display: block; }
.footer-logo{ height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p{ font-size: .85rem; line-height: 1.6; max-width: 34ch; }
.footer-col h4{
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.footer-values{ display: flex; flex-direction: column; gap: 10px; }
.footer-values li{ font-size: .9rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 8px; }
.footer-values .chip{ width: 7px; height: 12px; }
.footer-col a{ display: block; font-size: .9rem; margin-bottom: 10px; color: rgba(255,255,255,.8); }
.footer-col a:hover{ color: var(--lime); }
.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* =========================================================
   404
   ========================================================= */
.error-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: var(--surface-alt);
}
.error-page h1{ font-size: clamp(3rem, 8vw, 5rem); color: var(--lime-dark); }
.error-page p{ margin-block: 16px 28px; font-size: 1.05rem; }

/* =========================================================
   UTILIDADES
   ========================================================= */
.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
