/* home_styles.css */

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  width: 100vw;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  color: #222;
  /* overflow: hidden;  <-- QUITA ESTA LÍNEA */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* BOTONES & ENLACES */
a, button {
  text-decoration: none;
  outline: none;
  border: none;
}

/* NAVBAR - Glassmorphic */
.navbar {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  flex: 0 0 auto; /* tamaño fijo */
  z-index: 1000;
}
.logo img {
  height: 48px;
  cursor: pointer;
}

/* MENU LIST */
.nav-menu {
  display: flex;
  list-style: none;
  margin-left: 3rem;
  gap: 0.5rem;
}
.nav-item {
  position: relative;
}

/* MENU BUTTONS */
.nav-button {
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #444;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.nav-item > .nav-button:not([data-page]) {
  pointer-events: none;
  cursor: default;
}
@keyframes coolActive {
  0% { background: transparent; color: #444; transform: scale(1); }
  50% { background: rgba(0,0,0,0.5); color: #fff; transform: scale(1.05) translateY(-1px); }
  100% { background: #000; color: #fff; transform: scale(1); }
}
.nav-button:hover,
.nav-button.active {
  animation: coolActive 0.4s ease forwards;
  font-weight: 700;
}
.nav-item.active > .nav-button {
  animation: coolActive 0.4s ease forwards;
  font-weight: 700;
}

/* DROPDOWNS */
.dropdown {
  position: absolute;
  top: calc(90% + 0.25rem);
  left: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown .nav-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1.5rem;
  color: #555;
  background: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown .nav-button:hover {
  background: rgba(193,126,255,0.2);
  color: #c17eff;
  font-weight: 700;
}
.dropdown .nav-button.active {
  animation: coolActive 0.3s ease forwards;
  font-weight: 700;
}

/* CONTENT CONTAINER: ocupa todo el espacio restante */
#content {
  flex: 1 1 auto;          /* crece para llenar */
  width: 100%;             /* todo el ancho */
  overflow-y: auto;        /* scroll solo en contenido */
  background: #fff;
  padding: 2rem;
  /* opcionales, quítalos si no los quieres */
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}
#content.fade-in {
  opacity: 1;
  transform: translateY(0);
}
#content.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* LOADER */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
}

/* ——— AÑADIDO: estilos para botón Iniciar sesión y avatar ——— */
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-login {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  border-radius: 10px;
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.4px;
  border: none;
}

.btn-login:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #5d0fc1 0%, #1c6df7 100%);
  transition: all 0.3s ease;
}

.btn-login:active {
  transform: translateY(0);
}
.btn-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.btn-profile:hover {
  transform: scale(1.1);
}
.btn-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

