/* src/main.css */

/* ============================================
   VONOÍD — MAIN GLOBAL STYLESHEET
   ============================================ */

/* Fuente global */
@font-face{
  font-family: "Rubik";
  src: url("../assets/fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Variables globales */
:root{
  --font-ui: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;

  --bg: #0b0e12;
  --fg: #e7e7ea;
  --muted: #a7afbf;

  --z-bg: 0;
  --z-content: 10;
  --z-fx: 20;
  --z-nav: 30;
  --z-overlay: 40;
  --z-modal: 100;
}

/* Base */
html{
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body{
  font-weight: 500;
  letter-spacing: 0.1px;
  line-height: 1.4;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* Contenedor principal */
#app, .app{
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Cada sección */
.section{
  position: absolute;
  inset: 0;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  will-change: transform, opacity;
  transform: translateY(0%);
  z-index: 1;
}

/* Orden entre secciones */
.section.is-current { z-index: 20; }
.section.is-target  { z-index: 30; }

/* Capas internas */
.layer-bg      { position: absolute; inset: 0; z-index: var(--z-bg); }
.layer-fx      { position: absolute; inset: 0; z-index: var(--z-fx); pointer-events: none; }
.layer-content { position: relative; z-index: var(--z-content); display: grid; place-items: center; height: 100%; }

/* Contenido base */
.content{
  max-width: 920px;
  text-align: center;
  opacity: 0.96;
  padding: 24px;
}

.section h1, .section h2, .section p { margin: 0 0 12px 0; }
.muted{ color: var(--muted); }

/* Mobile scroll guard */
html, body, #app{
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

/* ============================
   [GLOBAL – INTRO OVERLAY] START
   ============================ */

.site-intro-overlay{
  position: fixed;
  inset: 0;
  background: #fefde5;
  z-index: 99999;
  pointer-events: none;

  /* NO auto-animación: lo controla JS */
  opacity: 1;
  transform: translateX(0);
}

.site-intro-overlay.is-hiding{
  animation: site-intro-hide 0.55s ease-out forwards;
}

@keyframes site-intro-hide{
  0%{ transform: translateX(0); opacity: 1; }
  100%{ transform: translateX(-100%); opacity: 0; }
}

/* ============================
   [GLOBAL – INTRO OVERLAY] END
   ============================ */
