/* Tema base de la plataforma: CSS portado de puedeser ("Filo de acero"),
   con todos los colores y tipografías como variables (tokens). */
:root {
  /* Tokens (--bg, --accent, --display, …) are emitted inline by layout.html
     from theme.json + the band's overrides. These are layout constants. */
  --wrap: 1280px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text); opacity: .85; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 18px; }
.skip:focus { top: 12px; }

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

/* Tipografía */
.eyebrow { margin: 0; font: 800 13px/1 var(--body); font-stretch: 75%; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow.muted { color: var(--muted); }
.h-display { margin: 0; font: 900 clamp(72px, 10vw, 160px)/.85 var(--display); text-transform: uppercase; }
.h2 { margin: 0; font: 900 clamp(44px, 6vw, 88px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.h3 { margin: 0; font: 800 clamp(22px, 2.4vw, 30px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.label { font: 800 12px/1 var(--body); font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Botones con corte diagonal */
.btn { border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border: 0; cursor: pointer; font: 800 15px/1 var(--body); font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); transition: background .15s, color .15s; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); opacity: 1; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: var(--text-2); color: var(--bg); opacity: 1; }
.btn-dark { background: var(--surface-2); color: var(--text); }
.btn-dark:hover { background: var(--line); }
.btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-block; padding: 14px 0; font: 800 13px/1 var(--body); font-stretch: 75%; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); }
.link-arrow:hover { color: var(--text); }

.badge { display: inline-block; font: 800 11px/1 var(--body); font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; padding: 8px 12px; border: 1px solid currentColor; white-space: nowrap; }
.tone-accent { color: var(--accent-text); }
.tone-warn { color: var(--warn); }
.tone-steel { color: var(--text-2); }
.tone-off { color: var(--muted); }

/* Placeholder rayado para imágenes faltantes */
.hatch { background-color: var(--hatch); background-image: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 14px); }

/* Header */
.site-header { position: relative; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 52px; width: auto; }
.brand-name { display: inline-block; font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.nav { display: flex; gap: 28px; }
.nav a { font: 700 14px/1 var(--body); font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); padding: 14px 4px; }
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.social { display: flex; gap: 18px; }
.social a { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 0; }
.social a:hover { color: var(--text); }
.menu-btn { display: none; width: 48px; height: 48px; background: transparent; border: 0; color: var(--text); align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* Hero */
.hero { position: relative; height: min(760px, 88vh); min-height: 520px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), 0 100%); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .6)); }
.hero-inner { position: relative; height: 100%; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.hero-logo { width: min(960px, 92%); height: auto; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .6)); }
.hero-tagline { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Franja del próximo show */
.strip-wrap { position: relative; z-index: 1; margin-top: -36px; }
.strip { background: var(--accent); color: var(--on-accent); clip-path: polygon(24px 0, 100% 0, calc(100% - 24px) 100%, 0 100%); padding: 22px 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.strip-main { display: flex; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.strip .label { opacity: .85; }
.strip-title { font: 900 clamp(26px, 3vw, 36px)/1 var(--display); text-transform: uppercase; }
.strip a { color: var(--on-accent); font: 800 15px/1 var(--body); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; padding: 14px 0; border-bottom: 2px solid currentColor; }

/* Secciones */
.section { padding-top: 110px; padding-bottom: 40px; }
.section:last-of-type { padding-bottom: 120px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }

/* Lista compacta de shows */
.show-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.show-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; align-items: center; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.show-date { display: flex; align-items: baseline; gap: 10px; }
.show-day { font: 900 56px/1 var(--display); }
.show-month { color: var(--muted); }
.show-venue { font-size: 15px; color: var(--muted); margin-top: 6px; }
.show-row .btn { min-width: 160px; }

/* Tarjetas de shows (página Fechas) */
.page-hero { background: var(--surface); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); }
.page-hero .wrap { padding-top: 80px; padding-bottom: 120px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-hero .eyebrow { margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab { border-radius: var(--radius); min-height: 48px; padding: 0 28px; border: 0; cursor: pointer; background: var(--surface-2); color: var(--text-2); font: 800 15px/1 var(--body); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
.tab[aria-selected='true'], .tab[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }
.show-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.show-card { border-radius: var(--radius); display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 28px 36px; background: var(--surface); }
.show-card .when { display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-right: 24px; }
.show-card .when .big { font: 900 72px/.85 var(--display); }
.show-card .what { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.show-card .what h2 { margin: 0; font: 800 34px/1 var(--display); text-transform: uppercase; }
.show-card .venue { font-size: 17px; font-weight: 600; }
.show-card .meta { font-size: 15px; color: var(--muted); }
.show-card .act { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.show-card .act .btn { min-width: 190px; }
.past-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.past-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.past-row .d, .past-row .c { font: 800 22px/1 var(--display); color: var(--text-2); }
.past-row .c { text-transform: uppercase; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }

/* Música */
.release { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; }
.cover { flex: 1 1 380px; max-width: 520px; aspect-ratio: 1 / 1; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.release-body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.release-meta { margin: 0; color: var(--muted); }
.embed { width: 100%; border: 0; display: block; background: var(--surface); }
.tracklist { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.track > a.track-link { grid-column: 1 / 3; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; }
.track-n { font: 800 18px/1 var(--display); color: var(--muted); }
.track-title { font-size: 17px; font-weight: 600; }
.track a.track-link:hover .track-title { text-decoration: underline; }
.track-dur { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.track .lyrics-link { font: 800 11px/1 var(--body); font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); padding: 14px 0; }
.release-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.release-card { display: flex; flex-direction: column; gap: 14px; }
.release-card .cover { max-width: none; flex: none; width: 100%; }
.release-card:hover .h3 { text-decoration: underline; }
.desc { max-width: 680px; color: var(--text-2); white-space: pre-line; margin: 0; }

/* Canción y letra */
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 40px 0 48px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.song-layout { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; padding-bottom: 120px; }
.song-aside { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.song-aside .cover { flex: none; max-width: none; width: 100%; }
.song-aside .tracklist a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 48px; color: var(--text-2); }
.song-aside .tracklist li { border-bottom: 1px solid var(--line); }
.song-aside .tracklist a[aria-current='page'] { color: var(--text); font-weight: 700; }
.song-aside .tracklist a[aria-current='page'] .track-n { color: var(--accent-text); }
.song-main { flex: 999 1 560px; min-width: 0; }
.song-main h1 { margin: 16px 0 0; font: 900 clamp(56px, 8vw, 128px)/.85 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.song-bar { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); align-items: center; justify-content: space-between; }
.song-bar strong { color: var(--text); }
.song-bar .credits { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.size-btns { display: flex; gap: 8px; }
.size-btns button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; font: 800 16px/1 var(--body); }
.size-btns button:hover { border-color: var(--text); }
.lyrics { --lyrics-size: 20px; display: flex; flex-direction: column; gap: 44px; margin-top: 48px; }
.stanza { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
.stanza .label { color: var(--muted); padding-top: 8px; font-size: 11px; }
.stanza p { margin: 0; font-size: var(--lyrics-size); line-height: 1.6; color: var(--text-2); }
.stanza.chorus .label { color: var(--accent-text); }
.stanza.chorus p { font-size: calc(var(--lyrics-size) * 1.15); font-weight: 700; color: var(--text); }
.no-lyrics { margin-top: 48px; color: var(--muted); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 80px; }
.pager a { border-radius: var(--radius); background: var(--surface); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.pager a:hover { background: var(--surface-2); }
.pager .next { text-align: right; grid-column: 2; }
.pager .h3 { font-size: 26px; }
audio { width: 100%; }

/* Galería */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.chips .tab { min-height: 44px; padding: 0 22px; font-size: 13px; }
.masonry { columns: 3 300px; column-gap: 12px; }
.tile { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 12px; cursor: zoom-in; break-inside: avoid; position: relative; background: var(--hatch); }
.tile img { width: 100%; height: auto; }
.tile:hover img { opacity: .88; }
.tile:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile[hidden] { display: none; }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; }
.preview-grid a { position: relative; overflow: hidden; display: block; }
.preview-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.preview-grid a:hover img { transform: scale(1.04); }
.preview-grid .big { grid-column: span 2; grid-row: span 2; }
.preview-grid .tall { grid-row: span 2; }
.preview-grid .wide { grid-column: span 2; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg-deep); color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; gap: 16px; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 0 24px 24px; }
.lb-figure { flex: 1; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; }
.lb-figure figcaption { font-size: 15px; color: var(--text-2); text-align: center; }
.icon-btn { width: 56px; height: 56px; flex: none; background: var(--surface-2); border: 0; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--line); }
.icon-btn.outline { width: 48px; height: 48px; background: transparent; border: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-top { padding-top: 64px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { width: 280px; height: auto; }
.footer-brand .brand-name { font-size: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .label { color: var(--muted); }
.footer-col .mail { font-size: 18px; font-weight: 600; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 44px; }
  .menu-btn { display: flex; }
  .site-header .social { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page'] { box-shadow: none; color: var(--accent-text); }
  .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; min-height: 52px; }
  .strip-wrap { margin-top: -20px; }
  .strip { padding: 16px 28px; flex-direction: column; align-items: flex-start; }
  .strip-main { flex-direction: column; gap: 6px; }
  .section { padding-top: 64px; }
  .show-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; }
  .show-date { flex-direction: column; gap: 4px; }
  .show-day { font-size: 38px; }
  .show-row .btn { display: none; }
  .show-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .show-card .when { flex-direction: row; align-items: baseline; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .show-card .when .big { font-size: 48px; }
  .show-card .act { flex-direction: row; align-items: center; justify-content: space-between; }
  .show-card .act .btn { min-width: 0; }
  .past-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .past-row .v { grid-column: 1; }
  .past-row .c { grid-column: 1; }
  .past-row a { grid-column: 2; grid-row: 1 / span 3; }
  .release { gap: 24px; }
  .track { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .track > a.track-link { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .track-dur { display: none; }
  .song-layout { gap: 40px; }
  .song-aside { max-width: none; order: 2; }
  .stanza { grid-template-columns: 1fr; gap: 8px; }
  .stanza .label { padding-top: 0; }
  .lyrics { --lyrics-size: 18px; }
  .pager .h3 { font-size: 20px; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .preview-grid .wide { grid-column: span 2; }
  .preview-grid > :nth-child(n + 6) { display: none; }
  .lb-stage { gap: 8px; padding: 0 8px 16px; }
  .icon-btn { width: 44px; height: 44px; }
  .footer-brand img { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Agregados de la plataforma ---- */
.hero-name { margin: 0; font: 900 clamp(64px, 12vw, 180px)/.85 var(--display); text-transform: uppercase; text-align: center; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); overflow-wrap: anywhere; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero-tagline { color: #f2f2f2; }
.preview-banner { position: sticky; top: 0; z-index: 50; background: var(--warn); color: #111; text-align: center; padding: 8px 16px; font: 700 14px/1.3 var(--body); }
.page-body { padding-top: 48px; padding-bottom: 120px; }
.page-end { padding-bottom: 120px; }
.gallery-head { padding-top: 72px; padding-bottom: 32px; }
.notfound { padding: 120px 32px 160px; text-align: center; }
.link-arrow.underline { border-bottom: 1px solid var(--line); }
.release-grid { list-style: none; margin: 0; padding: 0; }
.cover, .tile, .preview-grid a, .yt-lite { border-radius: var(--radius); }

/* Fachada liviana de YouTube */
.yt-lite { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.yt-lite:hover img { opacity: .85; }
.yt-lite .yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 40px 24px; }
.video-card { display: flex; flex-direction: column; gap: 14px; }
.video-card p { margin: 0; }
.video-featured { max-width: 960px; }
.video-inline { margin-top: 8px; }
@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; }
}
