@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ================================================================
   SCANNER HERO — Praxen Dental
   ================================================================ */

/* ── Durante el hero: ocultar el fondo del body ── */
body.scanner-hero-active {
  background: #010D22 !important;
}

/* ── Ocultar theme switcher durante el hero ── */
body.scanner-hero-active .theme-switcher {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

/* ── Navbar transparente + links blancos mientras el hero está activo ── */
body.scanner-hero-active .navbar {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.scanner-hero-active .navbar a,
body.scanner-hero-active .navbar li a,
body.scanner-hero-active .navbar button {
  color: rgba(255,255,255,0.85) !important;
}
body.scanner-hero-active .navbar .btn-primary {
  color: #fff !important;
  background: rgba(0,103,213,0.85) !important;
}
/* Logo más grande en hero y siempre */
.navbar img[alt="Praxen Dental"] {
  height: 70px !important;
}
body.scanner-hero-active .navbar img[alt="Praxen Dental"] {
  height: 80px !important;
  filter: brightness(1.15) saturate(0.85);
}
body.srv-active .navbar img[alt="Praxen Dental"] {
  filter: brightness(1.25) saturate(0.7) drop-shadow(0 0 8px rgba(255,255,255,0.15));
}

/* ── Loader — Implante dental ── */
#scanner-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #010D22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#scanner-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Contenedor del implante */
.impl-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

/* Piezas separadas inicialmente, se unen al animar */
.impl-piece {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: implAssemble 2.4s cubic-bezier(0.34, 1.26, 0.64, 1) infinite;
  filter: drop-shadow(0 0 8px rgba(77,163,255,0.35));
}

.impl-corona {
  animation-delay: 0s;
  transform: translateY(-28px);
}
.impl-pilar {
  animation-delay: 0.15s;
  transform: translateY(-10px);
}
.impl-tornillo {
  animation-delay: 0.3s;
  transform: translateY(10px);
}

@keyframes implAssemble {
  0%   { transform: translateY(var(--ty, 0)); opacity: 0.3; filter: drop-shadow(0 0 4px rgba(77,163,255,0.2)); }
  35%  { opacity: 1; }
  55%  { transform: translateY(0); filter: drop-shadow(0 0 14px rgba(77,163,255,0.7)); }
  75%  { transform: translateY(0); filter: drop-shadow(0 0 8px rgba(77,163,255,0.4)); }
  90%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(var(--ty, 0)); opacity: 0.3; }
}

.impl-corona  { --ty: -32px; }
.impl-pilar   { --ty: -12px; }
.impl-tornillo{ --ty: 14px;  }

/* Label debajo */
.impl-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: implLabelPulse 2.4s ease infinite;
}
@keyframes implLabelPulse {
  0%, 100% { opacity: 0.3; }
  55%       { opacity: 0.8; }
}

/* ── Scroll spacer del hero ── */
#scanner-scroll-container {
  position: relative;
  height: 250vh;
  z-index: 0;
}

/* ── Canvas wrap — fixed, full viewport ── */
.scanner-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #010D22;
  pointer-events: none;
  transition: opacity 0.5s ease;
  /* Chromatic aberration controlado por JS via --ca */
  --ca: 0px;
}
.scanner-canvas-wrap.scanner-done {
  opacity: 0;
  pointer-events: none;
}
#scanner-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(var(--ca) 0 0 rgba(255, 60, 90, 0.55))
          drop-shadow(calc(var(--ca) * -1) 0 0 rgba(60, 200, 255, 0.55));
  will-change: filter;
}

/* ── Partículas convergentes (overlay canvas) ── */
#scanner-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.8s ease;
}
#scanner-particles.particles-done {
  opacity: 0;
}

/* ── HUD esquinas tipo interfaz médica ── */
.scanner-hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(77, 200, 255, 0.55);
  opacity: 0;
  animation: hudFadeIn 0.8s ease 1.6s forwards;
}
.hud-tl { top: 96px; left: 2.2vw; border-right: 0; border-bottom: 0; }
.hud-tr { top: 96px; right: 2.2vw; border-left: 0; border-bottom: 0; }
.hud-bl { bottom: 6vh; left: 2.2vw; border-right: 0; border-top: 0; }
.hud-br { bottom: 6vh; right: 2.2vw; border-left: 0; border-top: 0; }

@keyframes hudFadeIn {
  to { opacity: 1; }
}

.hud-data {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', monospace, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 220, 255, 0.85);
  opacity: 0;
  animation: hudFadeIn 0.8s ease 1.9s forwards;
}
.hud-data-tl { top: calc(96px + 10px); left: calc(2.2vw + 46px); }
.hud-data-tr { top: calc(96px + 10px); right: calc(2.2vw + 46px); }

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4dc8ff;
  box-shadow: 0 0 8px rgba(77, 200, 255, 0.9);
  animation: hudDotPulse 1.8s ease infinite;
}
@keyframes hudDotPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.hud-data-text {
  display: inline-block;
  min-width: 12ch;
  transition: opacity 0.35s ease;
}
.hud-data-text.swap-out { opacity: 0; }

/* Kinetic typography: palabra que rota */
#hero-rotating-word {
  display: inline-block;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#hero-rotating-word.rw-out {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(-10px);
}

/* ── Overlay oscuro sobre el canvas (gradient: más oscuro abajo izq donde está el texto) ── */
.scanner-canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(1,13,34,0.78) 0%, rgba(1,13,34,0.35) 55%, rgba(1,13,34,0.55) 100%),
    radial-gradient(ellipse at 25% 75%, rgba(1,13,34,0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Hero overlay — fixed, encima del canvas ── */
#scanner-hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scanner-hero-content {
  position: absolute;
  bottom: 8vh;
  left: 6vw;
  max-width: 55vw;
  pointer-events: auto;
}

.scanner-hero-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.85), 0 0 80px rgba(0,0,0,0.5);
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.scanner-hero-word {
  display: block;
  opacity: 0;
  transform: translateY(55px);
  animation: scannerWordUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.scanner-hero-word--accent {
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  text-shadow: none;
  filter: drop-shadow(0 2px 24px rgba(77, 200, 255, 0.35));
}

@keyframes scannerWordUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scannerFadeUp {
  to { opacity: 1; transform: translateY(0); }
}


.scanner-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: scannerFadeUp 0.7s ease forwards;
}

.scanner-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.scanner-btn-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

/* ── Scroll indicator — mouse animado, centrado en la parte baja ── */
.scanner-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  opacity: 0;
  animation: scannerFadeUp 0.7s ease forwards;
  pointer-events: none;
}

/* Mouse outline */
.scanner-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  position: relative;
  animation: scannerMousePulse 2.5s ease infinite;
}

/* Rueda interior */
.scanner-mouse-wheel {
  width: 4px;
  height: 8px;
  background: #4da3ff;
  border-radius: 2px;
  animation: scannerWheelScroll 1.6s ease infinite;
}

@keyframes scannerMousePulse {
  0%, 100% { border-color: rgba(255,255,255,0.35); }
  50%       { border-color: rgba(77,163,255,0.8); }
}
@keyframes scannerWheelScroll {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  61%  { transform: translateY(0);   opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

/* ── Badges ── */
.scanner-badge-left,
.scanner-badge-right {
  position: absolute;
  bottom: 2.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  opacity: 0;
  animation: scannerFadeUp 0.6s ease forwards;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.scanner-badge-left  { left: 2rem; display: flex; align-items: center; gap: 0.5rem; }
.scanner-badge-right { right: 2rem; line-height: 1.5; }
.scanner-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.scanner-badge-left span {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}


/* ── Mobile ── */
@media (max-width: 768px) {
  .scanner-hero-content {
    bottom: 18vh;
    left: 5vw;
    max-width: 90vw;
  }
  .scanner-hero-heading {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }
  .scanner-badge-left { display: none; }
  #scanner-scroll-container { height: 250vh; }
  /* En mobile el HUD lateral es visualmente ruidoso */
  .hud-data { display: none; }
  .hud-corner { width: 22px; height: 22px; }
  .scanner-trust-badge {
    bottom: 9vh;
    left: 5vw;
    font-size: 0.6rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ── Trust badge: INVIMA + 14 años ── */
.scanner-trust-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 6vw;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(220, 240, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(77, 200, 255, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  animation: scannerFadeUp 0.7s ease forwards;
  z-index: 12;
}
.scanner-trust-badge svg {
  color: #4dc8ff;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(77, 200, 255, 0.6));
}
.scanner-trust-badge strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .impl-piece,
  .hud-dot { animation: none !important; }
  #scanner-particles { display: none; }
  .scanner-canvas-wrap { --ca: 0px !important; }
  #hero-rotating-word { transition: none; }
}


/* ── Pulse para el dot verde del header de servicios ── */
@keyframes srvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ================================================================
   SERVICIOS — Character Selection
   3 capas: backgrounds · imagen flotante · texto con mask reveal
   ================================================================ */

/* ── Sección outer: z-index 3 tapa el canvas fixed del hero ── */
.cs-section {
  position: relative;
  z-index: 3;
  background: #010D22;
}

/* ── Viewport: sticky que queda fijo durante todo el scroll ── */
.cs-viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #010D22;
}


/* ────────────────────────────────────────
   CAPA 0 — Backgrounds
──────────────────────────────────────── */
.cs-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cs-bg {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
  transform-origin: center center;
}

/* Vignette sobre todos los fondos */
.cs-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(1,13,34,0.72) 0%, transparent 55%),
    linear-gradient(to top,   rgba(1,13,34,0.85) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* ────────────────────────────────────────
   CAPA 1 — Imagen flotante
──────────────────────────────────────── */
.cs-img-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.cs-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-left: 8vw;
  padding-bottom: 0;
  will-change: transform, opacity;
}

.cs-img-wrap img {
  width: clamp(300px, 55vw, 780px);
  height: clamp(360px, 92vh, 820px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 80px rgba(0,0,0,0.8));
  display: block;
  flex-shrink: 0;
}

/* ────────────────────────────────────────
   CAPA 2 — Texto / panel
──────────────────────────────────────── */
.cs-text-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.cs-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 6vw 8vh;
  pointer-events: none;
}

/* Número watermark grande */
.cs-watermark {
  position: absolute;
  right: 4vw;
  bottom: 6vh;
  font-family: 'Syne', sans-serif;
  font-size: clamp(10rem, 26vw, 28rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* Bloque de contenido izquierdo */
.cs-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
  z-index: 1;
  pointer-events: auto;
}

/* Clip para mask reveal — solo en wrappers de una línea, no en título */
.cs-tag-wrap,
.cs-desc-wrap,
.cs-cta-wrap {
  overflow: hidden;
}

.cs-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: block;
}

.cs-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 50px rgba(0,0,0,0.8);
}

.cs-accent {
  font-style: normal;
  display: block;
}

.cs-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin: 0;
  max-width: 38ch;
}

.cs-pills-wrap {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  overflow: hidden;
}

.cs-pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  border: 1px solid;
  background: rgba(0,0,0,0.2);
}

.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  border: 1px solid;
  text-decoration: none;
  width: fit-content;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  transition: background 0.25s, opacity 0.25s;
}

.cs-cta:hover { background: rgba(0,0,0,0.45); }

/* ────────────────────────────────────────
   UI: contador + dots + barra
──────────────────────────────────────── */
.cs-ui {
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  pointer-events: none;
}

.cs-counter-wrap {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.cs-cur {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  min-width: 2ch;
}

.cs-counter-sep { color: rgba(255,255,255,0.2); margin: 0 0.1rem; }
.cs-counter-tot { font-size: 0.72rem; opacity: 0.5; }

.cs-dots {
  display: flex;
  gap: 0.55rem;
  pointer-events: auto;
}

.cs-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, width 0.3s;
  padding: 0;
}

.cs-dot--active {
  background: rgba(255,255,255,0.85);
  transform: scale(1.5);
}

.cs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.05);
  z-index: 10;
}

.cs-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.3);
  transition: width 0.06s linear;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cs-panel {
    align-items: flex-start;
    padding: 8rem 5vw 0;
  }
  .cs-title {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }
  .cs-img-wrap img {
    width: 75vw;
    height: 55vh;
  }
  .cs-watermark {
    font-size: 35vw;
    bottom: 2vh;
  }
}


/* ================================================================
   SERVICIOS — Pulidos Fase 2
   ================================================================ */

/* ── Navbar transparente mientras servicios está activa ── */
body.srv-active .navbar {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
body.srv-active .navbar a,
body.srv-active .navbar li a,
body.srv-active .navbar button {
  color: rgba(255,255,255,0.85) !important;
}
body.srv-active .theme-switcher {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease !important;
}

/* ── Dots con progress fill ── */
#srv-dots {
  align-items: center !important;
}

.srv-dot {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.18) !important;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1),
              background-color 0.4s ease,
              opacity 0.3s ease !important;
}

.srv-dot.is-active {
  width: 48px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255,255,255,0.18) !important;
}

.srv-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--srv-dot-progress, 0%);
  background: linear-gradient(90deg, var(--srv-accent, #22d3ee), #fff);
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--srv-accent, #22d3ee);
}

/* ── Barra de progreso inferior global de la sección ── */
#srv-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 20;
  pointer-events: none;
}
#srv-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent 0%, var(--srv-accent, #22d3ee) 100%);
  transition: width 0.08s linear, background 0.6s ease;
  box-shadow: 0 0 16px var(--srv-accent, #22d3ee);
}

/* ── Watermark del número del slide ── */
#srv-watermark {
  position: absolute;
  right: -2vw;
  bottom: -3vh;
  font-family: 'Syne', sans-serif;
  font-size: clamp(14rem, 32vw, 38rem);
  font-weight: 800;
  line-height: 0.78;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.07em;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  display: grid;
  text-shadow: 0 0 60px rgba(0,0,0,0.4);
}
.srv-watermark-num {
  grid-area: 1 / 1;
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Glow lateral acento (sigue al servicio) ── */
#srv-side-glow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35vw;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at left center,
    var(--srv-accent-rgba, rgba(34,211,238,0.22)) 0%,
    transparent 65%);
  transition: background 0.8s ease;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* ── Mejorar transición de imágenes ── */
.srv-img {
  transition: filter 0.6s ease;
  will-change: opacity, transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .srv-dot,
  #srv-progress-bar-fill,
  #srv-side-glow,
  .srv-watermark-num { transition: none !important; }
}

/* ================================================================
   TRUST SECTION — Fase 4
   ================================================================ */
#trust.trust-section {
  position: relative;
  background: #010D22;
  padding: 8rem 0 7rem;
  overflow: hidden;
  z-index: 4;
}

.trust-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(77,200,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(34,211,238,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.trust-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
  z-index: 1;
}

/* Header */
.trust-header {
  text-align: center;
  margin-bottom: 5rem;
}
.trust-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(77,200,255,0.85);
  margin-bottom: 1.25rem;
}
.trust-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.trust-title-accent {
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 640px;
  margin: 0 auto;
}

/* Métricas */
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
  position: relative;
}
.trust-metrics::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -3vw; right: -3vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(77,200,255,0.18) 50%, transparent 100%);
  z-index: -1;
}
.trust-metric {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}
.trust-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 30%; bottom: 30%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.trust-metric-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.05em;
}
.trust-metric-num .trust-counter {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-metric-suffix {
  font-size: 0.5em;
  line-height: 1;
  margin-top: 0.15em;
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.trust-metric-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.75rem;
}

/* INVIMA Badge */
.trust-invima-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4.5rem;
}
.trust-invima {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.8rem 1.1rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(77,200,255,0.08) 0%, rgba(34,211,238,0.04) 100%);
  border: 1px solid rgba(77,200,255,0.28);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4),
              inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.trust-invima:hover {
  transform: translateY(-2px);
  border-color: rgba(77,200,255,0.55);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5),
              0 0 0 1px rgba(77,200,255,0.2),
              inset 0 1px 0 rgba(255,255,255,0.12);
}
.trust-invima-icon {
  color: #4dc8ff;
  filter: drop-shadow(0 0 8px rgba(77,200,255,0.5));
  flex-shrink: 0;
}
.trust-invima-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.trust-invima-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-top: 0.2rem;
}
.trust-invima-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  pointer-events: none;
  animation: invimaShine 5s ease-in-out 2s infinite;
}
@keyframes invimaShine {
  0%   { left: -100%; }
  35%  { left: 200%; }
  100% { left: 200%; }
}

/* Materiales */
.trust-materials {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 3rem;
}
.trust-materials-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.trust-materials-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.trust-materials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.trust-material {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.4rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.trust-material:hover {
  background: rgba(77,200,255,0.06);
  border-color: rgba(77,200,255,0.25);
  transform: translateY(-3px);
}
.trust-material-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.trust-material-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(77,200,255,0.7);
}

/* Mobile */
@media (max-width: 768px) {
  #trust.trust-section { padding: 5rem 0 4.5rem; }
  .trust-header { margin-bottom: 3rem; }
  .trust-metrics { grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 3.5rem; }
  .trust-metric { padding: 1.2rem 0.5rem; }
  .trust-metric:nth-child(2)::after { display: none; }
  .trust-invima { padding: 0.9rem 1.2rem; gap: 0.8rem; }
  .trust-invima-title { font-size: 0.9rem; }
  .trust-invima-sub { font-size: 0.65rem; }
  .trust-materials-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .trust-material { padding: 1rem 0.6rem; }
  .trust-material-name { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-invima-shine { animation: none; opacity: 0; }
  .trust-invima, .trust-material { transition: none; }
}

/* ================================================================
   PORTAFOLIO — Fase 5 (Híbrida: Cinematic intro + Grid lupa)
   ================================================================ */

/* ── Escena cinematic intro ── */
.port-intro {
  position: relative;
  min-height: 100vh;
  background: #010D22;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.port-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.port-intro-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  filter: blur(2px) saturate(1.2) brightness(0.85);
  transform: scale(1.08);
  transition: transform 1.2s ease-out;
}
.port-intro.in-view .port-intro-bg img {
  transform: scale(1.02);
}
.port-intro-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(1,13,34,0.55) 55%, #010D22 100%),
    linear-gradient(180deg, rgba(1,13,34,0.85) 0%, transparent 30%, transparent 70%, rgba(1,13,34,0.95) 100%);
}
.port-intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 6vw;
  max-width: 1100px;
}
.port-intro-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(77,200,255,0.85);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease 0.1s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.port-intro-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  letter-spacing: -0.025em;
}
.port-intro-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.port-intro-line:nth-of-type(1) { transition-delay: 0.25s; }
.port-intro-line:nth-of-type(2) { transition-delay: 0.55s; }
.port-intro-line--accent {
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.port-intro.in-view .port-intro-tag,
.port-intro.in-view .port-intro-line {
  opacity: 1;
  transform: translateY(0);
}
.port-intro-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  z-index: 2;
}
.port-intro-scroll svg {
  animation: portScrollBounce 2s ease infinite;
  color: rgba(77,200,255,0.7);
}
@keyframes portScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ── Sección grid ── */
.port-section {
  position: relative;
  background: #010D22;
  padding: 6rem 0 8rem;
  overflow: hidden;
  z-index: 4;
}
.port-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 80% 0%, rgba(77,200,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(167,139,250,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.port-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5vw;
  z-index: 1;
}
.port-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.port-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(77,200,255,0.85);
  margin-bottom: 0.85rem;
}
.port-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}
.port-title-accent {
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.port-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(77,200,255,0.3);
  background: rgba(77,200,255,0.05);
  color: rgba(255,255,255,0.9);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.port-cta:hover {
  background: rgba(77,200,255,0.12);
  border-color: rgba(77,200,255,0.55);
  transform: translateY(-2px);
}
.port-cta svg { transition: transform 0.3s ease; }
.port-cta:hover svg { transform: translateX(3px); }

/* Grid uniforme 4 columnas — efecto LUPA al hover */
.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  transition: filter 0.4s ease;
}
.port-grid:has(.port-item:hover) .port-item:not(:hover) {
  filter: blur(2px) brightness(0.55) saturate(0.7);
  opacity: 0.7;
  transform: scale(0.97);
}

.port-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #0a1830;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease,
              border-color 0.3s ease,
              box-shadow 0.4s ease,
              z-index 0s linear 0.5s;
}
.port-item:hover {
  transform: scale(1.08);
  border-color: rgba(77,200,255,0.5);
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.7),
              0 0 0 1px rgba(77,200,255,0.25),
              0 0 60px rgba(77,200,255,0.2);
  z-index: 5;
  transition-delay: 0s;
}

.port-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.port-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.5s ease;
  filter: brightness(0.95) saturate(1.05);
}
.port-item:hover .port-img-wrap img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.2);
}

.port-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  background: linear-gradient(to top, rgba(1,13,34,0.92) 0%, rgba(1,13,34,0.5) 35%, transparent 65%);
  pointer-events: none;
  transition: background 0.4s ease;
}
.port-item:hover .port-overlay {
  background: linear-gradient(to top, rgba(1,13,34,0.95) 0%, rgba(1,13,34,0.65) 50%, rgba(1,13,34,0.15) 90%);
}
.port-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4dc8ff;
  margin-bottom: 0.3rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.port-desc {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
  opacity: 0.95;
}

@media (max-width: 1024px) {
  .port-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .port-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
  .port-intro { min-height: 80vh; }
  .port-intro-tag { font-size: 0.6rem; letter-spacing: 0.3em; margin-bottom: 1.25rem; }
  .port-section { padding: 4rem 0 5rem; }
  /* En mobile no aplicamos lupa (no hay hover real) */
  .port-grid:has(.port-item:hover) .port-item:not(:hover) {
    filter: none; opacity: 1; transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .port-img-wrap img, .port-overlay, .port-item, .port-cta,
  .port-intro-bg img, .port-intro-tag, .port-intro-line { transition: none !important; animation: none !important; }
  .port-grid:has(.port-item:hover) .port-item:not(:hover) {
    filter: none; opacity: 1; transform: none;
  }
}

/* ================================================================
   PROCESO — Scroll-pin: imagen sticky + textos pasando
   ================================================================ */
/* Contenedor alto: provee el recorrido de scroll (5 fases × 100vh) */
.proc-section {
  position: relative;
  background: #010D22;
  min-height: 500vh;
  z-index: 4;
}
/* Pantalla fija que se queda pegada mientras se hace scroll por la sección */
.proc-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #010D22;
}
.proc-blueprint {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(77,200,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(77,200,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.proc-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 20%, rgba(77,200,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(34,211,238,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Header */
.proc-header {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 2.5vh;
  padding: 0 6vw;
}
.proc-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(77,200,255,0.85);
  margin-bottom: 1.25rem;
}
.proc-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  letter-spacing: -0.025em;
}
.proc-title-accent {
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.proc-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.65;
}

/* STAGE: grid centrado dentro del pin */
.proc-stage-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4vw;
  align-items: center;
}

/* IZQUIERDA — imagen (cross-fade) */
.proc-stage-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Topbar contador */
.proc-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
  font-family: 'Inter', sans-serif;
}
.proc-stage-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.proc-stage-cur {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  transition: opacity 0.3s ease;
}
.proc-stage-tot {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
}
.proc-stage-code {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(180,220,255,0.7);
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

/* Frame con imagen */
.proc-stage-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 75vh;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1830;
  border: 1px solid rgba(77,200,255,0.18);
  box-shadow: 0 32px 80px -10px rgba(0,0,0,0.7),
              0 0 0 1px rgba(77,200,255,0.08),
              inset 0 1px 0 rgba(255,255,255,0.05);
}
.proc-stage-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.95) saturate(1.1);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.proc-stage-img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* Corchetes técnicos */
.proc-frame-c {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid #4dc8ff;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(77,200,255,0.5));
}
.proc-frame-tl { top: 12px;    left: 12px;    border-right: 0; border-bottom: 0; }
.proc-frame-tr { top: 12px;    right: 12px;   border-left: 0;  border-bottom: 0; }
.proc-frame-bl { bottom: 12px; left: 12px;    border-right: 0; border-top: 0; }
.proc-frame-br { bottom: 12px; right: 12px;   border-left: 0;  border-top: 0; }

/* Scan line decorativa */
.proc-stage-scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(77,200,255,0) 15%,
    rgba(77,200,255,0.85) 50%,
    rgba(77,200,255,0) 85%,
    transparent 100%);
  box-shadow: 0 0 16px rgba(77,200,255,0.6);
  z-index: 3;
  pointer-events: none;
  animation: procScanSweep 6s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes procScanSweep {
  0%, 100% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translateY(75vh); opacity: 0.8; }
  90% { opacity: 0; }
}

/* Meta inferior */
.proc-stage-meta {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  background: rgba(1,13,34,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(77,200,255,0.28);
  font-family: 'Inter', monospace, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(220,240,255,0.9);
}
.proc-stage-meta #proc-meta-text { transition: opacity 0.35s ease; }
.proc-frame-meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4dc8ff;
  box-shadow: 0 0 8px rgba(77,200,255,0.9);
  animation: hudDotPulse 1.8s ease infinite;
}

/* Barra progreso debajo */
.proc-stage-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 0.25rem;
  margin-top: 0.5rem;
}
.proc-stage-progress::before {
  content: '';
  position: absolute;
  top: 50%; left: 8px; right: 8px;
  height: 2px;
  background: rgba(77,200,255,0.12);
  transform: translateY(-50%);
  z-index: 0;
}
.proc-stage-progress-fill {
  position: absolute;
  top: 50%; left: 8px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #4dc8ff 0%, #22d3ee 100%);
  box-shadow: 0 0 8px rgba(77,200,255,0.5);
  transform: translateY(-50%);
  transition: width 0.18s linear;
  z-index: 1;
}
.proc-stage-tick {
  position: relative;
  z-index: 2;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #010D22;
  border: 2px solid rgba(77,200,255,0.3);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc-stage-tick.is-active {
  border-color: #4dc8ff;
  background: #4dc8ff;
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(77,200,255,0.18),
              0 0 14px rgba(77,200,255,0.7);
}
.proc-stage-tick.is-passed {
  background: rgba(77,200,255,0.55);
  border-color: rgba(77,200,255,0.8);
}

/* DERECHA — fases apiladas con cross-fade (solo una visible a la vez) */
.proc-stage-text {
  position: relative;
  min-height: 22rem;
}
.proc-fase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(2.5rem);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc-fase.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.proc-fase-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}
.proc-fase-n {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #4dc8ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}
.proc-fase-divider {
  width: 32px; height: 1px;
  background: rgba(77,200,255,0.5);
}
.proc-fase-code {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(180,220,255,0.75);
}
.proc-fase-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.proc-fase-hook {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: rgba(77,200,255,0.95);
  margin: 0 0 1.4rem;
  line-height: 1.4;
}
.proc-fase-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0;
  max-width: 44ch;
}

/* Dots de navegación (debajo del grid) */
.proc-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3.5vh;
}
.proc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: width 0.4s ease, background 0.4s ease;
}
.proc-dot.is-active {
  width: 38px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4dc8ff, #22d3ee);
}

/* Barra de progreso global (borde inferior del pin) */
.proc-progress-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 3;
}
.proc-progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4dc8ff, #22d3ee);
  box-shadow: 0 0 14px rgba(34,211,238,0.6);
}

/* Mobile: el pin se desactiva y cada fase se muestra en flujo normal */
@media (max-width: 900px) {
  .proc-section { min-height: 0; }
  .proc-pin {
    position: static;
    height: auto;
    padding: 4rem 0 3rem;
    display: block;
  }
  .proc-stage-grid { grid-template-columns: 1fr; gap: 2rem; }
  .proc-stage-frame { aspect-ratio: 4 / 3; max-height: 50vh; }
  .proc-stage-text { min-height: 0; }
  .proc-fase {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 1.5rem 0;
  }
  .proc-dots { display: none; }
}
@media (max-width: 640px) {
  .proc-header { margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .proc-fase, .proc-stage-img, .proc-dot, .proc-progress-bar-fill { transition: none !important; }
  .proc-stage-scan, .proc-frame-meta-dot { animation: none !important; }
}
