:root {
  
  --fondo:        #08090b;
  --fondo-alto:   #101318;   
  --tinta:        #ffffff;   
  --tinta-suave:  #c2c9d2;   
  --tinta-tenue:  #78828e;   

  
  --acento:       #39FF14;   
  
  --sobre-acento: #062B10;
  --acento-15:    color-mix(in srgb, var(--acento) 15%, transparent);
  --acento-40:    color-mix(in srgb, var(--acento) 40%, transparent);

  
  --acento-texto: var(--acento);

  
  --atmosfera:    #4DD8FF;
  --atmosfera-15: color-mix(in srgb, var(--atmosfera) 15%, transparent);
  --atmosfera-30: color-mix(in srgb, var(--atmosfera) 30%, transparent);

  --linea:        rgba(255,255,255,0.10);
  --linea-tenue:  rgba(255,255,255,0.05);

  
  --cristal-fondo: linear-gradient(155deg,
      rgba(255,255,255,0.075) 0%,
      rgba(255,255,255,0.028) 52%,
      color-mix(in srgb, var(--atmosfera) 4.5%, transparent) 100%);
  --cristal-borde: rgba(255,255,255,0.11);
  --cristal-sombra:
      inset 0 1px 0 rgba(255,255,255,0.18),
      inset 0 -30px 60px color-mix(in srgb, var(--atmosfera) 3.5%, transparent),
      0 22px 56px rgba(0,0,0,0.55);
  --cristal-sombra-hover:
      inset 0 1px 0 rgba(255,255,255,0.26),
      0 28px 70px rgba(0,0,0,0.6),
      0 0 44px color-mix(in srgb, var(--atmosfera) 14%, transparent);
  --cristal-desenfoque: blur(20px) saturate(150%);

  
  --tipo-display: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --tipo-texto:   'Inter', ui-sans-serif, system-ui, sans-serif;
  --tipo-mono:    'JetBrains Mono', ui-monospace, monospace;

  --display-xl: clamp(3rem, 9vw, 8rem);
  --display-l:  clamp(2.2rem, 5.5vw, 4.5rem);
  --display-m:  clamp(1.8rem, 4vw, 3rem);
  --texto-l:    clamp(1rem, 1.6vw, 1.15rem);
  --texto-m:    0.92rem;
  --texto-s:    0.82rem;
  --etiqueta:   0.72rem;

  --apretado: -0.045em;   

  
  --margen:     clamp(1.25rem, 5vw, 2.5rem);
  --seccion-y:  clamp(5.5rem, 12vh, 9rem);
  --ancho-max:  1240px;
  --radio:      20px;
  --radio-pill: 999px;

  
  --suave:    cubic-bezier(.2,.7,.3,1);
  --elastico: cubic-bezier(.34,1.56,.64,1);
  --rapido:   .25s;
  --medio:    .5s;
  --lento:    .85s;
}

[data-tema="claro"] {
  --fondo:       #f4f4f2;
  --fondo-alto:  #ffffff;
  --tinta:       #0a0a0c;
  --tinta-suave: #3a3f47;
  --tinta-tenue: #767d87;
  --linea:       rgba(0,0,0,0.12);
  --linea-tenue: rgba(0,0,0,0.06);
  --cristal-fondo: linear-gradient(155deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45));
  --cristal-borde: rgba(0,0,0,0.08);
  --cristal-sombra: 0 22px 56px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.sin-movimiento { scroll-behavior: smooth; }

body {
  background: var(--fondo);
  color: var(--tinta-suave);
  font-family: var(--tipo-texto);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.contenedor {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.display   { font-family: var(--tipo-display); font-weight: 600; letter-spacing: var(--apretado); line-height: 1.02; color: var(--tinta); }
.mono      { font-family: var(--tipo-mono); font-size: var(--etiqueta); letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-tenue); }
.acentuado { color: var(--acento-texto); }

.cristal {
  position: relative;
  background: var(--cristal-fondo);
  backdrop-filter: var(--cristal-desenfoque);
  -webkit-backdrop-filter: var(--cristal-desenfoque);
  border: 1px solid var(--cristal-borde);
  border-radius: var(--radio);
  box-shadow: var(--cristal-sombra);
  overflow: hidden;
  isolation: isolate;
}
.cristal::before {            
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.03) 26%, transparent 48%);
}
.cristal::after {             
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--atmosfera-30), transparent);
}
.cristal > * { position: relative; z-index: 2; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cristal { background: var(--fondo-alto); }
}

.grano {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.aparece {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--lento) var(--suave), transform var(--lento) var(--suave);
}
.aparece.dentro { opacity: 1; transform: none; }
.aparece[data-retraso="1"] { transition-delay: .09s; }
.aparece[data-retraso="2"] { transition-delay: .18s; }
.aparece[data-retraso="3"] { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .aparece { opacity: 1; transform: none; }
}
