/* ====== RESET & TIPOLOGÍA ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  background: #2f2f2f;
  color: #fff;
}

/* ====== LAYOUT PRINCIPAL ====== */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ====== SIDEBAR ====== */
.sidebar {
  width: 220px;                     /* ancho similar a la imagen */
  background: #0f0f0f;              /* oscuro */
  padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,0.03);
}

/* marca superior */
.brand {
  color: #ffcc00;                   /* amarillo */
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 18px;
  margin-bottom: 18px;
}

/* lista de nav */
.nav-list {
  list-style: none;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.nav-item {
  position: relative;
}

.nav-item + .nav-item { margin-top: 8px; }

.nav-item a {
  display: block;
  text-decoration: none;
  color: #d9d9d9;
  padding: 12px 12px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 14px;
}

/* indicador izquierdo rojo para item activo */
.nav-item.active a {
  background: transparent;
  color: #fff;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  background: linear-gradient(#ff4545,#ff6b6b);
  border-radius: 4px;
}

/* separación grande antes del botón */
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
  border-top: 1px solid rgba(255,255,255,0.03);
  margin-top: 28px;
}

/* botón rojo centrado */
.close-btn {
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.close-btn:hover { background: #ff2222; }

/* ====== MAIN CONTENT ====== */
.main-content {
  flex: 1;
  background: linear-gradient(#3a3a3a,#3a3a3a);
  padding: 48px 60px;
  overflow-y: auto;
}

/* HEADER con título y logo */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* TÍTULO grande */
.title {
  font-size: 48px;
  line-height: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.title .yellow {
  color: #ffcc00;
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -1px;
}
.title .white {
  color: #ffffff;
  font-weight: 700;
  font-size: 48px;
  margin-top: 6px;
}

/* Logo circular a la derecha, con borde y sombra */
.logo-wrap { padding-left: 24px; }
.logo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(0,0,0,0.6);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 0 6px rgba(255,255,255,0.02) inset;
  background: #fff;
}

/* SECCIÓN MENU */
.menu-section { margin-top: 40px; }

/* etiqueta "Menu de banderillas" */
.menu-title {
  color: #e6e6e6;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 600;
}

/* AREA RAYADA (fondo con diagonales) */
.cards-area {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 6px, transparent 6px 12px),
    linear-gradient(#3a3a3a, #3a3a3a);
  padding: 18px;
  border-radius: 6px;
}

/* contenedor de tarjetas */
.cards {
  display: flex;
  gap: 22px;
  padding: 12px;
}

/* CADA TARJETA */
.card {
  width: 190px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.55);
}

/* imagen de la tarjeta (parte superior) */
.card-image {
  background: #efefef;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

/* panel inferior blanco con nombre y precio (simula tarjeta con borde inferior más claro) */
.card-info {
  background: #fafafa;
  padding: 12px 10px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.card-name {
  color: #f1c84a;      /* amarillo suave similar a la imagen */
  font-weight: 700;
  margin-bottom: 6px;
}
.card-price {
  color: #9b9b9b;
  font-size: 13px;
  margin-top: 2px;
}

/* BOTÓN rojo grande */
.menu-btn {
  margin-top: 22px;
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.menu-btn:hover { background: #ff2222; }

/* texto pequeño inferior (simula la linea verde "Goals" al pie) */
.footer-notes {
  margin-top: 16px;
  color: #cfcfcf;
  font-size: 13px;
  opacity: 0.85;
}

/* SCROLLBAR estilada */
.main-content::-webkit-scrollbar { height: 10px; width: 8px; }
.main-content::-webkit-scrollbar-thumb { background: #5d5d5d; border-radius: 6px; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .title .yellow { font-size: 40px; }
  .title .white { font-size: 32px; }
  .logo { width: 120px; height: 120px; }
  .cards { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .card { width: 160px; }
}

@media (max-width: 700px) {
  .sidebar { width: 100%; flex-direction: row; align-items: center; gap: 10px; padding: 12px; }
  .nav-list { display: none; }
  .main-content { padding: 20px; }
  .container { flex-direction: column; }
}

/* ====== ANIMACIÓN DE LA SIDEBAR ====== */
.sidebar {
  transition: transform 0.4s ease;   /* suaviza el movimiento */
}

.sidebar.hidden {
  transform: translateX(-100%);      /* la mueve fuera de la pantalla */
}

/* Botón flotante para volver a mostrar la barra */
.toggle-sidebar-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

/* --- Control del sidebar --- */
.sidebar {
  transition: transform 0.35s ease;
}

.sidebar.hidden {
  transform: translateX(-120%);
}

.toggle-sidebar-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  display: none; /* Oculto al inicio */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  cursor: pointer;
  background: #c6d82f;
  color: #000;
  z-index: 1000;
}

.toggle-sidebar-btn.show {
  display: flex;
}

.close-btn {
  background: #c6d82f;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
}

