/* ==========================================================================
   BIH · Sistema visual 3D (2026-11)
   Dark cinematic · glassmorphism · arquitectura digital.
   Se carga despues de home-2026.css y solo gobierna la portada.
   Conserva todo el contenido y las funcionalidades: aqui solo cambia
   como se ve.
   ========================================================================== */

/* ---------- 1. Paleta y primitivas ---------- */
.page-home {
  /* PALETA OFICIAL · BIH Digital Experience 2026
     Obsidian #08090B · Graphite #111419 · Pure White #F5F5F2
     Soft Gray #A1A5AC · Electric Blue #356DFF · Deep Blue #142B55
     Emerald #26A879 · Champagne Gold #C8AD7F
     Distribucion: 60% negro, 25% blanco, 10% azul, 3% champagne, 2% verde.
     Los degradados indiscriminados, los verdes neon y los azules de
     juego quedan fuera: el verde es un detalle, no un acento. */
  --obsidian: #08090b;
  --graphite: #111419;
  --white: #f5f5f2;
  --soft-gray: #a1a5ac;
  --electric-blue: #356dff;
  --deep-blue: #142b55;
  --emerald: #26a879;
  --champagne-gold: #c8ad7f;

  /* Alias del sistema heredado, apuntando a la paleta oficial. */
  --gold: var(--electric-blue);
  --gold-soft: var(--emerald);
  --gold-deep: #8fb4ff;

  --blue: var(--electric-blue);
  --blue-deep: var(--deep-blue);
  --steel: var(--white);
  --steel-dim: var(--soft-gray);
  --paper: var(--white);
  --night: var(--obsidian);
  --night-2: var(--graphite);
  --night-3: var(--deep-blue);

  --cyan: var(--electric-blue);
  --green: var(--emerald);
  --green-soft: #5fc9a4;
  --champagne: var(--champagne-gold);
  --champagne-soft: #ddc79c;
  --violet: var(--deep-blue);

  --glass: rgba(17, 20, 25, 0.62);
  --glass-strong: rgba(8, 9, 11, 0.78);
  --glass-line: rgba(53, 109, 255, 0.2);
  --glass-line-strong: rgba(53, 109, 255, 0.44);
  --glass-blur: blur(18px);

  --glow-blue: 0 0 44px rgba(53, 109, 255, 0.3);
  --glow-cyan: 0 0 30px rgba(53, 109, 255, 0.26);
  --glow-green: 0 0 26px rgba(38, 168, 121, 0.3);

  --scene-opacity: 0.3;
}

/* Superficie de cristal: la base de tarjetas, paneles y formularios. */
.glass {
  position: relative;
  background:
    linear-gradient(160deg, rgba(0, 217, 255, 0.06), transparent 42%),
    var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--home-radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 24px 60px rgba(3, 6, 18, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Filo luminoso: una linea de luz en el borde superior de la superficie. */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(0, 217, 255, 0.55),
    rgba(37, 99, 255, 0.22) 42%,
    transparent 68%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- 2. Fondo cinematico del hero ---------- */
.hero26--3d {
  background:
    radial-gradient(120% 90% at 76% 34%, rgba(37, 99, 255, 0.14), transparent 62%),
    linear-gradient(170deg, #05070d 0%, #070c18 46%, #05070d 100%);
}

/* Ningun adorno puede empujar el ancho del documento: recorte sin
   contenedor de scroll, para que el scroll horizontal no aparezca. */
.page-home,
.page-home main {
  overflow-x: clip;
}

/* El nucleo 3D dejo de ser el fondo a pantalla completa (Fase 1): ahora
   es el protagonista enmarcado de la escena de la derecha. Estas reglas
   se conservan por si el markup vuelve al modo fondo, pero ya no aplican
   a la portada actual. */
.hero26__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.08) brightness(0.8);
  -webkit-mask-image: linear-gradient(90deg, transparent 26%, rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.82) 58%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 26%, rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.82) 58%, #000 72%);
  transition: opacity 1.6s ease, transform 14s ease-out;
}

.hero26__bg-video.is-ready {
  opacity: 0.72;
}

/* Velo del hero: oscurece la izquierda para que el titular se lea y
   deja pasar el azul por la derecha. */
.hero26--3d .hero26__scrim {
  background:
    linear-gradient(
      92deg,
      rgba(5, 7, 13, 0.97) 0%,
      rgba(5, 7, 13, 0.88) 32%,
      rgba(5, 7, 13, 0.46) 62%,
      rgba(5, 7, 13, 0.3) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 7, 13, 0.72) 0%,
      rgba(5, 7, 13, 0.1) 34%,
      rgba(5, 7, 13, 0.24) 64%,
      rgba(5, 7, 13, 0.96) 100%
    );
}

/* Particulas: puntos de luz en deriva lenta. */
.hero26__particles {
  position: absolute;
  inset: -10%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 26%, rgba(0, 217, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(37, 99, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 44% 62%, rgba(0, 217, 255, 0.6), transparent),
    radial-gradient(2px 2px at 86% 72%, rgba(118, 87, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 8% 78%, rgba(0, 217, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 58% 88%, rgba(37, 99, 255, 0.6), transparent);
  background-size: 520px 520px;
  animation: hero26-drift 44s linear infinite;
}

@keyframes hero26-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-120px, -160px, 0);
  }
}

/* ---------- 3. Marco del video real ---------- */
.hero26__video-col {
  position: relative;
  min-width: 0;
}

.hero26__video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(0, 217, 255, 0.26);
  border-radius: 16px;
  background: linear-gradient(180deg, #0a1020, #05070d);
  box-shadow:
    0 34px 88px rgba(3, 6, 18, 0.62),
    0 0 54px rgba(37, 99, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1500px) rotateY(-8deg) rotateX(2.5deg);
  transition: transform 0.7s var(--home-ease), box-shadow 0.7s var(--home-ease);
}

.hero26__video-frame:hover {
  transform: perspective(1500px) rotateY(-3deg) rotateX(1deg);
  box-shadow:
    0 40px 100px rgba(3, 6, 18, 0.66),
    0 0 70px rgba(0, 217, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero26__video-frame .hero__video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  filter: saturate(1.05) contrast(1.03);
}

.hero26__video-frame .hero__video.is-ready {
  opacity: 1;
}

/* Halo del marco: la luz que el panel proyecta sobre la escena. */
.hero26__video-glow {
  position: absolute;
  inset: -14% -10%;
  z-index: 0;
  background: radial-gradient(circle at 50% 45%, rgba(37, 99, 255, 0.4), rgba(0, 217, 255, 0.12) 44%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero26__video-reflection {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(128deg, rgba(0, 217, 255, 0.16) 0%, transparent 38%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* ---------- 4. Botones y acentos ---------- */
.page-home .btn--champagne {
  background: linear-gradient(135deg, #3d78ff, #2563ff 55%, #1e4fd6);
  border-color: rgba(0, 217, 255, 0.42);
  color: #f5f7ff;
  box-shadow:
    0 16px 40px rgba(37, 99, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.page-home .btn--champagne:hover {
  background: linear-gradient(135deg, #5b8dff, #2f6bff 55%, #2563ff);
  border-color: rgba(0, 217, 255, 0.75);
  color: #ffffff;
  box-shadow:
    0 22px 52px rgba(37, 99, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.page-home .btn--outline {
  background: rgba(10, 16, 32, 0.42);
  border-color: rgba(0, 217, 255, 0.32);
  color: var(--paper);
  backdrop-filter: blur(10px);
}

.page-home .btn--outline:hover {
  background: rgba(37, 192, 140, 0.12);
  border-color: rgba(37, 192, 140, 0.7);
  color: var(--green-soft);
}

/* El kicker es el posicionamiento: champana, el acento calido de la marca. */
.page-home .hero26__kicker {
  color: var(--champagne);
  text-shadow: 0 0 22px rgba(228, 199, 131, 0.28);
}

.page-home .hero26__kicker::before {
  background: var(--champagne);
}

/* Los numeros de seccion van en verde: es la alternativa al azul. */
.page-home .eyebrow span {
  color: var(--champagne);
  background: rgba(228, 199, 131, 0.09);
  border-color: rgba(228, 199, 131, 0.36);
}

/* ---------- 5. Escenarios 3D de seccion ---------- */
.home-section {
  position: relative;
  isolation: isolate;
}

.home-section__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.home-section__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--scene-opacity);
  filter: saturate(0.85) contrast(1.05);
}

/* Un escena puede ser un video (atmosfera) en vez de una imagen. */
.home-section__scene video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) contrast(1.04);
  transition: opacity 1.8s ease;
}

.home-section__scene video.is-ready {
  opacity: calc(var(--scene-opacity) * 0.85);
}

/* El video ambiental se deja respirar mas que una imagen de escenario. */
.home-section__scene--ambient::after {
  background:
    radial-gradient(130% 90% at 50% 45%, transparent 24%, rgba(5, 7, 13, 0.7) 80%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.88), rgba(5, 7, 13, 0.42) 42%, rgba(5, 7, 13, 0.9));
}

/* Escenas con dos capas: la imagen define el tema y el video ambiental
   aporta el movimiento por debajo. */
.home-section__scene--layered video.is-ready {
  opacity: calc(var(--scene-opacity) * 1.5);
}

.home-section__scene--layered img {
  opacity: calc(var(--scene-opacity) * 0.78);
}

.home-section__scene--layered::after {
  background:
    radial-gradient(125% 85% at 50% 40%, transparent 24%, rgba(5, 7, 13, 0.8) 82%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.88), rgba(5, 7, 13, 0.5) 40%, rgba(5, 7, 13, 0.9));
}

.home-section__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 18%, rgba(5, 7, 13, 0.86) 78%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.92), rgba(5, 7, 13, 0.55) 40%, rgba(5, 7, 13, 0.94));
}

.home-section__scene--right img {
  object-position: 78% center;
}

.home-section__scene--center img {
  object-position: center;
}

/* ---------- 6. Soluciones: tarjetas 3D ---------- */
.solutions26 {
  --scene-opacity: 0.22;
}

.solution26 {
  background:
    linear-gradient(165deg, rgba(0, 217, 255, 0.05), transparent 45%),
    rgba(12, 19, 38, 0.58);
  border-color: var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 26px 64px rgba(3, 6, 18, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px));
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.5s var(--home-ease);
}

.solution26:hover,
.solution26:focus-within {
  --tilt-lift: -4px;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, -4px));
}

.solution26::before {
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.8), transparent);
  opacity: 0.55;
}

.solution26::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(0, 217, 255, 0.5),
    rgba(37, 99, 255, 0.16) 46%,
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.solution26:hover::after {
  opacity: 1;
}

.solution26:hover {
  border-color: rgba(0, 217, 255, 0.42);
  box-shadow:
    0 34px 84px rgba(3, 6, 18, 0.58),
    0 0 46px rgba(37, 99, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.solution26__media {
  border-color: rgba(0, 217, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 255, 0.08),
    0 18px 44px rgba(3, 6, 18, 0.5);
}

.solution26__media video {
  filter: saturate(1.06) contrast(1.04);
}

.solution26__media-tag {
  background: rgba(5, 7, 13, 0.72);
  border-color: rgba(0, 217, 255, 0.32);
  backdrop-filter: blur(8px);
  color: var(--paper);
}

.solution26__tag {
  color: var(--green);
}

.solution26__benefits li::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(37, 192, 140, 0.14);
}

.solution26__closing {
  border-left-color: var(--champagne);
  color: var(--champagne-soft);
}

.solution26__levels span:not(.solution26__levels-label) {
  color: var(--champagne);
}

.solution26__levels span:not(.solution26__levels-label) + span:not(.solution26__levels-label)::before {
  color: rgba(146, 156, 179, 0.8);
}

/* ---------- 7. Diferenciacion: nodos luminosos ---------- */
.diff26 {
  --scene-opacity: 0.26;
}

.diff26__grid {
  border-top-color: rgba(37, 192, 140, 0.22);
}

.diff26__item {
  border-right-color: rgba(37, 192, 140, 0.14);
}

.diff26__num {
  color: rgba(37, 192, 140, 0.2);
}

.diff26__line {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

/* ---------- 8. ORNAPRODU: ecosystem tridimensional ---------- */
.project26 {
  --scene-opacity: 0.34;
}

/* La columna derecha apila capturas, participacion y datos: las dos
   columnas miden lo mismo y no queda vacio bajo los mockups. */
.project26__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(2.5rem, 4.5vw, 4.25rem);
  align-items: start;
}

.project26__aside {
  display: grid;
  gap: clamp(1.5rem, 2.6vw, 2.25rem);
  align-content: start;
  min-width: 0;
}

.project26__glow {
  inset: 2% -8% 6%;
  background:
    radial-gradient(circle at 46% 42%, rgba(53, 109, 255, 0.5), transparent 62%),
    radial-gradient(circle at 74% 70%, rgba(0, 176, 255, 0.22), transparent 58%);
  filter: blur(44px);
}

.project26__browser {
  border-color: rgba(0, 217, 255, 0.32);
  box-shadow:
    0 40px 100px rgba(3, 6, 18, 0.62),
    0 0 80px rgba(53, 109, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg) translateZ(0);
  transition: transform 0.6s var(--home-ease);
}

.project26__browser:hover {
  transform: perspective(1600px) rotateY(-4deg) rotateX(1deg) translateZ(0);
}

.project26__phone {
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow:
    0 34px 80px rgba(3, 6, 18, 0.62),
    0 0 44px rgba(0, 217, 255, 0.18);
}

.project26__fact {
  border-color: rgba(0, 217, 255, 0.14);
  background: rgba(12, 19, 38, 0.42);
  backdrop-filter: blur(12px);
}

/* Los datos pasan a ser una ficha tecnica apilada junto a las capturas. */
.project26__aside .project26__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0;
  border-top: 1px solid rgba(0, 217, 255, 0.18);
  border-bottom: 0;
}

.project26__aside .project26__fact {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: 0.3rem 1.1rem;
  align-items: baseline;
  padding: 1.05rem 0 1.1rem;
  border-right: 0;
  border-bottom: 1px solid rgba(0, 217, 255, 0.12);
  background: none;
  backdrop-filter: none;
}

.project26__aside .project26__fact + .project26__fact {
  padding-left: 0;
}

.project26__aside .project26__fact:last-child {
  padding-right: 0;
  border-bottom: 0;
}

.project26__aside .project26__fact dd {
  margin-top: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Ecosistema: galeria tecnologica */
.portfolio26__card {
  background:
    linear-gradient(160deg, rgba(0, 217, 255, 0.05), transparent 46%),
    rgba(12, 19, 38, 0.52);
  border-color: var(--glass-line);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 24px 60px rgba(3, 6, 18, 0.44);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.45s var(--home-ease);
}

.portfolio26__card:hover {
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow:
    0 30px 74px rgba(3, 6, 18, 0.56),
    0 0 44px rgba(37, 99, 255, 0.22);
}

.portfolio26__badge {
  border-color: rgba(37, 192, 140, 0.32);
  color: var(--green);
  background: rgba(37, 192, 140, 0.09);
}

.portfolio26__num {
  color: rgba(37, 192, 140, 0.6);
}

.portfolio26__feature-media img {
  filter: saturate(1.05);
}

/* ---------- 9. Sobre mi: retrato editorial ---------- */
.about26 {
  --scene-opacity: 0.18;
}

.about26__ring {
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(0, 217, 255, 0.1),
    0 0 60px rgba(37, 99, 255, 0.24);
}

/* Triangulo geometrico detras del retrato: sustituye al cuadro.
   El vertice sobresale por arriba y las dos bases quedan a los lados. */
.about26__triangle {
  position: absolute;
  inset: -26% -16% -2%;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(
    168deg,
    rgba(37, 192, 140, 0.42),
    rgba(37, 99, 255, 0.2) 50%,
    rgba(228, 199, 131, 0.14) 100%
  );
  filter: drop-shadow(0 0 22px rgba(37, 99, 255, 0.26));
}

.about26__triangle::before {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background:
    radial-gradient(circle at 50% 34%, rgba(37, 99, 255, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(10, 16, 32, 0.86), rgba(5, 7, 13, 0.94));
}

/* La sombra va sobre el retrato circular, no sobre el marco cuadrado. */
.about26__portrait {
  box-shadow: none;
}

.about26__portrait img {
  box-shadow:
    0 34px 80px rgba(3, 6, 18, 0.62),
    0 0 54px rgba(37, 99, 255, 0.24);
}

.about26__meta li {
  border-color: rgba(37, 192, 140, 0.18);
  color: var(--steel-dim);
}

/* ---------- 10. Metodo: tres etapas conectadas ---------- */
.method26 {
  --scene-opacity: 0.26;
}

.method26__flow {
  position: relative;
}

.method26__step {
  background:
    linear-gradient(165deg, rgba(0, 217, 255, 0.06), transparent 48%),
    rgba(12, 19, 38, 0.5);
  border: 1px solid var(--glass-line);
  border-radius: var(--home-radius);
  padding: 7rem clamp(1.25rem, 2.6vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 22px 54px rgba(3, 6, 18, 0.42);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0px));
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.45s var(--home-ease);
}

.method26__step:hover {
  --tilt-lift: -4px;
  border-color: rgba(0, 217, 255, 0.42);
  box-shadow:
    0 28px 66px rgba(3, 6, 18, 0.52),
    0 0 40px rgba(37, 99, 255, 0.2);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, -4px));
}

.method26__num {
  top: 1.4rem;
  left: 1.4rem;
  border-color: rgba(37, 192, 140, 0.44);
  background: rgba(5, 7, 13, 0.82);
  color: var(--green);
  box-shadow:
    0 0 0 6px rgba(5, 7, 13, 0.35),
    0 0 26px rgba(37, 192, 140, 0.26);
}

/* La linea que conecta las tres etapas avanza con el scroll: la capa base
   es la linea existente; esta segunda capa la rellena segun
   --method26-progress (que fija el motor de escenas). Horizontal en
   escritorio; en movil (flow vertical) se rellena hacia abajo. */
.method26__flow::after {
  content: "";
  position: absolute;
  top: 2.28rem;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--method26-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--champagne-gold), var(--electric-blue));
  box-shadow: 0 0 12px rgba(53, 109, 255, 0.4);
  pointer-events: none;
}

@media (max-width: 900px) {
  .method26__flow::after {
    top: 0;
    bottom: 0;
    left: 2.27rem;
    width: 2px;
    height: auto;
    transform: scaleY(var(--method26-progress, 0));
    transform-origin: center top;
    background: linear-gradient(180deg, var(--champagne-gold), var(--electric-blue));
  }
}

/* Estados de etapa: la actual conserva todo el protagonismo, las
   anteriores lo pierden parcialmente y la etapa anterior sigue legible.
   Solo con JavaScript (.method-live); sin JS las tres etapas quedan
   completas. */
.method26__flow.method-live .method26__step {
  opacity: 0.5;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.45s var(--home-ease),
    opacity 0.5s ease;
}

.method26__flow.method-live .method26__step.is-past {
  opacity: 0.72;
}

.method26__flow.method-live .method26__step.is-current {
  opacity: 1;
}

.method26__flow.method-live .method26__num {
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    color 0.4s ease;
}

.method26__flow.method-live .method26__step.is-current .method26__num {
  border-color: rgba(0, 217, 255, 0.85);
  color: var(--white);
  box-shadow:
    0 0 0 6px rgba(5, 7, 13, 0.35),
    0 0 26px rgba(0, 217, 255, 0.5);
}

/* ---------- 11. Contacto: formulario glassmorphism ---------- */

/* El formulario se ancla en champana: foco, opciones, casilla y envio. */
.contact26__form input:focus,
.contact26__form select:focus,
.contact26__form textarea:focus,
.contact26__form input:focus-visible,
.contact26__form select:focus-visible,
.contact26__form textarea:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(228, 199, 131, 0.16);
}

.contact26__form .form26__option input:focus-visible + span {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}

.form26__option input:checked + span {
  border-color: #cfae63;
  background: linear-gradient(135deg, #f2ddb0, var(--champagne) 58%, #cfae63);
  color: #14100a;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.form26__option input:focus-visible + span {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}

.form26__check input:checked {
  border-color: var(--champagne);
  background: var(--champagne);
}

.form26__check input:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}

/* El envio del formulario se destaca en dorado champana. */
.contact26__form .form26__submit .btn {
  background: linear-gradient(135deg, #f2ddb0, var(--champagne) 58%, #cfae63);
  border-color: rgba(228, 199, 131, 0.6);
  color: #14100a;
  box-shadow:
    0 16px 38px rgba(228, 199, 131, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.contact26__form .form26__submit .btn:hover {
  background: linear-gradient(135deg, #f7e6bd, #edd7a0 58%, #dcbf7a);
  border-color: var(--champagne);
  color: #14100a;
  box-shadow:
    0 22px 50px rgba(228, 199, 131, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.contact26__panel {
  background:
    linear-gradient(165deg, rgba(0, 217, 255, 0.06), transparent 46%),
    rgba(12, 19, 38, 0.58);
  border-color: var(--glass-line);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 32px 84px rgba(3, 6, 18, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact26__form input,
.contact26__form select,
.contact26__form textarea {
  background: rgba(5, 7, 13, 0.46);
  border-color: rgba(0, 217, 255, 0.2);
  color: var(--paper);
}

.contact26__trust li {
  border-color: rgba(37, 192, 140, 0.18);
}

.contact26__trust .icon {
  color: var(--green);
}

.contact26__wa {
  border-color: rgba(37, 192, 140, 0.3);
  background: rgba(37, 192, 140, 0.07);
}

.contact26__wa:hover {
  border-color: rgba(37, 192, 140, 0.62);
  background: rgba(37, 192, 140, 0.13);
}

/* ---------- 11b. Titular de Contacto: metal verde cepillado ---------- */

/* "puede lograr." se rellena con una textura raster real de acero verde
   cepillado en horizontal: vetas de laminado y grano fino generados como
   imagen, no como degradado. Sin brillos de espejo ni volumen: es material. */
.contact26__copy .section-title em {
  display: inline-block;
  color: transparent;
  /* Si la imagen no carga, el relleno sigue siendo legible. */
  background-color: #8fd7bd;
  /* Textura raster real: metal verde cepillado en horizontal. */
  background-image: url("../img/textures/green-brushed-metal.png?v=20261118d");
  background-size: 180px 180px;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Un unico filo de luz, sin halos volumetricos. */
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.16))
    drop-shadow(0 0 18px rgba(22, 133, 107, 0.26));
  padding-right: 0.04em;
}

/* Fallback si el navegador no recorta el fondo sobre el texto. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .contact26__copy .section-title em {
    color: #35b98c;
    -webkit-text-fill-color: currentColor;
  }
}

/* ---------- 12. Footer y cabecera ---------- */

/* Menu movil: los numeros de seccion van en dorado champana. */
.menu__nav a span {
  color: var(--champagne);
}

/* Desplegable de escritorio: numeros en champana y WhatsApp en verde.
   Se ancla en `a.nav-panel__wa` para superar la especificidad de
   `.nav-panel a span` de la hoja base. */
.nav-panel a:not(.nav-panel__wa) span {
  color: var(--champagne);
}

.nav-panel a.nav-panel__wa,
.nav-panel a.nav-panel__wa span {
  color: var(--green);
}

.nav-panel a.nav-panel__wa .icon {
  color: var(--green);
}

.nav-panel a.nav-panel__wa:hover,
.nav-panel a.nav-panel__wa:focus-visible {
  color: var(--green-soft);
}

.nav-panel a.nav-panel__wa:hover .icon,
.nav-panel a.nav-panel__wa:focus-visible .icon {
  color: var(--green-soft);
}

.nav-panel a.nav-panel__wa:hover span,
.nav-panel a.nav-panel__wa:focus-visible span {
  color: var(--green-soft);
}

.page-home .site-header {
  background: rgba(5, 7, 13, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 217, 255, 0.14);
}

.page-home .site-header.is-scrolled,
.page-home .site-header--solid {
  background: rgba(5, 7, 13, 0.9);
  border-bottom-color: rgba(0, 217, 255, 0.18);
}

.page-home .nav-main a:hover {
  color: #7aa2ff;
}

/* El enlace activo se marca en azul y sostiene la linea en dorado. */
.page-home .nav-main > a.is-active {
  color: #7aa2ff;
  box-shadow: 0 2px 0 0 rgba(228, 199, 131, 0.9);
}

.page-home .footer26__hero {
  border-bottom-color: rgba(0, 217, 255, 0.16);
}

.page-home .footer26__card {
  border-color: rgba(0, 217, 255, 0.14);
  background: rgba(12, 19, 38, 0.4);
}

/* Los tres titulos del pie en dorado champana. */
.footer26__nav h3 {
  color: var(--champagne);
}

/* La firma es una marca de agua del pie: se pinta bajo el contenido y con
   un peso que no compite con los enlaces de Contacto ni con la linea legal. */
.footer26__hero,
.footer26__grid,
.footer26__bottom {
  position: relative;
  z-index: 1;
}

.page-home .footer26__sig {
  z-index: 0;
  opacity: 0.26;
  filter: grayscale(0.4) brightness(1.1);
}

/* ---------- 13. Responsive ----------
   home-3d.css se carga despues de home-2026.css y los media queries no
   anaden especificidad: hay que re-afirmar aqui las reglas moviles que la
   hoja base define para los mismos selectores. */
@media (max-width: 1080px) {
  .solution26:nth-child(1),
  .solution26:nth-child(4) {
    display: flex;
  }
}

@media (max-width: 1024px) {
  /* El proyecto pasa a una sola columna: el aside se apila bajo el texto. */
  .project26__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project26__visual {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .project26__phone {
    right: 0;
  }

  .project26__browser {
    transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  }

  .hero26--3d .hero26__columns {
    grid-template-columns: 1fr;
  }

  /* La escena del hero se recompone: el nucleo y el corporativo se
     apilan como bloques independientes (reglas completas en el bloque 16). */
  .hero26__stage {
    max-width: min(100%, 560px);
    margin-inline: auto;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: clamp(1.5rem, 5vw, 2.25rem);
    justify-items: stretch;
  }

  .hero26__core-col {
    grid-area: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    order: 1;
  }

  .hero26__core-frame {
    aspect-ratio: 4 / 5;
    max-height: 58svh;
  }

  .hero26__video-col {
    grid-area: auto;
    order: 2;
    justify-self: stretch;
    align-self: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    opacity: 0.7;
    transform: none;
  }

  .js .hero26__video-col,
  .js .hero26__video-col.is-revealed {
    opacity: 0.7;
    transform: none;
  }

  .hero26__video-frame {
    aspect-ratio: 16 / 9;
    transform: none;
  }

  .hero26__bg-video {
    object-position: 60% center;
    opacity: 0;
  }

  .hero26__bg-video.is-ready {
    opacity: 0.42;
  }

  .hero26--3d .hero26__scrim {
    background:
      linear-gradient(
        180deg,
        rgba(5, 7, 13, 0.86) 0%,
        rgba(5, 7, 13, 0.94) 34%,
        rgba(5, 7, 13, 0.96) 100%
      );
  }
}

@media (max-width: 900px) {
  .diff26__grid {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
  }

  .diff26__item {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(37, 192, 140, 0.16);
    border-right: 0;
  }

  .diff26__item:first-child {
    padding-top: 1.5rem;
    padding-left: 0;
  }

  .diff26__item:last-child {
    padding-right: 0;
    padding-bottom: 0;
  }

  .diff26__num {
    margin-bottom: 1rem;
    font-size: 2.6rem;
  }

  /* El metodo conserva su linea de tiempo vertical. */
  .method26__flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .method26__flow::before {
    top: 0;
    bottom: 0;
    left: 2.27rem;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(37, 192, 140, 0.55),
      rgba(37, 99, 255, 0.5),
      rgba(228, 199, 131, 0.5)
    );
  }

  .method26__step {
    padding: 0 0 2.25rem 6.25rem;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transform: none;
  }

  .method26__step:last-child {
    padding-bottom: 0;
  }

  .method26__step:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .method26__num {
    top: 0;
    left: 0;
  }

  .method26__step h3,
  .method26__step p {
    max-width: 46ch;
  }

  /* La ficha tecnica pasa a una columna. */
  .project26__aside .project26__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .project26__aside .project26__fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.12);
  }

  .project26__aside .project26__fact:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .hero26__particles {
    opacity: 0.35;
  }

  .home-section__scene img,
  .home-section__scene video {
    opacity: calc(var(--scene-opacity) * 0.7);
  }
}

@media (max-width: 560px) {
  .method26__flow::before {
    left: 2rem;
  }

  .method26__step {
    padding-left: 5.4rem;
  }

  .method26__num {
    width: 4rem;
    height: 4rem;
    top: 0;
    left: 0;
  }

  .project26__phone {
    width: 27%;
    right: 0.35rem;
    bottom: -1.25rem;
    border-width: 3px;
    border-radius: 16px;
  }
}

/* ---------- 14. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero26__particles {
    animation: none;
  }

  /* Sin reproduccion, el marco muestra el poster del video. */
  .hero26__video-frame .hero__video {
    opacity: 1;
  }

  .hero26__core-video {
    opacity: 1;
  }

  .hero26__bg-video {
    transform: none;
    transition: opacity 0.6s ease;
  }

  .solution26,
  .portfolio26__card,
  .method26__step,
  .project26__browser,
  .hero26__video-frame {
    transition: none;
  }

  .project26__browser:hover,
  .method26__step:hover,
  .hero26__video-frame:hover {
    transform: none;
  }
}


/* ==========================================================================
   16. ESCENA 01 · INTRODUCCION + HERO CINEMATOGRAFICO
   Especificacion BIH Digital Experience 2026 (seccion 5).

   Reglas obligatorias:
   - Hero Digital es el FONDO REAL del hero: 100% del ancho visible y
     100% de la altura del viewport. Sin recuadro, sin tarjeta, sin
     ventana flotante, sin bordes ni esquinas redondeadas.
   - El contenido se superpone directamente sobre el escenario.
   - Intro BIH es la presentacion de identidad: a pantalla completa,
     en su propia toma, nunca dentro de una tarjeta.
   ========================================================================== */

/* ---------- 16.1. Intro BIH: presentacion de identidad ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  background: var(--night);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.05s var(--home-ease),
    visibility 0s linear 1.05s;
}

.intro.is-active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s var(--home-ease),
    visibility 0s;
}

/* Salida cinematografica: el encuadre se retira con un leve empuje
   mientras el Hero Digital aparece debajo. */
.intro.is-leaving {
  opacity: 0;
  transform: scale(1.04);
}

.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--home-ease);
}

.intro__video.is-ready {
  opacity: 1;
}

.intro__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.62) 0%, transparent 34%, transparent 62%, rgba(8, 9, 11, 0.86) 100%);
}

.intro__brand {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 9vh, 5rem);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  pointer-events: none;
}

.intro__mark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--paper);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.intro__tag {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne);
}

.intro__skip {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(1.5rem, 5vh, 2.5rem);
  appearance: none;
  border: 1px solid rgba(245, 245, 242, 0.22);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(245, 245, 242, 0.76);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.72em 1.35em;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}

.intro__skip:hover,
.intro__skip:focus-visible {
  color: var(--paper);
  border-color: rgba(245, 245, 242, 0.5);
  background: rgba(8, 9, 11, 0.68);
}

/* ---------- 16.2. Hero Digital: fondo real a pantalla completa ---------- */

/* El hero conserva una altura natural determinada por su contenido. No existe
   un recorrido artificial ni una fijacion: al salir de pantalla, la escena
   siguiente entra de inmediato. */
.hero26__sticky {
  position: relative;
  z-index: 1;
}

.hero26 {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}

/* El video ocupa TODA la superficie del escenario. Sin inset, sin
   margins, sin marco: es el fondo. */
.hero26__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.06) brightness(0.88);
  transition: opacity 1.6s ease;
}

.hero26__bg-video.is-ready {
  opacity: 0.82;
}

/* ---------- 16.3. Contenido superpuesto sobre el escenario ---------- */

/* El contenido no vive en una columna propia al lado: se superpone
   directamente sobre la superficie del video. */
.hero26__content {
  position: relative;
  z-index: 4;
  max-width: min(100%, 62ch);
}

/* Velo que protege la tipografia sin apagar el escenario: oscuro donde
   va el texto, transparente donde el video debe respirar. */
.hero26--3d .hero26__scrim {
  background:
    linear-gradient(
      100deg,
      rgba(8, 9, 11, 0.94) 0%,
      rgba(8, 9, 11, 0.86) 26%,
      rgba(8, 9, 11, 0.5) 48%,
      rgba(8, 9, 11, 0.2) 70%,
      rgba(8, 9, 11, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 9, 11, 0.72) 0%,
      rgba(8, 9, 11, 0.06) 30%,
      rgba(8, 9, 11, 0.18) 62%,
      rgba(8, 9, 11, 0.94) 100%
    );
}

/* ---------- 16.4. Despliegue del mensaje con el scroll ---------- */

/* Ambiente Norvane: al entrar solo conviven el titular (izquierda) y el
   video de presentacion (derecha). Kicker, descripcion, botones y nota
   permanecen plegados hasta que el scroll los despliega. */
/* Cada pieza entra desde un lado distinto: la descripcion desde la
   izquierda, los botones desde la derecha, la nota desde abajo. */
.js [data-hero-unfold] {
  --unfold-x: 0px;
  --unfold-y: 30px;
  opacity: 0;
  transform: translate3d(var(--unfold-x), var(--unfold-y), 0) scale(0.96);
  will-change: opacity, transform;
}

.js [data-hero-unfold][data-unfold-from="left"] {
  --unfold-x: -46px;
  --unfold-y: 0px;
}

.js [data-hero-unfold][data-unfold-from="right"] {
  --unfold-x: 46px;
  --unfold-y: 10px;
}

.js [data-hero-unfold][data-unfold-from="below"] {
  --unfold-x: 0px;
  --unfold-y: 30px;
}

/* Sin GSAP el despliegue tambien ocurre: lo impulsa el progreso del
   recorrido del hero (--hero-progress, calculado por hero-3d.js). */
html.js:not(.gsap-ready) [data-hero-unfold] {
  --unfold-progress: clamp(0, calc((var(--hero-progress, 0) - 0.05) * 4), 1);
  opacity: var(--unfold-progress);
  transform: translate3d(
    calc(var(--unfold-x) * (1 - var(--unfold-progress))),
    calc(var(--unfold-y) * (1 - var(--unfold-progress))),
    0
  ) scale(calc(0.96 + 0.04 * var(--unfold-progress)));
}

/* ---------- 16.5. HERO MOVIL: video vertical a pantalla completa ---------- */

/* En movil se usa la version 9:16 nativa, que no es un recorte del
   horizontal: el encuadre vertical tiene su propia composicion. */
@media (max-width: 900px) {
  .hero26 {
    position: relative;
    min-height: 100svh;
  }

  .hero26__sticky {
    min-height: 100svh;
  }

  .hero26__bg-video {
    object-position: 50% 42%;
    transform: scale(1.02);
    filter: saturate(1.04) contrast(1.04) brightness(0.94);
  }

  .hero26__bg-video.is-ready {
    opacity: 0.62;
  }

  /* El velo en vertical protege la parte alta (donde va el texto) y
     deja respirar la parte baja del encuadre 9:16. */
  .hero26--3d .hero26__scrim {
    background:
      linear-gradient(
        180deg,
        rgba(8, 9, 11, 0.9) 0%,
        rgba(8, 9, 11, 0.82) 38%,
        rgba(8, 9, 11, 0.56) 66%,
        rgba(8, 9, 11, 0.78) 100%
      ),
      linear-gradient(
        92deg,
        rgba(8, 9, 11, 0.6) 0%,
        rgba(8, 9, 11, 0.16) 62%,
        rgba(8, 9, 11, 0.04) 100%
      );
  }

  .hero26__content {
    max-width: 100%;
  }
}

/* ---------- 16.6. Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .js [data-hero-unfold],
  html.js:not(.gsap-ready) [data-hero-unfold] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero26__intro-video {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero26__bg-video {
    opacity: 0.82;
    transform: none;
    transition: opacity 0.6s ease;
  }
}

/* ==========================================================================
   18. BIH DIGITAL EXPERIENCE 2026 · SISTEMA DE ESCENAS
   Director de arte: obsidiana, composicion editorial, profundidad por scroll.
   Paleta oficial de 8 colores (ver bloque 1).
   ========================================================================== */

/* ---------- 18.1. Indicador discreto de progreso ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 240;
  pointer-events: none;
  background: rgba(245, 245, 242, 0.05);
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--electric-blue), var(--champagne-gold));
  box-shadow: 0 0 14px rgba(53, 109, 255, 0.55);
}

/* ---------- 18.2. Introduccion: presentacion de identidad ---------- */

.intro[hidden] {
  display: none;
}

.intro {
  z-index: 300;
}

/* ---------- 18.3. HERO · recorrido de scroll (momento 4) ---------- */

/* El contenedor da altura al recorrido: el escenario queda fijado mientras
   el contenido evoluciona y la escena siguiente entra por debajo. */
.hero26__sticky {
  position: relative;
  z-index: 1;
  height: auto;
}

.hero26 {
  position: relative;
  top: auto;
  height: auto;
  min-height: 100svh;
  overflow: hidden;
}

/* Sin GSAP el hero tambien evoluciona: el video de presentacion se eleva
   con suavidad al avanzar el recorrido. */
html.js:not(.gsap-ready) [data-hero-intro-col] {
  transform: translate3d(0, calc(var(--hero-progress, 0) * -18px), 0);
}

/* ---------- 18.4. Escenas con escenario propio ---------- */

.scene {
  position: relative;
  z-index: 2;
  isolation: isolate;
  /* Nada de overflow: hidden en la escena; romperia el position: sticky
     del visor lateral y del bloque de momentos. */
  overflow: visible;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--obsidian);
}

.scene__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Capa interna que se desplaza con el parallax; el recorte lo hace el
   contenedor, nunca la escena. */
.scene__backdrop-media {
  position: absolute;
  inset: -8% 0;
  display: block;
}

.scene__backdrop video,
.scene__backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06);
}

/* El poster queda visible desde el primer fotograma: nunca hay un hueco
   negro mientras el video descarga. */
.scene__backdrop video {
  opacity: 0.34;
  transition: opacity 1.4s ease;
}

.scene__backdrop video.is-ready {
  opacity: 0.46;
}

.scene__backdrop img {
  opacity: 0.2;
}

.scene__backdrop--layered video.is-ready {
  opacity: 0.52;
}

.scene__backdrop--layered img {
  opacity: 0.24;
}

.scene__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(122% 82% at 50% 38%, transparent 16%, rgba(8, 9, 11, 0.88) 78%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.95), rgba(8, 9, 11, 0.58) 42%, rgba(8, 9, 11, 0.97));
}

.scene__frame {
  position: relative;
  z-index: 1;
}

.scene__head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.scene__head .eyebrow {
  margin-bottom: 1.35rem;
}

.scene__head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.scene__head-grid .lead {
  max-width: 52ch;
}

.scene__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.scene__head--split .lead {
  max-width: 52ch;
}

.scene__note {
  max-width: 88ch;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  color: var(--soft-gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- 18.5. ESCENA 02 · Cuatro lineas de negocio ---------- */

.caps {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.caps__list {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  min-width: 0;
}

.cap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(44svh, 480px);
  padding-block: clamp(1.25rem, 2.4vw, 2.25rem);
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  opacity: 0.72;
  transition: opacity 0.6s ease;
}

.cap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--electric-blue), var(--champagne-gold));
  transition: width 0.8s var(--home-ease);
}

.cap.is-active {
  opacity: 1;
}

.cap.is-active::before {
  width: min(240px, 40%);
}

.cap__index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-gold);
}

.cap__index span {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 1.65rem;
  padding-inline: 0.5rem;
  border: 1px solid rgba(200, 173, 127, 0.38);
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.cap__title {
  margin: 1rem 0 0.55rem;
  max-width: 19ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.05rem + 1.5vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--white);
}

.cap__lead {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--electric-blue);
}

.cap__benefits {
  display: grid;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.cap__benefits li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--soft-gray);
  font-size: 0.93rem;
  line-height: 1.55;
}

.cap__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.65rem;
  height: 1px;
  background: var(--emerald);
}

.cap__levels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.1rem;
  margin: 1.4rem 0 0;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-gold);
}

.cap__levels-label {
  color: var(--soft-gray);
}

.cap__closing {
  margin: 1.35rem 0 0;
  padding-left: 1.1rem;
  border-left: 1px solid rgba(200, 173, 127, 0.45);
  color: #ddc79c;
  font-size: 0.94rem;
  line-height: 1.65;
}

.cap__cta {
  margin-top: 1.5rem;
}

/* Coreografia interna de cada solucion: se activa la primera vez que la
   escena entra en pantalla (clase is-entered que pone el motor de
   escenas). Numero desde la derecha, titulo revelado con mascara,
   descripcion progresiva, funcionalidades escalonadas y boton al final.
   Sin JavaScript (.js ausente) o con movimiento reducido, todo queda
   visible sin animar. */
.js .cap.is-entered .cap__index { animation: cap26Index 0.55s var(--home-ease) both; }
.js .cap.is-entered .cap__title { animation: cap26Mask 0.7s var(--home-ease) both; }
.js .cap.is-entered .cap__lead { animation: cap26Rise 0.6s var(--home-ease) 0.15s both; }
.js .cap.is-entered .cap__benefits li { animation: cap26Rise 0.5s var(--home-ease) both; }
.js .cap.is-entered .cap__benefits li:nth-child(1) { animation-delay: 0.25s; }
.js .cap.is-entered .cap__benefits li:nth-child(2) { animation-delay: 0.35s; }
.js .cap.is-entered .cap__benefits li:nth-child(3) { animation-delay: 0.45s; }
.js .cap.is-entered .cap__benefits li:nth-child(4) { animation-delay: 0.55s; }
.js .cap.is-entered .cap__benefits li:nth-child(5) { animation-delay: 0.65s; }
.js .cap.is-entered .cap__closing { animation: cap26Rise 0.55s var(--home-ease) 0.7s both; }
.js .cap.is-entered .cap__cta { animation: cap26Rise 0.5s var(--home-ease) 0.85s both; }

@keyframes cap26Index {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes cap26Mask {
  from {
    opacity: 0.2;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 -0.1em 0);
  }
}

@keyframes cap26Rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Visor audiovisual: es una ventana de composicion, no una tarjeta.
   Sin bordes, sin esquinas redondeadas, sin marco. */
.caps__stage {
  position: relative;
  height: 82svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.25rem;
}

.caps__viewport {
  position: relative;
  overflow: hidden;
  /* Los films de soluciones son 16:9: la ventana respeta su encuadre para
     que no aparezcan recortados. */
  aspect-ratio: 16 / 9;
  align-self: center;
  width: 100%;
  background:
    radial-gradient(120% 90% at 62% 38%, rgba(53, 109, 255, 0.18), transparent 68%),
    linear-gradient(160deg, rgba(17, 20, 25, 0.94), rgba(8, 9, 11, 0.98));
}

.caps__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.02);
  filter: saturate(1.02) contrast(1.05);
  transition: opacity 1.1s ease, transform 1.8s var(--home-ease);
}

.caps__film.is-active {
  opacity: 1;
  transform: scale(1);
}

.caps__film-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.42), transparent 32%, rgba(8, 9, 11, 0.78)),
    radial-gradient(90% 70% at 50% 50%, transparent 40%, rgba(8, 9, 11, 0.55));
}

.caps__meter {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--soft-gray);
}

.caps__meter-current {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--champagne-gold);
}

.caps__meter-track {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(245, 245, 242, 0.12);
}

.caps__meter-track i {
  position: absolute;
  inset: 0;
  transform: scaleX(var(--scene-progress, 0.25));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--electric-blue), var(--champagne-gold));
  transition: transform 0.7s var(--home-ease);
}

/* ---------- 18.6. ESCENA 03 · Tres momentos ---------- */

.moments {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.moments__list {
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  min-width: 0;
}

.moment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2.25rem);
  align-content: center;
  min-height: min(34svh, 360px);
  padding-block: clamp(1.25rem, 2.4vw, 2.25rem);
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  opacity: 0.7;
  transition: opacity 0.6s ease;
}

.moment.is-active {
  opacity: 1;
}

.moment__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(53, 109, 255, 0.1);
  -webkit-text-stroke: 1px rgba(200, 173, 127, 0.4);
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease;
}

.moment.is-active .moment__num {
  color: rgba(53, 109, 255, 0.14);
  -webkit-text-stroke-color: rgba(53, 109, 255, 0.85);
}

.moment h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--white);
}

.moment p {
  margin-top: 0.7rem;
  max-width: 46ch;
  color: var(--soft-gray);
  font-size: 0.96rem;
  line-height: 1.65;
}

.moments__stage {
  position: relative;
  height: 74svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  align-items: center;
  text-align: center;
}

.moments__ghost {
  font-family: var(--font-display);
  font-size: clamp(7rem, 19vw, 17rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: rgba(53, 109, 255, 0.08);
  -webkit-text-stroke: 1px rgba(53, 109, 255, 0.32);
}

.moments__axis {
  position: relative;
  width: 1px;
  height: 34%;
  margin-block: 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(53, 109, 255, 0.55), transparent);
}

.moments__axis i {
  position: absolute;
  left: 50%;
  top: calc(var(--scene-progress, 0.33) * 100%);
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--electric-blue);
  box-shadow: 0 0 20px rgba(53, 109, 255, 0.9);
  transition: top 0.8s var(--home-ease);
}

.moments__label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--soft-gray);
}

/* Los tres pilares de Diferenciacion entran cada uno con su propio
   lenguaje (profundidad tridimensional): el primero expande desde el
   centro, el segundo se revela con una mascara vertical y el tercero
   entra desde abajo. La salida es de opacidad (estado base 0.7):
   ningun contenido se pierde. */
.js .moment.is-entered[data-scene-step="0"] { animation: moment26Scale 0.7s var(--home-ease) both; }
.js .moment.is-entered[data-scene-step="1"] { animation: moment26Mask 0.8s var(--home-ease) both; }
.js .moment.is-entered[data-scene-step="2"] { animation: moment26Rise 0.7s var(--home-ease) both; }

@keyframes moment26Scale {
  from {
    opacity: 0.15;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes moment26Mask {
  from {
    opacity: 0.2;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 -0.1em 0);
  }
}

@keyframes moment26Rise {
  from {
    opacity: 0.15;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 18.7. ESCENA 06 · Sobre mi (Champagne Glass) ---------- */

.home-section__scene--about {
  inset: -6% 0;
}

.home-section__scene--about video {
  opacity: 0.3;
}

.home-section__scene--about video.is-ready {
  opacity: 0.3;
}

.home-section__scene--about::after {
  background:
    radial-gradient(125% 85% at 50% 42%, transparent 20%, rgba(8, 9, 11, 0.84) 80%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.94), rgba(8, 9, 11, 0.62) 44%, rgba(8, 9, 11, 0.96));
}

/* ---------- 18.8. Responsive: experiencia movil propia ---------- */

@media (max-width: 1024px) {
  .scene__head-grid,
  .scene__head--split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 900px) {
  .hero26__sticky {
    height: auto;
  }

  .hero26 {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  /* Soluciones: el visor se fija arriba y las bandas pasan debajo. */
  .caps {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .caps__stage {
    order: -1;
    position: static;
    /* Ancho completo y altura natural: el video conserva su 16:9 a todo
       lo ancho que la pantalla permita, sin reducirse a una miniatura. */
    width: 100%;
    height: auto;
    z-index: 3;
    margin-bottom: 1.5rem;
  }

  .caps__viewport {
    align-self: stretch;
  }

  .caps__list {
    gap: 0;
  }

  .cap {
    min-height: auto;
    padding-block: 2rem;
    opacity: 1;
  }

  .cap__title {
    max-width: 22ch;
  }

  /* Diferenciacion: los tres momentos se leen en bloque. */
  .moments {
    display: block;
  }

  .moments__stage {
    position: static;
    height: auto;
    padding-block: 1rem 2.5rem;
  }

  .moments__ghost {
    font-size: clamp(5.5rem, 26vw, 9rem);
  }

  .moments__axis {
    height: 26%;
  }

  .moment {
    min-height: auto;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .scene {
    padding-block: clamp(3.5rem, 12vw, 5rem);
  }
}

/* ---------- 18.9. Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .cap,
  .moment {
    opacity: 1;
  }

  .caps__film {
    transform: none;
    transition: opacity 0.3s linear;
  }

  .moments__axis i {
    transition: none;
  }
}

/* ==========================================================================
   19. AMBIENTE NORVANE · dock centrado + hero de dos piezas
   La cabecera se vuelve un menu reducido, centrado y transparente que al
   bajar el scroll se comprime en un bloque triangular con dos lineas; al
   abrirlo despliega un velo sutil, nunca un rectangulo solido. El logotipo
   queda esquinado con sombra para conservar protagonismo.
   ========================================================================== */

/* ---------- 19.1. Cabecera transparente ---------- */

.page-home .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .site-header.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-home .header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ---------- 19.2. Logotipo esquinado con sombra ---------- */

.page-home .brand--corner {
  justify-self: start;
  position: relative;
  z-index: 3;
}

.page-home .brand--corner img {
  filter:
    drop-shadow(0 3px 14px rgba(0, 0, 0, 0.78))
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

/* ---------- 19.3. Boton de cabecera: contorno hasta el hover ---------- */

.page-home .btn--header {
  background: transparent;
  border: 1px solid rgba(245, 245, 242, 0.16);
  color: rgba(245, 245, 242, 0.82);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.35s var(--home-ease),
    border-color 0.35s var(--home-ease),
    color 0.35s var(--home-ease),
    box-shadow 0.35s var(--home-ease);
}

.page-home .btn--header:hover,
.page-home .btn--header:focus-visible {
  background: var(--champagne-gold);
  border-color: var(--champagne-gold);
  color: var(--obsidian);
  box-shadow: 0 12px 34px rgba(200, 173, 127, 0.22);
}

/* En reposo el boton acompana al titular sin competir con el. */
.site-header:not(.is-compact) .btn--header {
  opacity: 0.55;
}

.site-header:not(.is-compact) .btn--header:hover,
.site-header:not(.is-compact) .btn--header:focus-visible {
  opacity: 1;
}

/* En 1181-1365 px el dock central ensancha y su columna estrechaba el CTA:
   la etiqueta se partia en dos lineas. Se mantiene en una sola linea. */
@media (min-width: 1081px) {
  .btn--header .btn__label--full {
    white-space: nowrap;
  }
}

/* ---------- 19.4. Dock centrado: menu reducido transparente ---------- */

.nav-dock {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  min-height: 44px;
}

.nav-dock__links,
.nav-dock__tri {
  grid-area: 1 / 1;
}

.nav-dock__links {
  display: flex;
  align-items: center;
  gap: clamp(1.05rem, 2vw, 1.9rem);
  padding: 0.58rem 1.45rem;
  border-radius: 999px;
  background: rgba(17, 20, 25, 0.16);
  border: 1px solid rgba(245, 245, 242, 0.06);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow: none;
  transition:
    background-color 0.45s var(--home-ease),
    border-color 0.45s var(--home-ease),
    opacity 0.55s var(--home-ease),
    transform 0.55s var(--home-ease),
    filter 0.55s var(--home-ease);
}

/* Al bajar, el dock recupera algo de cuerpo antes de comprimirse. */
.site-header.is-scrolled .nav-dock__links {
  background: rgba(17, 20, 25, 0.46);
  border-color: rgba(245, 245, 242, 0.1);
}

.nav-dock__links a {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soft-gray);
  text-decoration: none;
  padding-block: 0.35em;
  white-space: nowrap;
  transition: color 0.25s;
}

.nav-dock__links a:hover,
.nav-dock__links a:focus-visible {
  color: var(--pure-white);
}

.nav-dock__links a.is-active {
  color: var(--pure-white);
  box-shadow: 0 2px 0 0 var(--electric-blue);
}

/* Con seis enlaces el dock se compacta en el rango medio (900-1180px)
   para no rozar el logotipo ni el boton de contacto del encabezado. */
@media (max-width: 1180px) {
  .nav-dock__links {
    gap: clamp(0.65rem, 1.2vw, 1.1rem);
    padding-inline: 1rem;
  }

  .nav-dock__links a {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
  }
}

/* ---------- 19.4. El bloque triangular con dos lineas ---------- */

.nav-dock__tri {
  position: relative;
  width: 60px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.62) translateY(8px);
  transition:
    opacity 0.45s var(--home-ease),
    transform 0.45s var(--home-ease);
}

/* La cuna: triangulo con el apice arriba y la base ancha abajo, de vidrio
   oscuro. Las dos lineas se alojan en esa base. */
.nav-dock__tri::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 20, 25, 0.34), rgba(8, 9, 11, 0.66));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
}

.nav-dock__lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  justify-items: center;
  margin-top: 16px;
}

.nav-dock__lines i {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--soft-gray);
  transition:
    background 0.3s,
    width 0.3s var(--home-ease);
}

.nav-dock__tri:hover .nav-dock__lines i,
.nav-dock__tri:focus-visible .nav-dock__lines i {
  background: var(--pure-white);
}

.nav-dock__tri:hover .nav-dock__lines i:last-child,
.nav-dock__tri:focus-visible .nav-dock__lines i:last-child {
  width: 12px;
}

.nav-dock__tri:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 4px;
}

/* Compresion con el scroll: el dock se disuelve y la cuña toma el relevo. */
.site-header.is-compact .nav-dock__links {
  opacity: 0;
  transform: scale(0.7) translateY(10px);
  filter: blur(10px);
  pointer-events: none;
}

.site-header.is-compact .nav-dock__tri {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  transition:
    opacity 0.45s var(--home-ease) 0.12s,
    transform 0.45s var(--home-ease) 0.12s;
}

/* Mientras el velo del menu esta abierto, la cuña senala cierre. */
.menu-open .nav-dock__lines i:last-child {
  width: 20px;
}

/* ---------- 19.5. Velo del menu: sutil, sin rectangulo ---------- */

.page-home dialog.menu--veil {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(20, 43, 85, 0.32), transparent 62%),
    rgba(8, 9, 11, 0.64);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  color: var(--pure-white);
  overflow-y: auto;
}

.page-home dialog.menu--veil::backdrop {
  background: rgba(8, 9, 11, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home dialog.menu--veil[open] {
  animation: menuVeilIn 0.5s ease both;
}

@keyframes menuVeilIn {
  from {
    opacity: 0;
  }
}

.page-home .menu--veil .menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 5vh, 3.2rem);
  padding: clamp(1.1rem, 3.5vw, 2.2rem) clamp(1.4rem, 6vw, 4rem);
  background: none;
  border: 0;
  box-shadow: none;
  width: auto;
  max-width: none;
}

.page-home .menu--veil .menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-home .menu--veil .menu__head .brand img {
  filter:
    drop-shadow(0 3px 14px rgba(0, 0, 0, 0.78))
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

.page-home .menu--veil .menu__close {
  background: none;
  border: 0;
  color: var(--soft-gray);
  cursor: pointer;
  padding: 0.65rem;
  display: grid;
  place-items: center;
  transition: color 0.25s;
}

.page-home .menu--veil .menu__close:hover,
.page-home .menu--veil .menu__close:focus-visible {
  color: var(--pure-white);
}

.page-home .menu--veil .menu__nav {
  display: grid;
  gap: clamp(0.35rem, 1.4vh, 0.7rem);
  margin-block: auto;
}

.page-home .menu--veil .menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  border-bottom: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 4.4vh, 2.2rem);
  font-weight: 500;
  color: var(--soft-gray);
  text-decoration: none;
  padding-block: 0.18em;
  transition:
    color 0.25s,
    transform 0.35s var(--home-ease);
}

.page-home .menu--veil .menu__nav a span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--champagne-gold);
}

.page-home .menu--veil .menu__nav a:hover,
.page-home .menu--veil .menu__nav a:focus-visible {
  color: var(--pure-white);
  transform: translateX(8px);
}

.page-home dialog.menu--veil[open] .menu__nav a {
  animation: menuItemIn 0.6s var(--home-ease) both;
}

.page-home dialog.menu--veil[open] .menu__nav a:nth-child(1) { animation-delay: 0.06s; }
.page-home dialog.menu--veil[open] .menu__nav a:nth-child(2) { animation-delay: 0.12s; }
.page-home dialog.menu--veil[open] .menu__nav a:nth-child(3) { animation-delay: 0.18s; }
.page-home dialog.menu--veil[open] .menu__nav a:nth-child(4) { animation-delay: 0.24s; }
.page-home dialog.menu--veil[open] .menu__nav a:nth-child(5) { animation-delay: 0.3s; }
.page-home dialog.menu--veil[open] .menu__nav a:nth-child(6) { animation-delay: 0.36s; }
.page-home dialog.menu--veil[open] .menu__nav a:nth-child(7) { animation-delay: 0.42s; }

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
}

.page-home .menu--veil .menu__foot {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

/* ---------- 19.6. Hero de dos piezas: titular + video ---------- */

.hero26--3d .hero26__columns {
  /* 56 / 44: el titular sigue siendo el protagonista, pero el video de
     presentacion gana presencia en escritorio. */
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  grid-template-areas:
    "title intro"
    "secondary actions";
  column-gap: clamp(1.75rem, 3.6vw, 3.4rem);
  row-gap: clamp(1rem, 2vh, 1.6rem);
  align-items: start;
  align-content: center;
  width: 100%;
}

/* El titular ocupa de verdad su 60% (antes quedaba cortado por 62ch). */
.page-home .hero26--3d .hero26__content {
  max-width: 100%;
  grid-area: title;
}

/* En escritorio el titular anterior vuelve a ocupar todo el ancho de su
   columna; en movil se mantiene la version vertical sin este limite. */

.hero26__intro-col {
  position: relative;
  z-index: 4;
  grid-area: intro;
  justify-self: end;
  width: 100%;
}

.hero26__intro-col .hero26__intro-video {
  margin-top: clamp(0.25rem, 1vh, 0.75rem);
}

.hero26__secondary {
  grid-area: secondary;
  min-width: 0;
  max-width: 44ch;
}

.hero26__actions {
  grid-area: actions;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  justify-self: end;
}

/* Pieza con marco luminoso sutil y esquinas suavemente redondeadas: un
   halo champan/azul que la separa del fondo sin volverse una tarjeta. */
.hero26__intro-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--graphite);
  border: 1px solid rgba(212, 184, 122, 0.46);
  border-radius: 14px;
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.97);
  filter: saturate(1.05) brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(8, 9, 11, 0.55),
    0 0 32px rgba(212, 184, 122, 0.2),
    0 0 72px rgba(53, 109, 255, 0.14),
    0 34px 90px rgba(0, 0, 0, 0.55);
  transition:
    opacity 1.5s var(--home-ease) 0.4s,
    transform 1.5s var(--home-ease) 0.4s,
    box-shadow 0.7s var(--home-ease);
}

.hero26__intro-video.is-ready {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Con JavaScript la entrada del video la dirige hero-3d.js con GSAP
   (desde la derecha en escritorio; expansion vertical en movil). La
   transicion CSS de arriba reiniciaria en cada frame contra los estilos
   inline que GSAP escribe y congelaria la pieza en su estado inicial
   (opacity 0, y30, scale 0.97): se limita a la sombra, que si es CSS. */
.js .hero26__intro-video {
  transition: box-shadow 0.7s var(--home-ease);
}

/* El mensaje que se despliega con el scroll entra en tamano contenido:
   el titular y el video conservan el protagonismo. */
.page-home .hero26__sub {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.7;
  max-width: 44ch;
  color: var(--soft-gray);
}

.page-home .hero26__actions {
  margin-top: 0;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.hero26__actions .btn {
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 1.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  min-height: 44px;
}

.page-home .hero26__sub {
  margin-top: 0;
}

.page-home .hero26__note {
  margin-top: 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* ---------- 19.7. Solo fondo, titular y video al entrar ---------- */

/* En reposo (arriba del todo) la cabecera se reduce al logotipo y el CTA
   permanece apagado: la escena de apertura son solo el fondo, el titular
   y el video de presentacion. Todo lo demas aparece al hacer scroll. */
.site-header:not(.is-scrolled):not(.is-compact) .nav-dock {
  opacity: 0;
  pointer-events: none;
}

.site-header:not(.is-scrolled):not(.is-compact) .header__actions {
  opacity: 0;
  pointer-events: none;
}

/* El foco de teclado revela la senaletica: nada invisible debe ser
   alcanzable sin que el visitante pueda ver donde esta. */
.site-header:not(.is-scrolled):not(.is-compact) .nav-dock:focus-within,
.site-header:not(.is-scrolled):not(.is-compact) .header__actions:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.nav-dock,
.header__actions {
  transition: opacity 0.5s var(--home-ease);
}

/* ---------- 19.8. Responsive ---------- */

/* Hasta 900px el hero se apila en flex (bloque 21). Entre 901 y 1024 se
   mantiene la composicion de dos piezas: una sola columna dejaba el titular
   sin anchura porque las areas siguen declarando dos columnas. */

@media (max-width: 900px) {
  .nav-dock__links {
    display: none;
  }

  .nav-dock__tri {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  /* En movil el disparador del menu es la unica pieza de navegacion:
     se mantiene visible desde el primer momento. */
  .site-header:not(.is-scrolled):not(.is-compact) .nav-dock {
    opacity: 1;
    pointer-events: auto;
  }

  .page-home .header__inner {
    grid-template-columns: auto 1fr auto;
    column-gap: 0.75rem;
  }

  /* En movil la señaletica se corre a la esquina derecha: el CTA queda
     justo a su izquierda y el disparador del menu ocupa el extremo. */
  .page-home .brand--corner {
    grid-column: 1;
  }

  .page-home .header__actions {
    grid-column: 2;
    justify-self: end;
  }

  .page-home .nav-dock {
    grid-column: 3;
    justify-self: end;
  }

  /* Sin franja: en movil solo se ven el logotipo y el disparador del menu. */
  .page-home .site-header,
  .page-home .site-header.is-scrolled,
  .page-home .site-header--solid {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  .page-home .brand--corner img {
    height: 20px;
  }

  .hero26__intro-col {
    width: min(100%, 340px);
  }
}

/* ---------- 19.9. Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  .nav-dock__links,
  .nav-dock__tri,
  .site-header.is-compact .nav-dock__links,
  .site-header.is-compact .nav-dock__tri {
    transition: none;
  }

  .page-home dialog.menu--veil[open] .menu__nav a {
    animation: none;
  }

  /* Coreografias de Soluciones y Diferenciacion: con movimiento reducido
     el contenido aparece sin animar y siempre visible. */
  .js .cap.is-entered .cap__index,
  .js .cap.is-entered .cap__title,
  .js .cap.is-entered .cap__lead,
  .js .cap.is-entered .cap__benefits li,
  .js .cap.is-entered .cap__closing,
  .js .cap.is-entered .cap__cta,
  .js .moment.is-entered[data-scene-step="0"],
  .js .moment.is-entered[data-scene-step="1"],
  .js .moment.is-entered[data-scene-step="2"] {
    animation: none;
  }

  .method26__flow.method-live .method26__step {
    opacity: 1;
  }
}

/* ==========================================================================
   20. ESCENA 02 · TRACK HORIZONTAL + HERO SIN BLOQUEO
   El hero deja de ocupar un recorrido artificial: su altura la decide el
   contenido. Soluciones es la unica secuencia que se desplaza de lado a
   lado; el scroll vertical nunca queda capturado.
   ========================================================================== */

.caps {
  --caps-count: 4;
  position: relative;
  z-index: 1;
  display: block;
  margin-top: clamp(1rem, 3vw, 2rem);
}

.caps__track {
  display: grid;
  gap: clamp(4rem, 8vw, 8rem);
  min-width: 0;
}

.cap {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: min(68svh, 680px);
  padding:
    clamp(2.5rem, 5vw, 4.5rem)
    max(clamp(1rem, 2.5vw, 2.75rem), calc((100vw - 1440px) / 2));
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  opacity: 0.72;
}

.cap__copy,
.cap__visual {
  min-width: 0;
}

.cap__visual {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.caps__viewport {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.caps__film {
  object-fit: cover;
}

.caps__meter {
  width: 100%;
}

/* Navegador de capitulos: aparece solo durante la cinta horizontal. Es un
   control real, no un adorno: cada boton lleva al capitulo correspondiente y
   el estado activo se anuncia sin capturar el scroll. */
.caps__nav {
  display: none;
}

/* El escritorio convierte las cuatro soluciones en una cinta real. La
   posicion sticky mantiene el lienzo visible; ScrollTranslate mueve la
   cinta y el scroll vertical sigue avanzar con libertad. */
@media (min-width: 1025px) {
  html.caps-horizontal-ready .caps {
    height: calc(var(--caps-count) * 100svh);
    margin-top: 0;
  }

  html.caps-horizontal-ready .caps__track {
    position: sticky;
    top: 0;
    display: flex;
    gap: 0;
    width: calc(var(--caps-count) * 100vw);
    height: 100svh;
    will-change: transform;
  }

  html.caps-horizontal-ready .cap {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 1.25rem) 5.75rem;
    border-top: 0;
    opacity: 0.46;
  }

  html.caps-horizontal-ready .cap.is-active {
    opacity: 1;
  }

  html.caps-horizontal-ready .caps__nav {
    position: fixed;
    left: 50%;
    bottom: clamp(1rem, 3vh, 2rem);
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: min(calc(100vw - 3rem), 980px);
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(245, 245, 242, 0.14);
    background: rgba(8, 9, 11, 0.96);
    box-shadow: 0 18px 44px rgba(2, 8, 14, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition:
      opacity 0.35s var(--home-ease),
      transform 0.35s var(--home-ease),
      visibility 0.35s;
  }

  html.caps-horizontal-ready
    .scene--capabilities.is-horizontal-active
    .caps__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .caps__nav-label {
    padding-inline: 0.45rem;
    color: var(--soft-gray);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .caps__nav-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
  }

  .caps__nav-list button {
    appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-left: 1px solid rgba(245, 245, 242, 0.1);
    background: transparent;
    color: var(--soft-gray);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition:
      color 0.25s,
      background-color 0.25s;
  }

  .caps__nav-list button span:first-child {
    color: rgba(245, 245, 242, 0.46);
    font-variant-numeric: tabular-nums;
    transition: color 0.25s;
  }

  .caps__nav-list button:hover,
  .caps__nav-list button:focus-visible {
    background: rgba(245, 245, 242, 0.045);
    color: var(--pure-white);
  }

  .caps__nav-list button:focus-visible {
    outline: 2px solid var(--champagne-gold);
    outline-offset: -2px;
  }

  .caps__nav-list button[aria-current="step"] {
    background: rgba(200, 173, 127, 0.08);
    color: var(--pure-white);
  }

  .caps__nav-list button[aria-current="step"] span:first-child {
    color: var(--champagne-gold);
  }
}

/* Movil: cada solucion conserva la misma cinta derecha -> izquierda que en
   escritorio, pero con un panel por viewport y el contenido reordenado en
   vertical. El scroll sigue siendo natural; solo se transforma la cinta. */
@media (max-width: 900px) {
  html.caps-mobile-ready .caps {
    height: calc(var(--caps-count) * 100svh);
    margin-top: 0;
  }

  html.caps-mobile-ready .caps__track {
    position: sticky;
    top: 0;
    display: flex;
    gap: 0;
    width: calc(var(--caps-count) * 100vw);
    height: 100svh;
    will-change: transform;
  }

  html.caps-mobile-ready .cap {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: clamp(0.6rem, 1.5vh, 1.1rem);
    padding: calc(var(--header-h) + 0.5rem) clamp(1.1rem, 4vw, 2rem) 4.25rem;
    border-top: 0;
    opacity: 0.46;
    overflow: hidden;
  }

  html.caps-mobile-ready .cap.is-active {
    opacity: 1;
  }

  html.caps-mobile-ready .cap__visual {
    order: -1;
    justify-items: center;
  }

  html.caps-mobile-ready .caps__viewport {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 16 / 9;
    justify-self: center;
  }

  html.caps-mobile-ready .caps__meter {
    width: min(100%, 360px);
  }

  html.caps-mobile-ready .cap__title {
    font-size: clamp(1.25rem, 5.6vw, 1.75rem);
    max-width: none;
  }

  html.caps-mobile-ready .cap__benefits {
    gap: 0.2rem;
    margin-top: 0.6rem;
  }

  html.caps-mobile-ready .cap__benefits li {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  html.caps-mobile-ready .cap__levels {
    margin-top: 0.6rem;
    font-size: 0.68rem;
  }

  html.caps-mobile-ready .cap__closing {
    display: none;
  }

  html.caps-mobile-ready .cap__cta {
    margin-top: 0.6rem;
  }

  html.caps-mobile-ready .caps__nav {
    position: fixed;
    left: 50%;
    bottom: clamp(0.6rem, 2vh, 1.25rem);
    z-index: 30;
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(245, 245, 242, 0.14);
    background: rgba(8, 9, 11, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition:
      opacity 0.35s var(--home-ease),
      transform 0.35s var(--home-ease),
      visibility 0.35s;
  }

  html.caps-mobile-ready
    .scene--capabilities.is-horizontal-active
    .caps__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  html.caps-mobile-ready .caps__nav-label {
    display: none;
  }

  html.caps-mobile-ready .caps__nav-list {
    display: flex;
    gap: 0.35rem;
  }

  html.caps-mobile-ready .caps__nav-list button {
    appearance: none;
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.35rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--soft-gray);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
  }

  html.caps-mobile-ready .caps__nav-list button span:last-child {
    display: none;
  }

  html.caps-mobile-ready .caps__nav-list button[aria-current="step"] {
    border-color: rgba(200, 173, 127, 0.5);
    color: var(--champagne-gold);
  }
}

/* Fallback vertical: sin JS o con movimiento reducido. */
@media (max-width: 900px) {
  .caps {
    margin-top: 0;
  }

  .caps__track {
    gap: 0;
  }

  .cap {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    min-height: 0;
    padding-block: 3rem;
    opacity: 1;
  }

  .cap__visual {
    order: -1;
    justify-items: center;
  }

  .caps__viewport {
    width: auto;
    max-width: 100%;
    height: clamp(16rem, 38svh, 25rem);
    aspect-ratio: 9 / 16;
    justify-self: center;
  }

  .caps__meter {
    width: min(100%, 32rem);
  }

  /* Intro BIH baja bajo el titular y conserva una toma vertical propia. */
  .hero26__intro-col {
    width: 100%;
    max-width: none;
    align-items: center;
  }

  .hero26__intro-video {
    width: auto;
    max-width: 100%;
    height: clamp(15rem, 38svh, 25rem);
    aspect-ratio: 9 / 16;
    object-fit: cover;
  }

  .hero26__intro-col .hero26__actions {
    width: min(100%, 340px);
  }
}

/* Luxury Digital Atmosphere acompaña la salida del sitio sin competir con
   la lectura del pie. */
.site-footer--cinematic {
  isolation: isolate;
  background: #06080a;
}

.footer26__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer26__scene video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.86) contrast(1.05);
  transition: opacity 1.6s ease;
}

.footer26__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.86) contrast(1.05);
}

.footer26__scene video.is-ready {
  opacity: 0.16;
}

.footer26__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 78% at 50% 44%, transparent 16%, rgba(6, 8, 10, 0.78) 82%),
    linear-gradient(180deg, rgba(6, 8, 10, 0.94), rgba(6, 8, 10, 0.72) 44%, rgba(6, 8, 10, 0.96));
}

.site-footer--cinematic .footer26 {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html.caps-horizontal-ready .caps__track {
    will-change: auto;
  }
}

/* ==========================================================================
    21. DIRECCIÓN CINEMATOGRÁFICA 2026-11-17
    El hero controla su salida con un recorrido corto y fijado. Los recuadros
    audiovisuales de móvil mantienen 16:9; los fondos siguen usando 9:16.
    ========================================================================== */

:root {
  --hero-runway: 158svh;
}

.hero26__sticky {
  height: var(--hero-runway);
}

.hero26 {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.hero26__bg-video {
  transform-origin: center center;
  filter: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero26__scrim {
  will-change: opacity;
}

[data-hero-exit] {
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

[data-hero-exit="title"] {
  transform-origin: left center;
}

[data-hero-exit="intro"] {
  transform-origin: right center;
}

/* Sin GSAP el progreso del propio hero todavía gobierna una salida simple. */
html.js:not(.gsap-ready) [data-hero-exit="title"] {
  transform: translate3d(calc(var(--hero-progress, 0) * -8vw), 0, 0);
  opacity: calc(1 - clamp(0, calc((var(--hero-progress, 0) - 0.69) / 0.31), 1));
}

html.js:not(.gsap-ready) [data-hero-exit="intro"] {
  transform: translate3d(calc(var(--hero-progress, 0) * 8vw), 0, 0) scale(calc(1 - var(--hero-progress, 0) * 0.06));
  opacity: calc(1 - clamp(0, calc((var(--hero-progress, 0) - 0.69) / 0.31), 1));
}

html.js:not(.gsap-ready) [data-hero-exit="secondary"] {
  opacity: calc(1 - clamp(0, calc((var(--hero-progress, 0) - 0.69) / 0.31), 1));
}

html.js:not(.gsap-ready) [data-hero-exit="actions"] {
  transform: translate3d(0, calc(var(--hero-progress, 0) * 4vh), 0);
  opacity: calc(1 - clamp(0, calc((var(--hero-progress, 0) - 0.69) / 0.31), 1));
}

html.js:not(.gsap-ready) .hero26__bg-video {
  transform: scale(calc(1 - var(--hero-progress, 0) * 0.1));
  opacity: calc(0.82 - clamp(0, calc((var(--hero-progress, 0) - 0.69) / 0.31), 1) * 0.6);
  filter: blur(calc(var(--hero-progress, 0) * 3px));
}

@media (max-width: 900px) {
  :root {
    --hero-runway: 170svh;
  }

  .hero26 {
    height: 100svh;
    overflow: hidden;
  }

  .hero26__inner {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.5rem;
  }

  .hero26--3d .hero26__columns {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vh, 1.25rem);
    align-content: flex-start;
  }

  .hero26__content {
    order: 1;
    width: 100%;
  }

  .hero26__intro-col {
    order: 2;
    width: 100%;
    max-width: none;
    align-items: stretch;
    justify-self: stretch;
  }

  .hero26__secondary {
    order: 3;
    max-width: none;
  }

  .hero26__actions {
    order: 4;
    width: min(100%, 340px);
    align-self: center;
    justify-self: center;
  }

  /* Recuadros audiovisuales: 16:9 a ancho completo en móvil. */
  .hero26__intro-video {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .caps__viewport {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .caps__film {
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-exit],
  .hero26__bg-video {
    will-change: auto;
  }
}

/* ==========================================================================
    22. SECUENCIAS FIJADAS · DIFERENCIACIÓN Y MÉTODO
    Sin JavaScript las tres piezas permanecen en flujo natural. Con JS y sin
    movimiento reducido, un recorrido corto las presenta una a una en el
    mismo escenario, sin capturar el scroll.
    ========================================================================== */

/* home-2026.css pone overflow:hidden a .home-section; sin este override el
   sticky de Método se crea dentro de ese contenedor y no se fija. */
.method26 {
  overflow: visible;
}

.moments__runway,
.method26__runway {
  position: relative;
}

.moments__runway.sequence-ready,
.method26__runway.sequence-ready {
  height: 260svh;
}

.moments__runway.sequence-ready .moments,
.method26__runway.sequence-ready .method26__flow {
  position: sticky;
  top: 0;
  height: 100svh;
}

/* ---------- Diferenciación: tres momentos centrados ---------- */
.moments__runway.sequence-ready .moments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.moments__runway.sequence-ready .moments__list {
  position: relative;
  height: 100%;
  min-height: 0;
}

.moments__runway.sequence-ready .moment {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vh, 1.5rem);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.96);
  transition:
    opacity 0.45s var(--home-ease),
    transform 0.6s var(--home-ease);
  pointer-events: none;
}

.moments__runway.sequence-ready .moment.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.moments__runway.sequence-ready .moment__num {
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 0.8;
}

.moments__runway.sequence-ready .moment__body {
  max-width: 46ch;
}

.moments__runway.sequence-ready .moment__body p {
  margin-inline: auto;
}

.moments__runway.sequence-ready .moments__stage {
  height: auto;
  align-self: center;
}

/* ---------- Método: tres etapas centrales ---------- */
.method26__runway.sequence-ready .method26__flow {
  display: grid;
  place-items: center;
}

.method26__runway.sequence-ready .method26__step {
  position: absolute;
  width: min(100%, 760px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.96);
  transition:
    opacity 0.45s var(--home-ease),
    transform 0.6s var(--home-ease);
  pointer-events: none;
}

.method26__runway.sequence-ready .method26__step.is-current {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.method26__runway.sequence-ready .method26__num {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 auto 1rem;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(53, 109, 255, 0.12);
  -webkit-text-stroke: 1px rgba(53, 109, 255, 0.7);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
}

.method26__runway.sequence-ready .method26__step h3,
.method26__runway.sequence-ready .method26__step p {
  margin-inline: auto;
}

.method26__runway.sequence-ready .method26__flow::after {
  top: auto;
  bottom: 8vh;
  left: 50%;
  width: min(240px, 40vw);
  height: 2px;
  transform: translateX(-50%) scaleX(var(--method26-progress, 0));
  transform-origin: left center;
}

@media (max-width: 900px) {
  .moments__runway.sequence-ready,
  .method26__runway.sequence-ready {
    height: 220svh;
  }

  .moments__runway.sequence-ready .moments {
    grid-template-columns: minmax(0, 1fr);
  }

  .moments__runway.sequence-ready .moments__stage {
    display: none;
  }

  .moments__runway.sequence-ready .moment__num {
    font-size: clamp(5rem, 24vw, 8rem);
  }

  .method26__runway.sequence-ready .method26__flow::after {
    bottom: 6vh;
  }
}

/* Cuatro principios: el recorrido de Diferenciación necesita algo más de
   espacio para que cada momento conserve su pausa. */
.moments__runway.sequence-ready {
  height: 300svh;
}

@media (max-width: 900px) {
  .moments__runway.sequence-ready {
    height: 260svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moments__runway.sequence-ready .moment,
  .method26__runway.sequence-ready .method26__step {
    transition: none;
  }
}

/* ==========================================================================
    23. APERTURA: SOLO FONDO + TITULAR + INTRO
    El resto del mensaje y la cabecera aparecen con el primer tramo de scroll.
    ========================================================================== */

html.js [data-hero-exit="secondary"],
html.js [data-hero-exit="actions"] {
  opacity: 0;
}

html.js:not(.gsap-ready) .site-header {
  transition: opacity 0.45s var(--home-ease);
}

html.hero-intro-only .site-header {
  opacity: 0;
  pointer-events: none;
}

/* En movil el unico acceso de navegacion es el disparador del menu: queda
   visible y pulsable desde el primer frame, aunque el resto del mensaje
   del hero todavia no haya entrado. */
@media (max-width: 900px) {
  html.hero-intro-only .site-header {
    opacity: 1;
    pointer-events: none;
  }

  html.hero-intro-only .site-header .nav-dock {
    pointer-events: auto;
  }
}

html.hero-exit-hidden .site-header {
  opacity: 0;
  pointer-events: none;
}

/* Al salir del hero la cabecera reaparece con suavidad. La regla con
   !important gana sobre el opacity inline que GSAP deja al terminar. */
html.hero-past .site-header {
  opacity: 1 !important;
  transition: opacity 0.35s var(--home-ease);
}

/* Sin GSAP la misma curva: entra en 2-6 y sale en 9-13. */
html.js:not(.gsap-ready) [data-hero-exit="secondary"],
html.js:not(.gsap-ready) [data-hero-exit="actions"],
html.js:not(.gsap-ready) .site-header {
  opacity: min(
    clamp(0, calc((var(--hero-progress, 0) - 0.14) / 0.32), 1),
    clamp(0, calc((1 - var(--hero-progress, 0)) / 0.31), 1)
  );
}

html.js:not(.gsap-ready) [data-hero-exit="actions"] {
  transform: translate3d(0, calc((1 - min(clamp(0, calc((var(--hero-progress, 0) - 0.14) / 0.32), 1), clamp(0, calc((1 - var(--hero-progress, 0)) / 0.31), 1))) * 4vh), 0);
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-exit="secondary"],
  [data-hero-exit="actions"],
  html.js:not(.gsap-ready) [data-hero-exit="secondary"],
  html.js:not(.gsap-ready) [data-hero-exit="actions"] {
    opacity: 1;
    transform: none;
  }

  html.hero-intro-only .site-header,
  html.hero-exit-hidden .site-header,
  html.hero-past .site-header,
  html.js:not(.gsap-ready) .site-header {
    opacity: 1 !important;
    pointer-events: auto;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero26__intro-col {
    align-items: center;
  }

  .hero26__intro-video {
    width: min(80%, 280px);
    margin-inline: auto;
  }
}

/* Movil: el titular es el protagonista y queda justo bajo la senaletica.
   Se ancla el contenido arriba, se compactan los huecos y se reduce el video
   para que todo el mensaje y los botones quepan en 100svh. */
@media (max-width: 900px) {
  .hero26__inner {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) - 0.5rem);
    padding-bottom: clamp(0.4rem, 1vh, 0.85rem);
  }

  .hero26--3d .hero26__columns {
    gap: 0;
  }

  .hero26__intro-col {
    margin-top: 0;
  }

  .hero26__secondary {
    margin-top: 0.875rem;
  }

  .hero26__actions {
    margin-top: 0.125rem;
  }

  .hero26__title-stack {
    height: clamp(11.825rem, 29.7svh, 15.4rem);
    aspect-ratio: auto;
  }

  .hero26__intro-video {
    width: min(92.8%, 290px);
  }

  .hero26__intro-col .hero26__intro-video {
    margin-top: 0;
  }

  .page-home .hero26__sub {
    font-size: clamp(0.8125rem, 3.6vw, 0.9rem);
    line-height: 1.2;
  }

  .page-home .hero26__note {
    margin-top: 0;
    line-height: 1.1;
  }
}

/* ==========================================================================
    24. RITMO CROMÁTICO POR SECCIÓN (2026-11-18)
    Azul = autoridad / Verde = innovación / Dorado = distinción.
    Objetivo: que la página deje de leerse como un único bloque oscuro.
    Jerarquía orientativa: 65% azul y neutros · 25% claros · 7% verde · 3% oro.
    ========================================================================== */

.page-home {
  --c-blue: #102b46;
  --c-blue-deep: #174a70;
  --c-green: #16856b;
  --c-green-soft: #dcefe8;
  --c-gold: #c6a15b;
  --c-gold-soft: #e9d9b5;
  --c-white: #f7f8f6;
  --c-gray: #687786;
  --c-ink: #141b24;
}

/* ---------- HERO: azul profundo con dos luces ambientales ---------- */
.hero26__bg {
  background:
    radial-gradient(95% 75% at 18% 28%, rgba(22, 133, 107, 0.18), transparent 62%),
    radial-gradient(85% 65% at 84% 26%, rgba(198, 161, 91, 0.14), transparent 64%),
    linear-gradient(165deg, var(--c-blue) 0%, #0b2037 54%, var(--c-blue) 100%);
}

.hero26__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 22% 36%, rgba(22, 133, 107, 0.1), transparent 70%),
    radial-gradient(50% 40% at 80% 30%, rgba(198, 161, 91, 0.08), transparent 72%);
}

/* El fondo que queda al desvanecerse el vídeo es azul, no un vacío negro:
   empalma cromáticamente con Soluciones. */
.hero26--3d .hero26__scrim {
  background:
    linear-gradient(100deg, rgba(11, 32, 55, 0.94) 0%, rgba(16, 43, 70, 0.82) 28%, rgba(16, 43, 70, 0.42) 52%, rgba(11, 32, 55, 0.22) 74%, rgba(11, 32, 55, 0.16) 100%),
    linear-gradient(180deg, rgba(11, 32, 55, 0.74) 0%, rgba(16, 43, 70, 0.08) 32%, rgba(16, 43, 70, 0.2) 64%, rgba(11, 32, 55, 0.94) 100%);
}

.hero26 .btn--champagne {
  border-color: rgba(198, 161, 91, 0.62);
}

/* ---------- SOLUCIONES: azul institucional ---------- */
#soluciones {
  background: linear-gradient(180deg, #0b2037 0%, var(--c-blue) 48%, #0b2037 100%);
}

#soluciones .scene__veil {
  background:
    radial-gradient(120% 85% at 50% 38%, transparent 16%, rgba(11, 32, 55, 0.86) 78%),
    linear-gradient(180deg, rgba(11, 32, 55, 0.95), rgba(16, 43, 70, 0.6) 42%, rgba(11, 32, 55, 0.97));
}

#soluciones .cap {
  background: linear-gradient(160deg, rgba(23, 74, 112, 0.5), rgba(16, 43, 70, 0.76));
  border-color: rgba(198, 161, 91, 0.18);
}

#soluciones .cap.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(198, 161, 91, 0.24),
    0 30px 80px rgba(2, 8, 14, 0.42);
}

#soluciones .cap__index span {
  border-color: rgba(198, 161, 91, 0.5);
  color: var(--c-gold-soft);
}

#soluciones .cap__lead {
  color: #9fc4e0;
}

#soluciones .cap__benefits li::before {
  background: var(--c-green);
}

#soluciones .caps__meter-track i {
  background: linear-gradient(90deg, var(--c-green), var(--c-gold));
}

#soluciones .caps__nav {
  background: rgba(16, 43, 70, 0.97);
  border-color: rgba(198, 161, 91, 0.26);
}

#soluciones .caps__nav-list button[aria-current="step"] {
  color: var(--c-gold-soft);
}

/* ---------- DIFERENCIACIÓN: papel cálido + verde ---------- */
#diferenciacion {
  background: var(--c-white);
}

#diferenciacion::after {
  background: none;
}

#diferenciacion .scene__backdrop video,
#diferenciacion .scene__backdrop video.is-ready {
  opacity: 0.13;
}

#diferenciacion .scene__veil {
  background:
    linear-gradient(180deg, rgba(247, 248, 246, 0.96), rgba(220, 239, 232, 0.88) 52%, rgba(247, 248, 246, 0.96));
}

#diferenciacion .scene__head .eyebrow,
#diferenciacion .section-title,
#diferenciacion .lead,
#diferenciacion .moment h3,
#diferenciacion .moment p,
#diferenciacion .moments__label {
  color: var(--c-ink);
}

#diferenciacion .eyebrow span {
  background: rgba(22, 133, 107, 0.12);
  border-color: rgba(22, 133, 107, 0.42);
  color: var(--c-green);
}

#diferenciacion .moment__num {
  color: rgba(22, 133, 107, 0.1);
  -webkit-text-stroke-color: rgba(22, 133, 107, 0.55);
}

#diferenciacion .moment.is-active .moment__num {
  color: rgba(22, 133, 107, 0.16);
  -webkit-text-stroke-color: var(--c-green);
}

#diferenciacion .moments__ghost {
  color: rgba(22, 133, 107, 0.06);
  -webkit-text-stroke-color: rgba(22, 133, 107, 0.42);
}

#diferenciacion .moments__axis {
  background: linear-gradient(180deg, transparent, rgba(22, 133, 107, 0.6), transparent);
}

#diferenciacion .moments__axis i {
  background: var(--c-green);
  box-shadow: 0 0 20px rgba(22, 133, 107, 0.7);
}

/* ---------- PROYECTO ORNAPRODU: azul profundo + dorado ---------- */
#proyecto {
  background: linear-gradient(180deg, var(--c-blue), #0b2037 55%, var(--c-blue));
}

#proyecto .home-section__scene::after {
  background:
    radial-gradient(125% 85% at 50% 40%, transparent 20%, rgba(16, 43, 70, 0.86) 80%),
    linear-gradient(180deg, rgba(16, 43, 70, 0.92), rgba(11, 32, 55, 0.62) 45%, rgba(16, 43, 70, 0.94));
}

#proyecto .project26__fact {
  background: rgba(16, 43, 70, 0.68);
  border-color: rgba(198, 161, 91, 0.24);
}

#proyecto .project26__fact dt {
  color: var(--c-gold-soft);
}

#proyecto .project26__state {
  color: var(--c-gold-soft);
}

/* ---------- ECOSISTEMA: papel claro + verde ---------- */
#ecosistema {
  background: var(--c-white);
}

#ecosistema::after {
  background: none;
}

#ecosistema .home-section__scene video,
#ecosistema .home-section__scene video.is-ready {
  opacity: 0.12;
}

#ecosistema .home-section__scene::after {
  background: linear-gradient(180deg, rgba(247, 248, 246, 0.96), rgba(220, 239, 232, 0.86) 52%, rgba(247, 248, 246, 0.96));
}

#ecosistema .portfolio26__head h2,
#ecosistema .portfolio26__head p,
#ecosistema .portfolio26__card h4 {
  color: var(--c-ink);
}

#ecosistema .eyebrow {
  color: var(--c-gray);
}

#ecosistema .eyebrow span {
  background: rgba(22, 133, 107, 0.1);
  border-color: rgba(22, 133, 107, 0.32);
  color: var(--c-green);
}

#ecosistema .portfolio26__card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 27, 36, 0.1);
  color: var(--c-ink);
}

#ecosistema .portfolio26__card p,
#ecosistema .portfolio26__participation {
  color: rgba(20, 27, 36, 0.74);
}

#ecosistema .portfolio26__num {
  color: var(--c-green);
}

#ecosistema .portfolio26__badge {
  background: rgba(22, 133, 107, 0.1);
  border-color: rgba(22, 133, 107, 0.32);
  color: #0b5e4a;
}

#ecosistema .portfolio26__link {
  color: var(--c-green);
}

.portfolio26__head-copy {
  max-width: 32ch;
  text-align: right;
}

.portfolio26__head-copy p {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.6;
}

.portfolio26__head-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .portfolio26__head-copy {
    max-width: 44ch;
    text-align: left;
  }
}

/* ---------- SOBRE MÍ: azul institucional + neutros ---------- */
#sobre-mi {
  background: linear-gradient(180deg, #0b2037, var(--c-blue) 50%, #0b2037);
}

#sobre-mi .home-section__scene::after {
  background:
    radial-gradient(125% 85% at 50% 42%, transparent 20%, rgba(16, 43, 70, 0.86) 80%),
    linear-gradient(180deg, rgba(11, 32, 55, 0.94), rgba(16, 43, 70, 0.62) 44%, rgba(11, 32, 55, 0.96));
}

#sobre-mi .about26__copy {
  background: linear-gradient(160deg, rgba(23, 74, 112, 0.42), rgba(16, 43, 70, 0.58));
  border: 1px solid rgba(198, 161, 91, 0.18);
  border-radius: var(--home-radius);
  padding: clamp(1.1rem, 2.2vw, 1.8rem);
}

/* ---------- MÉTODO: papel cálido + verde (como Diferenciación) ---------- */
#metodo {
  background: var(--c-white);
}

#metodo::after {
  background: none;
}

#metodo .home-section__scene video,
#metodo .home-section__scene video.is-ready {
  opacity: 0.28;
}

#metodo .home-section__scene::after {
  background: linear-gradient(
    180deg,
    rgba(247, 248, 246, 0.9),
    rgba(220, 239, 232, 0.74) 52%,
    rgba(247, 248, 246, 0.9)
  );
}

#metodo .home-section__head .eyebrow,
#metodo .eyebrow,
#metodo .section-title,
#metodo .section-title em,
#metodo .lead,
#metodo .method26__step h3,
#metodo .method26__step p,
#metodo .link-arrow {
  color: var(--c-ink);
}

#metodo .eyebrow span {
  background: rgba(22, 133, 107, 0.1);
  border-color: rgba(22, 133, 107, 0.32);
  color: var(--c-green);
}

#metodo .link-arrow:hover span,
#metodo .link-arrow:focus-visible span {
  color: #0b5e4a;
  text-decoration-color: #0b5e4a;
}

#metodo .method26__runway:not(.sequence-ready) .method26__step {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 27, 36, 0.1);
  box-shadow: 0 18px 44px rgba(20, 27, 36, 0.08);
  color: var(--c-ink);
}

#metodo .method26__runway:not(.sequence-ready) .method26__step:hover {
  border-color: rgba(22, 133, 107, 0.42);
  box-shadow: 0 22px 50px rgba(20, 27, 36, 0.12);
}

#metodo .method26__flow::after,
#metodo .method26__runway.sequence-ready .method26__flow::after {
  background: linear-gradient(90deg, #8a5a0f, var(--c-green));
  box-shadow: 0 0 12px rgba(22, 133, 107, 0.24);
}

#metodo .method26__num {
  border-color: rgba(22, 133, 107, 0.42);
  background: rgba(22, 133, 107, 0.1);
  color: #0b5e4a;
  box-shadow: 0 0 0 6px rgba(22, 133, 107, 0.06);
}

#metodo .method26__runway.sequence-ready .method26__num {
  background: none;
  box-shadow: none;
  color: rgba(22, 133, 107, 0.1);
  -webkit-text-stroke-color: rgba(22, 133, 107, 0.55);
}

#metodo .method26__flow.method-live .method26__step.is-current .method26__num,
#metodo .method26__runway.sequence-ready .method26__step.is-current .method26__num {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #ffffff;
  -webkit-text-stroke-color: transparent;
  box-shadow:
    0 0 0 6px rgba(22, 133, 107, 0.12),
    0 0 26px rgba(22, 133, 107, 0.28);
}

#metodo .method26__runway.sequence-ready .method26__step.is-current .method26__num {
  display: inline-grid;
  width: max-content;
  height: auto;
  margin-inline: auto;
  padding: 0.12em 0.36em;
  border-radius: 10px;
  line-height: 1;
}

#metodo .method26__flow.method-live .method26__step {
  opacity: 0.68;
}

#metodo .method26__flow.method-live .method26__step.is-past {
  opacity: 0.85;
}

#metodo .method26__flow.method-live .method26__step.is-current {
  opacity: 1;
}

/* ---------- CONTACTO: azul profundo + CTA verde ---------- */
#contacto {
  background: linear-gradient(180deg, var(--c-blue), #0b2037);
}

#contacto .home-section__scene::after {
  background:
    radial-gradient(110% 80% at 28% 40%, rgba(22, 133, 107, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(16, 43, 70, 0.93), rgba(11, 32, 55, 0.7) 50%, rgba(16, 43, 70, 0.95));
}

#contacto .contact26__trust li svg {
  color: var(--c-green);
}

@media (max-width: 900px) {
  #sobre-mi .about26__copy {
    padding: 1.15rem;
  }
}

/* La cabecera mantiene su propia superficie azul solo en escritorio; en
   movil queda transparente para no dibujar una franja sobre las secciones. */
@media (min-width: 901px) {
  .page-home .site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(11, 32, 55, 0.95), rgba(11, 32, 55, 0.78));
    border-bottom-color: rgba(198, 161, 91, 0.2);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
  }
}

/* ==========================================================================
    25. FONDOS: SOLO VÍDEO
    Se desactivan las imágenes decorativas que acompañaban a los vídeos de
    fondo. Los vídeos ganan presencia en las dos secciones de papel claro.
    ========================================================================== */

.page-home .home-section {
  --section-bg: none;
}

.page-home .home-section::before {
  background-image: none;
}

#diferenciacion .scene__backdrop video,
#diferenciacion .scene__backdrop video.is-ready {
  opacity: 0.28;
}

#diferenciacion .scene__veil {
  background: linear-gradient(
    180deg,
    rgba(247, 248, 246, 0.9),
    rgba(220, 239, 232, 0.74) 52%,
    rgba(247, 248, 246, 0.9)
  );
}

#ecosistema .home-section__scene video,
#ecosistema .home-section__scene video.is-ready {
  opacity: 0.28;
}

#ecosistema .home-section__scene::after {
  background: linear-gradient(
    180deg,
    rgba(247, 248, 246, 0.9),
    rgba(220, 239, 232, 0.76) 52%,
    rgba(247, 248, 246, 0.9)
  );
}

/* Regreso inmediato al hero: GSAP escribe opacity/transform en cada frame.
   Una transición CSS aquí peleaba con esos writes y hacía que el vídeo
   tardara en reaparecer al volver desde otras secciones. */
.hero26__bg-video {
  transition: none;
}

html.js:not(.gsap-ready) .hero26__bg-video {
  transition: opacity 0.6s ease;
}

/* Sobre mí en móvil: el triángulo baja lo suficiente para que su punta no
   quede bajo la cabecera fija. */
@media (max-width: 900px) {
  .about26__media {
    padding-top: 1.5rem;
  }

  .about26__triangle {
    inset: -14% -10% -2%;
  }

  /* Estado inicial del timeline antes de que GSAP escriba estilos inline.
     Sin GSAP (o con movimiento reducido) no se aplica y todo queda visible. */
  html.gsap-ready .about26__triangle,
  html.gsap-ready .about26__ring,
  html.gsap-ready .about26__copy > *,
  html.gsap-ready .about26__caption,
  html.gsap-ready .about26__meta {
    opacity: 0;
  }

  html.gsap-ready .about26__portrait {
    opacity: 0.15;
  }
}

/* Al acercarse al pie, el logotipo y el botón del menu se apagan antes de
   coincidir con el logotipo del footer. Vuelven al subir el scroll. */
html.footer-header-fade .site-header {
  opacity: var(--footer-header-opacity, 1) !important;
  transition: opacity 0.18s linear;
}

html.footer-header-hidden .site-header {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html.footer-header-fade .site-header {
    transition: none;
  }
}

/* ==========================================================================
     26. TABLETA · ancho medio (768–1024 px)
     Ajustes de densidad sin tocar los motores de escena ni los cortes ya
     validados de móvil (≤900px) y escritorio (≥1025px).
     ========================================================================== */

/* Tablet vertical: elimina el salto exacto de 768px y evita rejillas de
   cuatro columnas en el pie con poco ancho útil. */
@media (min-width: 768px) and (max-width: 900px) {
  .page-home .shell,
  .page-home .shell--wide {
    width: min(100% - 2.5rem, var(--home-wide));
  }

  .portfolio26__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio26__card--feature {
    grid-column: auto;
  }

  .about26__media {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .about26__portrait {
    width: min(72vw, 320px);
  }

  .about26__caption {
    text-align: center;
  }

  .about26__meta {
    grid-column: auto;
    justify-content: center;
  }

  .footer26__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer26__brand {
    grid-column: 1 / -1;
  }
}

/* Tablet horizontal: la cabecera recupera el acceso directo a Contacto,
   que la base ocultaba hasta 1080px. La etiqueta corta evita rozaduras. */
@media (min-width: 901px) and (max-width: 1080px) {
  .page-home .btn--header {
    display: inline-flex;
  }

  .page-home .btn--header .btn__label--full {
    display: none;
  }

  .page-home .btn--header .btn__label--short {
    display: inline;
  }
}

/* Tableta en ambos sentidos: señalética más densa y firma decorativa fuera
   del área de lectura del pie. */
@media (min-width: 768px) and (max-width: 1180px) {
  .nav-dock__links {
    gap: clamp(0.6rem, 1.1vw, 1rem);
    padding-inline: 0.9rem;
  }

  .nav-dock__links a {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .footer26__sig {
    display: none;
  }
}

/* ==========================================================================
   25. AJUSTE DEL HERO · RITMO, TIPOGRAFÍA Y PROPORCIONES (2026-11-20)
   Intervención encapsulada en el hero. No cambia estructura, copia, enlaces
   ni el sistema de animación: corrige el equilibrio vertical del bloque
   visible, la lectura del mensaje desplegado y la jerarquía de los botones.
   ========================================================================== */

/* 25.1. Equilibrio vertical en escritorio.
   La fila secundaria (plegada al entrar) empujaba el conjunto titular + video
   hacia arriba. Se reduce el margen inferior para que ese primer bloque quede
   ópticamente centrado, sin alterar la altura del hero ni su recorrido. */
@media (min-width: 901px) {
  .hero26__inner {
    padding-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
  }

  .page-home .hero26__sub {
    font-size: clamp(0.9375rem, 0.7rem + 0.28vw, 1rem);
    line-height: 1.65;
  }
}

/* 25.2. Nota de confianza: legible sin competir con el mensaje. */
.page-home .hero26__note {
  margin-top: clamp(0.65rem, 1.2vh, 0.95rem);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.035em;
  color: rgba(241, 243, 245, 0.66);
}

/* 25.3. Botones: fila de acciones en escritorio ancho, columna en el resto.
   El primario conserva más ancho y el relleno; el secundario queda outline. */
@media (min-width: 1200px) {
  .page-home .hero26__actions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.65rem;
    align-items: stretch;
  }
}

.hero26__actions .btn {
  min-height: 48px;
  padding-block: 0.8rem;
}

/* 25.4. Tableta vertical (561–900px).
   El titular recupera el ancho real de su arte (1280:831) y el video deja de
   ser una miniatura. La columna se centra y se mantiene dentro del alto del
   hero para no recortar el mensaje desplegado. */
@media (min-width: 561px) and (max-width: 900px) {
  /* El ancho se limita también por el alto útil (100svh): en tabletas con
     barras de navegador el mensaje desplegado sigue cabiendo completo. */
  .hero26__content,
  .hero26__secondary {
    width: min(100%, 37.5rem, calc((100svh - 21.5rem) / 1.12));
    margin-inline: auto;
  }

  .hero26__title-stack {
    height: auto;
    aspect-ratio: 1280 / 831;
  }

  .hero26__intro-col {
    width: min(100%, 31.25rem, calc((100svh - 21.5rem) * 0.75));
    margin-inline: auto;
  }

  .hero26__intro-video {
    width: 100%;
    max-width: none;
  }

  .page-home .hero26__sub {
    max-width: none;
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

/* 25.5. Móvil. El titular usa su proporción nativa y el video aprovecha el
   ancho disponible; el mensaje desplegado deja de comprimir su interlineado. */
@media (max-width: 900px) {
  .hero26__title-stack {
    height: auto;
    aspect-ratio: 1280 / 831;
  }
}

@media (max-width: 560px) {
  .hero26__intro-video {
    width: min(92.8%, 420px, calc(30svh * 16 / 9));
    margin-inline: auto;
  }

  .page-home .hero26__sub {
    font-size: clamp(0.875rem, 3.7vw, 0.9375rem);
    line-height: 1.55;
  }

  .page-home .hero26__note {
    margin-top: 0.65rem;
  }
}
