/* ==========================================================================
   ANIMAL NOCTURNO — demo band site
   Built by Web Pop as a portfolio demo. Self-contained stylesheet.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-raised: #151216;
  --bg-raised-2: #1d191e;
  --ink: #f4f1ec;
  --muted: #ada7ac;
  --line: rgba(244, 241, 236, 0.14);
  --accent: #ff2d55;
  --accent-dim: #b21f3d;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Work Sans", Arial, Helvetica, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-width: 320px;
}
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---- Focus visibility (must work on dark backgrounds) ---- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  z-index: 300;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   HEADER + NAV  (asymmetric: brand left, single toggle right, no horizontal
   link row — the menu opens as a full-screen overlay, desktop included)
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 0.86;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  letter-spacing: 0.02em;
}
.wordmark span:last-child { color: var(--accent); }

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 0.6rem 0.5rem;
}
.menu-toggle-label { display: none; }
@media (min-width: 560px) {
  .menu-toggle-label { display: inline; }
}
.menu-lines {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
}
.menu-lines i {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.menu-lines i:nth-child(1) { width: 100%; }
.menu-lines i:nth-child(2) { width: 70%; background: var(--accent); }
.menu-lines i:nth-child(3) { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 100%;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) 4rem;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(.77,0,.18,1);
  background-image:
    linear-gradient(135deg, transparent 0%, transparent 48%, rgba(255,45,85,0.08) 48%, rgba(255,45,85,0.08) 52%, transparent 52%);
}
.nav-overlay.is-open { transform: translateY(0); }

.nav-list li {
  border-top: 1px solid var(--line);
}
.nav-list li:last-child { border-bottom: 1px solid var(--line); }
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: clamp(0.9rem, 2.4vw, 1.4rem) 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 4.5rem);
  text-transform: uppercase;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-list a:hover,
.nav-list a:focus-visible { color: var(--accent); padding-left: 0.5rem; }
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.nav-overlay-foot {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) 5rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0.94) 100%),
              url('./assets/img/hero-banda.jpg');
  background-size: cover;
  background-position: center 30%;
}

/* Blobs de luz + grano se mantienen como acento sobre la foto del escenario */
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.blob-a {
  width: min(60vw, 620px);
  height: min(60vw, 620px);
  right: -10%;
  top: -15%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
}
.blob-b {
  width: min(45vw, 460px);
  height: min(45vw, 460px);
  left: -12%;
  bottom: -18%;
  background: radial-gradient(circle at 60% 40%, var(--accent-dim), transparent 70%);
  opacity: 0.4;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.hero-title .line { display: block; }
.hero-title .line-accent {
  color: var(--accent);
  margin-left: clamp(0rem, 8vw, 4.5rem);
}

.hero-tagline {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 34ch;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  transform: rotate(-1.2deg);
  transform-origin: left;
}

.hero-actions {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 1rem 1.75rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: var(--bg);
}
.btn-accent:hover { transform: translate(-2px, -2px); background: #ff4568; }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translate(-2px, -2px); }
.btn-ghost {
  color: var(--muted);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 0.95rem; }
.btn-small { padding: 0.65rem 1.15rem; font-size: 0.75rem; }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.75; }

/* ---- Marquee ticker ---- */
.marquee {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0;
}
.marquee-track {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 22s linear infinite;
  }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION shell — alternating diagonal cut between sections for rhythm
   ========================================================================== */

.section {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7rem) var(--gutter);
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 46ch;
}
.section-head h2 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.section-head .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.section-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Diagonal seams between major blocks */
.shows { background: var(--bg-raised); clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%); margin-top: -2vw; }
.music { padding-top: clamp(6.5rem, 12vw, 9rem); }
.videos { background: var(--bg-raised); clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%); }
.contact { background: var(--bg-raised-2); clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%); }

/* ==========================================================================
   AGENDA / SHOWS
   ========================================================================== */

.show-list { border-top: 1px solid var(--line); }
.show-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.show-row:hover { background: rgba(255, 45, 85, 0.05); }
.show-date {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  min-width: 3.5rem;
}
.show-date strong { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.show-date em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.show-where { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.show-city { font-weight: 600; font-size: clamp(1rem, 2vw, 1.15rem); }
.show-venue { color: var(--muted); font-size: 0.9rem; }
.show-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
  display: none;
}
.show-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.show-link:hover, .show-link:focus-visible { border-color: var(--accent); }

@media (min-width: 640px) {
  .show-tag { display: inline-block; }
}
@media (max-width: 560px) {
  .show-row { grid-template-columns: auto 1fr; row-gap: 0.75rem; }
  .show-link { grid-column: 2; justify-self: start; }
}

/* ==========================================================================
   MÚSICA — mock player
   ========================================================================== */

.player-card {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 720px) {
  .player-card { grid-template-columns: 1fr; }
}

.album-art {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}
.album-art svg { width: 100%; height: 100%; }

.player-info { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.album-label {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.album-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.tracklist { border-top: 1px solid var(--line); }
.track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.track-name { font-weight: 500; min-width: 0; overflow-wrap: break-word; }
.track-time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

.track-play {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.track-play:hover { border-color: var(--accent); }
.icon-play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 2px;
}
.icon-eq { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.icon-eq i { width: 2px; background: var(--accent); display: block; }
.track-play[aria-pressed="true"] .icon-play { display: none; }
.track-play[aria-pressed="true"] .icon-eq { display: inline-flex; }
.track-play[aria-pressed="true"] { border-color: var(--accent); }
.icon-eq i:nth-child(1) { height: 40%; }
.icon-eq i:nth-child(2) { height: 100%; }
.icon-eq i:nth-child(3) { height: 65%; }
@media (prefers-reduced-motion: no-preference) {
  .track-play[aria-pressed="true"] .icon-eq i { animation: eq 0.9s ease-in-out infinite; }
  .icon-eq i:nth-child(2) { animation-delay: 0.15s; }
  .icon-eq i:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.player-transport { display: flex; flex-direction: column; gap: 0.4rem; }
.progress-bar { height: 4px; background: var(--line); position: relative; }
.progress-fill { position: absolute; inset: 0; width: 32%; background: var(--accent); }
.transport-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.stream-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* ==========================================================================
   VIDEOS
   ========================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}
.video-card h3 {
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.video-tag {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
}
.video-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; font-family: var(--font-mono); }

/* Placeholder video thumbnails — replace with real embeds/thumbnails */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-thumb::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: repeating-linear-gradient(45deg, rgba(244,241,236,0.06) 0 2px, transparent 2px 14px);
  mix-blend-mode: overlay;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}
.video-thumb-a { background: linear-gradient(160deg, #2a0d16, var(--bg)); }
.video-thumb-b { background: linear-gradient(200deg, #1a1620, var(--bg)); }
.video-thumb-c { background: linear-gradient(140deg, #33121c, var(--bg-raised)); }

.play-btn {
  position: relative;
  z-index: 2;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.video-card:hover .play-btn { transform: scale(1.08); }
.play-btn-tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--bg);
  margin-left: 4px;
}

/* ==========================================================================
   REDES / SOCIAL
   ========================================================================== */

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.social-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-list svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-list a:hover, .social-list a:focus-visible { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   CONTACT / BOOKING
   ========================================================================== */

.contact-inner { max-width: 60ch; }
.contact h2 { margin-bottom: 1.25rem; }
.contact-copy { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 2rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 2rem var(--gutter) 2.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.site-footer a {
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */

.wa-float {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 150;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 0.2s ease;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px); }

/* ==========================================================================
   Reduced motion — belt & suspenders on top of the gated animations above
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Body scroll lock when nav overlay is open ---- */
body.nav-open { overflow: hidden; }
