:root {
  --bg: #020202;
  --text: #ece8e1;
  --muted: #a39dad;
  --accent: #e8557f;
  --line: #2a2433;
  --max: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: #020202;
  background-image: url(assets/images/BG-BD-3.webp);
  background-position: top center;
  background-size: 100% auto;
  background-repeat: repeat-y;
  color: var(--text);
  font-family: "Roboto", "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

main {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 2rem) clamp(1rem, 4vw, 1.25rem) 3rem;
  flex: 1;
}

/* Cabecera */
.logo { display: block; margin: 1rem auto 1.5rem; max-width: 350px; width: 100%; height: auto; }

nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 1.5rem);
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
nav a {
  text-decoration: none;
  letter-spacing: 0.12em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav a:hover, nav a[aria-current="page"] { border-color: var(--accent); }

/* Títulos */
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; margin: 0 0 1.5rem; text-align: center; }
h2 { font-size: 1.2rem; margin: 2.5rem 0 1rem; }

/* Home */
.hero-text { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.social { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin: 2rem 0; }
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  border: 1px solid var(--line);
  color: var(--text);
  transition: color 0.15s, border-color 0.15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.social svg { width: 22px; height: 22px; }
iframe { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 12px; }
.video { aspect-ratio: 16 / 9; height: auto; margin-bottom: 1rem; }

/* Links */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.links a {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #b00e01de;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.15s, background 0.15s;
}
.links a:hover { border-color: var(--accent); background: rgba(232, 85, 127, 0.08); }

/* Lyrics */
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  padding: 1rem 0;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; }
details[open] summary::after { content: "–"; }
.lyric { padding: 0 0 1.25rem; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); }

@media (max-width: 360px) {
  nav { column-gap: 0.75rem; }
  nav a { font-size: 0.875rem; }
}

@media (max-width: 768px) {
    body.lyrics {
      background-size: 120% auto !important;
    }
}

/* Footer */
footer { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 1.5rem 1rem 2rem; border-top: 1px solid var(--line); }
footer a { text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { border-color: var(--accent); }
