/* Oihan Vega — estilos de la web pública */
/* Tipografías alojadas en la propia web (sin conexiones a Google) */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #161a23;
  --surface-2: #1d2230;
  --line: #262c3a;
  --text: #eef1f6;
  --muted: #a0a8b8;
  --accent: #1fb6ff;      /* azul eléctrico (gafas y luces del logo) */
  --accent-ink: #04121c;
  --hot: #ff2d7a;         /* rosa de escenario */
  --radius: 14px;
  --wrap: 1180px;
  --display: "Bebas Neue", Impact, "Arial Narrow Bold", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --c-diskofesta: #1fb6ff;
  --c-monologoa: #ffb020;
  --c-ipuin-dantza: #3ddc84;
  --c-belceblues: #ff6a3d;
  --c-ezkontzak: #ff6b9a;
  --c-beste: #a0a8b8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #7fd6ff; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5fcbff; color: var(--accent-ink); }
.btn-primary[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-light { background: #fff; color: #0b0d12; }
.btn-light:hover { background: #e9f7ff; color: #0b0d12; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 13, 18, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.logo-mark { width: 58px; height: auto; }
.brand-text { font-family: var(--display); font-size: 1.6rem; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font: 600 .9rem var(--body); cursor: pointer;
}
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a:hover { color: var(--accent); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 5px 11px; font-size: .8rem; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); }

.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
}
.nav-open .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav-open .lang-switch { margin-top: 16px; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; }
  .site-nav ul { display: flex; gap: 18px; }
}
@media (min-width: 1100px) and (max-width: 1220px) {
  .site-nav ul { gap: 13px; }
  .site-nav a { font-size: .9rem; }
}
/* Si hay muchas páginas y el menú no cabe, se usa el botón Menú también en escritorio (lo decide main.js) */
@media (min-width: 1100px) {
  .nav-collapsed .nav-toggle { display: inline-flex; }
  .nav-collapsed .site-nav { display: none; }
  .nav-collapsed.nav-open .site-nav { display: block; }
  .nav-collapsed.nav-open .site-nav ul { display: block; }
  .nav-collapsed.nav-open .site-nav { left: auto; width: 340px; border-left: 1px solid var(--line); }
}

/* ---------- Portada ---------- */
.home-hero { position: relative; background: var(--bg); }
.home-hero-media { position: relative; }
.home-hero-img { width: 100%; }
.home-hero-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
  background: linear-gradient(to bottom, rgba(11,13,18,0), var(--bg));
  pointer-events: none;
}
.home-hero-text { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 8px; background: var(--bg); }
.home-hero-text h1 { margin-bottom: .1em; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 .6em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #d3d8e2; max-width: 42em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
@media (min-width: 900px) {
  .home-hero-text { display: grid; grid-template-columns: 1fr auto; column-gap: 48px; align-items: end; padding-top: 8px; }
  .home-hero-text .kicker, .home-hero-text h1, .home-hero-text .lead { grid-column: 1; }
  .home-hero-text .actions { grid-column: 2; grid-row: 2 / span 2; margin: 0 0 1.4em; }
}

.stats { padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-alt); margin-top: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stats-grid div { display: flex; flex-direction: column; }
.stats-grid strong { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--text); }
.stats-grid span { color: var(--muted); font-size: .9rem; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.home-intro .prose { font-size: 1.15rem; max-width: 46em; }

/* Tarjetas de espectáculos */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  --c: var(--accent);
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--c); color: var(--text); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 3px solid var(--c); }
.card-title { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.card-text { color: var(--muted); font-size: .95rem; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 600; font-size: .9rem; margin-top: 6px; }


/* Vídeos */
.videos { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video { margin: 0; }
.video figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.yt, .video iframe {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 45, 122, .92); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.yt:not(.has-thumb) { background: radial-gradient(circle at 30% 20%, #1d2a3a, #000); }
.yt-note { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: .78rem; line-height: 1.35; color: var(--muted); text-align: center; }
.yt.has-thumb .yt-note { display: none; }
.yt-static { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #1d2a3a, #000); color: var(--text); text-decoration: none; }
.yt-play .icon { width: 28px; height: 28px; margin-left: 3px; }

/* ---------- Cabecera de sección ---------- */
.page-hero { --c: var(--accent); padding: 56px 0 40px; background:
  radial-gradient(800px 360px at 85% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--bg); }
.page-hero .kicker { color: var(--c); }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
.page-hero-img { margin: 0; }
.page-hero-img img {
  width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px var(--line);
}
@media (min-width: 900px) {
  .page-hero { padding: 72px 0 56px; }
  .page-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .page-ipuin-dantza .page-hero-img img, .page-kontaktua .page-hero-img img { max-height: 520px; width: auto; margin-left: auto; }
}

/* ---------- Texto editable ---------- */
.prose { max-width: 46em; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 1.2em; }
.prose h3 { margin: 1.8em 0 .6em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: 10px; margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); color: #d3d8e2; font-size: 1.1rem; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe { max-width: 100%; border-radius: 10px; }
.prose ul.features {
  list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 10px;
}
.prose ul.features li {
  margin: 0; padding: 14px 16px 14px 46px; position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; font-weight: 500;
}
.prose ul.features li::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c, var(--accent)); box-shadow: 0 0 14px var(--c, var(--accent));
}
.page-diskofesta .prose, .page-diskofesta .features { --c: var(--c-diskofesta); }
.page-ezkontzak .prose { --c: var(--c-ezkontzak); }
.page-monologoa .prose { --c: var(--c-monologoa); }
.page-ipuin-dantza .prose { --c: var(--c-ipuin-dantza); }
.page-belceblues .prose { --c: var(--c-belceblues); }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-row .btn { color: var(--text); }

/* ---------- Agenda ---------- */
.events { display: grid; gap: 12px; }
.event {
  --c: var(--accent);
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: var(--radius); padding: 16px;
}
.event[hidden] { display: none; }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 10px; padding: 8px 4px; text-align: center; line-height: 1.05;
}
.event-date .d { font-family: var(--display); font-size: 2.3rem; }
.event-date .m { text-transform: uppercase; font-weight: 700; letter-spacing: .1em; font-size: .78rem; color: var(--c); }
.event-date .w { font-size: .7rem; color: var(--muted); margin-top: 4px; }
.event h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; color: var(--muted); font-size: .92rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-info { margin: 10px 0 0; font-size: .95rem; color: #d3d8e2; }
.event-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 8px; text-decoration: none; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters a {
  --c: var(--accent);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text);
  text-decoration: none; font-weight: 600; font-size: .9rem;
}
.filters a[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #0b0d12; }
.agenda-note { margin-top: 32px; }
.past { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.past summary { cursor: pointer; font-weight: 700; }
.past-list { list-style: none; padding: 0; color: var(--muted); }
.past-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.past-list strong { color: var(--text); font-weight: 600; }

/* ---------- Galería y visor ---------- */
.gallery { columns: 2 160px; column-gap: 12px; }
@media (min-width: 900px) { .gallery { columns: 4 200px; } }
.gallery-item { display: block; margin: 0 0 12px; break-inside: avoid; border-radius: 10px; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform .3s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.03); opacity: .9; }

/* ---------- Galería: álbumes ---------- */
.section-tight { padding-bottom: 0; }
.albums { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .albums { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .albums { grid-template-columns: repeat(3, 1fr); } }
.album-card {
  --c: var(--accent); display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s;
}
.album-card:hover { transform: translateY(-3px); border-color: var(--c); color: var(--text); }
.album-cover { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-cover-video { background: radial-gradient(circle at 30% 20%, #1d2a3a, #000); }
.album-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-top: 3px solid var(--c); }
.album-title { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.album-meta { color: var(--muted); font-size: .9rem; }
.album-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .album-grid { grid-template-columns: repeat(4, 1fr); } }
.album-item { margin: 0; min-width: 0; }
.album-item .gallery-item { margin: 0; aspect-ratio: 3 / 2; }
.album-item .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.album-item .yt, .album-item iframe { aspect-ratio: 3 / 2; border-radius: 10px; }
.album-item .yt-play { width: 52px; height: 52px; }
.album-item .yt-note { font-size: .7rem; }
.album-item figcaption { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.album-back { margin: 32px 0 0; }
.page-hero .kicker a { color: inherit; text-decoration: none; }
.page-hero .kicker a:hover { text-decoration: underline; }
@media (max-width: 520px) { .album-item .yt-note { display: none; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,6,9,.94); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1100px); max-height: 88vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 12px; right: 16px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- Llamada a contratar ---------- */
.cta { padding: 56px 0; background:
  linear-gradient(120deg, #0d5f8a 0%, #1fb6ff 55%, #ff2d7a 130%); color: #fff; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta h2 { margin: 0 0 .2em; }
.cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn-primary { background: #0b0d12; color: #fff; }
.cta .btn-primary:hover { background: #000; color: #fff; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; scroll-margin-top: 90px; }
@media (min-width: 720px) { .contact-form { padding: 32px; } }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: .88rem; font-weight: 600; color: #d3d8e2; padding: 0; margin-bottom: 6px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=date], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color-scheme: dark;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,182,255,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .92rem; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 4px 0 20px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.notice-ok { border-color: #3ddc84; background: rgba(61,220,132,.1); }
.notice-error { border-color: var(--hot); background: rgba(255,45,122,.1); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-list a:hover { border-color: var(--accent); color: var(--text); }
.contact-list .icon { width: 22px; height: 22px; color: var(--accent); }
.contact-list small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social .icon { width: 20px; height: 20px; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; background: #07080c; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plain a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.plain a:hover { color: var(--accent); }
.footer-nav { grid-template-columns: 1fr 1fr; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; }
/* Pie: enlaces legales */
.legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--accent); }

/* Páginas legales */
.page-hero-legal .page-hero-text { max-width: 760px; }
.page-hero-legal + .section { padding-top: 16px; }
.prose-legal { max-width: 820px; }
.prose-legal h2 { font-size: 1.9rem; margin-top: 1.6em; }
.legal-nav { max-width: 820px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-nav a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.legal-nav a:hover, .legal-nav a[aria-current] { color: var(--text); border-color: var(--accent); }
.table-scroll { overflow-x: auto; margin: 1.2em 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table-scroll th { color: var(--text); background: var(--surface); }

/* Formulario: información de protección de datos */
.dp-box { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); font-size: .8rem; color: var(--muted); }
.dp-box h3 { margin: 0 0 8px; font-family: var(--body); font-size: .85rem; font-weight: 600; color: var(--text); letter-spacing: 0; text-transform: none; }
.dp-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 8px; }
.dp-box dt { font-weight: 600; color: var(--text); }
.dp-box dd { margin: 0; }
.dp-box p { margin: 0; }
.dp-box a, .check a { color: var(--accent); }
@media (max-width: 520px) { .dp-box dl { grid-template-columns: 1fr; } .dp-box dd { margin-bottom: 6px; } }

/* Aviso de cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-inner { pointer-events: auto; width: 100%; max-width: 860px; display: flex; gap: 16px 24px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22,26,35,.97); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.consent h2 { margin: 0 0 4px; font-family: var(--body); font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.consent p { margin: 0; font-size: .86rem; color: var(--muted); }
.consent p a { color: var(--accent); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { min-width: 110px; justify-content: center; }
@media (max-width: 680px) {
  .consent { left: 8px; right: 8px; bottom: 8px; }
  .consent-inner { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; }
}

.credit a { color: var(--text); font-weight: 600; text-decoration: none; }
.credit a:hover { color: var(--accent); }

/* Colores por categoría (al final para que tengan prioridad) */
.cat-diskofesta { --c: var(--c-diskofesta); }
.cat-monologoa { --c: var(--c-monologoa); }
.cat-ipuin-dantza { --c: var(--c-ipuin-dantza); }
.cat-belceblues { --c: var(--c-belceblues); }
.cat-ezkontzak { --c: var(--c-ezkontzak); }
.cat-beste { --c: var(--c-beste); }
.cat-galeria { --c: var(--hot); }

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

/* =========================================================
   Movimiento: luces de escenario, entrada de portada,
   cinta de fechas, ecualizador y apariciones al hacer scroll.
   Todo se desactiva con prefers-reduced-motion.
   ========================================================= */

/* Cabecera que se compacta al bajar */
.site-header { transition: background-color .3s, box-shadow .3s; }
.header-inner { transition: min-height .3s; }
.is-scrolled .site-header { background: rgba(7, 8, 12, .94); box-shadow: 0 10px 30px -12px rgba(0,0,0,.8); }
.is-scrolled .header-inner { min-height: 58px; }
.logo-mark { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

/* Subrayado animado del menú */
.site-nav ul a { position: relative; }
@media (min-width: 1100px) {
  .site-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Ecualizador junto al lema */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; margin-right: 10px; vertical-align: -1px; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.45s; animation-duration: .9s; }
.eq i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.3s; }
.eq i:nth-child(4) { animation-delay: -.7s; animation-duration: .8s; }
.eq i:nth-child(5) { animation-delay: -.3s; animation-duration: 1.05s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* Portada: entrada escalonada y zoom lento de la foto */
.home-hero-media { overflow: hidden; }
.home-hero-img { animation: heroZoom 9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.home-hero-text > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.home-hero-text > :nth-child(1) { animation-delay: .15s; }
.home-hero-text > :nth-child(2) { animation-delay: .3s; }
.home-hero-text > :nth-child(3) { animation-delay: .45s; }
.home-hero-text > :nth-child(4) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Título con brillo metálico, como el logo */
.hero-title {
  background: linear-gradient(100deg, #eef1f6 0%, #eef1f6 40%, #ffffff 48%, #8fd9ff 52%, #eef1f6 60%, #eef1f6 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .8s .3s cubic-bezier(.2,.8,.2,1) both, sheen 6s 1.2s ease-in-out infinite;
}
@keyframes sheen { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }

/* Cinta de próximas fechas */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: #07080c; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-list li { display: flex; align-items: center; }
.ticker-list li::after { content: "✦"; color: var(--hot); margin: 0 28px; font-size: .8rem; }
.ticker-list a { color: var(--text); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 10px; }
.ticker-list strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.ticker-list span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.ticker-list a:hover strong { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Haces de luz de escenario en las cabeceras de sección */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.beams span {
  position: absolute; top: -40%; width: 46vmax; height: 140%;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 50%, transparent), transparent 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0; filter: blur(8px); opacity: .8; mix-blend-mode: screen;
  animation: sweep 9s ease-in-out infinite alternate;
}
.beams span:nth-child(1) { left: 52%; animation-duration: 8s; }
.beams span:nth-child(2) { left: 68%; animation-duration: 11s; animation-delay: -4s; background: linear-gradient(to bottom, rgba(255,45,122,.28), transparent 75%); }
.beams span:nth-child(3) { left: 82%; animation-duration: 9.5s; animation-delay: -2s; }
@keyframes sweep { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
.page-hero-text > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.page-hero-text > :nth-child(2) { animation-delay: .1s; }
.page-hero-text > :nth-child(3) { animation-delay: .2s; }
.page-hero-img { animation: rise .9s .15s cubic-bezier(.2,.8,.2,1) both; }
.page-hero-img img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.page-hero-img:hover img { transform: scale(1.02) rotate(-.6deg); }

/* Tarjetas: destello al pasar el ratón */
.card { position: relative; }
.card-img { position: relative; }
.card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .7s;
}
.card:hover .card-img::after { transform: translateX(120%); }
.card:hover { box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 60%, transparent); }

/* Eventos y botones */
.event { transition: transform .2s, border-color .2s, box-shadow .2s; }
.event:hover { transform: translateX(4px); box-shadow: -6px 0 24px -10px var(--c); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(31,182,255,.18), 0 10px 30px -8px rgba(31,182,255,.7); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon, .more:hover .icon, .card:hover .card-more .icon { transform: translateX(3px); }
.yt-play { transition: transform .2s; animation: pulse 2.4s ease-in-out infinite; }
.yt:hover .yt-play { transform: scale(1.1); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,122,.55), 0 8px 30px rgba(0,0,0,.4); } 60% { box-shadow: 0 0 0 16px rgba(255,45,122,0), 0 8px 30px rgba(0,0,0,.4); } }

/* Llamada a contratar con degradado en movimiento */
.cta { background-size: 200% 200%; animation: cta 14s ease-in-out infinite alternate; }
@keyframes cta { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Apariciones al hacer scroll (solo para lo que está por debajo de la pantalla al cargar) */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }

/* Cifras */
.stats-grid strong { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .eq i, .home-hero-img, .home-hero-text > *, .hero-title, .ticker-track, .beams span,
  .page-hero-text > *, .page-hero-img, .yt-play, .cta { animation: none !important; }
  .hero-title { color: var(--text); background: none; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker-list[aria-hidden] { display: none; }
  .ticker-list { flex-wrap: wrap; row-gap: 8px; padding: 0 16px; }
  .reveal { opacity: 1; transform: none; }
}

/* Color destacado elegido en el admin para una página: manda sobre el color de su sección */
.has-color .prose, .has-color .page-hero, .has-color .card-more { --c: var(--accent); }
.has-color .btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.has-color .cta { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 78%, #000) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 75%, #fff) 130%); background-size: 200% 200%; color: var(--accent-ink); }
.has-color .cta p { color: var(--accent-ink); opacity: .9; }
