/* Layout and navigation - Updated for dark theme and improved alignment */

/* Sticky site header with centered logo */
.c-site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-bg);
  color: var(--color-ink-on-dark);
  border-bottom: 1px solid var(--color-border-soft-on-dark);
}

/* Brand bar with centered logo and responsive navigation toggle */
.brandbar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-soft-on-dark);
}

/* Center the logo by default; nav toggle is positioned absolutely on mobile */
.brandbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  text-align: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  color: var(--color-surface);
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-surface);
  margin: 4px 0;
  border-radius: 1px;
}

/* Tabs bar background */
.tabsbar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* Navigation tabs */
.nav-tabs {
  list-style: none;
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-tabs a,
.nav-tabs button {
  color: var(--color-ink-on-dark);
  text-transform: uppercase;
  font-size: var(--font-scale-1);
  letter-spacing: 0.12em;
  padding: var(--space-sm) 0;
  border-bottom: 2px solid transparent;
  background: none;
}

.nav-tabs a:hover,
.nav-tabs button:hover {
  border-color: var(--color-border-strong-on-dark);
}

.nav-tabs a[aria-current="page"],
.nav-tabs button[aria-current="page"] {
  border-color: var(--color-accent);
}

/* Mobile navigation */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    gap: var(--space-sm);
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-md);
    transform: translateY(100%);
    transition: transform 0.24s ease-out;
    z-index: var(--z-header);
  }

  .nav-tabs.open {
    transform: translateY(0);
  }

  .nav-tabs a,
  .nav-tabs button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-accent-soft);
    background: var(--color-accent-soft);
    color: var(--color-bg);
    text-transform: uppercase;
    font-size: var(--font-scale-1);
    letter-spacing: 0.12em;
  }

  .nav-tabs a[aria-current="page"],
  .nav-tabs button[aria-current="page"] {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
  }
}

/* Generic section styling */
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  /* Fade between dark tones */
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt));
}

/* Section headings */
.section-title {
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-size: var(--font-scale-4);
  color: var(--color-ink);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Prose block centering */
.prose {
  max-width: 65ch;
  margin: 0 auto var(--space-md);
  color: var(--color-ink);
  text-align: center;
}

/* Section links (on home) */
.section-links {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-accent-soft);
  background: var(--color-accent-soft);
  color: #ffffff;
  font-size: var(--font-scale-1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition:
    background var(--motion-duration-sm) var(--motion-ease-out),
    border-color var(--motion-duration-sm) var(--motion-ease-out),
    color var(--motion-duration-sm) var(--motion-ease-out);
}

.section-links a:hover,
.section-links a:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

/* Home CTA cards */
.section-home-links {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xl);
  text-align: center;
}

.section-home-links .home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 48rem;
  margin-inline: auto;
}

.home-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-accent-soft);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  font-size: var(--font-scale-1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition:
    background var(--motion-duration-sm) var(--motion-ease-out),
    border-color var(--motion-duration-sm) var(--motion-ease-out),
    box-shadow var(--motion-duration-sm) var(--motion-ease-out),
    transform var(--motion-duration-xs) var(--motion-ease-out);
}

.home-card:hover,
.home-card:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Full-width CTA on small screens */
@media (max-width: 600px) {
  .section-home-links .home-links {
    justify-content: center;
  }

  .home-card {
    flex: 1 1 100%;
  }
}

/* OUR GOAL section dark theme */
.section-goal {
  position: relative;
  text-align: center;
  padding-block: var(--space-xl);
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(to bottom, var(--color-bg-alt), var(--color-surface));
}

.section-goal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.75), transparent 60%);
  opacity: 0.7;
}

.section-goal .container {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  animation: goal-block-in var(--motion-duration-lg) var(--motion-ease-out) 120ms both;
}

.section-goal h2 {
  position: relative;
  display: inline-block;
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-size: var(--font-scale-4);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink-on-dark);
}

.section-goal h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4em;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0.95;
  animation: goal-underline var(--motion-duration-md) var(--motion-ease-out) 260ms forwards;
}

.section-goal p {
  position: relative;
  margin: 0;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) * 1.75);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #020617, #020b2f);
  box-shadow: var(--shadow-1);
  color: var(--color-ink-on-dark);
  font-size: var(--font-scale-2);
  line-height: 1.7;
  text-align: left;
}

.section-goal p::before {
  content: "";
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  bottom: var(--space-md);
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-soft));
}

.section-goal p::after {
  content: "“";
  position: absolute;
  top: -10px;
  right: var(--space-md);
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent-soft);
  opacity: 0.3;
  pointer-events: none;
}

@keyframes goal-block-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes goal-underline {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
/* OUR GOAL — más ancho pero centrado en desktop */
@media (min-width: 1024px) {
  /* El bloque completo sigue centrado */
  .section-goal .container {
    max-width: 72rem;              /* más ancho que antes */
    margin-left: auto;
    margin-right: auto;
  }

  /* La “tarjeta” de texto se ensancha, pero sigue centrada */
  .section-goal p {
    max-width: 60rem;              /* Acá abrís el texto */
    margin-left: auto;
    margin-right: auto;
  }
}


/* Artists page dark theme and dynamic heading */
body.artists-page {
  background: var(--color-bg-alt);
  color: var(--color-ink-on-dark);
}

.artists-page .artists-section {
  position: relative;
  padding-block: var(--space-xl);
  overflow: hidden;
  text-align: center;
}

/* Animated background for desktop/tablet */
.artists-page .artists-section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(24, 119, 246, 0.35), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(24, 119, 246, 0.18), transparent 60%);
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  animation: artists-bg-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

.artists-page .artists-section > * {
  position: relative;
  z-index: 1;
}

.artists-page .artists-section .section-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  padding-bottom: var(--space-xs);
  /* limit the width of the heading so long taglines wrap gracefully */
  max-width: 32rem;
  text-align: center;
  font-size: var(--font-scale-5);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-ink-on-dark);
  opacity: 0;
  transform: translateY(10px);
  animation: artist-heading-main var(--motion-duration-md) var(--motion-ease-out) forwards;
}

.artists-page .artists-section .section-title::before {
  content: "EL FUTURO DE LA MÚSICA EN NUESTRAS MANOS";
  display: block;
  margin-bottom: var(--space-xs);
  /* allow the preamble to wrap across multiple lines and stay centred */
  font-size: var(--font-scale-1);
  letter-spacing: 0.14em;
  max-width: 28rem;
  margin-inline: auto;
  color: var(--color-ink-muted-on-dark);
  opacity: 0.95;
  text-align: center;
  white-space: normal;
}

.artists-page .artists-section .section-title::after {
  content: "";
  display: block;
  margin-top: var(--space-xs);
  width: 180px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent-soft) 20%,
    var(--color-accent) 50%,
    transparent 80%
  );
  background-size: 220% 100%;
  opacity: 0.9;
  animation: artist-heading-bar 8s linear infinite;
}

@keyframes artist-heading-main {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes artist-heading-bar {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 220% 0;
  }
}

.artists-page .artists-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 1100px) {
  .artists-page .artists-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .artists-page .artists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 799px) {
  .artists-page .artists-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@keyframes artists-bg-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-4%, 2%, 0);
  }
}

/* Label strip / partners carousel */
.artists-page .labels-strip {
  margin-top: var(--space-xl);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-border-soft-on-dark);
  border-bottom: 1px solid var(--color-border-soft-on-dark);
  overflow: hidden;
}

.artists-page .labels-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: labels-marquee 40s linear infinite;
}

.artists-page .labels-strip img {
  height: 28px;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.8;
  transition:
    opacity var(--motion-duration-sm) var(--motion-ease-out),
    filter var(--motion-duration-sm) var(--motion-ease-out);
}

.artists-page .labels-strip img:hover {
  opacity: 1;
  filter: grayscale(0.1) contrast(1.1);
}

@keyframes labels-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile variant of Artists: hero blur */
@media (max-width: 768px) {
  .artists-page .artists-section {
    /* provide extra breathing room so the heading does not overlap the header */
    padding-top: calc(var(--space-xl) * 2.5);
    padding-bottom: var(--space-lg);
  }

  .artists-page .artists-section::before {
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.98)),
      url("assets/artists-hero.jpg") center/cover no-repeat;
    filter: blur(18px);
    opacity: 0.9;
    animation: none;
    transform: scale(1.1);
  }

  .artists-page .artists-section .section-title {
    font-size: var(--font-scale-4);
    letter-spacing: 0.16em;
    margin-bottom: var(--space-md);
  }

  .artists-page .artists-section .section-title::before {
    font-size: var(--font-scale-1);
    letter-spacing: 0.14em;
    max-width: 22ch;
  }

  .artists-page .artists-grid {
    margin-top: var(--space-lg);
  }
}

/* Form controls dark theme */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft-on-dark);
  background: #020617;
  color: var(--color-ink-on-dark);
  font: inherit;
  box-shadow: none;
  transition:
    border-color var(--motion-duration-sm) var(--motion-ease-out),
    box-shadow var(--motion-duration-sm) var(--motion-ease-out),
    background var(--motion-duration-sm) var(--motion-ease-out);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-ink-muted);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-accent);
  background: #020b2f;
}

/* Primary buttons */
button[type="submit"],
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--font-scale-1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    background var(--motion-duration-sm) var(--motion-ease-out),
    box-shadow var(--motion-duration-sm) var(--motion-ease-out),
    transform var(--motion-duration-xs) var(--motion-ease-out);
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .artists-page .artists-section::before,
  .artists-page .labels-strip-inner,
  .artists-page .artists-section .section-title,
  .artists-page .artists-section .section-title::after {
    animation: none;
  }
}
/* NAV: links siempre en blanco sobre fondo dark */
.nav-tabs a,
.nav-tabs button {
  color: #ffffff;
}

.nav-tabs a[aria-current="page"],
.nav-tabs button[aria-current="page"] {
  color: #ffffff;
}

/* Links tipo “pill” debajo de OUR GOAL */
.section-home-links .home-links a,
.section-home-links .home-card {
  color: #ffffff;
}

/* Aseguramos que en hover/focus sigan siendo blancos */
.section-home-links .home-card:hover,
.section-home-links .home-card:focus-visible {
  color: #ffffff;
}
/* En base.css o layout.css */
a {
  color: var(--color-ink-on-dark);                /* blanco/gris claro */
  text-decoration-color: var(--color-accent);     /* la línea sí usa el acento */
}

/* Opcional: hover más marcado */
a:hover {
  color: var(--color-ink-on-dark);
  text-decoration: underline;
}
