@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@200;300;400&family=DM+Mono:wght@300;400&display=swap');

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

:root {
  /* Void — casi negro con tinte frío, como el universo antes de la Refracción */
  --bg:         #0e0c15;
  --bg-panel:   #120f1c;
  --bg-card:    rgba(14,12,22,0.88);
  --bg-hover:   rgba(20,16,30,0.94);

  /* Estructura */
  --border:     rgba(255,255,255,0.05);
  --border-md:  rgba(255,255,255,0.08);

  /* Ámbar — energía de la Refracción, luz de estrella envejecida */
  --accent:     #c4a46b;
  --accent-lt:  #d8bc8a;
  --accent-dim: rgba(196,164,107,0.07);

  /* Texto — marfil cálido sobre vacío */
  --text-h:     rgba(245,240,232,0.92);
  --text-body:  rgba(205,198,185,0.80);
  --text-muted: rgba(155,147,132,0.62);
  --text-dim:   rgba(105,98,84,0.55);

  /* Azul espectral — para datos y física */
  --data:       rgba(100,148,220,0.55);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: radial-gradient(ellipse 100% 55% at 50% 0%, #1e1530 0%, var(--bg) 55%);
  background-color: var(--bg);
  color: var(--text-body);
  min-height: 100vh;
}

/* ── FLOAT NAV (sub-pages) ── */
.float-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(8,6,16,0.90);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(196,164,107,0.10);
  border-radius: 100px;
  padding: 8px 12px;
  opacity: 0;
  transition: opacity 0.9s, transform 0.9s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.float-nav.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.fn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(195,188,175,0.38);
  border-radius: 50px;
  transition: color 0.25s;
  position: relative;
  font-family: 'DM Mono', monospace;
  outline: none;
}
.fn-item:hover { color: rgba(195,188,175,0.68); }
.fn-item.fn-active { color: rgba(196,164,107,0.94); }
.fn-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.fn-icon svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.fn-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.38s cubic-bezier(0.22,1,0.36,1), opacity 0.22s;
}
.fn-item.fn-active .fn-label { max-width: 80px; opacity: 1; }

/* Sliding indicator */
.fn-ind {
  position: absolute;
  bottom: 8px; left: 0; width: 0;
  height: 1px;
  background: rgba(196,164,107,0.60);
  border-radius: 2px;
  transition: left 0.45s cubic-bezier(0.22,1,0.36,1), width 0.45s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
/* Active item background pill */
.fn-hl {
  position: absolute;
  top: 5px; bottom: 5px; left: 0; width: 0;
  background: rgba(196,164,107,0.05);
  border-radius: 50px;
  border: 0.5px solid rgba(196,164,107,0.07);
  transition: left 0.45s cubic-bezier(0.22,1,0.36,1), width 0.45s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}

@keyframes iconBounce {
  0%,100% { transform: translateY(0); }
  25% { transform: translateY(-5px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
  90% { transform: translateY(0); }
}
.fn-item.fn-bounce .fn-icon svg { animation: iconBounce 0.52s ease; }

/* ── PAGE WRAPPER ── */
.page-content {
  padding-top: 0;
  padding-bottom: 90px;
  min-height: 100vh;
}

/* ── SECTION HEADER ── */
.section-header {
  padding: 64px 48px 40px;
  max-width: 960px;
  margin: 0 auto;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196,164,107,0.72);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 0.5px;
  background: rgba(196,164,107,0.50);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 300;
  color: var(--text-h);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: rgba(195,188,175,0.65);
  max-width: 560px;
  line-height: 1.75;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(196,164,107,0.06);
  border: 0.5px solid rgba(196,164,107,0.06);
  border-radius: 8px;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto 80px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  padding: 24px 28px 36px;
  text-decoration: none;
  display: block;
  transition: background 0.15s;
  position: relative;
}

.card:hover { background: var(--bg-hover); }

.card-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196,164,107,0.75);
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: rgba(245,240,232,0.95);
  margin-bottom: 4px;
  line-height: 1.2;
}

.card-subtitle {
  font-size: 10px;
  color: rgba(195,188,175,0.58);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 12px;
  color: rgba(195,188,175,0.68);
  line-height: 1.55;
}

.card-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 12px;
  color: rgba(196,164,107,0.28);
  transition: color 0.15s, transform 0.15s;
}

.card:hover .card-arrow {
  color: rgba(196,164,107,0.72);
  transform: translate(2px,-2px);
}

/* ── COMING SOON ── */
.coming-soon {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cs-glyph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: rgba(196,164,107,0.14);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  line-height: 1;
}

.cs-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: rgba(195,188,175,0.62);
  margin-bottom: 12px;
}

.cs-body {
  font-size: 13px;
  color: rgba(155,147,132,0.62);
  max-width: 400px;
  line-height: 1.75;
}

/* ── HERO ── */
.hero {
  padding: 80px 48px 64px;
  max-width: 960px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196,164,107,0.50);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 0.5px;
  background: rgba(196,164,107,0.35);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 300;
  color: var(--text-h);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: rgba(245,240,232,0.30);
  display: block;
}

.hero-divider {
  width: 24px;
  height: 0.5px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

.hero-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 300;
  font-style: italic;
  color: rgba(205,198,185,0.75);
  line-height: 1.8;
  max-width: 540px;
  letter-spacing: 0.01em;
}

/* ── FOLDER LIST (olienas) ── */
.folder-list { display: flex; flex-direction: column; gap: 2px; }

.folder {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  border: 0.5px solid var(--border);
  border-radius: 5px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  text-decoration: none;
  transition: background 0.12s, border-color 0.18s;
}

.folder-open:hover {
  background: var(--bg-hover);
  border-color: rgba(196,164,107,0.14);
  cursor: pointer;
}

.folder-locked { cursor: default; opacity: 0.42; }
.folder-omega  { cursor: default; opacity: 0.20; }

.folder-icon {
  width: 30px; height: 26px;
  border-radius: 3px 8px 3px 3px;
  position: relative; flex-shrink: 0;
  opacity: 0.60;
}

.folder-icon::before {
  content: '';
  position: absolute;
  top: -5px; left: 0;
  width: 11px; height: 5px;
  border-radius: 3px 3px 0 0;
}

.fi-open   { background: rgba(110,95,190,0.55); } .fi-open::before   { background: rgba(110,95,190,0.55); }
.fi-dharen { background: rgba(70,140,80,0.50);  } .fi-dharen::before { background: rgba(70,140,80,0.50);  }
.fi-tessal { background: rgba(55,115,195,0.50); } .fi-tessal::before { background: rgba(55,115,195,0.50); }
.fi-vorenn { background: rgba(190,148,62,0.55); } .fi-vorenn::before { background: rgba(190,148,62,0.55); }
.fi-omega  { background: rgba(175,50,50,0.50);  } .fi-omega::before  { background: rgba(175,50,50,0.50);  }

.folder-meta { flex: 1; min-width: 0; }

.folder-id {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase;
}

.folder-name { font-size: 13px; font-weight: 300; color: var(--text-h); margin-bottom: 3px; line-height: 1.4; }
.folder-desc { font-size: 11px; color: rgba(195,188,175,0.65); line-height: 1.4; }

.censored {
  display: inline-block;
  background: rgba(195,188,175,0.16);
  color: transparent;
  border-radius: 2px;
  user-select: none;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.folder-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }

.badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 300; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap; text-transform: uppercase;
}

.b-open   { background: rgba(90,75,175,0.10); color: rgba(145,130,215,0.70); border: 0.5px solid rgba(100,85,185,0.22); }
.b-dharen { background: rgba(55,125,60,0.10);  color: rgba(95,175,100,0.70);  border: 0.5px solid rgba(60,130,65,0.22);  }
.b-tessal { background: rgba(40,100,185,0.10); color: rgba(85,145,215,0.70);  border: 0.5px solid rgba(45,105,190,0.22); }
.b-vorenn { background: rgba(175,135,45,0.10); color: rgba(210,170,85,0.70);  border: 0.5px solid rgba(180,140,50,0.22);  }
.b-omega  { background: rgba(155,42,42,0.10);  color: rgba(200,80,80,0.70);   border: 0.5px solid rgba(160,45,45,0.22);  }

.folder-date { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--text-dim); }

/* ── FOOTER ── */
.site-footer {
  border-top: 0.5px solid rgba(196,164,107,0.07);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: rgba(245,240,232,0.18);
}

.footer-left span { color: rgba(245,240,232,0.28); }

.footer-right {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(196,164,107,0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(196,164,107,0.25); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .float-nav { padding: 9px 12px; bottom: 22px; }
  .fn-item { padding: 10px 13px; }
  .fn-icon { width: 20px; height: 20px; }
  .fn-icon svg { width: 17px; height: 17px; }
  .section-header { padding: 48px 24px 32px; }
  .coming-soon { padding: 24px 24px 60px; }
  .site-footer { padding: 18px 24px; }
  .cards-grid { margin: 0 20px 60px; }
  .folder-right { display: none; }
}

@media print { body { display: none !important; } }
