/* =========================================================
   Los Árboles Mueren de Pie — hoja de estilos
   Paleta tomada del afiche: negro, verde agua, crema y madera.
   Editá las variables de :root para cambiar los colores rápido.
   ========================================================= */

:root {
  --bg: #080808; /* mismo negro que el fondo del video, para que no se note la unión */
  --bg-alt: #121412;
  --teal: #4fb8ac;
  --teal-soft: #7fbfb6;
  --cream: #f2ede1;
  --wood: #a9784f;
  --line: rgba(242, 237, 225, 0.14);

  --font-display: "Anton", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  /* Vuelta a la tipografía anterior (Anton) para el nombre de la banda. */
  --font-title: var(--font-display);

  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Textura con el mismo grano/ruido negro del video (sacada de un cuadro
     del propio video), repetida de fondo: así los costados que el video
     no cubre se ven igual de "sucios" que el video, no lisos. */
  background: var(--bg) url("../assets/bg-texture.jpg") repeat;
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Ahora que el video se ve nítido y completo detrás de todo, esta sombra
     mantiene el texto legible en las secciones que no tienen panel propio. */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Fondo fijo (todo el sitio) ---------- */
/* El video entero, nítido, sin recortar (el personaje completo y la
   pecera con los corazones siempre visibles), centrado. A los costados,
   donde el video vertical no llega a cubrir la pantalla, se ve
   directamente el negro plano del body (--bg, el mismo negro del fondo
   del video) — sin blur, sin degradé, sin mancha: no hay unión que notar. */
.bg-fixed-crisp {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -2;
  pointer-events: none;
}

/* Velo parejo (sin degradé de arriba a abajo) solo para que el texto se lea
   bien encima del video en cualquier sección. */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 6, 0.32);
  z-index: -1;
}

/* ---------- Redes sociales (barra fija) ---------- */
/* Fija a un costado de la pantalla, encima de todo, visible en cualquier
   sección (no se mueve con el scroll, igual que el fondo). */
.social-sidebar {
  position: fixed;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-sidebar a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.social-sidebar a:hover {
  transform: translateY(-2px) scale(1.06);
  background: rgba(79, 184, 172, 0.2);
  border-color: var(--teal-soft);
  color: var(--teal-soft);
}

.social-sidebar svg {
  width: 20px;
  height: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 20px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { grid-column: 1; display: flex; align-items: center; height: 100%; }
.brand-logo { height: 56px; width: auto; }

/* Título "Los Árboles Mueren de Pie" — misma tipografía del afiche (Anton),
   siempre centrado en el header, entre el logo y el menú. */
.brand-title {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-size: clamp(0.95rem, 2.6vw, 1.7rem);
  max-width: 60vw;
}

.header-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.site-nav a:hover { opacity: 1; color: var(--teal-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
/* El dibujo animado ya se ve de fondo, a pantalla completa (.bg-fixed).
   Acá solo va el texto, flotando sobre el video. */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 76px;
}

.hero-inner {
  width: 100%;
  max-width: 640px;
  padding: 36px 32px;
  text-align: center;
  /* Panel difuminado ("frosted glass") para que el texto se lea bien
     encima del video, sin tapar el dibujo con un fondo sólido. */
  background: rgba(8, 8, 8, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.hero-tag {
  margin: 0 0 28px;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-soft);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--cream);
  opacity: 0.6;
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: #06110f;
}
.btn-primary:hover { background: var(--teal-soft); transform: translateY(-2px); }

.btn-ghost {
  border-color: var(--cream);
  color: var(--cream);
}
.btn-ghost:hover { background: var(--cream); color: #06110f; transform: translateY(-2px); }

.btn-small {
  padding: 10px 22px;
  font-size: 0.78rem;
  background: transparent;
  border-color: var(--teal-soft);
  color: var(--teal-soft);
}
.btn-small:hover { background: var(--teal-soft); color: #06110f; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 96px 0; }

.section-alt {
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  color: var(--teal-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  margin: 0 0 36px;
  text-transform: uppercase;
}

.lead {
  font-size: 1.2rem;
  color: var(--cream);
}

.muted { color: rgba(242, 237, 225, 0.65); }

/* ---------- La banda ---------- */
.banda-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

/* Cuadro alrededor de "De qué se trata" + Formación + Historia, para que
   el texto se destaque mejor sobre el video de fondo (mismo estilo
   "vidrio esmerilado" que se usa en Discos, Tienda y el formulario). */
.banda-panel {
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}

.banda-subhead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--teal-soft);
  margin: 28px 0 14px;
}

.lineup {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
}

.lineup li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.lineup-name { font-weight: 800; }

/* ---------- Discos ---------- */
.discos-grid {
  display: grid;
  gap: 32px;
}

.disco-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

/* Sin esto, el atributo "hidden" de los discos que todavía no salieron
   (ver index.html) no ocultaría nada: la regla de arriba (display: grid)
   le gana por defecto a la regla oculta del navegador. */
.disco-card[hidden] { display: none; }

.disco-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.disco-cover {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.disco-cover:hover { opacity: 0.85; }

/* Placeholder para discos que todavía no salieron (ver "hidden" en el
   HTML) — mismo estilo que los placeholders de la Tienda. */
.disco-cover-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 184, 172, 0.25), rgba(169, 120, 79, 0.2));
  border: 1px dashed var(--line);
}

.disco-info h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

.disco-tracklist {
  margin: 0 0 24px;
  padding-left: 20px;
  color: rgba(242, 237, 225, 0.85);
}

.disco-tracklist li { margin-bottom: 6px; }

/* ---------- Reproductor de temas ---------- */
.track-list {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.track-row:first-child { border-top: 1px solid var(--line); }

.track-play {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--teal-soft);
  background: transparent;
  color: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.track-play:hover { background: var(--teal-soft); color: #06110f; }
.track-play svg { width: 16px; height: 16px; }
/* El atributo "hidden" del HTML no se aplica solo por defecto en SVG en
   todos los navegadores, así que se fuerza acá para que el ícono de play
   y el de pausa nunca se muestren los dos a la vez. */
.track-play svg[hidden] { display: none; }

.track-row.is-playing .track-play {
  background: var(--teal-soft);
  color: #06110f;
}

.track-main { flex-grow: 1; min-width: 0; }

.track-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.track-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.track-plays {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: rgba(242, 237, 225, 0.55);
  white-space: nowrap;
}

.track-plays-count { color: var(--teal-soft); font-weight: 700; }

.track-progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(242, 237, 225, 0.12);
  overflow: hidden;
}

.track-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--teal-soft);
}

/* ---------- Shows ---------- */
.show-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.show-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
  font-family: var(--font-display);
  color: var(--teal-soft);
}
.show-date .day { font-size: 1.8rem; line-height: 1; }
.show-date .month { font-size: 0.8rem; letter-spacing: 0.08em; }

.show-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.show-venue { font-weight: 800; }
.show-city { color: rgba(242, 237, 225, 0.65); font-size: 0.92rem; }

/* ---------- Tienda ---------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

/* Fotos de producto: 2 lado a lado (frente/dorso) o 1 sola (ver
   "product-photos-single"). Las imágenes usan la clase .disco-cover:
   mismo estilo "clickeá para agrandar" que las tapas de los discos. */
.product-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.product-photos .disco-cover { aspect-ratio: 1 / 1; object-fit: cover; }
.product-photos-single { grid-template-columns: 1fr; }

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.price { margin: 0 0 16px; color: var(--teal-soft); font-weight: 700; }

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal-soft);
  border-bottom: 1px solid currentColor;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}

.contact-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(242, 237, 225, 0.7);
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(242, 237, 225, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-soft);
}

.contact-form button { margin-top: 18px; align-self: flex-start; }

.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--teal-soft);
  min-height: 1.2em;
}

/* ---------- Visor de imágenes (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--teal-soft); color: var(--teal-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .banda-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .disco-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open { max-height: 320px; }

  .site-nav a {
    width: 100%;
    text-align: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-logo { height: 40px; }
  .brand-title {
    max-width: 46vw;
    font-size: clamp(0.68rem, 3.6vw, 0.95rem);
    letter-spacing: 0.01em;
  }
  .header-inner { column-gap: 10px; }
  .store-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .banda-panel { padding: 22px; }

  /* En celular la barra de redes pasa de costado vertical a una fila
     horizontal abajo, para no tapar contenido en pantallas angostas. */
  .social-sidebar {
    top: auto;
    bottom: 14px;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 10px;
  }
  .social-sidebar a { width: 36px; height: 36px; }
  .social-sidebar svg { width: 17px; height: 17px; }
}
