:root {
  --bg-main: #0b0d12;
  --bg-sidebar: #0e111b;
  --bg-hover: #151a2d;
  --bg-card: #141823;
  --accent: #7c8cff;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border: rgba(255,255,255,0.06);
}

/* RESET */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #000105;
  color: var(--text-main);
}

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}
/* ==========================
   FONDO DEL CONTENT – JAZZ
=========================== */
.genre-jazz .content {
  position: relative;
  background-image: url("genres/images/pngaaa.com-555044.png"); /* ajusta la ruta */
  background-size: cover;        /* cubre todo el content */
  background-position: center;   /* centrada */
  background-repeat: no-repeat;
}

/* Overlay oscuro para legibilidad */
.genre-jazz .content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(106, 121, 145, 0.5); /* oscurece sin tapar */
  z-index: 0;
}

/* Asegura que el contenido quede encima */
.genre-jazz .content > * {
  position: relative;
  z-index: 1;
}

/* ==========================
   BARRA DE BÚSQUEDA TRANSPARENTE CON LUPA
=========================== */
.search-bar-top {
  position: relative;
  padding-bottom: 1rem;
}

.search-bar-top .search-input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem; /* espacio para el icono a la derecha */
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* borde semi-transparente */
  background-color: rgba(255, 255, 255, 0.05); /* fondo muy transparente */
  color: #fff; /* texto blanco */
  font-size: 1rem;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Placeholder blanco */
.search-bar-top .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Hover y focus */
.search-bar-top .search-input:hover,
.search-bar-top .search-input:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Lupa a la derecha del input */
.search-bar-top .search-icon {
  position: absolute;
  right: 10px;
  top: 40%;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
  font-size: 1.1rem;
}

/* SIDEBAR */
.sidebar {
  width: 200px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  padding: 1rem 1.25rem 1rem;
  font-size: 16px;
  font-weight:200;
   font-family:Inter, sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* LOGO SIDEBAR */
.sidebar-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.sidebar-logo img {
  max-width: 110%;
  height: auto;
  display: block;
}
.genre-list {
  display: flex;
  flex-direction: column;
}

.genre-list button {
  all: unset;
  padding: 0.25rem 1.25rem;
  cursor: pointer;
  font-family:Inter, sans-serif;
  font-size: 15px;
  font-weight:100;
  color: var(--text-main);
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.genre-list button:hover {
  background: var(--bg-hover);
}

.genre-list button.selected {
  background: var(--bg-hover);
  border-left: 3px solid var(--accent);
  color: white;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 1.5rem 3rem;
}

.header {
  margin-bottom: 00.5rem;
}

.title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  margin-top: 1.4rem;
}

.subtitle {
  color: var(--text-muted);
  font-weight: 100;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* GENRE BLOCK */
.genre-block {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* GENRE HEADER */
.genre-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  min-height: 80px; /* altura fija para la imagen de fondo */
}

/* Imagen de fondo del header */
.genre-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cubre el header sin deformarse */
  z-index: 10;
}

/* Overlay para mejorar legibilidad del título */
.genre-header-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(80, 55, 80, 0.7);
  z-index: 20;
}

/* Texto y toggle encima de la imagen */
.genre-header span {
  position: relative;
  z-index: 30;
}

.genre-toggle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* GENRE CONTENT */
.genre-content {
  position: relative;
  z-index: 30;
  padding: 1rem;
  display: none;
  background-color: rgba(80, 55, 80, 0.7);
}

/* PERIODOS */
.period {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.period h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* SUBGÉNEROS */
.subgenre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
}

.subgenre-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.subgenre-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}

.toggle-icon {
  color: var(--text-muted);
}

.subgenre-content {
  padding: 0.8rem 0 0.4rem 0;
  display: none;
  font-family:Inter, sans-serif;
  font-size: 15px;
  font-weight: 100;
}

/* SPOTIFY */
.spotify-container {
  margin-top: 1rem;
  height: 380px;
  border: 1px solid var(--border);
}

.spotify-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .genre-list {
    flex-direction: row;
  }

  .genre-list button {
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .genre-list button.selected {
    border-bottom: 3px solid var(--accent);
  }

  .content {
    padding: .5rem;
  }
}
