* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: #0a001f;
  color: #f4f4f4;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.hud-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background: rgba(10, 0, 30, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #6100ff99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.hud-panel h2 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}

.hud {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.hud::-webkit-scrollbar {
  display: none;
}

.hud button {
  flex: 0 0 auto;
  padding: 6px 16px;
  white-space: nowrap;
  border: 2px solid #7f00ff;
  border-radius: 8px;
  background: linear-gradient(145deg, #3700b3, #6200ea);
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 6px #6100ff55;
}

/* Botones generales */
button,
input[type="submit"],
input[type="button"] {
  padding: 12px;
  background: linear-gradient(45deg, #00f0ff, #ff00c8);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 0 10px #00f0ff55;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: scale(1.05);
}

/* Selects e inputs tipo texto */
select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Estilo de contenedor */
.container {
  max-width: 1000px;
  margin: 140px auto 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #88e0ff;
  font-size: 22px;
  margin-bottom: 20px;
}

.event-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00f0ff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px #00f0ff66;
}

.card.active {
  border-color: #ffcc00;
  box-shadow: 0 0 10px #ffcc0080;
}

.card img {
  width: 40%;
  object-fit: contain;
  background: #111;
  padding: 10px;
  height: 130px;
}

.card-content {
  width: 60%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.card-content h3 {
  font-size: 18px;
  color: #ffcc00;
}

.card-content p {
  font-size: 14px;
  color: #ccc;
}

.actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #fff;
  background: #222;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.actions input[type="checkbox"] {
  accent-color: yellow;
  transform: scale(1.2);
}

.actions select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, #3700b3, #6200ea);
  color: #fff;
  border: 2px solid #7f00ff;
  font-size: 14px;
  box-shadow: 0 0 8px #6100ff88;
}

@media screen and (max-width: 600px) {
  .card {
    flex-direction: column;
    align-items: center;
  }

  .card img {
    width: 100%;
    height: 160px;
  }

  .card-content {
    width: 100%;
    text-align: center;
  }
}

/* LOGIN específico */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-container h2 {
  font-family: 'Orbitron', sans-serif;
  color: white;
  margin-bottom: 20px;
}

.login-container .error {
  color: #ff4d4d;
  margin-bottom: 15px;
}

/* Panel container */
.panel-container {
  padding: 80px 20px 20px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
}

/* Menú lateral */
.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  z-index: 999;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px auto;
  background: white;
  transition: 0.3s;
}

.menu-content {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  box-shadow: -2px 0 10px rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  z-index: 998;
  display: flex;
  flex-direction: column;
}

.menu-content a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 16px;
  width: 100%;
  text-align: center;
  background: linear-gradient(45deg, #00f0ff, #ff00c8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Orbitron', sans-serif;
}

.menu-open .menu-content {
  right: 0;
}

.menu-open .menu-btn span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-btn span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Íconos en listas (editar/eliminar) */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

ul li a span.iconify {
  font-size: 22px;
  margin-left: 10px;
  color: #ff00c8;
  vertical-align: middle;
  transition: transform 0.2s ease, color 0.2s ease;
}

ul li a:hover span.iconify {
  transform: scale(1.2);
  color: #00f0ff;
}

/* Fondo suave tipo input para los listados */
.tipo-lista {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-top: 12px;
  padding: 10px;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.08);
}

.tipo-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.tipo-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.tipo-nombre {
  font-size: 15px;
  color: #fff;
  text-align: left;
  flex: 1;
}

.acciones {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.icon-editar,
.icon-eliminar {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon-editar {
  color: #00ffe7;
  filter: drop-shadow(0 0 3px #00ffe7);
}

.icon-editar:hover {
  transform: scale(1.2);
  color: #00c3ff;
  filter: drop-shadow(0 0 5px #00c3ff);
}

.icon-eliminar {
  color: #ff0066;
  filter: drop-shadow(0 0 3px #ff0066);
}

.icon-eliminar:hover {
  transform: scale(1.2);
  color: #ff4444;
  filter: drop-shadow(0 0 5px #ff4444);
}

/* ✅ Inputs tipo fecha, hora, archivo, select */
input[type="date"],
input[type="time"],
input[type="file"],
select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Formulario alineado */
.form-crear-evento {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-crear-evento label {
  margin-top: 12px;
  display: block;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
}

input[type="date"],
input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
}

/* ✅ NUEVO: Centramos checkbox y botón en bloque */
.form-checkbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.checkbox-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
}

.checkbox-center input[type="checkbox"] {
  accent-color: #00f0ff;
  transform: scale(1.3);
  margin: 0 8px 0 0;
}

.form-submit-wrapper {
  text-align: center;
  margin-top: 10px;
}

/* Centrado del checkbox y botón en crear evento */
.form-checkbox-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.checkbox-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
  text-align: center;
}

.form-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  width: 100%;
}

/* ✅ Centrado real de checkbox y botón dentro del formulario */
.form-crear-evento .checkbox-center,
.form-crear-evento .form-submit-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.form-crear-evento .checkbox-center {
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #ccc;
  text-align: center;
}

.form-crear-evento .form-submit-wrapper {
  margin-top: 10px;
}

/* Grupo de formulario */
.form-group {
  width: 100%;
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

/* Checkbox centrado */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ccc;
}

/* Botón centrado */
.center-button {
  margin-top: 10px;
}

/* ——— AJUSTE GLOBAL PARA FORMULARIOS CENTRADOS ——— */
.form-crear-evento {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 20px;
}

.form-crear-evento input[type="text"],
.form-crear-evento input[type="email"],
.form-crear-evento input[type="password"],
.form-crear-evento input[type="date"],
.form-crear-evento input[type="time"],
.form-crear-evento select,
.form-crear-evento textarea,
.form-crear-evento input[type="file"] {
  width: 100%;
  max-width: 600px;
  margin: 8px 0;
}

.form-crear-evento label {
  width: 100%;
  max-width: 600px;
  text-align: left;
  margin: 12px 0 4px;
  color: #ccc;
  font-size: 14px;
}

.form-crear-evento .checkbox-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.form-crear-evento .checkbox-center input[type="checkbox"] {
  transform: scale(1.3);
  accent-color: #00f0ff;
}

.form-crear-evento button[type="submit"] {
  margin-top: 16px;
  align-self: center;
}




.tipo-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.tipo-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  font-family: 'Orbitron', sans-serif;
  color: white;
}

.tipo-nombre {
  font-size: 16px;
  margin-bottom: 12px;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.acciones a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 8px 14px;
  background: rgba(98, 0, 255, 0.2);
  border: 1px solid rgba(98, 0, 255, 0.5);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, border 0.3s;
}

.acciones a:hover {
  background: rgba(98, 0, 255, 0.4);
  border-color: rgba(98, 0, 255, 0.8);
}

.acciones iconify-icon {
  font-size: 18px;
  vertical-align: middle;
}

/* Íconos específicos si quieres diferenciarlos más */
.icon-editar {
  color: #00ffd0;
}
.icon-eliminar {
  color: #ff6666;
}





.tarjeta-evento {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 10px rgba(134, 78, 255, 0.2);
  transition: all 0.3s ease;
}

.tarjeta-evento:hover {
  box-shadow: 0 0 20px rgba(134, 78, 255, 0.4);
}

.tarjeta-evento h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #cbb4ff;
}

.tarjeta-evento p {
  margin: 5px 0;
  font-size: 15px;
}

.tarjeta-evento .acciones {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tarjeta-evento .acciones a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background-color: rgba(134, 78, 255, 0.15);
  border: 1px solid rgba(134, 78, 255, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.tarjeta-evento .acciones a:hover {
  background-color: rgba(134, 78, 255, 0.3);
  transform: translateY(-2px);
}

.tarjeta-evento .acciones iconify-icon {
  font-size: 18px;
}




@media (max-width: 600px) {
  .tarjeta-evento {
    padding: 16px;
  }

  .tarjeta-evento h3 {
    font-size: 18px;
  }

  .tarjeta-evento p {
    font-size: 14px;
  }

  .tarjeta-evento .acciones {
    flex-direction: column;
    align-items: stretch;
  }

  .tarjeta-evento .acciones a {
    justify-content: center;
    font-size: 15px;
    padding: 12px 10px;
  }

  .tarjeta-evento .acciones iconify-icon {
    font-size: 20px;
  }
}

/* Línea divisoria limpia */
.linea-divisoria {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  margin: 40px 0;
}

/* Separación entre botones y formularios */
button,
#form-extra,
#btn-agregar-extra {
  margin-top: 20px;
  margin-bottom: 20px;
}

.bloque-archivo {
  background-color: rgba(100, 0, 150, 0.08); /* fondo translúcido morado */
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid rgba(100, 0, 150, 0.3);
}

.btn-eliminar {
  display: inline-block;
  background-color: rgba(255, 50, 50, 0.2);
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  margin-top: 8px;
  transition: 0.2s;
}

.btn-eliminar:hover {
  background-color: rgba(255, 50, 50, 0.4);
  color: white;
}