/*
Theme Name: Galapajazz
Description: Tema propio del Festival Internacional de Jazz de Galapagar (Ayuntamiento de Galapagar, Concejalia de Cultura). Construido de cero, sin dependencias comerciales.
Version: 1.0
Author: Departamento de Informatica - Ayuntamiento de Galapagar
Text Domain: galapajazz
*/

:root {
  --gj-negro: #101416;
  --gj-pizarra: #181e21;
  --gj-pizarra-2: #222a2e;
  --gj-panel: #262f34;
  --gj-borde: #374248;
  --gj-texto: #e8ecee;
  --gj-texto-2: #a8b0b3;
  --gj-menta: #8cd1a8;
  --gj-menta-2: #6fc596;
  --gj-menta-osc: #3f7d5c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  /* Saxofon a color de la web original, fijo: se ve vivo en la apertura y
     queda como marca de agua tras las secciones al hacer scroll */
  background: var(--gj-pizarra) url('assets/bg-sax.jpg') center / cover no-repeat fixed;
  color: var(--gj-texto);
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
@media (max-width: 768px) {
  /* attachment fixed va mal en moviles: fondo normal */
  body { background-attachment: scroll; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gj-menta); text-decoration: none; }
a:hover { color: var(--gj-menta-2); }

/* ---------- Cabecera ---------- */
.gj-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 20, 22, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gj-borde);
}
.gj-header-inner {
  max-width: 1200px; margin: 0 auto; padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.gj-brand { display: flex; align-items: baseline; gap: .6rem; }
.gj-brand a {
  font-weight: 800; font-size: 1.5rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
}
.gj-brand a span { color: var(--gj-menta); }
.gj-brand small {
  color: var(--gj-texto-2); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase;
}
.gj-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.gj-nav a {
  color: var(--gj-texto); font-size: .85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.gj-nav a:hover { color: var(--gj-menta); }

/* ---------- Hero ---------- */
.gj-hero {
  min-height: 86vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 4rem 1.5rem;
  /* velo muy ligero: en la apertura el saxofon se ve A COLOR */
  background: linear-gradient(rgba(16, 20, 22, .30), rgba(16, 20, 22, .55));
  position: relative; overflow: hidden;
}
.gj-hero h1, .gj-hero-fechas, .gj-hero-sub, .gj-hero-edicion {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
}
.gj-hero-edicion {
  color: var(--gj-menta); font-weight: 700; letter-spacing: .35em;
  text-transform: uppercase; font-size: .95rem; margin-bottom: 1rem;
}
.gj-hero h1 {
  font-size: clamp(3rem, 10vw, 7rem); font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  color: #fff;
}
.gj-hero h1 span { color: var(--gj-menta); }
.gj-hero-fechas {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  color: var(--gj-texto-2); font-weight: 400; letter-spacing: .08em;
}
.gj-hero-sub { margin-top: .4rem; color: var(--gj-texto-2); font-size: .95rem; }
.gj-hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.gj-btn {
  display: inline-block; padding: .85rem 2.1rem; border-radius: 999px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
  transition: transform .15s ease, background .15s ease;
}
.gj-btn-primario { background: var(--gj-menta); color: var(--gj-negro); }
.gj-btn-primario:hover { background: var(--gj-menta-2); color: var(--gj-negro); transform: translateY(-2px); }
.gj-btn-borde { border: 2px solid var(--gj-menta); color: var(--gj-menta); }
.gj-btn-borde:hover { background: rgba(140, 209, 168, .12); transform: translateY(-2px); }

/* ---------- Secciones ---------- */
.gj-seccion {
  max-width: 1200px; margin: 0 auto; padding: 4.5rem 2rem;
  /* translucido: el saxofon del fondo asoma como marca de agua */
  background: rgba(22, 28, 31, .93);
}
.gj-seccion-titulo {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: #fff;
  margin-bottom: .6rem; text-align: center;
}
.gj-seccion-titulo::after {
  content: ""; display: block; width: 72px; height: 4px;
  background: var(--gj-menta); margin: .7rem auto 0; border-radius: 2px;
}
.gj-intro-texto {
  max-width: 850px; color: var(--gj-texto-2);
  margin: 1.4rem auto 0; text-align: center;
}
.gj-intro-texto p + p { margin-top: 1rem; }
.gj-intro-destacado {
  margin-top: 1.6rem; padding: 1.2rem 1.5rem;
  border-top: 4px solid var(--gj-menta);
  background: var(--gj-pizarra-2); border-radius: 10px; color: var(--gj-texto);
}

/* ---------- Programa por dias ---------- */
.gj-dia { margin-top: 3rem; }
.gj-dia-titulo {
  display: flex; align-items: center; gap: 1rem;
  font-size: 1.35rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gj-menta);
}
.gj-dia-titulo::after { content: ""; flex: 1; height: 1px; background: var(--gj-borde); }
.gj-cartelera { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.gj-card {
  background: var(--gj-panel); border: 1px solid var(--gj-borde);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.gj-card:hover { transform: translateY(-4px); border-color: var(--gj-menta-osc); }
.gj-card-foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gj-pizarra-2); }
.gj-card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gj-card:hover .gj-card-foto img { transform: scale(1.05); }
.gj-card-cuerpo { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.gj-card-hora {
  color: var(--gj-menta); font-weight: 800; font-size: .85rem; letter-spacing: .14em;
}
.gj-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.gj-card h3 a { color: #fff; }
.gj-card h3 a:hover { color: var(--gj-menta); }
.gj-card-lugar { color: var(--gj-texto-2); font-size: .85rem; }
.gj-card-precio {
  margin-top: auto; align-self: flex-start;
  background: rgba(140, 209, 168, .14); color: var(--gj-menta);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
}
.gj-interludio {
  margin-top: 1rem; display: flex; align-items: center; gap: .8rem;
  color: var(--gj-texto-2); font-size: .9rem;
  padding: .55rem 1rem; border: 1px dashed var(--gj-borde); border-radius: 10px;
}
.gj-interludio strong { color: var(--gj-texto); font-weight: 700; }
.gj-interludio .gj-nota-hora { color: var(--gj-menta); font-weight: 700; letter-spacing: .08em; }

/* ---------- Entradas / expo / contacto ---------- */
.gj-franja { background: rgba(30, 37, 41, .90); border-block: 1px solid var(--gj-borde); }
.gj-franja .gj-seccion { background: transparent; }
.gj-single { background: rgba(22, 28, 31, .93); }
.gj-entradas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.gj-entrada-caja {
  background: var(--gj-panel); border: 1px solid var(--gj-borde); border-radius: 14px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem;
}
.gj-entrada-caja h3 { color: #fff; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.gj-entrada-caja p { color: var(--gj-texto-2); font-size: .95rem; flex: 1; }
.gj-entrada-precio { font-size: 2rem; font-weight: 800; color: var(--gj-menta); }
.gj-expo {
  margin-top: 2.2rem; padding: 1.4rem 1.6rem; background: var(--gj-panel);
  border: 1px solid var(--gj-borde); border-radius: 14px; color: var(--gj-texto-2);
  max-width: 850px; margin-inline: auto; text-align: center;
}
.gj-expo strong { color: var(--gj-texto); }
.gj-contacto { text-align: center; }
.gj-contacto .gj-seccion-titulo::after { margin-inline: auto; }
.gj-contacto p { color: var(--gj-texto-2); margin-top: 1rem; }
.gj-contacto a.gj-mail { font-size: 1.3rem; font-weight: 700; }

/* ---------- Entrada individual (single) ---------- */
.gj-single { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 4.5rem; }
.gj-single-volver { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gj-single h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-top: 1rem; color: #fff; }
.gj-single-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.gj-single-meta span {
  background: var(--gj-panel); border: 1px solid var(--gj-borde); border-radius: 999px;
  padding: .35rem 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gj-menta);
}
.gj-single-foto { margin-top: 1.8rem; border-radius: 14px; overflow: hidden; }
.gj-single-contenido { margin-top: 1.8rem; color: var(--gj-texto); }
.gj-single-contenido p + p { margin-top: 1rem; }
.gj-single-contenido .gj-formacion {
  margin-top: 1.6rem; padding: 1.2rem 1.5rem; background: var(--gj-pizarra-2);
  border-left: 4px solid var(--gj-menta); border-radius: 0 10px 10px 0;
  color: var(--gj-texto-2); font-size: .95rem;
}
.gj-single-entradas { margin-top: 2rem; }

/* ---------- Pie ---------- */
.gj-footer { background: var(--gj-negro); border-top: 1px solid var(--gj-borde); margin-top: 2rem; }
.gj-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 2.4rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.gj-footer-marca { display: flex; align-items: center; gap: 1rem; }
.gj-footer-marca img { width: 36px; height: 66px; flex-shrink: 0; filter: brightness(0) invert(.92); }
.gj-footer-marca div { font-size: .85rem; color: var(--gj-texto-2); line-height: 1.5; }
.gj-footer-marca strong { color: var(--gj-texto); }
.gj-footer-nav { display: flex; gap: 1.4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* ---------- Animacion de aparicion ---------- */
.gj-aparece { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.gj-aparece.gj-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .gj-aparece { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .gj-header-inner { flex-direction: column; gap: .5rem; }
  .gj-nav { gap: 1rem; justify-content: center; }
  .gj-hero { min-height: 70vh; }
}
