/* ==========================================================================
   JAZZFERA — estilos
   Paleta y tipografía según el brand guideline de Jazzfera.
   ========================================================================== */

:root {
  --cream: #FFFAF5;
  --paper: #FCFCFA;
  --ink: #3A2A26;
  --night: #100A09;
  --brown: #6C5446;
  --taupe: #9A8576;
  --sand: #CCC0BC;
  --wine: #803939;
  --gold: #EFBD82;

  --line: rgba(58, 42, 38, 0.16);
  --line-dark: rgba(255, 250, 245, 0.16);

  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-title: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--night); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--night); color: var(--cream); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* ----- Tipografía ----- */

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 1.25rem;
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  max-width: 38ch;
}

.section { padding-block: clamp(64px, 10vw, 140px); }
[id] { scroll-margin-top: 68px; }
.section + .section { border-top: 1px solid var(--line); }

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ----- Botones y enlaces ----- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid:hover { background: var(--wine); border-color: var(--wine); }

.on-dark .btn:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }

.link-arrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow:hover { color: var(--wine); }

/* ==========================================================================
   Cabecera
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark img { width: auto; height: 40px; }
.site-header .wordmark { flex: none; white-space: nowrap; }

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current="page"] { border-bottom-color: var(--wine); color: var(--wine); }

/* Móvil: en la cabecera solo el logo, el nombre queda para lectores de pantalla */
@media (max-width: 480px) {
  .site-header .wordmark img { height: 38px; }
  .site-header .wordmark__text {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nav { gap: 18px; font-size: 0.74rem; letter-spacing: 0.1em; }
}
@media (max-width: 340px) {
  .nav { gap: 12px; letter-spacing: 0.06em; }
}

/* ==========================================================================
   Inicio
   ========================================================================== */

.hero { padding-top: clamp(48px, 8vw, 110px); }

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hero__logo {
  flex: none;
  width: clamp(96px, 20vw, 259px);
  height: auto;
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  max-width: 11ch;
}

.hero h1 em { font-style: normal; color: var(--wine); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 40%;
  background: var(--night);
}

@media (max-width: 640px) {
  .hero__image { aspect-ratio: 4 / 3; }
}

/* Quiénes somos */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}

.about__text p { margin: 0 0 1.1em; max-width: 60ch; }
.about__text p:first-child { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}
.values li {
  padding: 0.45em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* El formato */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 28px 28px 8px 0;
}
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }

.steps__num {
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--wine);
  margin-bottom: 18px;
}
.steps h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.steps p { margin: 0; color: var(--brown); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* Próximas fechas */
.dates-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
}
.dates-head .section-title { margin-bottom: 0; }
.dates-head p { margin: 0; max-width: 36ch; color: var(--brown); }

.dates {
  list-style: none;
  padding: 0;
  margin: clamp(32px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--ink);
}

.date {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.date__day {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.date__when { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); margin-bottom: 4px; }
.date__title { font-family: var(--font-title); font-weight: 700;font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; }
.date__meta { display: block; font-size: 0.9rem; color: var(--taupe); margin-top: 4px; }

.date__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5em 0.9em;
  border: 1px solid var(--ink);
  white-space: nowrap;
}

.date.is-next .date__tag { background: var(--ink); color: var(--cream); }
.date.is-past { opacity: 0.4; }

@media (max-width: 640px) {
  .date { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .date__tag { grid-column: 2; justify-self: start; }
}

/* Teaser de galería */
.teaser {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}
.teaser img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.teaser a:first-child img { aspect-ratio: auto; }
.teaser a { display: block; overflow: hidden; background: var(--night); }

.teaser-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.teaser-head .section-title { margin-bottom: 0; }

@media (max-width: 760px) {
  .teaser { grid-template-columns: 1fr 1fr; }
  .teaser a:first-child { grid-column: 1 / -1; }
  .teaser a:first-child img { aspect-ratio: 4 / 3; }
}

/* Músicos */
.musicians {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.musicians p { margin: 0 0 1em; max-width: 52ch; }
.musicians ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.musicians li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.musicians li span { color: var(--wine); font-family: var(--font-title); min-width: 2ch; }

@media (max-width: 860px) {
  .musicians { grid-template-columns: 1fr; }
}

/* Banda oscura (CTA) */
.band {
  background: var(--night);
  color: var(--cream);
}
.band .eyebrow { color: var(--gold); }
.band__logo { width: clamp(80px, 10vw, 128px); height: auto; margin-bottom: 28px; }
.band__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
}
.band h2 { font-size: clamp(2.4rem, 6vw, 4.75rem); max-width: 14ch; }
.band p { max-width: 42ch; margin: 0 0 24px; color: var(--sand); }

/* ==========================================================================
   Galería
   ========================================================================== */

.page-head { padding-block: clamp(48px, 8vw, 110px) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -0.035em; line-height: 0.9; }
.page-head .lead { margin: clamp(20px, 3vw, 32px) 0 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
  padding: 0;
  margin: 0 0 clamp(64px, 10vw, 140px);
  list-style: none;
}

.gallery li { background: var(--night); }
.gallery li.big { grid-column: span 2; grid-row: span 2; }

.gallery button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity .25s ease;
}
.gallery button:hover img { opacity: 0.85; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(16, 10, 9, 0.96);
  color: var(--cream);
}
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(16, 10, 9, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.lightbox button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: none;
  border: 1px solid var(--line-dark);
  padding: 0.8em 1.2em;
  cursor: pointer;
}
.lightbox button:hover { border-color: var(--cream); }
.lightbox__close { border: 0 !important; padding: 0.4em 0 !important; }

/* ==========================================================================
   Empresas (B2B)
   ========================================================================== */

.b2b-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-block: clamp(48px, 8vw, 110px) clamp(48px, 7vw, 96px);
}
.b2b-hero h1 { font-size: clamp(2.8rem, 7.5vw, 6.5rem); letter-spacing: -0.035em; line-height: 0.92; }
.b2b-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--night); }
.b2b-hero .lead { margin: 28px 0 32px; }

@media (max-width: 860px) {
  .b2b-hero { grid-template-columns: 1fr; }
  .b2b-hero img { aspect-ratio: 4 / 3; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cards li {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cards h3 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 10px; }
.cards p { margin: 0; color: var(--brown); font-size: 0.97rem; }

.includes {
  columns: 2 280px;
  column-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.includes li {
  break-inside: avoid;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 12px;
  height: 1px;
  background: var(--wine);
}

.process { counter-reset: step; }

/* Formulario */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.contact__intro p { color: var(--sand); max-width: 40ch; }
.contact__intro a { color: var(--gold); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}

.form { display: grid; gap: 22px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status.is-error { border-color: #F0A99B; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field label small { font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--taupe); font-size: 0.8rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 0;
  padding: 10px 0;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { color: var(--night); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--taupe); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field.has-error input, .field.has-error textarea { border-bottom-color: #E08A7A; }
.field__error { font-size: 0.85rem; color: #F0A99B; min-height: 0; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--sand);
}
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.check a { color: var(--cream); }

.form__status {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--gold);
  color: var(--cream);
}
.form__status[hidden] { display: none; }

/* ==========================================================================
   Legal
   ========================================================================== */

.legal-doc { max-width: 46rem; padding-block: clamp(48px, 8vw, 110px); }
.legal-doc h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1.5rem; }
.legal-doc h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: clamp(56px, 8vw, 96px) 0 1.25rem; padding-top: 24px; border-top: 1px solid var(--ink); scroll-margin-top: 90px; }
.legal-doc h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; margin: 2rem 0 0.5rem; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0 0 1rem; }
.legal-doc li { margin-bottom: 0.35rem; }
.legal-doc a { overflow-wrap: anywhere; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.legal-doc table { border-collapse: collapse; font-size: 0.88rem; line-height: 1.45; min-width: 560px; width: 100%; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal-doc th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ==========================================================================
   Pie
   ========================================================================== */

.site-footer {
  background: var(--night);
  color: var(--sand);
  font-size: 0.85rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-block: 56px 40px;
}
.site-footer .wordmark { color: var(--cream); font-size: 1.8rem; margin-bottom: 14px; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer .wordmark img { height: 96px; }
.site-footer p { margin: 0; max-width: 32ch; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.site-footer__base {
  border-top: 1px solid var(--line-dark);
}
.site-footer__base .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}
