
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =========================================
   FREQ // LATENCIAS
   MAKRO OFICIAL
   HOJA DE ESTILOS COMPLETA
========================================= */

:root {
  --bg: #090914;
  --surface: #141322;
  --surface2: #1d1b30;
  --text: #f5f3ff;
  --muted: #a6a1be;
  --cyan: #72f4f5;
  --purple: #9970ff;
  --border: rgba(195,180,246,.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, .logo {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
}

h1, h2, h3, p {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.cyan {
  color: var(--cyan);
}

.gradient-text {
  display: block;
  background: linear-gradient(110deg, #74f6f5, #ad83ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  color: var(--cyan);
  font: 700 11px 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 105px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -2px;
  margin: 14px 0;
}

.section-heading > p:last-child {
  font-size: 16px;
}

.section-note {
  font-size: 12px;
  opacity: .7;
  margin-top: 18px;
}

/* =========================================
   EFECTOS DE FONDO
========================================= */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .045;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 4px,
    white 5px,
    transparent 6px
  );
}

.ambient {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: .09;
}

.ambient-a {
  top: 160px;
  right: -210px;
  background: var(--purple);
}

.ambient-b {
  top: 1100px;
  left: -240px;
  background: var(--cyan);
}

/* =========================================
   CABECERA Y NAVEGACIÓN
========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px max(22px, calc((100vw - 1140px)/2));
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,20,.92);
  backdrop-filter: blur(18px);
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo strong {
  font-size: 27px;
  letter-spacing: -2px;
}

.logo strong span {
  color: var(--cyan);
}

.logo small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

.navigation {
  display: flex;
  gap: 26px;
}

.navigation a {
  font: 700 11px 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  color: #c0bbd6;
  transition: color .2s;
}

.navigation a:hover {
  color: var(--cyan);
}

.online {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  border-radius: 50%;
  animation: blink 2s infinite;
}

/* =========================================
   BOTONES
========================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  border-radius: 8px;
  gap: 10px;
  border: 1px solid var(--border);
  font: 700 12px 'Space Grotesk', sans-serif;
  letter-spacing: .5px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-main {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #07101b;
}

.button-outline {
  background: rgba(255,255,255,.04);
  color: white;
}

.button-outline:hover {
  border-color: var(--cyan);
}

.full {
  width: 100%;
}

/* =========================================
   PORTADA PRINCIPAL
========================================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 65px;
  align-items: center;
  min-height: 700px;
  padding-top: 90px;
  padding-bottom: 110px;
}

.hero h1 {
  font-size: clamp(55px, 7vw, 95px);
  letter-spacing: -4px;
  margin: 20px 0 27px;
}

.hero-description {
  max-width: 480px;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.system-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 45px;
  color: #918ca9;
  font: 11px 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

.hero-card {
  border: 1px solid var(--border);
  background: linear-gradient(140deg, #1b182f, #0e0e1b);
  padding: 14px;
  border-radius: 23px;
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
}

.card-top, .card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 10px 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

.freq-scene {
  position: relative;
  height: 385px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle, rgba(138,97,226,.18), transparent 67%),
    repeating-linear-gradient(0deg, transparent 0 34px, #ffffff07 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, #ffffff07 35px);
}

.hero-freq {
  position: relative;
  z-index: 2;
  width: 75%;
  max-height: 320px;
  object-fit: contain;
  animation: none;
  transform: none;
}

.glow {
  position: absolute;
  width: 230px;
  height: 230px;
  background: rgba(113,245,245,.17);
  filter: blur(65px);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  width: 315px;
  height: 315px;
  border: 1px solid #72f4f533;
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.orbit-2 {
  width: 370px;
  height: 370px;
  border-style: dashed;
  border-color: #9970ff55;
  animation-direction: reverse;
}

/* =========================================
   CINTA DE TRANSMISIÓN
========================================= */

.ticker {
  overflow: hidden;
  background: var(--cyan);
  color: #090914;
  transform: rotate(-1deg) scale(1.02);
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  gap: 45px;
  width: max-content;
  white-space: nowrap;
  font: 700 12px 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  animation: marquee 24s linear infinite;
}

/* =========================================
   PRESENTACIÓN DE FREQ
========================================= */

.intro-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 55px;
}

.intro-player {
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.panel-title {
  margin-bottom: 14px;
  color: var(--cyan);
  font: 700 11px 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
}

.intro-screen {
  height: 330px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle, #302842, #0b0b16 75%);
}

.intro-screen img {
  max-width: 88%;
  max-height: 90%;
  object-fit: contain;
}

.intro-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.intro-player .button {
  margin-top: 15px;
}

.status-message {
  color: #aaa4c2;
  font-size: 12px;
  margin: 10px 0 0;
}

.status-message.error {
  color: #ff9191;
}

.intro-copy h3 {
  font-size: clamp(31px, 4vw, 50px);
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.intro-copy p {
  font-size: 15px;
}

.intro-copy blockquote {
  color: var(--cyan);
  font: 700 17px 'Space Grotesk', sans-serif;
  margin: 25px 0;
  padding-left: 15px;
  border-left: 3px solid var(--cyan);
}

.specifications {
  border-top: 1px solid var(--border);
}

.specifications div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.specifications span {
  color: #9e98b9;
  font-size: 11px;
}

.specifications strong {
  font: 700 12px 'Space Grotesk', sans-serif;
}

/* =========================================
   GALERÍA DE SEÑALES
========================================= */

.signals-section {
  background: #0e0d1b;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.signal-card {
  border: 1px solid var(--border);
  background: #181627;
  color: white;
  border-radius: 15px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: transform .2s, border-color .2s;
}

.signal-card:hover {
  transform: translateY(-5px);
}

.signal-card.active {
  border-color: var(--cyan);
}

.signal-cover {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cover-red {
  background: radial-gradient(circle, #882b39, #17111d 75%);
}

.cover-purple {
  background: radial-gradient(circle, #6640a0, #171222 75%);
}

.cover-blue {
  background: radial-gradient(circle, #2a79ad, #101629 75%);
}

.cover-night {
  background: radial-gradient(circle, #37427e, #111326 75%);
}

.signal-cover img {
  width: 85%;
  height: 90%;
  object-fit: contain;
  transition: transform .3s;
}

.signal-card:hover img {
  transform: scale(1.07);
}

.signal-number {
  position: absolute;
  top: 12px;
  left: 12px;
  font: 700 11px 'Space Grotesk', sans-serif;
}

.play-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #080914bb;
  border-radius: 50%;
  font-size: 13px;
}

.signal-text {
  padding: 15px 12px;
}

.signal-text strong {
  display: block;
  font: 700 12px 'Space Grotesk', sans-serif;
}

.signal-text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}

/* =========================================
   REPRODUCTOR DE VÍDEOS
========================================= */

.video-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 25px;
  background: #151323;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.video-wrapper {
  background: #050509;
  display: grid;
  place-items: center;
  min-height: 350px;
}

.video-wrapper video {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.video-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.video-details h3 {
  font-size: 38px;
  margin: 15px 0 20px;
}

.video-details p {
  max-width: 430px;
}

/* =========================================
   HISTORIA DEL UNIVERSO
========================================= */

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.story-card {
  min-height: 265px;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.story-symbol {
  color: var(--cyan);
  font-size: 42px;
  margin: 18px 0;
}

.story-card h3 {
  font-size: 23px;
}

.story-card p {
  font-size: 14px;
}

/* =========================================
   TERMINAL INTERACTIVO
========================================= */

.terminal-box {
  max-width: 820px;
  margin: auto;
  background: #080e17;
  border: 1px solid #72f4f566;
  border-radius: 15px;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: #202033;
  font: 11px 'Space Grotesk', sans-serif;
}

.terminal-dots i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #ff7979;
  border-radius: 50%;
  margin-right: 4px;
}

.terminal-dots i:nth-child(2) {
  background: #ffd36f;
}

.terminal-dots i:nth-child(3) {
  background: #7ce8ad;
}

.terminal-output {
  height: 245px;
  padding: 22px;
  overflow-y: auto;
  font: 13px/1.7 monospace;
}

.terminal-output p {
  font: inherit;
  color: #afd9d7;
  margin: 3px 0;
}

.terminal-output p.cyan {
  color: var(--cyan);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid #2b3440;
}

.terminal-input-line input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font: 13px monospace;
}

.terminal-input-line button,
.terminal-commands button {
  border: 1px solid #34505a;
  background: #162430;
  color: var(--cyan);
  border-radius: 5px;
  padding: 9px 12px;
  font: 11px monospace;
}

.terminal-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 18px;
}

/* =========================================
   LATENCIAS // PRÓXIMAMENTE
========================================= */

.coming-section {
  text-align: center;
  background:
    radial-gradient(ellipse at center, #7250bc33, transparent 65%),
    #100d1e;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coming-content {
  padding: 35px 0;
}

.signal-decoration {
  color: var(--cyan);
  font-size: 23px;
  margin: 25px 0;
  letter-spacing: 10px;
}

.coming-content h2 {
  font-size: clamp(60px, 11vw, 145px);
  letter-spacing: -5px;
  margin: 15px 0 25px;
  color: #e4d9ff;
}

.coming-content > p:not(.eyebrow) {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.coming-status {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 22px;
  background: #72f4f511;
  border: 1px solid #72f4f544;
  border-radius: 30px;
  color: var(--cyan);
  font: 11px 'Space Grotesk', sans-serif;
}

.coming-quote {
  margin-top: 30px;
  font-style: italic;
}

/* =========================================
   SPOTIFY Y MÚSICA
========================================= */

.music-panel {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 60px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(120deg, #1b1730, #11121e);
}

.album-art {
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #49366b, #0b0b16 75%);
  border-radius: 15px;
  overflow: hidden;
}

.vinyl {
  width: 75%;
  aspect-ratio: 1;
  border: 2px solid #706b86;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #100f18 0px 4px,
    #282534 5px 6px
  );
  animation: spin 11s linear infinite;
}

.album-label {
  position: absolute;
  color: white;
  font: 700 66px 'Space Grotesk', sans-serif;
  text-shadow: 0 5px 25px black;
}

.music-content h2 {
  font-size: clamp(32px, 4vw, 47px);
  letter-spacing: -1px;
}

.music-content p {
  font-size: 15px;
}

.spotify-button {
  display: inline-flex;
  margin-top: 15px;
  background: #1ed760;
  border-color: #1ed760;
  color: #06140b;
}

/* =========================================
   CIERRE Y FOOTER
========================================= */

.closing {
  text-align: center;
  padding: 100px 0;
}

.closing h2 {
  font-size: clamp(50px, 8vw, 100px);
  letter-spacing: -4px;
}

.closing .button {
  margin-top: 25px;
}

.footer {
  padding: 26px 0;
  background: #06060e;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  color: #8c87a5;
  font: 10px 'Space Grotesk', sans-serif;
}

/* =========================================
   ARCHIVO DE IDENTIDAD // FREQ.HTML
========================================= */

.dossier-page {
  padding-top: 90px;
  padding-bottom: 80px;
}

.dossier-page > h1 {
  font-size: clamp(48px, 8vw, 94px);
  letter-spacing: -4px;
  margin: 15px 0 22px;
}

.dossier-lead {
  max-width: 680px;
  font-size: 18px;
  margin-bottom: 55px;
}

.dossier-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.dossier-portrait {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background:
    radial-gradient(circle, #40305e66, transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 35px, #ffffff07 36px),
    #141322;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.dossier-portrait img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px #0008);
  animation: none;
  transform: none;
}

.dossier-portrait > p:last-child {
  font: 10px 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  color: var(--cyan);
}

.dossier-content h2 {
  font-size: clamp(35px, 5vw, 57px);
  letter-spacing: -2px;
}

.dossier-content p {
  font-size: 15px;
  line-height: 1.9;
}

.dossier-content blockquote,
.planet-message blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 20px;
  margin: 30px 0;
  color: var(--cyan);
  font: 600 19px 'Space Grotesk', sans-serif;
}

.dossier-chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 65px;
}

.dossier-ending {
  text-align: center;
  padding: 100px 0 30px;
}

.dossier-ending h2 {
  max-width: 720px;
  margin: 20px auto;
  font-size: clamp(30px, 5vw, 55px);
}

.dossier-ending .button {
  margin-top: 20px;
}

/* =========================================
   PLANETA LATENCIAS // VISTA ORIGINAL
========================================= */

.planet-page {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, #241b4222, transparent 65%),
    #080914;
}

.planet-intro {
  text-align: center;
  padding-top: 85px;
}

.planet-intro h1 {
  font-size: clamp(45px, 8vw, 95px);
  letter-spacing: -3px;
  margin: 15px 0 20px;
}

.planet-intro p:last-child {
  max-width: 600px;
  margin: auto;
}

.planet-universe {
  position: relative;
  width: 100%;
  height: min(750px, 85vw);
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.planet-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff8 99%, transparent),
    radial-gradient(1px 1px at 35% 70%, #fff5 99%, transparent),
    radial-gradient(2px 2px at 75% 18%, #fff7 99%, transparent),
    radial-gradient(1px 1px at 88% 64%, #fff7 99%, transparent),
    radial-gradient(1px 1px at 60% 83%, #fff6 99%, transparent),
    radial-gradient(1px 1px at 22% 90%, #fff6 99%, transparent);
  background-size: 310px 270px;
  opacity: .45;
}

.hidden-planet {
  position: relative;
  z-index: 2;
  width: min(510px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 40%, #090912 0%, #020207 70%, #000 100%);
  box-shadow:
    8px -5px 4px -5px #a47cff66,
    14px -9px 35px -12px #9266ff66,
    0 0 95px 15px #6b51bc20,
    inset -8px 5px 8px -6px #b09bff44;
  animation: planetFloat 8s ease-in-out infinite;
}

.planet-orbit {
  position: absolute;
  width: min(700px, 90vw);
  height: min(300px, 40vw);
  border: 1px solid #9c80e944;
  border-radius: 50%;
  transform: rotate(-23deg);
}

.orbit-inner {
  width: min(590px, 80vw);
  height: min(240px, 35vw);
  border-color: #72f4f522;
  transform: rotate(28deg);
}

.planet-coordinates {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  width: 90%;
  color: #b6add6;
  font: 10px 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

.planet-message {
  max-width: 760px;
  text-align: center;
  padding: 35px 0 110px;
}

.planet-message h2 {
  font-size: clamp(30px, 5vw, 55px);
  letter-spacing: -1px;
  margin: 18px 0 25px;
}

.planet-message > p {
  line-height: 1.9;
}

.planet-message blockquote {
  border: none;
  padding: 0;
}

.planet-locked {
  display: inline-block;
  border: 1px solid #72f4f544;
  background: #72f4f50d;
  border-radius: 30px;
  padding: 12px 20px;
  color: var(--cyan);
  font: 11px 'Space Grotesk', sans-serif;
  margin: 15px 0 30px;
}

.planet-message .button {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

/* =========================================
   PLANETA LATENCIAS // MAPA INTERACTIVO
========================================= */

.exploration-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 30%, #25204455, transparent 65%),
    #090914;
}

.exploration-heading {
  text-align: center;
  padding-top: 75px;
  padding-bottom: 45px;
}

.exploration-heading h1 {
  font-size: clamp(45px, 7vw, 88px);
  letter-spacing: -3px;
  margin: 15px 0 22px;
}

.exploration-heading > p:last-child {
  max-width: 620px;
  margin: auto;
}

.exploration-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.map-console {
  background: #10101e;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.map-console-header,
.map-console-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  font: 10px 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  color: #bcb5d5;
}

.map-console-header {
  border-bottom: 1px solid var(--border);
}

.map-console-footer {
  border-top: 1px solid var(--border);
}

.planet-map {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle, #1a1830 0%, #080912 73%);
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg, transparent 0 39px, #ffffff06 40px
    ),
    repeating-linear-gradient(
      90deg, transparent 0 39px, #ffffff06 40px
    );
}

.map-planet {
  position: relative;
  width: min(350px, 65%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 40% 40%,
      #090912 0%,
      #020206 72%,
      #000 100%
    );
  box-shadow:
    7px -5px 4px -5px #a47cff66,
    12px -9px 35px -12px #9266ff66,
    0 0 70px #6b51bc20,
    inset -7px 4px 9px -6px #b09bff44;
  animation: planetFloat 8s ease-in-out infinite;
}

.map-orbit {
  position: absolute;
  width: 82%;
  height: 35%;
  border: 1px solid #a78bfa35;
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}

.map-orbit-two {
  width: 70%;
  height: 30%;
  border-color: #72f4f522;
  transform: rotate(30deg);
}

.map-scanner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 300deg,
      #72f4f522 345deg,
      transparent 360deg
    );
  opacity: 0;
}

.planet-map.scanning .map-scanner {
  opacity: 1;
  animation: scannerRotate 2s linear 2;
}

.map-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 5;
  transform: translate(-50%, -50%);
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: #101d29ee;
  color: var(--cyan);
  font: 700 11px 'Space Grotesk', sans-serif;
  box-shadow: 0 0 18px #72f4f544;
  transition: background .2s, box-shadow .2s;
}

.map-point::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid #72f4f544;
  border-radius: 50%;
  animation: signalPulse 2.5s ease-out infinite;
  pointer-events: none;
}

.map-point:hover,
.map-point.active {
  background: var(--cyan);
  color: #070d16;
  box-shadow: 0 0 28px #72f4f588;
}

.map-point.locked {
  border-color: #9970ff;
  color: #c3aaff;
  background: #21182e;
}

.map-point.locked.active {
  background: #9970ff;
  color: #090914;
}

.map-coordinate {
  position: absolute;
  color: #8f8aaa;
  font: 9px 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

.top-left {
  top: 20px;
  left: 20px;
}

.bottom-right {
  bottom: 20px;
  right: 20px;
}

/* =========================================
   MAPA // PANEL DE INFORMACIÓN
========================================= */

.zone-panel {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(150deg, #1a172b, #10101d);
}

.zone-icon {
  font-size: 55px;
  color: var(--cyan);
  margin: 20px 0;
  line-height: 1;
}

.zone-panel h2 {
  font-size: clamp(25px, 3vw, 35px);
  margin-bottom: 20px;
}

.zone-panel > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
}

.zone-data {
  margin: 25px 0;
  border-top: 1px solid var(--border);
}

.zone-data div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.zone-data span {
  color: #9f99ba;
  font-size: 11px;
}

.zone-data strong {
  color: var(--cyan);
  font: 700 11px 'Space Grotesk', sans-serif;
  text-align: right;
}

.zone-message {
  margin-top: auto;
  margin-bottom: 20px;
  min-height: 75px;
  padding: 15px;
  border: 1px solid #72f4f522;
  border-radius: 8px;
  background: #080f17;
  color: #a4e9e6;
  font: 12px/1.7 monospace;
  white-space: pre-line;
}

/* =========================================
   MAPA // REGISTROS DE EXPLORACIÓN
========================================= */

.exploration-log {
  text-align: center;
  max-width: 850px;
  padding-top: 100px;
  padding-bottom: 110px;
}

.exploration-log h2 {
  font-size: clamp(32px, 5vw, 55px);
  margin: 20px 0;
}

.exploration-log > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 35px;
}

.log-entries {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 35px 0;
  text-align: left;
}

.log-entries div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
}

.log-entries div:last-child {
  border-bottom: none;
}

.log-entries span {
  color: #8e88ab;
  font: 11px 'Space Grotesk', sans-serif;
}

.log-entries strong {
  color: var(--cyan);
  font: 700 11px 'Space Grotesk', sans-serif;
  text-align: right;
}

.exploration-log blockquote {
  margin: 45px auto;
  max-width: 600px;
  color: #c8b6ff;
  font: italic 19px/1.7 'Space Grotesk', sans-serif;
}

/* =========================================
   ANIMACIONES
========================================= */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: .3;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes planetFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes scannerRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes signalPulse {
  0% {
    transform: scale(.8);
    opacity: .8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* =========================================
   RESPONSIVE // TABLETS
========================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 55px;
  }

  .hero-card {
    width: 100%;
    max-width: 530px;
    margin: auto;
  }

  .intro-layout,
  .video-panel,
  .music-panel {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .online {
    display: none;
  }

  .video-details {
    padding: 28px;
  }
}

@media (max-width: 850px) {
  .exploration-layout {
    grid-template-columns: 1fr;
  }

  .planet-map {
    min-height: 400px;
  }

  .zone-panel {
    padding: 25px;
  }
}

@media (max-width: 800px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }

  .dossier-chapters {
    grid-template-columns: 1fr;
  }

  .dossier-portrait {
    min-height: 350px;
  }

  .dossier-page > h1 {
    letter-spacing: -2px;
  }

  .planet-universe {
    min-height: 380px;
  }

  .planet-coordinates {
    bottom: 10px;
    font-size: 9px;
  }
}

/* =========================================
   RESPONSIVE // MÓVILES
========================================= */

@media (max-width: 600px) {
  .container {
    width: calc(100% - 30px);
  }

  .section {
    padding: 65px 0;
  }

  .header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
  }

  .logo {
    width: 100%;
    align-items: center;
  }

  .navigation {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navigation a {
    font-size: 10px;
  }

  .hero {
    padding-top: 55px;
    padding-bottom: 70px;
    min-height: auto;
  }

  .hero h1 {
    letter-spacing: -2px;
    font-size: clamp(43px, 12vw, 65px);
  }

  .hero-buttons .button {
    width: 100%;
  }

  .freq-scene {
    height: 290px;
  }

  .hero-freq {
    max-height: 245px;
  }

  .signal-grid {
    gap: 10px;
  }

  .signal-cover {
    height: 140px;
  }

  .signal-text strong {
    font-size: 10px;
  }

  .signal-text small {
    font-size: 9px;
  }

  .video-wrapper {
    min-height: 240px;
  }

  .video-details h3 {
    font-size: 30px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .music-panel {
    padding: 22px;
    gap: 25px;
  }

  .album-art {
    width: 100%;
    max-width: 290px;
    margin: auto;
  }

  .coming-content h2 {
    letter-spacing: -2px;
  }

  .terminal-output {
    font-size: 11px;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .exploration-heading h1 {
    letter-spacing: -2px;
  }

  .planet-map {
    min-height: 320px;
  }

  .map-point {
    width: 32px;
    height: 32px;
  }

  .map-console-header,
  .map-console-footer {
    font-size: 9px;
  }

  .map-coordinate {
    font-size: 8px;
  }
}

/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   CORRECCIÓN FINAL
   FREQ YA NO DA SALTITOS
========================================= */

.hero-freq,
.dossier-portrait img {
  animation: none !important;
  transform: none !important;
}
