/* =======================================================
   HOME GLOBAL THEME — colores, fuentes y márgenes base
   ======================================================= */
:root {
  --theme-bg: linear-gradient(135deg, #1a0f00 0%, #994407 60%, #1a0f00 100%);
  --theme-text: #ffffff;
  --secondary-bar-height: 70px;
  --font-primary: 'Poppins', sans-serif;

  /* COLORES NUEVOS PARA BOTÓN DINÁMICO */
  --btn-azul: linear-gradient(180deg, #00c6ff 0%, #0072ff 100%);
  --btn-verde: linear-gradient(180deg, #00ff88 0%, #00cc66 100%);
  --btn-rojo: linear-gradient(180deg, #ff3b3b 0%, #cc0000 100%);
}

/* =======================================================
   BASE DEL BODY
   ======================================================= */
body {
  background: linear-gradient(135deg, #1a0f00 0%, #471e01 60%, #1a0f00 100%);
  color: var(--theme-text);
  font-family: var(--font-primary);
  margin: 0;
  padding-top: var(--secondary-bar-height);
}

/* =======================================================
   MAIN HEADER
   ======================================================= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--secondary-bar-height);
  background: var(--theme-bg);
  color: var(--theme-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
}

/* LOGO */
.header-logo {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.header-logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}
.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url('logo.png') center/cover no-repeat;
  border: 2px solid #f8f5f3;
}
.logo-text {
  color: var(--theme-text);
  text-decoration: none;
}
.header-logo:hover .logo-text {
  text-decoration: underline;
  text-decoration-color: #ffffff;
}

/* =======================================================
   ICONO HOME 2D
   ======================================================= */
.home-icon-2d {
  --icon-color: #fff;
  --icon-size: 30px;
  --icon-move-x: -10px;
  --icon-move-y: 8px;
  width: 22px;
  height: 22px;
  position: relative;
  margin-left: 0.6rem;
  top: -10px;
  color: var(--icon-color);
  transform: translate(var(--icon-move-x), var(--icon-move-y)) scale(calc(var(--icon-size) / 22px));
  transform-origin: left top;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.home-icon-2d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid currentColor;
}
.home-icon-2d::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 3px;
  width: 16px;
  height: 11px;
  background: currentColor;
}
.home-icon-2d:hover {
  transform: scale(1.1) rotate(8deg);
  opacity: 0.85;
}

/* =======================================================
   BOTÓN HOME
   ======================================================= */
.language-selector {
  margin-left: 1rem;
}
.lang-btn {
  background: linear-gradient(180deg, #eb4411 0%, #000000 50%, #6b2205 100%);
  border: 2px solid #faf6f6;
  color: var(--theme-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  top: 2px;
}
.lang-btn:hover {
  background: #fffdfc;
  color: #000;
}

/* =======================================================
   HOME CONTROLS
   ======================================================= */
.home-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 985px;
}


/* ============================================================
   BOTÓN DE DIRECCIÓN
   ============================================================ */
.direction-btn {
  --scale: 1;
  --arrow-ratio: 0.50;

  background-color: #220b01;
  border: 2px solid #ffffff;
  border-radius: 10px;
  width: calc(35px * var(--scale));
  height: calc(35px * var(--scale));
  position: absolute;
  top: 21.8px;
  left: 400px;
  margin-left: 13px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.direction-btn .arrow-icon {
  position: absolute;
  top: calc(50% + var(--offset-y, 0px));
  left: calc(50% + var(--offset-x, 0px));
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  width: 0;
  height: 0;
  border-left: calc(12px * var(--scale, 1)) solid transparent;
  border-right: calc(12px * var(--scale, 1)) solid transparent;
  border-bottom: calc(15px * var(--scale, 1)) solid var(--arrow-color, #fff);
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
  transition: all 0.3s ease;
}

.direction-btn.down .arrow-icon {
  transform: translateX(-50%) rotate(180deg);
}

.direction-btn:hover {
  background-color: #f70b0b;
  transform: scale(1.05);
}

.direction-btn:active {
  transform: scale(0.80);
  opacity: 0.85;
}

.direction-btn {
  transform: scale(var(--btn-scale, 1));
  transform-origin: center center;
}

/* ============================================================
   BOTÓN LOGIN SPOTIFY — OBLICUO + GRADIENTE (REAL-LIVE)
   ============================================================ */

.login-spotify-btn {
  display: none;
  padding:5px 20px;
  border:none;
  font-size:16px;
  font-weight:1000;
  font-style:oblique;
  letter-spacing:.5px;
  color:#fff;
  
margin:0 10px;

  position:absolute;
  top:24px;
  left:452px;

  /* MISMO COLOR QUE TENÍAS PERO EN GRADIENTE */
  background:linear-gradient(
    180deg,
    #220b01,
    #000000
  );

  cursor:pointer;
  border-radius:14px;

  /* FORMA OBLICUA */
  clip-path:polygon(6% 0%,100% 0%,94% 100%,0% 100%);

  transition:transform .12s ease,background .15s ease,box-shadow .15s ease;
  box-shadow:0 6px 18px rgba(0,0,0,.45);


}

.login-spotify-btn:hover{
  transform:translateY(-3px);

  /* MISMO COLOR HOVER PERO EN GRADIENTE */
  background:linear-gradient(
    90deg,
    #f70b0b,
    #5a0000
  );

  box-shadow:0 10px 26px rgba(0,0,0,.6);
}

.login-spotify-btn:active{
  transform:scale(0.80);
  opacity:0.85;
}

/* =======================================================
   BLOQUE DERECHO DE LA BARRA SUPERIOR
   ======================================================= */
.header-right {
  position: absolute;
  top: 0;
  right: 4rem;
  height: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
  z-index: 1200;
}



/* ============================================================
   AVATARES
   ============================================================ */
.user-avatar,
.curator-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.95);
  background: rgba(0,0,0,0.12);
  flex: 0 0 auto;
  cursor: pointer;
}
.user-avatar img,
.curator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}
.user-avatar img:hover,
.curator-avatar img:hover {
  transform: scale(1.08);
  opacity: 0.95;
}

/* ============================================================
   SELECTOR DE IDIOMA
   ============================================================ */
.lang-selector {
  padding: 6px 12px;
  border: 2px solid #fff;
  border-radius: 25px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}
.lang-selector:hover {
  background: #fff;
  color: #000;
}

/* ============================================================
   BOTONES DEL BLOQUE DERECHO
   ============================================================ */
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-btn i {
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}
.nav-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* ============================================================
   MENÚ EXPLORAR — NUEVO DISEÑO COMPACTO Y VISTOSO
   ============================================================ */
.explorar-dropdown {
  position: absolute;
  top: 60px;
  right: 115px;
  width: 350px;

  background: #120700;
  border: 2px solid #ff9a3c;
  border-radius: 14px;

  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;

  box-shadow: 0 6px 18px rgba(0,0,0,0.65),
              0 0 10px rgba(255,120,0,0.55);

  z-index: 99999;
}

#user-menu {
  right: 115px !important;
  top: 55px !important;
}

.explorar-dropdown.show {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

.explorar-item {
  width: 90%;
  padding: 3px 0;
  text-align: center;

  font-weight: 800;
  font-size: 0.95rem;
  color: #ffd79e;

  border-bottom: 2px solid rgba(255,150,50,0.35);

  background: linear-gradient(180deg, #4a1a00, #2a0c00);
  cursor: pointer;
  transition: all .2s ease;

  border-radius: 10px;
  margin: 3px auto;
}

.explorar-item:last-child {
  border-bottom: none;
}

.explorar-item:hover {
  background: linear-gradient(180deg, #ff7c11, #b93f00);
  color: #fff;
  transform: scale(1.03);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .header-right {
    max-width: calc(100% - 120px);
    right: 0.6rem;
    gap: 0.6rem;
  }
  .user-avatar,
  .curator-avatar {
    width: 36px;
    height: 36px;
  }
  .nav-btn i {
    font-size: 1.1rem;
  }
  .nav-btn .nav-label {
    font-size: 0.72rem;
  }
}

/* ============================================================
   BARRA SECUNDARIA
   ============================================================ */
.secondary-bar {
  width: 100%;
  background: linear-gradient(180deg, rgba(97, 13, 2, 0.9) 0%, rgba(11,11,11,0.8) 100%);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  position: relative;
  z-index: 9;
  border-bottom: 0px solid rgb(41, 19, 1);
  backdrop-filter: blur(6px);
}

.secondary-bar .container {
  width: 100%;
  max-width: 1400px;
  padding: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sb-group {
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(70px);
}

/* TÍTULO DE SECCIÓN */
.language-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 25px;
  background: rgba(207, 94, 14, 0.678);
  box-shadow: 0 3px 8px rgba(255,107,0,0.28);
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  margin-left: -35px;
}

.language-selector:hover {
  background: rgba(255, 106, 0, 0.959);
  transform: translateY(-1px);
}


/* =======================================================
   FOOTER
   ======================================================= */

.footer {
  text-align:center;
  padding:10px 10px;
  background:#000;
  border-top: 1px solid rgba(255,165,77,0.12);
  margin-top:375px;
  margin-left: 10px;
  width: 97%;
  border-radius: 40px;
}
.footer p { font-size:0.95rem; color:#ccc; font-weight:800; margin-bottom:8px; }
.footer-links { font-weight:800; }
.footer-links a { color:#999; text-decoration:none; transition: color .25s; }
.footer-links a:hover { color: var(--accent-light); }
