* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: white;
}
#jaja {
  height: 100px;
  /* background-image: radial-gradient(#ffb931, #ff6100); */
  /* background-image: radial-gradient(#b0110c 30%, #000 100%); */
  /* color: #c1ff72; */
  color: #ff8924;
  text-align: center;
  padding: 0.2rem 0;
  position: relative;
  /* width: 90%; */
  margin-left: auto;
  margin-right: auto;
  /* border-radius: 5px; */
  background: #1c1c1c;
  max-width: 420px;
  border-radius: 15px;
}
.logo {
  position: absolute;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: center;
  z-index: 5;
  /* opacity: 0.8; */
  /* animation: heartbeat2 1.5s ease-in-out 4; */
}
.logo img {
  position: relative;
}
#jaja h1 {
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
  top: -20px;
  -webkit-text-stroke: 1px #333;
  text-shadow: 0 6px 6px rgba(0, 0, 0, 0.6);
}
#jaja p {
  margin-top: 0.5rem;
  position: relative;
  z-index: 7;
  font-weight: bold;
  top: 67px;
  /* -webkit-text-stroke: 0.5px #7ba842; */
  -webkit-text-stroke: 0.5px #66391e;
  text-shadow: 0 6px 6px rgba(0, 0, 0, 0.6);
}
.menu-container {
  display: flex;
  width: 100%;
  justify-content: right;
  align-items: center;
  position: absolute;
  padding: 0 2rem;
  height: 40px;
  top: 0;
  bottom: 0;
  margin: auto;
}
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
}
.menu-toggle:hover {
  transform: scale(1.05);
  /* color: #444; */
  color: #a31010;
}
.menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #333;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  width: 200px;
  z-index: 10;
}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu li {
  border-bottom: 1px solid #444;
}
.menu li:last-child {
  border-bottom: none;
}
.menu a {
  color: white;
  text-decoration: none;
  display: flex;
  height: 40px;
  justify-content: center;
  align-items: center;
}
.menu a:hover {
  background-color: #555;
  border-radius: 5px;
  transform: scale(1.01);
  font-weight: bold;
}
.menu.active {
  display: flex;
  right: 2rem;
}
.menu.inactive {
  display: none;
}

/* =========================
   LOGIN
========================= */

.login-container {
  /* min-height: 100vh; */

  display: flex;
  justify-content: center;
  /* align-items: center; */

  padding: 10px 20px;
}

.login-box {
  width: 100%;
  max-width: 420px;

  padding: 10px 35px;

  background: #1c1c1c;

  border-radius: 15px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

  text-align: center;
}

.logo-login {
  width: 180px;
  max-width: 80%;
}

.login-box h1 {
  margin-bottom: 5px;
}

.login-box p {
  color: #aaa;
}

.campo {
  margin-bottom: 20px;

  text-align: left;
}

.campo label {
  display: block;

  margin-bottom: 7px;

  font-weight: bold;
}

.campo input,
.campo textarea,
.editor-toolbar input,
.editor-toolbar select {
  width: 100%;

  padding: 12px;

  border: 1px solid #444;

  border-radius: 8px;

  background: #292929;

  color: white;

  font-size: 16px;
}

.login-box button,
.btn-guardar {
  border: none;

  border-radius: 8px;

  padding: 12px 20px;

  background: #e85d04;

  color: white;

  font-size: 16px;

  font-weight: bold;

  cursor: pointer;
}

.login-box button {
  width: 100%;
}

button:hover {
  opacity: 0.85;
}

.error {
  color: #ff5252 !important;
}

/* =========================
   EDITOR
========================= */

.editor-container {
  min-height: 100vh;
}

.editor-header {
  max-width: 1000px;
  border-radius: 12px;
  margin: auto;
  position: sticky;
  top: 0;

  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  padding: 25px;

  background: #181818;

  border-bottom: 1px solid #333;
  margin-bottom: 5px;
}

.editor-header h1 {
  margin: 0;
}

.editor-header p {
  margin: 5px 0 0;

  color: #aaa;
}

#btnCerrarSesion {
  padding: 10px 15px;

  border: 1px solid #555;

  border-radius: 8px;

  background: transparent;

  color: white;

  cursor: pointer;
  z-index: 10;
}

.editor-content {
  max-width: 1000px;

  margin: auto;

  padding: 25px 15px;
  background: #181818;
  border-radius: 12px;
}

.editor-toolbar {
  display: grid;

  grid-template-columns: 1fr 200px;

  gap: 15px;

  margin-bottom: 25px;
}

.producto-editor {
  margin-bottom: 20px;

  padding: 20px;

  background: #1d1d1d;

  border: 1px solid #333;

  border-radius: 12px;
}

.producto-titulo {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 20px;
}

.producto-titulo h2 {
  margin: 0;
}

.producto-tipo {
  padding: 5px 10px;

  border-radius: 20px;

  background: #333;

  font-size: 13px;
}

.acciones {
  display: flex;

  justify-content: flex-end;
}

.oculto {
  display: none !important;
}

.sin-productos {
  padding: 40px;

  text-align: center;

  color: #aaa;
}

/* =========================
   MÓVIL
========================= */

@media (max-width: 600px) {
  /* .editor-header {
    align-items: flex-start;
  } */
  #jaja {
    width: 90%;
  }
  #jaja .menu-toggle {
    font-size: 20px;
  }
  #jaja .menu-container {
    padding: 0 1rem;
    bottom: unset;
    height: unset;
    position: unset;
  }
  #jaja .menu a {
    font-size: 10px;
  }
  .editor-header .logo {
    width: unset;
    height: unset;
    right: 0;
    top: 25px;
  }

  #btnCerrarSesion {
    padding: unset;
    margin: auto auto 0 auto;
    z-index: 10;
  }

  .editor-header .logo img {
    position: relative;
    margin: auto;
    /* margin: 0 0 auto auto; */
    width: 60%;
    /* height: 50%; */
    /* right: 0; */
    /* left: 0; */
  }

  .editor-toolbar {
    grid-template-columns: 1fr;
  }

  .producto-titulo {
    align-items: flex-start;

    flex-direction: column;

    gap: 10px;
  }
  .menu.active {
    width: 70px;
    opacity: 0.8;
    right: 20px;
    display: flex;
    /* right: 2rem; */
  }
  .menu a {
    font-size: 14px;
    padding: 5px;
    height: 32px;
    color: white;
    text-decoration: none;
    display: flex;
    /* height: 40px; */
    justify-content: center;
    align-items: center;
  }

  .acciones {
    justify-content: stretch;
  }

  .btn-guardar {
    width: 100%;
  }
}
