/* =====================
   RESET & VARIABLES
===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #C1121F;
  --red-dark: #7D0F18;
  --cream: #F5F0E8;
  --black: #0A0A0A;
  --gray: #1A1A1A;
  --gray-mid: #2D2D2D;
  --gray-light: #5A5A5A;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --nav-h: 64px;
  --px: clamp(1.25rem, 5vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  background: linear-gradient(to bottom, rgba(10,10,10,0.97) 0%, rgba(10,10,10,0) 100%);
  backdrop-filter: blur(2px);
  transition: background 0.3s;
}

nav.scrolled { background: rgba(10,10,10,0.98); }

.nav-logo { display: flex; align-items: center; text-decoration: none; z-index: 201; }
.nav-logo img { height: 30px; width: auto; filter: invert(1) brightness(1); transition: opacity 0.2s; }
.nav-logo:hover img { opacity: 0.8; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-cond);
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,240,232,0.6); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; z-index: 201; padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); transition: transform 0.3s, opacity 0.3s; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(10,10,10,0.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem); letter-spacing: 0.1em;
  color: var(--cream); text-decoration: none; transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--red); }

/* HERO */
#inicio {
  position: relative; height: 100svh; min-height: 500px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: var(--gray); overflow: hidden; }
.hero-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #1a1a1a 0px, #1a1a1a 20px, #161616 20px, #161616 40px);
  gap: 1rem; color: rgba(245,240,232,0.15); font-family: var(--font-cond);
  letter-spacing: 0.15em; font-size: 0.75rem; text-align: center; padding: 1rem;
}
.hero-photo-placeholder svg { opacity: 0.25; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--px) clamp(3rem, 8vh, 6rem);
  width: 100%; max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-cond); font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); margin-bottom: 0.75rem;
}
.hero-title { margin-bottom: 1rem; line-height: 1; }
.hero-title img { width: clamp(200px, 60vw, 650px); height: auto; filter: invert(1) brightness(1.05); }
.hero-tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem); font-weight: 300; font-style: italic;
  color: rgba(245,240,232,0.55); margin-bottom: 2rem; letter-spacing: 0.05em;
}
.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--font-cond);
  font-size: 0.82rem; letter-spacing: 0.25em; text-transform: uppercase;
  text-decoration: none; padding: 0.8rem 2rem;
  border: 1px solid var(--red); color: var(--cream); transition: background 0.25s; white-space: nowrap;
}
.btn:hover { background: var(--red); }
.btn-ghost { background: transparent; border-color: rgba(245,240,232,0.3); }
.btn-ghost:hover { background: rgba(245,240,232,0.08); }

.scroll-line {
  position: absolute; bottom: 2rem; right: var(--px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-line span {
  font-family: var(--font-cond); font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(245,240,232,0.3); writing-mode: vertical-lr;
}
.scroll-line::after {
  content: ''; width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(193,18,31,0.8), transparent);
}

/* SECCIONES BASE */
section { padding: clamp(3.5rem, 8vw, 6rem) var(--px); }
.section-label {
  font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.05em; color: var(--cream); margin-bottom: 2.5rem; line-height: 1;
}

/* MUSICA */
#musica { background: var(--gray); }
.tracks-grid { display: grid; gap: 1px; background: rgba(245,240,232,0.06); }
.track {
  background: var(--gray);
  display: grid; grid-template-columns: 2.5rem 1fr auto auto;
  align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: 1.1rem clamp(0.75rem, 2vw, 1.5rem);
  transition: background 0.2s; cursor: pointer;
}
.track:hover { background: var(--gray-mid); }
.track-num { font-family: var(--font-cond); font-size: 0.82rem; color: rgba(245,240,232,0.25); text-align: right; }
.track:hover .track-num { color: var(--red); }
.track-info h3 { font-size: clamp(0.9rem, 2vw, 1rem); font-weight: 400; margin-bottom: 0.15rem; }
.track-info p { font-size: 0.78rem; color: rgba(245,240,232,0.4); font-family: var(--font-cond); letter-spacing: 0.05em; }
.track-tag {
  font-family: var(--font-cond); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border: 1px solid rgba(245,240,232,0.12); color: rgba(245,240,232,0.35); white-space: nowrap;
}
.track-time { font-family: var(--font-cond); font-size: 0.82rem; color: rgba(245,240,232,0.35); min-width: 2.5rem; text-align: right; }
.music-links { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* SHOWS */
#shows { background: var(--black); position: relative; overflow: hidden; }
#shows::before {
  content: '88'; position: absolute; right: -2rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: clamp(15rem, 28vw, 28rem);
  color: rgba(193,18,31,0.04); line-height: 1; pointer-events: none; user-select: none;
}
.shows-list { display: flex; flex-direction: column; }
.show-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: clamp(1rem, 3vw, 2rem);
  padding: 1.5rem 0; border-bottom: 1px solid rgba(245,240,232,0.07); transition: border-color 0.2s;
}
.show-item:first-child { border-top: 1px solid rgba(245,240,232,0.07); }
.show-item:hover { border-color: rgba(193,18,31,0.3); }
.show-date-block { text-align: center; }
.show-day { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; color: var(--cream); }
.show-month { font-family: var(--font-cond); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.show-info h3 { font-size: clamp(0.9rem, 2.5vw, 1.1rem); font-weight: 400; margin-bottom: 0.25rem; }
.show-info p { font-size: 0.82rem; color: rgba(245,240,232,0.45); font-family: var(--font-cond); letter-spacing: 0.05em; }
.show-ticket {
  font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; padding: 0.55rem 1.25rem;
  border: 1px solid rgba(245,240,232,0.2); color: rgba(245,240,232,0.55); transition: all 0.2s; white-space: nowrap;
}
.show-ticket:hover { border-color: var(--red); color: var(--cream); }
.show-ticket.agotado { border-color: transparent; color: rgba(245,240,232,0.2); pointer-events: none; }

/* BIO */
#bio { background: var(--gray); }
.bio-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bio-photo-wrap { position: relative; aspect-ratio: 3/4; background: var(--gray-mid); overflow: hidden; }
.bio-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: rgba(245,240,232,0.15); font-family: var(--font-cond);
  letter-spacing: 0.15em; font-size: 0.72rem;
  border: 1px dashed rgba(245,240,232,0.1); text-align: center; padding: 1rem;
}
.bio-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bio-text { padding-top: 0.5rem; }
.bio-text p { font-size: clamp(0.9rem, 2vw, 1.05rem); line-height: 1.8; color: rgba(245,240,232,0.7); margin-bottom: 1.25rem; }
.bio-text p strong { color: var(--cream); font-weight: 400; }
.band-members { margin-top: 2.5rem; display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: 1.25rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(245,240,232,0.07); }
.member-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; color: var(--red); flex-shrink: 0;
}
.member h4 { font-size: 0.92rem; font-weight: 400; margin-bottom: 0.15rem; }
.member p { font-size: 0.78rem; color: rgba(245,240,232,0.4); font-family: var(--font-cond); letter-spacing: 0.08em; }

/* GALERIA */
#galeria { background: var(--black); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 180px; gap: 4px;
}
.gallery-item { background: var(--gray-mid); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: rgba(193,18,31,0); transition: background 0.3s; }
.gallery-item:hover::after { background: rgba(193,18,31,0.25); }
.g1 { grid-column: span 5; grid-row: span 2; }
.g2 { grid-column: span 4; }
.g3 { grid-column: span 3; }
.g4 { grid-column: span 4; }
.g5 { grid-column: span 3; }
.g6 { grid-column: span 5; }
.g7 { grid-column: span 4; }
.g8 { grid-column: span 3; }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; color: rgba(245,240,232,0.12); font-family: var(--font-cond);
  font-size: 0.6rem; letter-spacing: 0.12em; text-align: center; padding: 0.5rem;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }

/* CONTACTO */
#contacto { background: var(--gray); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: 0.05em; margin-bottom: 1.25rem; line-height: 1; }
.contact-info p { font-size: 0.92rem; color: rgba(245,240,232,0.55); line-height: 1.7; margin-bottom: 1.75rem; }
.social-links { display: flex; flex-direction: column; }
.social-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(245,240,232,0.07);
  text-decoration: none; color: var(--cream); transition: padding-left 0.2s;
}
.social-link:hover { padding-left: 0.4rem; }
.social-link span:first-child { font-family: var(--font-cond); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,240,232,0.5); }
.social-link span:last-child { font-size: 0.88rem; color: var(--cream); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,240,232,0.4); }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(245,240,232,0.05); border: 1px solid rgba(245,240,232,0.1); color: var(--cream);
  padding: 0.8rem 0.9rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
  outline: none; transition: border-color 0.2s; -webkit-appearance: none; appearance: none; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  font-family: var(--font-cond); font-size: 0.82rem; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0.9rem 2.5rem; background: var(--red); color: var(--cream);
  border: 1px solid var(--red); cursor: pointer; transition: background 0.2s; align-self: flex-start;
}
.btn-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* FOOTER */
footer {
  background: var(--black); border-top: 1px solid rgba(245,240,232,0.06);
  padding: clamp(1.5rem, 4vw, 3rem) var(--px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem;
}
.footer-logo img { height: 26px; width: auto; filter: invert(1) brightness(1); opacity: 0.65; }
footer p { font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(245,240,232,0.22); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-cond); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,232,0.3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }

/* =====================
   TABLET (max 900px)
===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .scroll-line { display: none; }
  .hero-title img { width: clamp(180px, 70vw, 420px); }
  .track-tag { display: none; }
  .show-item { grid-template-columns: 70px 1fr; }
  .show-ticket { display: none; }
  .bio-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .bio-photo-wrap { aspect-ratio: 16/9; max-height: 380px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8 { grid-column: span 1; grid-row: span 1; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* =====================
   MOBILE (max 600px)
===================== */
@media (max-width: 600px) {
  .hero-title img { width: clamp(160px, 80vw, 320px); }
  .hero-tagline { font-size: 0.88rem; }
  .hero-btns { flex-direction: column; gap: 0.6rem; }
  .btn { text-align: center; }
  .track { grid-template-columns: 2rem 1fr auto; gap: 0.75rem; padding: 1rem 0.75rem; }
  .track-time { display: none; }
  .show-item { grid-template-columns: 56px 1fr; gap: 0.75rem; }
  .show-day { font-size: 1.8rem; }
  .show-month { font-size: 0.62rem; }
  .show-info h3 { font-size: 0.9rem; }
  .show-info p { font-size: 0.75rem; }
  .bio-photo-wrap { aspect-ratio: 4/3; max-height: 260px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; text-align: center; }
  .section-title { margin-bottom: 1.75rem; }
}

/* =====================
   MOBILE PEQUEÑO (max 380px)
===================== */
@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8 { grid-column: span 1; }
  .hero-btns .btn { width: 100%; justify-content: center; display: block; }
}
