/* -------- INTER -------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; /* soporta todo rango de peso */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* -------- PLAYFAIR DISPLAY -------- */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}


:root {
    --bg: #0b0c10;
    --text: #e6e6eb;
    --muted: #9a9aa8;
    --accent: #c7c7ff;
    --line: rgba(255,255,255,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---------- GRAIN ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
}

/* ---------- NAV ---------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
    gap: 44px;
    background: linear-gradient(to bottom, rgba(11,12,16,.95), rgba(11,12,16,0));
    z-index: 10;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

nav a:hover { color: var(--text); }

/* ---------- HERO VIDEO ---------- */
header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

header video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11,12,16,.25), var(--bg) 88%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

header h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 6px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 2.8s ease forwards;
}

header p {
    margin-top: 22px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--muted);
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 3.6s ease forwards;
}

@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTIONS ---------- */
section {
    max-width: 820px;
    margin: auto;
    padding: 140px 20px;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- DIVIDER ---------- */
.divider {
    width: 1px;
    height: 90px;
    background: var(--line);
    margin: 0 auto;
    opacity: 0;
    transform: scaleY(0);
    transition: transform 1.6s ease, opacity 1.6s ease;
}

.divider.visible {
    opacity: 1;
    transform: scaleY(1);
}

/* ---------- TEXT ---------- */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.bio p {
    max-width: 680px;
    margin: auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--muted);
}

/* ---------- ALBUM ---------- */
.release { text-align: center; }
.release span { font-size: .6rem; letter-spacing: 3px; color: var(--muted); }

.album-frame {
    margin: 60px auto 40px;
    width: 300px;
    padding: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 2.2s ease, transform 2.2s ease;
}

.album-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
}

.album-frame img { width: 100%; height: auto; display: block; filter: brightness(.95); }

.album-frame.visible { opacity: 1; transform: translateY(0); }

.release h3 { font-size: 2rem; margin-bottom: 15px; }
.release p { color: var(--muted); max-width: 600px; margin: auto; }
.release a { display: inline-block; margin-top: 32px; color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }

/* ---------- MUSIC ---------- */
.links { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.links a { color: var(--muted); text-decoration: none; }

/* ---------- CONCERTS ---------- */
.concerts { text-align: center; }
.concerts p { color: var(--muted); max-width: 600px; margin: 0 auto 30px; }
.concerts iframe { width: 100%; min-height: 600px; border: none; }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact p { color: var(--muted); }
.contact a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--muted); }

/* ---------- FOOTER ---------- */
footer { padding: 60px 20px; text-align: center; font-size: .7rem; color: var(--muted); }

/* ---------- BANNER LEGAL ---------- */
#cookie-banner {
    position: fixed;
    bottom: -140px;
    left: 0;
    width: 100%;
    background: rgba(11,12,16,0.95);
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 14px 16px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    opacity: 0;
    transition: all 0.7s ease;
}

#cookie-banner a { color: var(--accent); text-decoration: underline; }
#accept-cookies { background: var(--accent); color: var(--bg); border: none; padding: 6px 12px; cursor: pointer; border-radius: 3px; font-weight: 500; }

/* ---------- BOTONES FLOTANTES ---------- */
#open-cookies, #back-to-top {
    position: fixed;
    bottom: 20px;
    background: rgba(199,199,255,0.08);
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 4px 10px;
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    z-index: 9998; /* <-- menor que el banner para que quede debajo */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#open-cookies { left: 20px; right: auto; }
#back-to-top { right: 20px; left: auto; }

.hidden-button {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    section { padding: 110px 20px; }
    .album-frame { width: 240px; }

    /* Música: 2x2 en móvil */
    .links {
        flex-wrap: wrap; /* permite que Bandcamp pase a la segunda línea si hace falta */
        justify-content: center;
        gap: 20px;
    }
    .links a {
        flex: 1 1 45%; /* cada enlace ocupa aproximadamente la mitad */
        text-align: center;
        min-width: 80px;
    }

    /* Nav: que "LA CATEDRAL" se mantenga en una línea */
    nav {
        padding: 16px 10px; /* menos padding para caber */
        gap: 16px;           /* reduce espacio entre enlaces */
        flex-wrap: wrap;     /* permite que los enlaces bajen de línea si hace falta */
        justify-content: center;
    }

    nav a {
        font-size: 0.65rem;  /* más pequeño si quieres */
        white-space: nowrap;  /* evita que cada palabra se parta */
    }
}