html,
body {

  min-height: 100%;
  margin: 0;
  background: radial-gradient(circle, #005500, #003300, #002200);
  color: white;

}

body {

  padding: 2vh 2vw 4vh;
  overflow-y: auto;

}

#titulo {

  color: white;
  text-align: center;
  margin-top: 2vh;
  margin-bottom: 3vh;

}

.contenedor {

  display: flex;
  flex-direction: column;
  gap: 2vh;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

}

.panel {

  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);

}

.panel h2 {

  margin-top: 0;
  margin-bottom: 1.2rem;
  color: white;
  font-size: 1.4rem;
  text-align: center;

}

.form-group {

  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;

}

.form-group label,
.filtro label {

  color: white;
  font-size: 1.1rem;

}

.campo {

  width: 100%;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: white;
  color: #111;
  font-size: 1rem;

}

.grupo_colores {

  display: flex;
  gap: 1rem;

}

.grupo_colores .form-group {

  flex: 1;
  min-width: 0;

}

.campo.color {

  height: 3rem;
  padding: 0.25rem;
  cursor: pointer;

}

.muestra_degradado {

  display: inline-block;
  width: 90px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  vertical-align: middle;

}

.acciones_formulario {

  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;

}

button {

  padding: 0.55rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: #198754;
  color: white;
  font-size: 1rem;
  cursor: pointer;

}

button:hover {

  filter: brightness(1.1);

}

button:disabled {

  opacity: 0.6;
  cursor: wait;

}

button.secundario {

  background: #6c757d;

}

button.btn-editar {

  background: #0d6efd;

}

button.btn-borrar {

  background: #dc3545;

}

.cabecera_lista {

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;

}

.cabecera_lista h2 {

  margin: 0;

}

.filtro {

  display: flex;
  align-items: center;
  gap: 0.5rem;

}

.filtro .campo {

  width: auto;
  min-width: 220px;

}

#mensaje {

  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
  text-align: center;

}

#mensaje.ok {

  color: #b9ffb9;

}

#mensaje.error {

  color: #ffb3b3;

}

.tabla-scroll {

  max-height: 55vh;
  overflow: auto;
  border-radius: 8px;

}

#tabla_secciones {

  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.25);

}

#tabla_secciones th,
#tabla_secciones td {

  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  vertical-align: middle;
  color: white;

}

#tabla_secciones th {

  position: sticky;
  top: 0;
  z-index: 1;
  background: #212529;
  white-space: nowrap;

}

#tabla_secciones td.acciones {

  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;

}

#tabla_secciones td.vacio {

  padding: 1.2rem;
  font-style: italic;
  color: #dddddd;

}

.oculto {

  display: none !important;

}

.volver {

  align-self: center;
  margin-top: 1rem;
  color: white;
  text-decoration: underline;

}

@media all and (max-width: 576px) {

  .panel {

    padding: 1rem;

  }

  .grupo_colores {

    flex-direction: column;
    gap: 0;

  }

  .cabecera_lista {

    align-items: stretch;
    flex-direction: column;

  }

  .filtro {

    align-items: stretch;
    flex-direction: column;

  }

  .filtro .campo {

    width: 100%;
    min-width: 0;

  }

}
