﻿
/* ═══════════════════════════════════════
   TOKENS — ISORBIT brand palette (alineada a Base/01)
═══════════════════════════════════════ */
:root {
  /* Navy Deep family */
  --navy-950: #070F2B;
  --navy-900: #0A153A;
  --navy-800: #0D1B3E;   /* Navy Deep — fondo principal */
  --navy-700: #122553;
  --navy-600: #172F6C;
  --navy-500: #1A3A7C;   /* Orbit Blue — color de marca */

  /* Signal Cyan family */
  --cyan-500: #1E8FC2;
  --cyan-400: #29ABE2;   /* Signal Cyan — acento, CTAs */
  --cyan-300: #5DC4EC;
  --cyan-200: #8FD7F3;
  --cyan-100: #C2EAF9;

  --blue-500: #1A3A7C;
  --blue-400: #2A6FD4;
  --blue-300: #4F9AE8;

  /* Success */
  --green-400: #00C48C;  /* Process Green */

  /* Neutrals */
  --white:    #F4F6FA;   /* Cloud White */
  --mid:      #6B7A99;   /* Slate */
  --muted:    #44557A;
  --border:   rgba(41,171,226,0.12);
  --border2:  rgba(41,171,226,0.06);

  --glow-cyan: 0 0 40px rgba(41,171,226,0.25);
  --glow-sm:   0 0 16px rgba(41,171,226,0.2);

  --depth-base-opacity: 0.9;
  --depth-gradients-opacity: 0.55;
  --depth-grid-opacity: 0.22;
  --depth-3d-opacity: 0.32;
  --depth-sparkles-opacity: 0.18;
  --depth-vignette-opacity: 0.55;
  --depth-3d-blur: 42px;
  --depth-drift-speed: 24s;
  --depth-parallax-gradients: 16;
  --depth-parallax-3d: 30;

  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max: 1160px;
  --pad: clamp(20px, 5vw, 60px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{
  background:var(--navy-800);
  color:var(--white);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  position:relative;
}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{cursor:pointer;border:none;background:none;font:inherit;color:inherit}

/* ═══════════════════════════════════════
   GLOBAL DEPTH LAYERS
═══════════════════════════════════════ */
.depth-stack{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.depth-layer{
  position:absolute;
  inset:-8%;
  pointer-events:none;
  will-change:transform,opacity;
}
.layer-base{
  inset:0;
  background:
    radial-gradient(120% 90% at 50% -10%,rgba(13,27,62,0.5) 0%,transparent 58%),
    linear-gradient(180deg,#070f2b 0%,#0a153a 46%,#0d1b3e 100%);
  opacity:var(--depth-base-opacity);
}
.layer-gradients{
  background:
    radial-gradient(58% 44% at 18% 18%,rgba(41,171,226,0.2) 0%,rgba(41,171,226,0) 68%),
    radial-gradient(54% 40% at 85% 72%,rgba(42,111,212,0.18) 0%,rgba(42,111,212,0) 70%),
    radial-gradient(30% 26% at 53% 52%,rgba(93,196,236,0.1) 0%,rgba(93,196,236,0) 75%);
  filter:blur(10px);
  opacity:var(--depth-gradients-opacity);
  transform:translate3d(0,0,0);
}
.layer-grid{
  inset:0;
  background-image:
    linear-gradient(rgba(143,215,243,0.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(143,215,243,0.07) 1px,transparent 1px);
  background-size:56px 56px,56px 56px;
  mask-image:radial-gradient(120% 100% at 50% 45%,rgba(0,0,0,0.9) 0%,transparent 88%);
  opacity:var(--depth-grid-opacity);
}
.layer-3d{
  inset:auto;
  width:min(56vw,880px);
  height:min(56vw,880px);
  top:-12vh;
  right:-16vw;
  border-radius:44% 56% 47% 53% / 52% 43% 57% 48%;
  background:
    conic-gradient(from 110deg at 50% 50%,rgba(41,171,226,0.34),rgba(42,111,212,0.16),rgba(143,215,243,0.3),rgba(41,171,226,0.34)),
    radial-gradient(circle at 35% 30%,rgba(255,255,255,0.2) 0%,rgba(255,255,255,0) 52%);
  filter:blur(var(--depth-3d-blur));
  mix-blend-mode:screen;
  opacity:var(--depth-3d-opacity);
  animation:depthBlobDrift var(--depth-drift-speed) ease-in-out infinite alternate;
  transform:translate3d(0,0,0) rotate(-8deg);
}
.layer-sparkles{
  inset:0;
  background-image:radial-gradient(circle,rgba(143,215,243,0.55) 0.6px,transparent 0.8px);
  background-size:72px 72px;
  mask-image:radial-gradient(120% 90% at 50% 45%,rgba(0,0,0,0.85) 0%,transparent 80%);
  opacity:var(--depth-sparkles-opacity);
}
.layer-vignette{
  inset:0;
  background:radial-gradient(ellipse at center,rgba(7,15,43,0) 38%,rgba(7,15,43,0.3) 68%,rgba(7,15,43,0.68) 100%);
  opacity:var(--depth-vignette-opacity);
}

@keyframes depthBlobDrift{
  0%{transform:translate3d(-2%,-1%,0) rotate(-10deg)}
  50%{transform:translate3d(4%,2%,0) rotate(-4deg)}
  100%{transform:translate3d(-1%,4%,0) rotate(-8deg)}
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
section{position:relative}
nav,section,footer{position:relative;z-index:2}

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--cyan-400);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.label::before{
  content:'';width:20px;height:1px;
  background:linear-gradient(90deg,var(--cyan-400),transparent);
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.d-xl{
  font-size:clamp(44px,7.5vw,96px);
  font-weight:700;line-height:1;
  letter-spacing:-.035em;
}
.d-lg{
  font-size:clamp(32px,4.8vw,56px);
  font-weight:600;line-height:1.08;
  letter-spacing:-.025em;
}
.d-md{
  font-size:clamp(24px,3vw,36px);
  font-weight:600;letter-spacing:-.02em;
  line-height:1.18;
}
.gradient-text{
  background:linear-gradient(135deg,var(--cyan-300) 0%,var(--cyan-400) 50%,var(--blue-400) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--font);font-size:14px;font-weight:600;
  letter-spacing:.02em;padding:14px 28px;border-radius:6px;
  transition:all .25s var(--ease);white-space:nowrap;
}
.btn svg{transition:transform .2s var(--ease)}
.btn:hover svg{transform:translateX(4px)}

.btn-primary{
  background:linear-gradient(135deg,var(--cyan-400),var(--blue-400));
  color:var(--navy-950);font-weight:600;
  box-shadow:0 4px 24px rgba(41,171,226,.28);
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 40px rgba(41,171,226,.42);
}
.btn-ghost{
  background:rgba(41,171,226,.06);
  border:1px solid var(--border);
  color:var(--white);
}
.btn-ghost:hover{
  background:rgba(41,171,226,.12);
  border-color:rgba(41,171,226,.3);
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
#nav{
  position:fixed;top:0;left:0;right:0;z-index:500;
  display:flex;align-items:center;justify-content:space-between;
  padding:16px var(--pad);
  transition:background .4s,border-color .4s,backdrop-filter .4s;
  border-bottom:1px solid transparent;
}
#nav.scrolled{
  background:rgba(7,15,43,.9);
  backdrop-filter:blur(22px) saturate(150%);
  border-color:var(--border);
}

.nav-logo{
  display:flex;align-items:center;
  gap:12px;
}
.nav-logo-icon{
  width:40px;
  height:40px;
  border-radius:8px;
  object-fit:contain;
}
.nav-logo-img{
  height:27px;
  width:auto;
  object-fit:contain;
}

@media(max-width:768px){
  .nav-logo-img{
    height:21px;
  }
  .nav-logo-icon{
    width:32px;
    height:32px;
  }
}

.nav-links{display:flex;align-items:center;gap:32px}
.nav-links a{
  font-size:14px;font-weight:500;color:rgba(244,246,250,.9);
  letter-spacing:.01em;transition:color .15s;
}
.nav-links a:hover{color:#ffffff}
.nav-cta{
  background:rgba(41,171,226,.08) !important;
  border:1px solid rgba(41,171,226,.34);
  color:var(--cyan-300) !important;
  padding:11px 22px;border-radius:999px;
  font-weight:600 !important;font-size:13px !important;
  transition:all .2s !important;
}
.nav-cta:hover{background:rgba(41,171,226,.16) !important;border-color:rgba(41,171,226,.5);}

.nav-burger{display:none;flex-direction:column;gap:5px;padding:4px}
.nav-burger span{display:block;width:22px;height:1.5px;background:var(--white);transition:.2s}

/* ═══════════════════════════════════════
   CANVAS PARTICLES
═══════════════════════════════════════ */
#canvas-bg{
  position:fixed;inset:0;z-index:1;pointer-events:none;
  opacity:.5;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero{
  min-height:100svh;display:flex;align-items:center;
  padding:clamp(78px,8.4vw,108px) var(--pad) clamp(38px,5.6vw,72px);overflow:hidden;
  position:relative;
}

.hero-glow{
  position:absolute;
  width:clamp(460px,58vw,860px);height:clamp(460px,58vw,860px);
  right:clamp(-180px,-10vw,-28px);top:48%;transform:translateY(-50%);
  background:radial-gradient(ellipse,rgba(41,171,226,.06) 0%,transparent 72%);
  pointer-events:none;
}
.hero-glow-2{
  position:absolute;
  width:clamp(320px,40vw,560px);height:clamp(320px,40vw,560px);
  left:clamp(-130px,-7vw,-20px);bottom:clamp(-140px,-8vw,-24px);
  background:radial-gradient(ellipse,rgba(26,58,124,.08) 0%,transparent 66%);
  pointer-events:none;
}

.hero-inner{
  position:relative;z-index:1;
  max-width:min(1320px, 100%);width:100%;margin:0 auto;
  min-height:clamp(480px,62svh,740px);
  display:flex;align-items:center;
}

.hero-left{
  max-width:min(560px,48%);
  position:relative;z-index:2;
}

.hero-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  color:var(--cyan-400);text-transform:uppercase;
  margin-bottom:28px;padding:7px 14px;
  border:1px solid rgba(41,171,226,.2);border-radius:4px;
  background:rgba(41,171,226,.05);
}
.hero-tag-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--cyan-400);
  animation:blink 2s ease infinite;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}

@keyframes floatImage{
  0%,100%{transform:translateY(0px)}
  50%{transform:translateY(-20px)}
}

.hero-hl{margin-bottom:24px}
.hero-sub{
  font-size:clamp(16px,1.5vw,18px);
  color:var(--mid);line-height:1.65;font-weight:400;
  max-width:min(540px,96%);margin-bottom:clamp(18px,2.4vw,34px);
}
.hero-ctas{display:flex;gap:clamp(10px,1.4vw,14px);flex-wrap:wrap}

/* ── HERO VISUAL ── */
/* Hijo directo de #hero → se posiciona relativo a la sección completa (100svh) */
/* Centrado vertical con top/bottom + margin:auto (sin transform, no interfiere con .reveal) */
.hero-visual{
  position:absolute;
  top:0;bottom:0;
  left:50%;
  right:auto;
  margin-block:auto;
  width:clamp(380px,49vw,760px);
  height:fit-content;
  z-index:1;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-visual-shell{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-visual-shell::before{
  content:'';
  position:absolute;
  inset:8% 12%;
  border-radius:50%;
  background:radial-gradient(circle, rgba(41,171,226,0.22) 0%, rgba(41,171,226,0) 65%);
  filter:blur(30px);
  z-index:-1;
}

@media(max-width:960px){
  .hero-visual-shell::before{
    inset:10% 15%;
    filter:blur(24px);
  }
}

@media(max-width:768px){
  .hero-visual-shell::before{
    inset:12% 18%;
    filter:blur(20px);
  }
}

.hero-orbit-img{
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  mix-blend-mode:screen;
  filter:drop-shadow(0 20px 52px rgba(20,73,180,0.42));
  animation:floatImage 6s ease-in-out infinite;
}

@media(prefers-reduced-motion:reduce){
  .hero-orbit-img{
    animation:none;
  }
}

/* ═══════════════════════════════════════
   STATS BAR
═══════════════════════════════════════ */
#stats{
  padding:0 var(--pad);
  position:relative;z-index:1;
}
.stats-inner{
  background:rgba(18,37,83,.7);
  border:1px solid var(--border);
  border-radius:12px;
  backdrop-filter:blur(16px);
  display:grid;grid-template-columns:repeat(3,1fr);
  overflow:hidden;
  margin-top:-1px;
}
.stat{
  padding:32px 36px;
  border-right:1px solid var(--border);
  transition:background .2s;
}
.stat:last-child{border-right:none}
.stat:hover{background:rgba(41,171,226,.03)}
.stat-val{
  font-size:36px;font-weight:700;
  line-height:1;letter-spacing:-.025em;
  background:linear-gradient(135deg,var(--cyan-300),var(--blue-400));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;margin-bottom:8px;
}
.stat-label{font-size:14px;color:var(--mid);font-weight:400;line-height:1.5}

/* ═══════════════════════════════════════
   RECOGNITION
═══════════════════════════════════════ */
#recognition{
  padding:120px var(--pad);
  background:var(--navy-900);
  border-top:1px solid var(--border2);
  border-bottom:1px solid var(--border2);
}
.rec-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:80px;align-items:start;
}
.rec-left p{
  font-size:17px;color:var(--mid);
  line-height:1.7;font-weight:400;max-width:460px;margin-top:16px;
}

.symptoms{display:flex;flex-direction:column}
.symptom{
  display:flex;align-items:flex-start;gap:16px;
  padding:18px 0;border-bottom:1px solid var(--border2);
  transition:all .2s;cursor:default;
}
.symptom:first-child{border-top:1px solid var(--border2)}
.symptom:hover{padding-left:6px}
.sym-num{
  font-family:var(--mono);font-size:10px;color:var(--cyan-400);
  letter-spacing:.08em;margin-top:3px;flex-shrink:0;width:24px;
}
.sym-text{font-size:15.5px;color:var(--mid);line-height:1.55;font-weight:400}
.sym-text strong{color:var(--white);font-weight:600}

/* ═══════════════════════════════════════
   STEPS
═══════════════════════════════════════ */
#what{padding:140px var(--pad)}
.what-head{max-width:680px;margin-bottom:72px}
.what-head p{font-size:17px;color:var(--mid);margin-top:16px;font-weight:400;line-height:1.7}

/* ═══════════════════════════════════════
   SCROLLYTELLING (MÉTODO)
═══════════════════════════════════════ */
.scrolly-container {
  position: relative;
  width: 100%;
}
.scrolly-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Lado Fijo (Visual) */
.scrolly-fixed {
  position: sticky;
  top: 150px; /* Offset del nav */
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scrolly-visual {
  position: relative;
  width: 320px;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}
/* Cine oscuro glow */
.scrolly-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(41,171,226,0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Nodos */
.scrolly-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.3;
  transform: scale(0.9);
  transition: all 0.5s var(--ease);
}
.scrolly-node.active {
  opacity: 1;
  transform: scale(1);
}
.node-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  box-shadow: 0 0 0 rgba(41,171,226,0);
  transition: all 0.5s var(--ease);
}
.scrolly-node.active .node-icon {
  background: var(--navy-800);
  border-color: var(--cyan-400);
  color: #fff;
  box-shadow: 0 0 30px rgba(41,171,226,0.3);
}
.node-icon svg {
  width: 24px; height: 24px;
}
.node-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-400);
  transition: color 0.5s;
}
.scrolly-node.active .node-label {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Conectores */
.scrolly-line {
  position: absolute;
  width: 2px;
  background: var(--border2);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scrolly-line::after {
  content:'';
  display: block;
  width: 100%;
  height: 0%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
  transition: height 0.6s var(--ease);
}
.scrolly-line.line-1 {
  top: 135px;
  height: 65px;
}
.scrolly-line.line-2 {
  top: 290px;
  height: 110px;
}
.scrolly-line.active::after {
  height: 100%;
}

/* Lado Scroll (Textos) */
.scrolly-steps {
  padding-top: 100px;
  padding-bottom: 200px; /* Para que el último paso pueda subir lo suficiente */
}
.scrolly-step {
  margin-bottom: 200px;
  background: var(--navy-900);
  padding: 50px 40px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  opacity: 0.3;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
  position: relative;
  overflow: hidden;
}
.scrolly-step::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--cyan-400), var(--blue-400));
  opacity: 0;
  transition: opacity 0.6s;
}
.scrolly-step.active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(41,171,226,0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(41,171,226,0.05);
}
.scrolly-step.active::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .scrolly-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .scrolly-container {
    padding-top: 20px;
  }
  
  /* Mantener el track horizontal pegado arriba */
  .scrolly-fixed {
    position: sticky;
    top: 70px; /* Debajo del nav */
    height: auto;
    margin-bottom: 20px;
    z-index: 20;
    justify-content: flex-start;
    /* Fondo sólido y sombra gruesa para que no se empalme feo con las tarjetas que pasan debajo */
    background: var(--navy-900);
    box-shadow: 0 20px 40px rgba(7, 15, 43, 0.9);
    padding: 20px 0;
    border-radius: 12px;
    border: 1px solid var(--border2);
  }
  .scrolly-visual {
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 0 20px;
    justify-content: space-between;
  }
  
  /* Ajuste de nodos e iconos para móvil */
  .scrolly-node {
    transform: scale(0.85);
    gap: 8px;
  }
  .scrolly-node.active {
    transform: scale(0.95);
  }
  .node-icon {
    width: 48px; height: 48px;
  }
  .node-icon svg {
    width: 20px; height: 20px;
  }
  .node-label {
    font-size: 9px;
  }

  /* Ocultamos los conectores horizontales en móvil para un diseño más limpio */
  .scrolly-line {
    display: none;
  }
  
  /* Ajuste de los recuadros de texto */
  .scrolly-steps {
    padding-top: 0;
    padding-bottom: 80px;
  }
  .scrolly-step {
    margin-bottom: 60px;
    padding: 30px 24px;
    /* En móvil, los textos también deben notarse más aunque no estén en 100% de enfoque */
    opacity: 0.5;
  }
  .scrolly-step.active {
    opacity: 1;
  }
  .scrolly-step:last-child {
    margin-bottom: 0;
  }
}

/* Base Step typography (inherited by Scrolly) */
.step-n {
  font-size:72px;font-weight:700;
  color:rgba(41,171,226,.08);
  line-height:1;letter-spacing:-.03em;
  margin-bottom:28px;
  transition:color .25s;font-family:var(--font);
}
.step:hover .step-n{color:rgba(41,171,226,.14)}
.step-title{
  font-size:20px;font-weight:600;
  letter-spacing:-.015em;margin-bottom:12px;
  display:flex;align-items:center;gap:10px;
}
.step-dot{
  width:7px;height:7px;border-radius:50%;
  background:linear-gradient(135deg,var(--cyan-400),var(--blue-400));
  flex-shrink:0;
}
.step-body{font-size:14.5px;color:var(--mid);line-height:1.7}
.step-tag{
  position:absolute;top:20px;right:20px;
  font-family:var(--mono);font-size:10px;
  color:var(--muted);letter-spacing:.1em;text-transform:uppercase;
}

/* ═══════════════════════════════════════
   SERVICES (reemplaza problemas)
═══════════════════════════════════════ */
#services{
  padding:120px var(--pad);
  background:var(--navy-900);
  border-top:1px solid var(--border2);
  border-bottom:1px solid var(--border2);
}
.svc-head{
  display:grid;grid-template-columns:1fr 1fr;
  gap:80px;align-items:end;margin-bottom:60px;
}
.svc-intro{font-size:16px;color:var(--mid);line-height:1.7;font-weight:400}

.svc-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:1px;background:var(--border2);
  border:1px solid var(--border2);border-radius:12px;overflow:hidden;
}
.svc-item{
  background:var(--navy-900);padding:30px 32px;
  display:flex;gap:18px;align-items:flex-start;
  transition:background .2s;cursor:default;
}
.svc-item:hover{background:rgba(23,47,108,.55)}
.svc-arrow{
  color:var(--cyan-400);font-family:var(--mono);
  font-size:14px;flex-shrink:0;margin-top:2px;
  opacity:.8;
}
.svc-item h4{
  font-size:16px;font-weight:600;
  letter-spacing:-.01em;margin-bottom:6px;color:var(--white);
}
.svc-item p{font-size:14px;color:var(--muted);line-height:1.6}

/* ═══════════════════════════════════════
   CASES — SCROLL HORIZONTAL
═══════════════════════════════════════ */
#cases{padding:140px var(--pad) 120px}
.cases-head{max-width:640px;margin-bottom:36px}
.cases-head p{font-size:17px;color:var(--mid);margin-top:16px;font-weight:400;line-height:1.7}

.cases-controls{
  display:flex;align-items:center;justify-content:flex-end;
  gap:8px;margin-bottom:20px;
}
.cases-arrow{
  width:38px;height:38px;border-radius:8px;
  border:1px solid var(--border);
  display:grid;place-items:center;
  color:var(--mid);transition:all .2s var(--ease);
}
.cases-arrow:hover{
  background:rgba(41,171,226,.08);
  border-color:rgba(41,171,226,.25);color:var(--white);
}
.cases-arrow svg{width:16px;height:16px}

.cases-scroll{
  display:flex;gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding-bottom:16px;
  cursor:grab;user-select:none;
}
.cases-scroll:active{cursor:grabbing}
.cases-scroll::-webkit-scrollbar{height:3px}
.cases-scroll::-webkit-scrollbar-track{background:var(--border2);border-radius:2px}
.cases-scroll::-webkit-scrollbar-thumb{background:rgba(41,171,226,.25);border-radius:2px}

.case-card-modern{
  flex-shrink:0;width:375px;
  background:transparent;
  display:flex;flex-direction:column;
  text-decoration:none;
  border-radius:12px;
  transition:all .3s ease;
  scroll-snap-align:start;
}
.case-card-modern:hover .ccm-visual img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.1);
}
.case-card-modern:hover .ccm-title {
  color: var(--cyan-400);
}
.case-card-modern:hover .ccm-title svg {
  transform: translateX(4px);
  opacity: 1;
}

.ccm-visual{
  height:240px;overflow:hidden;position:relative;
  border-radius:12px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.ccm-visual img{
  width:100%;height:100%;object-fit:cover;
  display:block;transition:all .6s ease;
  filter: grayscale(80%) brightness(0.7) contrast(1.2);
  cursor: pointer;
}

.card-visual-ph{
  width:100%;height:100%;
  background: radial-gradient(circle at center, var(--navy-700) 0%, var(--navy-900) 100%);
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.card-visual-ph::before{
  content:'';position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
  background-size:24px 24px;
}
.card-visual-ph::after{
  content:'';position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 50%,rgba(41,171,226,.05) 0%,transparent 70%);
}

.ccm-body{
  display:flex;flex-direction:column;gap:12px;
  padding: 0 4px;
}

.ccm-tag{
  font-family:var(--mono);font-size:11px;letter-spacing:.08em;
  color:rgba(255,255,255,0.4);
  text-transform:uppercase;
  font-weight: 500;
}

.ccm-title{
  font-size:20px;font-weight:500;letter-spacing:-.015em;
  line-height:1.3;color:var(--white);
  transition:color .3s ease;
  display: flex; align-items: flex-start;
}
.ccm-title svg {
  width: 18px; height: 18px; margin-left: 8px; margin-top: 4px;
  color: var(--cyan-400); flex-shrink: 0;
  opacity: 0; transform: translateX(-4px);
  transition:all .3s ease;
}

.ccm-desc{
  font-size:15px;color:var(--muted);line-height:1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   PRINCIPLES
═══════════════════════════════════════ */
#principles{
  padding:120px var(--pad);
  background:var(--navy-900);
  border-top:1px solid var(--border2);
  border-bottom:1px solid var(--border2);
}
.princ-inner{
  display:grid;grid-template-columns:380px 1fr;
  gap:100px;align-items:start;
}
.princ-left p{font-size:15.5px;color:var(--mid);line-height:1.7;font-weight:400;margin-top:16px}

.anti{
  margin-top:36px;padding:24px 28px;
  background:rgba(7,15,43,.75);
  border:1px solid var(--border2);border-radius:10px;
}
.anti h5{
  font-family:var(--mono);font-size:10px;letter-spacing:.14em;
  color:var(--muted);text-transform:uppercase;margin-bottom:14px;
}
.anti-item{
  display:flex;align-items:flex-start;gap:12px;
  padding:7px 0;font-size:14px;color:var(--muted);
}
.anti-item::before{
  content:'✕';color:rgba(255,110,110,.45);font-size:11px;
  flex-shrink:0;margin-top:2px;font-family:var(--mono);
}

.princ-list{display:flex;flex-direction:column}
.princ{
  padding:24px 0;border-bottom:1px solid var(--border2);
  display:grid;grid-template-columns:28px 1fr;
  gap:20px;align-items:start;cursor:default;
  transition:padding-left .2s;
}
.princ:first-child{border-top:1px solid var(--border2)}
.princ:hover{padding-left:6px}
.princ-num{font-family:var(--mono);font-size:10px;color:var(--muted);margin-top:3px}
.princ h4{font-size:16px;font-weight:600;letter-spacing:-.01em;margin-bottom:6px;color:var(--white)}
.princ p{font-size:14.5px;color:var(--muted);line-height:1.6}

/* ═══════════════════════════════════════
   CREDIBILITY
═══════════════════════════════════════ */
#credibility{padding:140px var(--pad)}
.cred-head{max-width:600px;margin-bottom:64px}

.cred-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}
.cred-card{
  padding:32px 28px;
  border:1px solid var(--border2);
  border-radius:12px;background:var(--navy-700);
  transition:border-color .2s,transform .2s var(--ease);
}
.cred-card:hover{border-color:rgba(41,171,226,.2);transform:translateY(-2px)}
.cred-lbl{
  font-family:var(--mono);font-size:10px;letter-spacing:.14em;
  color:var(--cyan-400);text-transform:uppercase;margin-bottom:14px;
}
.cred-card h3{font-size:17px;font-weight:600;letter-spacing:-.015em;margin-bottom:8px}
.cred-card p{font-size:14px;color:var(--muted);line-height:1.6}

.cred-quote{
  padding:44px 48px;
  background:var(--navy-700);
  border:1px solid var(--border2);
  border-radius:12px;
  border-left:3px solid var(--cyan-400);
  display:grid;grid-template-columns:1fr auto;
  gap:32px;align-items:end;
}
.cred-quote blockquote{
  font-size:clamp(18px,2.3vw,24px);font-weight:500;
  letter-spacing:-.015em;line-height:1.38;color:var(--white);
}
.cred-qm{text-align:right;white-space:nowrap}
.cred-qm strong{display:block;font-size:14px;font-weight:600;margin-bottom:4px}
.cred-qm span{font-size:12px;color:var(--muted);font-family:var(--mono)}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
#faq{
  padding:120px var(--pad);
  background:var(--navy-900);
  border-top:1px solid var(--border2);
  border-bottom:1px solid var(--border2);
}
.faq-inner{display:grid;grid-template-columns:360px 1fr;gap:100px;align-items:start}
.faq-left p{font-size:15.5px;color:var(--mid);line-height:1.7;font-weight:400;margin-top:16px}

.faq-list{display:flex;flex-direction:column}
.faq-item{border-bottom:1px solid var(--border2);overflow:hidden}
.faq-item:first-child{border-top:1px solid var(--border2)}
.faq-q{
  width:100%;display:flex;justify-content:space-between;align-items:center;
  gap:16px;padding:22px 0;text-align:left;
  font-size:15.5px;font-weight:600;letter-spacing:-.01em;color:var(--white);
  transition:color .15s;
}
.faq-q:hover{color:var(--cyan-300)}
.faq-ico{
  width:26px;height:26px;border:1px solid var(--border);
  border-radius:50%;display:grid;place-items:center;
  flex-shrink:0;transition:all .25s var(--ease);
  font-size:18px;color:var(--muted);font-weight:300;
  font-family:var(--mono);line-height:1;
}
.faq-item.open .faq-ico{
  background:linear-gradient(135deg,var(--cyan-400),var(--blue-400));
  border-color:transparent;color:var(--navy-950);
  transform:rotate(45deg);
}
.faq-a{max-height:0;overflow:hidden;transition:max-height .4s var(--ease)}
.faq-item.open .faq-a{max-height:440px}
.faq-a-in{padding:0 0 22px;font-size:14.5px;color:var(--muted);line-height:1.7}

/* ═══════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════ */
#cta{
  padding:160px var(--pad);text-align:center;
  position:relative;overflow:hidden;
}
.cta-bg-glow{
  position:absolute;inset:0;
  background:radial-gradient(ellipse 70% 60% at 50% 50%,rgba(41,171,226,.08) 0%,transparent 65%);
  pointer-events:none;
}
.cta-grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(41,171,226,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(41,171,226,.04) 1px,transparent 1px);
  background-size:80px 80px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,black 0%,transparent 75%);
  pointer-events:none;
}

.cta-in{position:relative;max-width:680px;margin:0 auto}
.cta-tag{
  font-family:var(--mono);font-size:11px;letter-spacing:.16em;
  color:var(--muted);text-transform:uppercase;margin-bottom:28px;
}
.cta-sub{
  font-size:17px;color:var(--mid);line-height:1.65;
  font-weight:400;margin:24px auto 48px;max-width:540px;
}
.cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:36px}
.cta-meta{
  font-family:var(--mono);font-size:11px;color:var(--muted);
  letter-spacing:.06em;display:flex;align-items:center;
  justify-content:center;gap:0;flex-wrap:wrap;
}
.cta-meta-item{
  display:flex;align-items:center;gap:6px;padding:0 14px;
  border-right:1px solid var(--border2);
}
.cta-meta-item:last-child{border-right:none}
.cta-meta-item::before{
  content:'';width:4px;height:4px;border-radius:50%;
  background:var(--cyan-400);opacity:.6;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer{
  background: var(--navy-900);
  padding: 48px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.foot-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.foot-logo{
  display:flex;align-items:center;
  gap:12px;
}
.foot-logo-icon{width:36px;height:36px;border-radius:6px;object-fit:contain}
.foot-logo-img{height:24px;width:auto;object-fit:contain}

@media(max-width:768px){
  .foot-logo-img{
    height:20px;
  }
  .foot-logo-icon{
    width:30px;
    height:30px;
  }
}

.foot-links{display:flex;gap:32px}
.foot-links a{font-size:14px;font-weight:500;color:var(--mid);transition:color .2s}
.foot-links a:hover{color:var(--cyan-300)}
.foot-social{display:flex;gap:20px;align-items:center}
.foot-social a{display:flex;align-items:center;justify-content:center;transition:transform .2s, filter .2s; filter: opacity(0.85) grayscale(15%);}
.foot-social a:hover{transform:translateY(-2px); filter: opacity(1) grayscale(0%);}

.social-icon img{width:26px;height:26px;object-fit:contain;}
.img-ig {transform: scale(1.4);} /* Compensa el padding extra dentro del PNG de Instagram */

.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-copy{font-family:var(--mono);font-size:12px;color:var(--mid);letter-spacing:.04em}

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal{
  opacity:0;transform:translateY(28px);
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}
.reveal.visible{opacity:1;transform:none}
.delay-1{transition-delay:.1s}
.delay-2{transition-delay:.2s}
.delay-3{transition-delay:.3s}
.delay-4{transition-delay:.4s}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media(max-width:960px){
  :root{
    --depth-gradients-opacity: 0.42;
    --depth-grid-opacity: 0.15;
    --depth-3d-opacity: 0.24;
    --depth-sparkles-opacity: 0.1;
    --depth-vignette-opacity: 0.48;
    --depth-3d-blur: 28px;
    --depth-drift-speed: 32s;
    --depth-parallax-gradients: 10;
    --depth-parallax-3d: 18;
  }
  .layer-3d{
    width:min(72vw,620px);
    height:min(72vw,620px);
    top:-10vh;
    right:-28vw;
  }
  .rec-grid,.svc-head,.princ-inner,.faq-inner{
    grid-template-columns:1fr;gap:36px;
  }
  #hero{
    min-height:100svh;
    padding:clamp(74px,10vw,92px) var(--pad) clamp(34px,6vw,54px);
    /* align-items:center se hereda del global — hero-inner queda centrado verticalmente */
  }
  /* Hero móvil: texto centrado, visual como fondo */
  .hero-inner{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:auto;
    gap:0;
  }
  .hero-left{
    max-width:min(520px,94%);
    text-align:center;
  }
  .hero-hl{
    font-size:clamp(38px,9.8vw,66px);
    line-height:.98;
  }
  .hero-sub{
    max-width:min(460px,96%);
    text-align:center;
    margin-left:auto;margin-right:auto;
  }
  .hero-ctas{justify-content:center}
  /* Visual: ahora relativo a #hero (100svh) → centra en toda la pantalla */
  .hero-visual{
    top:0;bottom:0;
    left:0;right:0;
    margin:auto;
    width:min(100vw,700px);
    height:min(100vh,800px);
    z-index:0;
    overflow:hidden;
  }
  .hero-visual-shell {
    width: 100%;
    height: 100%;
  }
  /* Opacidad atmosférica al finalizar reveal (especificidad mayor a .reveal.visible) */
  .hero-visual.reveal.visible{
    opacity:0.42;
  }
  .steps,.cred-cards,.svc-grid{grid-template-columns:1fr}
  .case-card-modern{width:min(375px,80vw)}
  .stats-inner{grid-template-columns:1fr;border-radius:12px}
  .stat{border-right:none;border-bottom:1px solid var(--border)}
  .stat:last-child{border-bottom:none}
  .cred-quote{grid-template-columns:1fr;gap:20px}
  .cred-qm{text-align:left}
  .nav-links{display:none}
  .nav-burger{display:flex}
  .nav-links.open{
    display:flex;flex-direction:column;
    position:fixed;top:65px;left:0;right:0;
    background:rgba(13,27,62,.97);backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border);
    padding:24px var(--pad);gap:18px;
  }
}
@media(max-width:768px){
  #hero{padding:clamp(72px,11vw,84px) var(--pad) clamp(30px,7vw,44px)}
  .hero-hl{font-size:clamp(34px,10.8vw,54px)}
  .hero-sub{
    font-size:15.5px;
    line-height:1.6;
  }
  .hero-ctas{gap:10px}
  .hero-ctas .btn{padding:13px clamp(16px,3.8vw,22px)}
  .hero-visual {
    width: min(95vw, 650px);
    height: min(95vh, 700px);
  }
  .hero-orbit-img {
    width: 100%;
    height: 100%;
  }
  .foot-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .foot-links{
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .foot-bottom {
    justify-content: center;
    text-align: center;
  }
}
@media(max-width:600px){
  #hero{padding:clamp(70px,12vw,78px) var(--pad) clamp(28px,8vw,38px)}
  .hero-hl{font-size:clamp(32px,11.7vw,44px)}
  .hero-sub{
    font-size:clamp(14px,3.9vw,15px);
  }
  .hero-visual {
    width: min(90vw, 580px);
    height: min(90vh, 600px);
  }
  .hero-ctas .btn{
    width:100%;
    justify-content:center;
  }
  .cta-meta{flex-direction:column;gap:10px}
  .cta-meta-item{border-right:none;border-bottom:1px solid var(--border2);padding:6px 0;width:100%;justify-content:center}
  .cta-meta-item:last-child{border-bottom:none}
}

@media(prefers-reduced-motion:reduce){
  .layer-3d{animation:none}
  .depth-layer{transition:none !important}
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 27, 62, 0.85); /* navy-800 con opacidad */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  padding: var(--pad);
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  padding: 40px;
}
.modal-overlay.visible .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease);
}
.modal-close:hover {
  background: rgba(255,255,255,0.15);
}

/* Contenido interno del Modal */
.modal-case-content {
  color: var(--mid);
  font-family: inherit;
}
.modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(244,246,250,0.4);
  margin-bottom: 16px;
}
.modal-title {
  color: var(--white);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 32px;
}
.modal-visual {
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7,15,43,0.65);
}
.modal-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.modal-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(7,15,43,0.55);
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.modal-gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(41,171,226,0.25);
  box-shadow: 0 18px 36px rgba(0,0,0,0.24);
}
.modal-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.modal-gallery-item span {
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--white);
  line-height: 1.3;
}
.modal-section {
  margin-bottom: 24px;
}
.modal-section h4 {
  color: var(--cyan-400);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.modal-section p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.impact-box {
  background: rgba(41, 171, 226, 0.05);
  border: 1px solid rgba(41, 171, 226, 0.15);
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
}
.impact-box h4 {
  color: var(--white);
}
.impact-box ul {
  list-style: none;
  padding: 0; margin: 0;
}
.impact-box li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
}
.impact-box li:last-child {
  margin-bottom: 0;
}
.impact-box li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--cyan-400);
  font-weight: bold;
}

/* Image lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(7, 15, 43, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.lightbox-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.lightbox-frame {
  width: min(1100px, 100%);
  max-height: calc(100vh - 2 * var(--pad));
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lightbox-frame img {
  max-width: 100%;
  max-height: calc(100vh - 2 * var(--pad) - 58px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.55);
}
.lightbox-caption {
  font-size: 14px;
  color: var(--white);
  text-align: center;
  max-width: 760px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.24);
}

@media(max-width: 600px) {
  .modal-content {
    padding: 24px;
  }
  .modal-gallery {
    grid-template-columns: 1fr;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }
}
