@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap');

html, body {
  margin: 0;
}

body {
  background: #030305;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

/* ===== STAR BACKGROUND ===== */

#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  display: block;
}

.stars-glow {
  position: fixed;
  inset:0;
  pointer-events: none;
  z-index: -1;

  background-image:
    radial-gradient(circle, rgba(255,255,255,0.12) 0px, transparent 12px),
    radial-gradient(circle, rgba(0,245,255,0.08) 0px, transparent 18px),
    radial-gradient(circle, rgba(255,43,214,0.06) 0px, transparent 22px);

  background-size: 311px 277px, 419px 353px, 557px 463px;
  background-position: -100px 40px, 210px -120px, -240px 190px;
  background-repeat: repeat;
  opacity: 0.6;
  filter: blur(2px);
  animation: subtle-scale 40s ease-in-out infinite;
}

/* ===== PAGE WRAPPER ===== */

/* ===== PAGE ===== */

.page {
  background-image: url('/images/Untitled.jpg');
  background-position: center;
  background-repeat: repeat;

  max-width: 1100px;
  margin: 24px auto;
  border: 2px ridge rgba(0,245,255,0.25);
  position: relative;
  overflow: visible;
}

.container {
  padding: 40px;
}

.candelabro {
  position: absolute;
  left: 100%;
  top: -100px;
  margin-left: 16px;
  z-index: 5;
}

/* ===== NAV ===== */

nav {
  position: fixed;
  left: 20px;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 2px groove rgba(255,43,214,0.25);
  background-image: url('/images/Morron.png');
  background-position: center;
  background-size: cover;
  border-radius: 4px;
  z-index: 10;
}

nav a {
  color: #9dfcff;
  text-decoration: none;
  border: 2px outset rgba(0,245,255,0.3);
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  transition: 0.15s;
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
}

nav a:hover {
  color: white;
  border: 2px inset #00f5ff;
  box-shadow: 0 0 12px rgba(0,245,255,0.3);
}

@media (max-width: 860px) {
  nav { left: 10px; top: 12px; padding: 8px; }
  nav a { font-size: 0.75rem; padding: 4px 8px; }
}

@media (max-width: 640px) {
  nav {
    position: static;
    flex-direction: row;
    justify-content: center;
  padding: 14px 24px;
  min-width: 130px;
    background: none;
    border: none;
  }
  nav a { font-size: 0.85rem; padding: 6px 10px; }
}

/* ===== HERO ===== */

.hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap;
  box-sizing: border-box;
  background-image: url('/images/anuelpresume.png');
  background-position: center;
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 48px;
}

.hero-text {
  flex: 1 1 60%;
  min-width: 280px;
}

.hero p {
  max-width: 700px;
  color: #b7b7c9;
  line-height: 1.7;
  margin-top: 24px;
  font-size: 1.1rem;
}

/* ===== SECTION ===== */

.section {
  margin-bottom: 48px;
  border-top: 1px dashed rgba(0,245,255,0.12);
  padding-top: 48px;
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section-heading {
  display: block;
  margin-bottom: 24px;
}

/* ===== POSTS ===== */

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-image: url('/images/841xq0frqn9mm.jpg');
  background-position: center;
  border-radius: 4px;
}

.post {
  background: rgba(0,0,0,0.18);
  padding: 16px;
  border: 2px inset rgba(255,255,255,0.06);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.post h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.post hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 0;
}

.post p {
  margin: 0;
  color: #d7d7e3;
  line-height: 1.6;
}

/* ===== MUSIC LIST ===== */

.music-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sc-iframe {
  width: calc(33.33% - 7px);
  height: 120px;
  border: none;
  display: block;
}

/* ===== VIDEO LIST ===== */

.video-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yt-iframe {
  width: calc(33.33% - 7px);
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* ===== FOOTER / LINKS ===== */

.links-box {
  position: fixed;
  bottom: 40px;
  left: calc((100vw - min(1100px, 100vw - 48px)) / 2 + min(1100px, 100vw - 48px) + 24px);
  right: 24px;
  white-space: nowrap;
  padding: 14px 24px;
  border: 2px groove rgba(255,43,214,0.25);
  background-image: url('/images/Morron.png');
  background-position: center;
  background-size: cover;
  border-radius: 4px;
  z-index: 10;
}

.links-box a {
  color: #9dfcff;
  text-decoration: none;
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 1rem;
  padding: 0 10px;
}

.links-box a + a {
  border-left: 1px solid rgba(0,245,255,0.15);
}

.links-box strong {
  color: #bdbdd3;
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

/* ===== MOBILE ===== */

@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero-text { order: 1; }
}

@media (max-width: 640px) {
  .links-box {
    position: static;
    white-space: normal;
    border-radius: 4px;
    margin: 24px auto 0;
    text-align: center;
    display: block;
  }
  .links-box a { padding: 0 8px; }
}

/* ===== ANIMATIONS ===== */

@keyframes subtle-scale {
  0%   { transform: scale(1); opacity: 0.62; }
  50%  { transform: scale(1.02); opacity: 0.68; }
  100% { transform: scale(1); opacity: 0.62; }
}
