/* =========================================================
   DOINK! — Punk Rock de Mierda
   Hoja de estilos principal
   ========================================================= */

:root {
  --black: #000;
  --paper: #f7f7f7;
  --white: #fff;
  --ink: #444;
  --strong: #0d0d0d;
  --red: #e2022b;
  --orange: #f76c22;
  --muted: #9a9a9a;
  --line-dark: rgba(255, 255, 255, .12);

  --f-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Roboto", Arial, sans-serif;

  --header-h: 64px;
  --wrap: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 400 1rem/1.65 var(--f-body);
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--strong);
}

::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; background: var(--red); color: var(--white);
  font: 700 .9rem var(--f-head); text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-wide { --wrap: 1280px; }
.wrap-narrow { --wrap: 700px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem;
  background: var(--red); color: var(--white);
  border: 2px solid var(--red); border-radius: 0;
  font: 700 .95rem/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: transparent; color: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-block { width: 100%; }

.btn-dark { background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: var(--red); border-color: var(--red); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .25s;
}
.site-header.is-solid,
.nav-open .site-header { background: var(--black); }

.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  width: min(100% - 2.5rem, 1280px); height: var(--header-h); margin-inline: auto;
}

.brand { display: block; flex: none; }
.brand img { width: 120px; }

.site-nav { margin-left: auto; }

.nav-menu {
  display: flex; align-items: center; gap: 1.75rem;
  margin: 0; padding: 0; list-style: none;
}
.nav-menu a {
  display: block; padding: .5rem 0;
  border-bottom: 2px solid transparent;
  color: var(--white); text-decoration: none;
  font: 700 .9rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { border-color: var(--red); }

.nav-social { display: none; }

.header-social { display: flex; gap: .25rem; }

.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--white);
}
.icon-link:hover { color: var(--red); }
.icon-link svg { width: 20px; height: 20px; fill: currentColor; }
.icon-link svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.icon-link svg.stroke .dot { fill: currentColor; stroke: none; }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--white); cursor: pointer;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: currentColor; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle .bars::after { content: ""; left: 0; top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); background: var(--white); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

@media (max-width: 760px) {
  .brand img { width: 104px; }
  .header-social { display: none; }
  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 1.25rem;
    padding: calc(var(--header-h) + env(safe-area-inset-top)) 1.5rem 2rem;
    background: var(--black);
    visibility: hidden; opacity: 0;
    transition: opacity .2s, visibility .2s;
  }
  .nav-open .nav-menu { visibility: visible; opacity: 1; }
  .nav-menu a { font-size: 2rem; letter-spacing: .08em; }
  .nav-social { display: flex; gap: .5rem; margin-top: 1.5rem; }
  .nav-social a { border: 0; padding: 0; }
}

/* ---------- Hero (home) ---------- */

.hero { position: relative; background: var(--orange); color: var(--white); }

.hero::before {
  /* sombra superior para que el logo del header se lea sobre la imagen */
  content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 140px;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent);
  pointer-events: none;
}

.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.hero-content {
  position: relative; z-index: 1;
  padding: 1.75rem 1.25rem 2.75rem;
  background: var(--black); text-align: center;
}

.hero-tag {
  margin: 0 0 1.25rem;
  font: 700 clamp(1.6rem, 6vw, 3.25rem)/1 var(--f-head);
  letter-spacing: .06em; text-transform: uppercase;
}

@media (min-width: 761px) {
  .hero { display: grid; min-height: 100vh; min-height: 100svh; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { height: 100%; aspect-ratio: auto; }
  .hero-content {
    align-self: end;
    padding: 10rem 2rem 3.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  }
}

/* ---------- Secciones ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section-dark { background: var(--black); color: #cfcfcf; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-light { background: var(--paper); }

.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400; letter-spacing: .06em; text-align: center;
}
.section-title::after {
  content: ""; display: block;
  width: 48px; height: 4px; margin: .9rem auto 0;
  background: var(--red);
}
.section-title.is-left { text-align: left; }
.section-title.is-left::after { margin-left: 0; }

.section-sub {
  max-width: 60ch; margin: 1rem auto 2.5rem;
  text-align: center; font-size: 1.05rem;
}

/* ---------- Video de YouTube ---------- */

.yt {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; background: #1a1a1a;
}
.yt > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85; transition: opacity .2s;
}
.yt:hover > img { opacity: 1; }

.yt-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
}
.yt-play .icon {
  display: grid; place-items: center;
  width: clamp(64px, 10vw, 104px); aspect-ratio: 1;
  border-radius: 50%; background: var(--red);
  transition: transform .15s;
}
.yt-play:hover .icon,
.yt-play:focus-visible .icon { transform: scale(1.08); }
.yt-play svg { width: 45%; height: 45%; margin-left: 8%; fill: var(--white); }

.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.yt-soon {
  position: absolute; inset: 0; display: none; place-items: center;
  color: var(--white); font: 700 clamp(1.25rem, 3vw, 2rem) var(--f-head);
  letter-spacing: .08em; text-transform: uppercase;
}
.yt.is-missing .yt-soon { display: grid; }

.yt-link { margin: 1rem 0 0; text-align: center; }
.yt-link a { color: var(--white); text-underline-offset: 4px; }
.yt-link a:hover { color: var(--red); }

/* ---------- Discografía ---------- */

.releases {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin: 2.75rem 0 0; padding: 0; list-style: none;
}

.release-card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1; background: var(--orange);
  color: var(--white); text-decoration: none;
}
.release-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.release-card::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .4); transition: background-color .25s;
}
.release-card:hover img { transform: scale(1.04); }
.release-card:hover::after,
.release-card:focus-visible::after { background: rgba(226, 2, 43, .6); }

.release-card-body {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
}
.release-card-title {
  font: 700 clamp(1.6rem, 3.5vw, 2.4rem)/1.05 var(--f-head);
  letter-spacing: .04em; text-transform: uppercase;
}
.release-card-meta { margin-top: .5rem; opacity: .9; }

/* ---------- La banda ---------- */

.members {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.25rem 1.5rem;
  margin: 3rem 0 3.5rem; padding: 0; list-style: none; text-align: center;
}
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #ddd; }
.member h3 { margin-top: 1rem; font-size: 1.3rem; }
.member p { margin: .2rem 0 0; color: var(--red); font-weight: 700; }

@media (max-width: 760px) {
  .members { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .member h3 { font-size: 1.1rem; }
}

.bio { max-width: 68ch; margin-inline: auto; font-size: 1.075rem; }
.bio p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */

.contact-form { margin-top: 2.5rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block; margin-bottom: .4rem;
  color: var(--white); font: 700 .95rem var(--f-head); letter-spacing: .04em;
}
.field input,
.field textarea {
  width: 100%; padding: .9rem 1rem;
  background: #111; color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 0;
  font: inherit;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  margin: 1.25rem 0 0; padding: .9rem 1rem;
  border-left: 3px solid; font-weight: 700;
}
.form-status[data-state="ok"] { border-color: #6dab3c; color: #b7e39a; background: rgba(109, 171, 60, .12); }
.form-status[data-state="error"] { border-color: var(--red); color: #ff9aac; background: rgba(226, 2, 43, .12); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--black); border-top: 1px solid var(--line-dark);
  color: var(--muted); font-size: .9rem; text-align: center;
}
.footer-social { display: flex; justify-content: center; gap: .25rem; margin-bottom: .75rem; }
.site-footer p { margin: 0; }

/* =========================================================
   Páginas de lanzamiento
   ========================================================= */

.release-hero {
  position: relative; overflow: hidden;
  display: grid; place-items: center; min-height: clamp(340px, 62vh, 580px);
  padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
  color: var(--white); text-align: center;
}
.release-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.release-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.release-hero-inner { position: relative; z-index: 1; }
.release-hero h1 { color: var(--white); font-size: clamp(2.5rem, 9vw, 5.75rem); }
.release-kind { margin: .75rem 0 0; font-size: 1.15rem; }

.release-main { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--paper); }

.release-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 900px) { .release-layout { grid-template-columns: 1fr; } }

.release-block-title { margin: 2.5rem 0 1rem; font-size: 1.15rem; }

.listen-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.listen-links .btn { min-height: 44px; padding: .7rem 1.2rem; font-size: .85rem; }

.spotify-embed iframe { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; }

@media (min-width: 901px) {
  .release-info { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.release-info .cover-link { display: block; max-width: 420px; }
.release-info .cover { width: 100%; aspect-ratio: 1; object-fit: cover; }
.release-info h2 { margin: 1.5rem 0 1rem; font-size: 2rem; }

.release-meta {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem;
  margin: 0 0 1.5rem; padding: 1rem 0;
  border-block: 1px solid rgba(0, 0, 0, .1);
}
.release-meta dt { color: var(--strong); font-weight: 700; }
.release-meta dd { margin: 0; }
.release-meta a { color: var(--strong); text-underline-offset: 3px; }
.release-meta a:hover { color: var(--red); }

/* Navegación anterior / siguiente */

.release-pager {
  display: grid; grid-template-columns: 1fr auto 1fr;
  background: var(--black); border-top: 1px solid var(--line-dark);
}
.pager-link {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 180px; padding: 2rem clamp(1.25rem, 4vw, 3rem);
  color: var(--white); text-decoration: none;
}
.pager-link img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .3; transition: opacity .25s;
}
.pager-link:hover img { opacity: .5; }
.pager-link span { position: relative; }
.pager-label { color: #bbb; font-size: .95rem; }
.pager-title {
  font: 700 clamp(1.3rem, 3vw, 1.8rem)/1.1 var(--f-head);
  letter-spacing: .04em; text-transform: uppercase;
}
.pager-next { align-items: flex-end; text-align: right; }
.pager-index {
  display: grid; place-items: center; padding: 1.25rem 1.75rem;
  border-inline: 1px solid var(--line-dark);
  color: var(--white); text-decoration: none;
  font: 700 .9rem var(--f-head); letter-spacing: .1em; text-transform: uppercase;
}
.pager-index:hover { color: var(--red); }

@media (max-width: 640px) {
  .release-pager { grid-template-columns: 1fr; }
  .pager-index { order: 3; border: 0; border-top: 1px solid var(--line-dark); }
  .pager-link { min-height: 130px; }
  .pager-empty { display: none; }
}

/* =========================================================
   Reproductor de música
   ========================================================= */

.player { padding: clamp(1.25rem, 3vw, 2rem); background: var(--black); color: var(--white); }

.player-now { display: flex; align-items: center; gap: 1rem; }
.player-art { flex: none; width: 88px; height: 88px; object-fit: cover; background: #222; }
.player-album { margin: 0; color: #aaa; font-size: .95rem; }
.player-title {
  margin: .15rem 0 0;
  font: 700 clamp(1.25rem, 3vw, 1.6rem)/1.15 var(--f-head);
  letter-spacing: .03em; text-transform: uppercase;
}

.player-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin: 1.5rem 0 1rem; }

.pl-btn {
  display: grid; place-items: center; width: 48px; height: 48px;
  background: none; border: 0; border-radius: 50%;
  color: var(--white); cursor: pointer; transition: color .15s, background-color .15s;
}
.pl-btn:hover { color: var(--red); }
.pl-btn svg { width: 24px; height: 24px; fill: currentColor; }

.pl-play { width: 68px; height: 68px; background: var(--red); }
.pl-play:hover { background: var(--white); color: var(--red); }
.pl-play svg { width: 30px; height: 30px; }
.pl-play .i-pause { display: none; }
.player.is-playing .pl-play .i-play { display: none; }
.player.is-playing .pl-play .i-pause { display: block; }

.player-progress {
  display: grid; grid-template-columns: 3.2em 1fr 3.2em; gap: .75rem; align-items: center;
  color: #bbb; font-size: .85rem; font-variant-numeric: tabular-nums;
}
.player-progress span:last-child { text-align: right; }

.player-progress input[type="range"] {
  --pct: 0%;
  width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.player-progress input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--red) var(--pct), rgba(255, 255, 255, .22) var(--pct));
}
.player-progress input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: var(--white);
}
.player-progress input[type="range"]::-moz-range-track { height: 4px; background: rgba(255, 255, 255, .22); }
.player-progress input[type="range"]::-moz-range-progress { height: 4px; background: var(--red); }
.player-progress input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--white); }

.player-msg {
  margin: 1rem 0 0; padding: .75rem 1rem;
  border-left: 3px solid var(--red); background: rgba(226, 2, 43, .15);
  font-size: .95rem;
}

.player-list { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }

.pl-track {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: .8rem .35rem; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: none; color: #ddd; font: inherit; text-align: left; cursor: pointer;
}
.pl-track:hover { background: rgba(255, 255, 255, .05); color: var(--white); }
.pl-num { width: 1.75rem; flex: none; color: #777; text-align: right; font-variant-numeric: tabular-nums; }
.pl-name { flex: 1; }
.pl-track[aria-current="true"],
.pl-track[aria-current="true"] .pl-num { color: var(--red); }

/* Ecualizador animado: guiño al cargador del sitio original */
.pl-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.pl-eq i { width: 3px; background: var(--red); animation: eq 1s ease-in-out infinite; }
.pl-eq i:nth-child(2) { animation-delay: -.3s; }
.pl-eq i:nth-child(3) { animation-delay: -.6s; }
.player.is-playing .pl-track[aria-current="true"] .pl-eq { display: flex; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.player.is-single .pl-prev,
.player.is-single .pl-next,
.player.is-single .player-list { display: none; }

/* ---------- Movimiento reducido ---------- */

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