/* ============================================================
   SIMFÒNICA TEKHNÉ — styles.css  v2
   Paleta: blanc / gris pàl·lid / blau pàl·lid / blau accent
   Estil: editorial modern, tipografia refinada, espais generosos
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --white:      #ffffff;
  --bg:         #fffafa;
  --surface:    #fdf4f4;
  --surface2:   #fbeaea;
  --border:     #f5d6d9;
  --border-light: #f8e3e5;

  --text:       #2a1318;
  --text-dim:   #6b3640;
  --text-muted: #a8717c;

  --accent:     #F0626E;
  --accent-mid: #e8485a;
  --accent-pale:#f9c9cd;
  --accent-xpale:#fdebec;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-accent:  'EB Garamond', Georgia, serif;

  /* Aliases per compatibilitat amb pàgines filles */
  --black:      var(--white);
  --dark:       var(--bg);
  --dark-mid:   var(--surface);
  --grey:       var(--border);
  --grey-mid:   var(--text-muted);
  --grey-light: #b0bfcc;
  --ivory:      var(--text);
  --ivory-dim:  var(--text-dim);
  --gold:       var(--accent);
  --gold-light: var(--accent-mid);
  --blue-pale:  var(--accent-pale);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(42,19,24,.06), 0 1px 2px rgba(42,19,24,.04);
  --shadow:     0 4px 16px rgba(42,19,24,.08), 0 1px 4px rgba(42,19,24,.04);
  --shadow-md:  0 8px 32px rgba(42,19,24,.10), 0 2px 8px rgba(42,19,24,.06);
  --transition: 0.25s ease;
  --max-w:      1140px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#page-content:focus { outline: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

/* Botó elegant: fons ple per defecte */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(58,109,150,.25);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
  box-shadow: 0 4px 16px rgba(58,109,150,.35);
  transform: translateY(-1px);
  outline: none;
}
.btn-primary:active { transform: translateY(0); }

/* Botó outline */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-xpale); }

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #000000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--transition);
}
#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.nav-logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.nav-logo .logo-sub {
  font-family: var(--font-accent);
  font-size: 11.5px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links > li > a {
  display: block;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}
.nav-links > li > a:hover { color: #ffffff; background: rgba(240,98,110,0.15); }
.nav-links > li > a.active-section { color: #ffffff; }

/* Mini-banner del hero dins el nav (apareix progressivament en fer scroll) */
.nav-mini-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.85) translateY(-6px);
  pointer-events: none;
  transition: opacity 0.05s linear;
  white-space: nowrap;
  overflow: visible;
  max-width: 0;
}
.nav-mini-hero.active { pointer-events: auto; }
.nav-mini-hero.nav-mini-static {
  opacity: 1;
  transform: scale(1) translateY(0);
  max-width: none;
  pointer-events: auto;
}
.nav-mini-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-mini-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--accent);
  animation: cbPulse 2s ease-out infinite;
  z-index: -1;
  opacity: 0.8;
}
.nav-mini-btn:hover { background: var(--accent-mid); }
@keyframes cbPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}

.pulse { position: relative; }
.pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--accent);
  animation: cbPulse 2s ease-out infinite;
  z-index: -1;
}

#chatbot-toggle {
  position: fixed;
  bottom: 220px;
  left: 28px;
  z-index: 510;
  width: 52px;
  height: 52px;
  border-radius: 100px;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(42,19,24,.18);
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  isolation: isolate;
}
#chatbot-toggle:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,19,24,.24); }
#chatbot-toggle svg { width: 24px; height: 24px; fill: currentColor; }
#chatbot-toggle .cb-close-icon { display: none; }
#chatbot-toggle.open .cb-chat-icon { display: none; }
#chatbot-toggle.open .cb-close-icon { display: block; }

#chatbot-window {
  position: fixed;
  bottom: 220px;
  left: 28px;
  z-index: 510;
  width: 320px;
  max-height: min(440px, calc(100vh - 320px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(42,19,24,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#chatbot-window.open {
  bottom: 282px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cb-header {
  padding: 14px 18px;
  background: #000000;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cb-header img { width: 26px; height: 26px; }
.cb-header-text { line-height: 1.2; }
.cb-header-title { font-size: 13px; font-weight: 600; color: #fff; }
.cb-header-sub { font-size: 10.5px; color: var(--accent); }
.cb-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
}
.cb-body::-webkit-scrollbar { width: 4px; }
.cb-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.cb-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.cb-msg.bot {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-dim);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.cb-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.cb-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.cb-option-btn {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.cb-option-btn:hover {
  background: var(--accent-xpale);
  border-color: var(--accent-pale);
  color: var(--text);
}
.cb-contact-btn {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 100px;
  text-decoration: none;
}

#music-player {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 500;
  background: rgba(248,249,252,0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(42,19,24,.12), 0 2px 8px rgba(42,19,24,.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 15px 21px;
  width: 338px;
  transition: opacity .3s, transform .3s;
}
#music-player.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
.mp-track {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.mp-composer {
  font-family: var(--font-accent, Georgia);
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 13px;
}
.mp-progress-wrap {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 13px;
  cursor: pointer;
}
.mp-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
  transition: width .2s linear;
  pointer-events: none;
}
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.mp-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
  line-height: 1;
}
.mp-btn:hover { color: var(--accent); background: var(--accent-xpale); }
.mp-btn svg { width: 21px; height: 21px; fill: currentColor; }
.mp-btn.play svg { width: 26px; height: 26px; }

.mp-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 73px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.mp-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  background: var(--accent);
  border-radius: 50%;
}
.mp-volume::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
}
.mp-close {
  position: absolute;
  top: 10px;
  right: 13px;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 5px;
  border-radius: 5px;
}
.mp-close:hover { color: var(--text); }
.mp-reopen {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 500;
  width: 52px;
  height: 52px;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(42,19,24,.18);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  isolation: isolate;
}
.mp-reopen.visible { display: flex; }
.mp-reopen:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,19,24,.24); }
.mp-reopen svg { width: 23px; height: 23px; fill: currentColor; }

/* ---- Pulsació forta del botó del reproductor mentre sona la música ---- */
.mp-reopen.is-playing::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--accent);
  z-index: -1;
  animation: mpReopenPulse 1.4s ease-out infinite;
}
.mp-reopen.is-playing {
  animation: mpReopenBeat 1.4s ease-in-out infinite;
}
@keyframes mpReopenPulse {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes mpReopenBeat {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.16); }
  40%  { transform: scale(1.02); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mp-reopen.is-playing { animation: none; }
  .mp-reopen.is-playing::before { animation: none; display: none; }
}

@media (max-width: 600px) {
  #chatbot-toggle { bottom: 200px; left: 20px; }
  #chatbot-window { left: 20px; right: 20px; width: auto; bottom: 200px; }
  #chatbot-window.open { bottom: 258px; }
  #music-player { width: calc(100vw - 40px); left: 20px; right: 20px; padding: 13px 18px; }
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  margin-top: 8px;
  transform: translateX(-50%);
  background: #000000;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  min-width: 190px;
  padding: 6px;
  box-shadow: var(--shadow-md);
}
.has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 16px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover { color: #ffffff; background: rgba(240,98,110,0.15); }
.dropdown li a.active { color: #ffffff; background: var(--accent); }
.dropdown li a::after { display: none; }

/* Selector d'idioma */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(240,98,110,0.4);
  border-radius: 100px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lang-btn:hover { background: rgba(240,98,110,0.15); }
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 600px) {
  .lang-switch { gap: 3px; margin-left: 3px; }
  .lang-btn { padding: 3px 7px; font-size: 9px; }
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  margin-top: 68px;
  position: relative;
  z-index: 2;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42,19,24,0.0) 0%,
    rgba(42,19,24,0.25) 45%,
    rgba(42,19,24,0.78) 75%,
    rgba(42,19,24,0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 64px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f9c9cd;
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 18px; height: 1.5px;
  background: #f9c9cd;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  max-width: 680px;
}
.hero-title em {
  font-style: italic;
  color: #f9c9cd;
  font-size: 0.52em;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.hero-sub {
  font-size: 15px;
  color: #f3b8bd;
  letter-spacing: 0.03em;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #ffffff;
  border: 1.5px solid #ffffff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.btn-hero-primary:hover {
  background: var(--accent-pale);
  border-color: var(--accent-pale);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-hero-outline:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* ---------- CONCERT DESTACAT ---------- */
.concert-featured {
  padding: 96px 0;
  background: var(--surface);
}
.concert-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.concert-info { display: flex; flex-direction: column; gap: 20px; }
.concert-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 26px;
  min-width: 108px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(248,249,252,0.82), rgba(240,243,248,0.88)),
    url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=400&q=80') center/cover no-repeat;
}
.concert-date-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.concert-day {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 600;
  line-height: 1; color: var(--text);
}
.concert-month {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-top: 4px;
}
.concert-year { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.concert-venue {
  font-family: var(--font-display);
  font-size: 17px; font-style: italic; color: var(--text);
}
.concert-desc { color: var(--text-dim); font-size: 15px; line-height: 1.8; }
.concert-desc strong { color: var(--text); }
.program-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.program-list { margin-bottom: 28px; }
.program-list li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.program-list li:last-child { border-bottom: none; }
.composer { font-weight: 600; font-size: 13px; color: var(--text); letter-spacing: 0.03em; }
.work { font-family: var(--font-accent); font-size: 15px; color: var(--text-dim); }
.concert-artists { margin-bottom: 32px; font-size: 14px; color: var(--text-dim); line-height: 1.85; }
.concert-artists strong { color: var(--text); }

/* ---------- ABOUT ---------- */
.about { padding: 96px 0; background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 60px; align-items: center;
}
.about-text p {
  color: var(--text-dim); font-size: 15px;
  line-height: 1.9; margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); }
.about-image { position: relative; }
.about-image img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.img-credit {
  font-size: 11px; color: var(--text-muted);
  margin-top: 10px; letter-spacing: 0.04em;
}

/* ---------- DIRECTOR (index) ---------- */
.director { padding: 96px 0; background: var(--bg); }
.director-card {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 60px; align-items: start;
  padding-top: 48px; border-top: 1px solid var(--border);
  margin-top: 8px;
}
.director-img-wrap img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.director-text h3 {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 400; color: var(--text); margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.director-text p { color: var(--text-dim); font-size: 15px; line-height: 1.85; }

/* ---------- JOIN ---------- */
.join {
  padding: 96px 0;
  background: var(--accent-pale);
}
.join-inner { max-width: 580px; }
.join p { color: var(--text-dim); font-size: 17px; line-height: 1.8; margin-bottom: 36px; }

/* ---------- GALLERY ---------- */
.gallery-section {
  padding: 80px 0 60px;
  background: var(--surface2);
}
.gallery-section .container { margin-bottom: 20px; }
.gallery-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 20px;
}
.gallery-count { font-size: 13px; color: var(--text-muted); }
.gallery-nav { display: flex; gap: 8px; padding: 0 32px 16px; }
.gallery-arrow {
  width: 36px; height: 36px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-dim);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.gallery-arrow:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow); }
.gallery-track-wrap {
  overflow-x: auto; overflow-y: hidden;
  padding: 0 32px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery-track-wrap::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 12px; width: max-content; }
.gallery-item {
  flex: 0 0 auto; width: 240px; height: 172px;
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  position: relative; z-index: 2; background: var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.gallery-item.tall { height: 214px; }
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .4s ease;
  filter: grayscale(15%);
}
.gallery-item:hover img { transform: scale(1.06); filter: grayscale(0%); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, rgba(42,19,24,.45));
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px; }
.gallery-item-caption span { font-size: 11px; color: #fff; letter-spacing: .04em; }
.gallery-progress {
  padding: 0 32px;
  display: flex; align-items: center; gap: 12px;
}
.gallery-bar-bg { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.gallery-bar { height: 100%; background: var(--accent); border-radius: 2px; transition: width .2s; width: 0%; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(248,249,252,0.97);
  backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox-inner img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.lightbox-caption { font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 32px; color: var(--text-dim); line-height: 1;
  transition: color var(--transition); padding: 4px;
}
.lightbox-close:hover { color: var(--text); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 44px; color: var(--text-dim);
  padding: 8px 16px; transition: color var(--transition);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); }

/* ---------- INSTAGRAM ---------- */
.instagram-section {
  padding: 80px 0;
  background: var(--surface);
  text-align: center;
}
.insta-link {
  display: inline-block;
  font-family: var(--font-display); font-size: 1.5rem; font-style: italic;
  color: var(--accent); margin-top: 8px;
  transition: color var(--transition), letter-spacing var(--transition);
}
.insta-link:hover { color: var(--accent-mid); letter-spacing: 0.02em; }

/* ---------- CONTACT ---------- */
.contact-section { padding: 96px 0; background: var(--bg); }
.contact-form { max-width: 540px; margin-top: 40px; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.form-row label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}
.form-row input, .form-row textarea {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px; padding: 13px 16px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical; outline: none;
  box-shadow: var(--shadow-sm);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,109,150,.12);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); }
.form-notice { margin-top: 14px; font-size: 14px; color: var(--accent); min-height: 20px; }

/* ---------- FOOTER ---------- */
#footer {
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 52px 0 36px;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.footer-logo-img { height: 30px; width: auto; display: block; }
.footer-logo .logo-text { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #ffffff; }
.footer-logo .logo-sub { font-family: var(--font-accent); font-size: 11px; font-style: italic; color: var(--accent); }
.footer-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-nav a {
  padding: 6px 12px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover { color: #ffffff; background: rgba(240,98,110,0.15); }
.footer-social { display: inline-flex; align-items: center; gap: 16px; }
.footer-social a { color: var(--accent); transition: color var(--transition); display: inline-flex; }
.footer-social a:hover { color: #ffffff; }
.footer-social a:hover svg { transform: scale(1.08); }
.footer-social a svg { width: 28px; height: 28px; transition: transform var(--transition), fill var(--transition), stroke var(--transition); }
.footer-github-link { display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition); vertical-align: middle; }
.footer-github-link svg { width: 16px; height: 16px; fill: currentColor; transition: transform var(--transition); vertical-align: middle; }
.footer-github-link:hover svg { transform: scale(1.08); }
.footer-copy a { vertical-align: middle; }
.footer-contact { font-size: 12px; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; margin-bottom: 6px; font-weight: 500; }
.footer-contact a { color: rgba(255,255,255,0.75); text-decoration: underline; text-decoration-color: transparent; transition: color var(--transition), text-decoration-color var(--transition); }
.footer-contact a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.04em; }
.footer-copy a { color: rgba(255,255,255,0.45); text-decoration: underline; text-decoration-color: transparent; transition: color var(--transition), text-decoration-color var(--transition); }
.footer-copy a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-legal { font-size: 10.5px; color: rgba(255,255,255,0.28); letter-spacing: 0.05em; margin-top: 8px; font-weight: 400; }
.footer-legal a { color: rgba(255,255,255,0.28); text-decoration: none; transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }
.footer-legal-btn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-size: 10.5px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.28); transition: color var(--transition);
}
.footer-legal-btn:hover { color: rgba(255,255,255,0.6); }

/* ---- Modal legal (avís legal / política de cookies) ---- */
.legal-modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.legal-modal.open { display: block; }
.legal-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,5,7,0.72); backdrop-filter: blur(3px);
  animation: legalFade .2s ease;
}
.legal-modal-dialog {
  position: relative; z-index: 1; box-sizing: border-box;
  max-width: 720px; width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  margin: 40px auto; overflow-y: auto;
  background: var(--black, #14090c);
  border: 1px solid var(--grey, rgba(255,255,255,0.12));
  border-radius: var(--radius, 12px);
  padding: 40px 44px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  animation: legalRise .25s ease;
}
.legal-modal-close {
  position: sticky; top: 0; float: right;
  margin: -16px -16px 0 0;
  width: 38px; height: 38px; flex: 0 0 auto;
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ivory-dim, #cbb8bd);
  transition: color var(--transition);
}
.legal-modal-close:hover { color: var(--accent); }
.legal-modal-title {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem,3vw,2rem); font-weight: 400;
  color: var(--ivory, #fff); margin: 0 0 28px; padding-right: 30px;
}
.legal-modal-body .text-block { margin-bottom: 32px; }
.legal-modal-body .text-block:last-child { margin-bottom: 0; }
.legal-modal-body .text-block h2 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; font-style: italic;
  color: var(--ivory, #fff); margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--grey, rgba(255,255,255,0.12));
}
.legal-modal-body .text-block p { font-size: 14px; line-height: 1.8; color: var(--ivory-dim, #cbb8bd); margin-bottom: 12px; }
.legal-modal-body .text-block p:last-child { margin-bottom: 0; }
.legal-modal-body .text-block a { color: var(--gold,#c8a96e); text-decoration: underline; }
.legal-modal-body .legal-updated { font-size: 12px; color: var(--grey-mid,#8a7479); margin-top: 36px; font-style: italic; }
@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes legalRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .legal-modal-dialog { padding: 30px 22px; margin: 20px auto; width: calc(100% - 28px); max-height: calc(100vh - 40px); }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 40px; height: 40px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--accent); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 100px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero { height: 300px; }
  .hero-content { padding: 0 24px 48px; }
  .hero-title { font-size: 2.2rem; }
  .concert-card { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .director-card { grid-template-columns: 1fr; gap: 36px; }
  .director-img-wrap img { aspect-ratio: 16/9; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #000000;
    backdrop-filter: blur(12px);
    padding: 16px; gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    display: block; padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px; letter-spacing: 0.06em;
  }
  .dropdown { position: static; border: none; background: transparent; box-shadow: none; padding: 2px 0 2px 16px; display: block !important; }
  .dropdown li a { padding: 8px 14px; font-size: 13px; }
  .nav-toggle { display: flex; }
  .gallery-nav { padding: 0 24px 16px; }
  .gallery-track-wrap { padding: 0 24px 16px; }
  .gallery-progress { padding: 0 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .concert-date-block { min-width: 88px; padding: 16px 18px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- CONCERT FEATURED GRID ---------- */
.concert-featured-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  padding-top: 8px;
}
.concert-featured-text .concert-desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dim);
}
.concert-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
}
.concert-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.concert-meta-item svg { color: var(--accent); flex-shrink: 0; }
.concert-featured-program {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) {
  .concert-featured-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- ABOUT SLIDESHOW ---------- */
.about-slideshow {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.about-slide.active {
  opacity: 1;
}
/* Punts indicadors */
.about-slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.about-dot {
  width: 6px; height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s, width 0.3s;
}
.about-dot.active {
  background: #ffffff;
  width: 18px;
}

/* ---------- DIRECTOR SLIDESHOW ---------- */
.director-slideshow {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.director-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.director-slide.active { opacity: 1; }
.director-slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.director-dot {
  width: 6px; height: 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s, width 0.3s;
  cursor: pointer;
}
.director-dot.active {
  background: #ffffff;
  width: 18px;
}
