/* =======================================================
   BANANA STEEL THEME — NAVBAR Y BASE VISUAL
   ======================================================= */

/* ---------- BASE GENERAL ---------- */
#content-wrapper { min-height: 100vh; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
}

section { padding: 60px 0; }

footer {
  background-color: #000;
  color: #fff;
}

/* =======================================================
   NAVBAR — BANANA STEEL
   ======================================================= */

.custom-navbar {
  background-color: var(--fitness-black);
  color: var(--fitness-text-light);
  z-index: 1030;
  padding: 0.5rem 1rem;
  position: relative;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

/* ---------- LOGO REDONDO ---------- */
.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 50%;
  border: 2px solid var(--fitness-yellow);
  padding: 0.3rem;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.logo-wrapper:hover {
  box-shadow: 0 0 8px rgba(255, 216, 77, 0.6);
  border-color: var(--fitness-yellow-accent);
}

/* ---------- TÍTULO ---------- */
.header-title {
  color: var(--fitness-yellow);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-title i {
  color: var(--fitness-yellow-accent);
}

/* ---------- LINKS ---------- */
.custom-navbar .nav-link {
  color: var(--fitness-yellow);
  font-weight: 500;
  transition: color 0.2s ease;
}
.custom-navbar .nav-link:hover {
  color: var(--fitness-yellow-accent);
}

/* ---------- IMAGEN PERFIL ---------- */
.img-profile {
  width: 40px;
  height: 40px;
  border: 2px solid var(--fitness-yellow);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 216, 77, 0.4);
  transition: all 0.2s ease-in-out;
}
.nav-link:hover .img-profile {
  box-shadow: 0 0 10px rgba(255, 216, 77, 0.8);
}

/* ---------- NOMBRE DE USUARIO ---------- */
#user-dropdown .nav-link .small {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fitness-yellow);
  text-shadow: 0 0 4px rgba(255, 216, 77, 0.25);
}
#user-dropdown .nav-link:hover .small {
  color: var(--fitness-yellow-accent);
  text-shadow: 0 0 6px rgba(255, 216, 77, 0.4);
}

/* ---------- TOGGLER ---------- */
.navbar-toggler {
  border: 2px solid var(--fitness-yellow);
  border-radius: 0.4rem;
  background-color: transparent;
  padding: 0.35rem 0.5rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(230, 184, 0, 0.25);
}
.navbar-toggler-icon {
  filter: invert(84%) sepia(88%) saturate(744%) hue-rotate(20deg)
          brightness(104%) contrast(98%);
}

/* ---------- SEPARADOR ---------- */
.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.25);
  margin: 0 0.25rem;
  align-self: center;
}
.navbar-nav {
  display: flex;
  align-items: center;
}

/* =======================================================
   NAVBAR STICKY ON SCROLL
   ======================================================= */

.custom-navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--fitness-black) 0%, #111 100%);
  border-bottom: 2px solid var(--fitness-yellow);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  animation: navbarFadeIn 0.3s ease;
}

@keyframes navbarFadeIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.navbar-placeholder {
  display: none;
  height: 0;
}
.custom-navbar.scrolled + .navbar-placeholder {
  display: block;
  height: var(--navbar-height, 74px);
}

/* =======================================================
   VERSIÓN MÓVIL
   ======================================================= */
@media (max-width: 991.98px) {
  .custom-navbar {
    padding: 0.6rem 1rem;
    position: relative;
  }

  /* Logo + título centrados */
  .navbar-brand {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
  }

  .header-logo { width: 40px; height: 40px; }
  .logo-wrapper { padding: 0.2rem; }

  .header-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  /* Menú colapsado alineado a la izquierda */
  .custom-navbar .navbar-collapse {
    background-color: var(--fitness-black);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
  }

  /* Enlaces principales alineados a la izquierda */
  .mobile-menu .navbar-nav {
    align-items: flex-start;
  }
  .mobile-menu .nav-link {
    display: block;
    width: 100%;
    color: var(--fitness-yellow);
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 0;
    text-align: left;
  }
  .mobile-menu .nav-link:hover {
    color: var(--fitness-yellow-accent);
  }

  /* Panel de usuario móvil */
  .user-panel {
    text-align: left !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  .user-panel .d-flex { justify-content: flex-start; }
  .user-panel .img-profile {
    width: 44px;
    height: 44px;
    border: 2px solid var(--fitness-yellow);
  }
  .user-panel h6 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--fitness-yellow);
  }
  .user-panel small {
    color: #bbb;
    font-size: 0.875rem;
  }
  .user-panel .nav-link {
    color: var(--fitness-text-light);
    font-weight: 500;
    padding: 0.4rem 0;
    text-align: left;
  }
  .user-panel .nav-link:hover {
    color: var(--fitness-yellow);
  }
  .user-panel .btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    font-weight: 700;
    text-transform: uppercase;
  }
}

/* ---------- Pantallas pequeñas (<600px) ---------- */
@media (max-width: 600px) {
  .header-logo { width: 36px; height: 36px; }
  .header-title { font-size: 0.85rem; }
}

/* ---------- Ultra pequeñas (<400px): solo logo ---------- */
@media (max-width: 400px) {
  .header-title { display: none; }
  .navbar-brand { justify-content: center; }
}

/* =======================================================
   TARJETAS / CARDS
   ======================================================= */

/* Efectos solo para tarjetas de video */
.video-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
