@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

html {
    scroll-behavior: smooth;
}

*{
    text-decoration: none;
    font-family: 'Inter', 'Rubik', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body{
    margin: 0;
    background-color: #000000;
    color: #e5e7eb;
    selection-background-color: #ffffff;
    selection-color: #000000;
}

::selection {
    background: rgba(255, 255, 255, 0.99);
    color: #000;
}

/* El espaciado superior del contenido ahora se maneja en responsive.css
   sobre .app-shell main, así evitamos huecos extra. */

/* ─── Active nav link ────────────────────────────────────────────────────────── */
.fc-nav-link.active,
header nav a[data-view].active {
  color: #ffffff !important;
  position: relative;
}
.fc-nav-link.active::after,
header nav a[data-view].active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
}
.fc-mobile-link.active,
[data-mobile-menu] a[data-view].active {
  color: #ffffff !important;
  font-weight: 700;
}

/* ─── Liquid Glass Header ──────────────────────────────────────────────────── */
.fc-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.01);
  backdrop-filter: blur(2px) brightness(1.05) saturate(1.4);
  -webkit-backdrop-filter: blur(2px) brightness(1.05) saturate(1.4);
  transition: backdrop-filter .3s ease, background .3s ease;
}
.fc-header.scrolled {
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(20px) brightness(1.08) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) brightness(1.08) saturate(1.6);
}

/* ─── Header Inner ─────────────────────────────────────────────────────────── */
.fc-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Logo ─────────────────────────────────────────────────────────────────── */
.fc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.fc-logo-sub {
  color: #71717a;
  font-weight: 400;
}
@media (max-width: 639px) {
  .fc-logo-sub { display: none; }
}

/* ─── Desktop Nav ──────────────────────────────────────────────────────────── */
.fc-nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}
.fc-nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  transition: color .15s;
  position: relative;
}
.fc-nav-link:hover { color: #fff; }
.fc-nav-amber { color: #fbbf24 !important; }
.fc-nav-amber:hover { color: #fcd34d !important; }

/* Ocultar nav desktop en móvil */
@media (max-width: 767px) {
  .fc-nav-desktop { display: none; }
}

/* ─── Right Actions ────────────────────────────────────────────────────────── */
.fc-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.fc-version-badge {
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid #27272a;
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.fc-github-link {
  color: #71717a;
  text-decoration: none;
  transition: color .15s;
  display: flex;
}
.fc-github-link:hover { color: #fff; }
.fc-divider {
  width: 1px;
  height: 16px;
  background: #27272a;
}

/* Ocultar elementos en móvil */
@media (max-width: 639px) {
  .fc-version-badge,
  .fc-github-link,
  .fc-divider { display: none; }
}

/* Hamburger solo en móvil */
.fc-hamburger { display: none !important; }
@media (max-width: 767px) {
  .fc-hamburger { display: inline-block !important; }
}

/* ─── Mobile Menu ──────────────────────────────────────────────────────────── */
.fc-mobile-menu {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: #09090b;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}
.fc-mobile-menu[hidden] { display: none !important; }
.fc-mobile-link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #a1a1aa;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color .15s;
}
.fc-mobile-link:hover { color: #fff; }

/* ─── Active nav link ──────────────────────────────────────────────────────── */
header nav a[data-view].active {
  color: #ffffff !important;
  position: relative;
}

header nav a[data-view].active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 99px;
}

/* Mobile active */
[data-mobile-menu] a[data-view].active {
  color: #ffffff !important;
  font-weight: 700;
}

/* ─── Liquid Glass Header ────────────────────────────────────────────────── */
header {
  background: rgba(0, 0, 0, 0.01) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter:
    blur(2px)
    brightness(1.05)
    saturate(1.4);
  -webkit-backdrop-filter:
    blur(2px)
    brightness(1.05)
    saturate(1.4);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.15) !important;
  border-bottom-color: rgba(255,255,255,0.06) !important;
  backdrop-filter:
    blur(20px)
    brightness(1.08)
    saturate(1.6);
  -webkit-backdrop-filter:
    blur(20px)
    brightness(1.08)
    saturate(1.6);
}