@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.a30ddcd34970.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrumentNormal.5eb09b5ac0e2.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrumentItalic.5a51946dfffa.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #05040b;
  --layer: #0b0918;
  --layer-2: #140e2a;
  --lilac: #b8a4ff;
  --violet: #7c5cff;
  --magenta: #e07bff;
  --cyan: #7fe3ff;
  --text: #f4f1ff;
  --muted: #aaa3c6;
  --line: rgba(184, 164, 255, 0.25);
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

::selection { background: var(--lilac); color: var(--bg); }

.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(55% 65% at 75% 43%, rgba(124, 92, 255, 0.3), transparent 70%),
    radial-gradient(25% 30% at 74% 42%, rgba(184, 164, 255, 0.22), transparent 72%),
    radial-gradient(35% 30% at 91% 12%, rgba(224, 123, 255, 0.1), transparent 70%),
    radial-gradient(35% 36% at 8% 92%, rgba(127, 227, 255, 0.06), transparent 72%),
    var(--bg);
}

.page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(5, 4, 11, 0.92));
}

.galaxy {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.galaxy.is-ready { opacity: 1; }

.site-header,
.site-footer,
.hero { padding-inline: var(--gutter); }

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(4.75rem, 10vh, 6.25rem);
  border-bottom: 1px solid rgba(184, 164, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark { width: 1.85rem; height: 1.85rem; }

.brand-word {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.languages {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.languages a {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  text-decoration: none;
  transition: color 300ms ease;
}

.languages a:hover,
.languages a[aria-current="page"] { color: var(--text); }
.languages a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.languages-separator { color: rgba(244, 241, 255, 0.35); }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 92rem;
  margin-inline: auto;
  min-height: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 60rem);
  padding-block: clamp(1.25rem, 4vh, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(1rem, 2.5vh, 1.7rem);
  color: var(--muted);
  font-size: clamp(0.68rem, 0.63rem + 0.18vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--lilac);
  border-radius: 50%;
  box-shadow: 0 0 0 0.25rem rgba(184, 164, 255, 0.1);
}

h1 {
  max-width: 10.5em;
  margin: 0;
  font-size: clamp(3.2rem, 2rem + 5.4vw, 7.75rem);
  font-weight: 600;
  line-height: 0.91;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 span,
h1 em { display: block; }

h1 em {
  color: var(--lilac);
  font-family: var(--serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 42ch;
  margin: clamp(1.2rem, 2.8vh, 2rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 0.9rem + 0.32vw, 1.18rem);
  line-height: 1.55;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(1.2rem, 3.2vh, 2.2rem);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.75rem;
  overflow: hidden;
  border: 1px solid var(--lilac);
  border-radius: 999px;
  background: var(--lilac);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 300ms ease, color 300ms ease, transform 300ms var(--ease);
}

.button:hover { background: var(--text); border-color: var(--text); transform: translateY(-2px); }

.orbit-field {
  position: absolute;
  z-index: 1;
  left: 72%;
  top: 49%;
  width: min(76vw, 68rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(3.5rem, 8vh, 5rem);
  border-top: 1px solid rgba(184, 164, 255, 0.12);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.access-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color 300ms ease;
}

.access-link:hover { color: var(--lilac); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* Cursor personalizado para punteros precisos */
.has-custom-cursor,
.has-custom-cursor * { cursor: none; }

.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor [contenteditable] { cursor: text; }

.has-custom-cursor select { cursor: auto; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%) scale(1);
  transition: opacity 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
  will-change: transform;
}

.cursor-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--text);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.5), 0 0 0.75rem rgba(184, 164, 255, 0.85);
}

.cursor-ring {
  width: 2.125rem;
  height: 2.125rem;
  border: 1px solid rgba(184, 164, 255, 0.55);
  background: transparent;
  box-shadow: 0 0 1.5rem rgba(124, 92, 255, 0.35);
}

.cursor-dot.is-visible,
.cursor-ring.is-visible { opacity: 1; }

.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }

.cursor-ring.is-interactive {
  background: rgba(184, 164, 255, 0.12);
  box-shadow: 0 0 1.75rem rgba(124, 92, 255, 0.42);
}

/* Punto de «Web en construcción» */
.eyebrow { position: relative; }

.eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.275rem;
  border-radius: 50%;
  background: var(--lilac);
  opacity: 0;
  pointer-events: none;
  animation: eyebrow-pulse 2.4s ease infinite;
}

@keyframes eyebrow-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}

/* Página de acceso */
.access-page {
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
}

.access {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.5rem var(--gutter);
}

.access-card {
  display: grid;
  gap: 1rem;
  width: min(100%, 26rem);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(11, 9, 24, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1.5rem 4rem rgba(5, 4, 11, 0.6), 0 0 3rem rgba(124, 92, 255, 0.14);
}

.access-brand {
  justify-self: start;
  color: var(--lilac);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}

.access-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
}

.access-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.access-form { display: grid; gap: 0.75rem; margin-top: 0.5rem; }

.access-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-input {
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 1px solid rgba(184, 164, 255, 0.3);
  border-radius: 0.9rem;
  background: rgba(5, 4, 11, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.access-input:hover { border-color: rgba(184, 164, 255, 0.5); }

.access-input:focus-visible {
  border-color: var(--lilac);
  outline: 2px solid var(--lilac);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.35rem rgba(184, 164, 255, 0.16);
}

.access-error {
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(224, 123, 255, 0.4);
  border-radius: 0.75rem;
  background: rgba(224, 123, 255, 0.1);
  color: #f2a6ff;
  font-size: 0.88rem;
  line-height: 1.4;
}

.access-form .button { width: 100%; cursor: pointer; font-family: inherit; }
.has-custom-cursor .access-form .button { cursor: none; }

.access-back {
  justify-self: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-underline-offset: 0.25em;
  transition: color 300ms ease;
}

.access-back:hover { color: var(--lilac); }

@media (max-width: 700px) {
  .page {
    background:
      radial-gradient(100% 45% at 52% 28%, rgba(124, 92, 255, 0.31), transparent 72%),
      radial-gradient(52% 25% at 52% 28%, rgba(184, 164, 255, 0.2), transparent 74%),
      radial-gradient(50% 35% at 95% 5%, rgba(224, 123, 255, 0.08), transparent 72%),
      var(--bg);
  }

  .site-header { min-height: 4.5rem; }
  .brand-mark { width: 1.65rem; height: 1.65rem; }
  .brand-word { font-size: 0.78rem; }
  .hero { align-items: safe flex-end; }
  .hero-content { padding-block: 1rem clamp(1.35rem, 5vh, 2.6rem); }
  h1 { max-width: 8.4em; font-size: clamp(2.85rem, 13.5vw, 4.15rem); line-height: 0.93; }
  .lead { max-width: 34ch; }
  .orbit-field {
    left: 50%;
    top: 31%;
    width: 150vw;
  }

  .site-header { justify-content: center; gap: 1.5rem; }
  .site-footer { justify-content: center; gap: 1.25rem; }
  .hero { justify-content: center; }
  .hero-content { margin-inline: auto; text-align: center; }
  .eyebrow { justify-content: center; }
  h1 { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .contact { align-items: center; }
}

@media (max-height: 680px) {
  .site-header { min-height: 4rem; }
  .site-footer { min-height: 3rem; }
  .hero-content { padding-block: 0.65rem; }
  .eyebrow { margin-bottom: 0.7rem; }
  h1 { font-size: clamp(2.5rem, 8.5vh, 4.4rem); }
  .lead { margin-top: 0.8rem; font-size: 0.94rem; }
  .contact { margin-top: 0.9rem; }
  .button { min-height: 48px; }
}

@media (max-height: 420px) {
  .site-header { min-height: 3.25rem; }
  .site-footer { min-height: 2rem; }
  .hero-content { padding-block: 0.4rem; }
  .eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.64rem;
  }
  h1 {
    font-size: clamp(2rem, 11vh, 2.65rem);
    line-height: 0.9;
  }
  .lead {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
  }
  .contact { margin-top: 0.5rem; }
  .button {
    min-height: 44px;
    padding-inline: 1.4rem;
  }
}

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

  .eyebrow::after { animation: none; opacity: 0; }
  .cursor-dot,
  .cursor-ring { display: none; }

  .has-custom-cursor,
  .has-custom-cursor * { cursor: auto; }

  .has-custom-cursor input,
  .has-custom-cursor textarea,
  .has-custom-cursor [contenteditable] { cursor: text; }
}
